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

Function getDescriptionOrIdentifier

packages/platform/src/HttpApi.ts:435–443  ·  view source on GitHub ↗
(ast: AST.PropertySignature | AST.AST)

Source from the content-addressed store, hash-verified

433}
434
435const getDescriptionOrIdentifier = (ast: AST.PropertySignature | AST.AST): Option.Option<string> => {
436 const annotations = "to" in ast ?
437 {
438 ...ast.to.annotations,
439 ...ast.annotations
440 } :
441 ast.annotations
442 return Option.fromNullable(annotations[AST.DescriptionAnnotationId] ?? annotations[AST.IdentifierAnnotationId] as any)
443}
444
445/**
446 * Adds additional schemas to components/schemas.

Callers 1

processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected