MCPcopy
hub / github.com/Effect-TS/effect / getContextJsonSchemaAnnotations

Function getContextJsonSchemaAnnotations

packages/effect/src/JSONSchema.ts:500–508  ·  view source on GitHub ↗
(ast: AST.AST, annotated: AST.Annotated)

Source from the content-addressed store, hash-verified

498}
499
500function getContextJsonSchemaAnnotations(ast: AST.AST, annotated: AST.Annotated): JsonSchemaAnnotations | undefined {
501 return pruneJsonSchemaAnnotations(
502 ast,
503 getRawDescription(annotated),
504 getRawTitle(annotated),
505 getRawDefault(annotated),
506 getRawExamples(annotated)
507 )
508}
509
510function getJsonSchemaAnnotations(ast: AST.AST): JsonSchemaAnnotations | undefined {
511 return pruneJsonSchemaAnnotations(

Callers 1

goFunction · 0.85

Calls 5

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

Tested by

no test coverage detected