MCPcopy Index your code
hub / github.com/Effect-TS/effect / addASTAnnotations

Function addASTAnnotations

packages/effect/src/JSONSchema.ts:607–609  ·  view source on GitHub ↗
(jsonSchema: JsonSchema7, ast: AST.AST)

Source from the content-addressed store, hash-verified

605}
606
607function addASTAnnotations(jsonSchema: JsonSchema7, ast: AST.AST): JsonSchema7 {
608 return addAnnotations(jsonSchema, getJsonSchemaAnnotations(ast))
609}
610
611function addAnnotations(jsonSchema: JsonSchema7, annotations: JsonSchemaAnnotations | undefined): JsonSchema7 {
612 if (annotations === undefined || Object.keys(annotations).length === 0) {

Callers 1

goFunction · 0.85

Calls 2

addAnnotationsFunction · 0.85
getJsonSchemaAnnotationsFunction · 0.85

Tested by

no test coverage detected