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

Function getJsonSchemaAnnotations

packages/effect/src/JSONSchema.ts:510–518  ·  view source on GitHub ↗
(ast: AST.AST)

Source from the content-addressed store, hash-verified

508}
509
510function getJsonSchemaAnnotations(ast: AST.AST): JsonSchemaAnnotations | undefined {
511 return pruneJsonSchemaAnnotations(
512 ast,
513 filterBuiltIn(ast, getRawDescription(ast), AST.DescriptionAnnotationId),
514 filterBuiltIn(ast, getRawTitle(ast), AST.TitleAnnotationId),
515 getRawDefault(ast),
516 getRawExamples(ast)
517 )
518}
519
520function mergeJsonSchemaAnnotations(
521 jsonSchema: JsonSchema7,

Callers 2

mergeRefinementsFunction · 0.85
addASTAnnotationsFunction · 0.85

Calls 6

filterBuiltInFunction · 0.85
getRawDescriptionFunction · 0.85
getRawTitleFunction · 0.85
getRawDefaultFunction · 0.85
getRawExamplesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…