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

Function getRawExamples

packages/effect/src/JSONSchema.ts:416–418  ·  view source on GitHub ↗
(annotated: AST.Annotated | undefined)

Source from the content-addressed store, hash-verified

414}
415
416function getRawExamples(annotated: AST.Annotated | undefined): ReadonlyArray<unknown> | undefined {
417 if (annotated !== undefined) return Option.getOrUndefined(AST.getExamplesAnnotation(annotated))
418}
419
420function encodeExamples(ast: AST.AST, examples: ReadonlyArray<unknown>): Array<JsonValue> | undefined {
421 const getOption = ParseResult.getOption(ast, false)

Callers 2

getJsonSchemaAnnotationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected