Skip to content

constructedResponseSchema

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/response-origin.ts

The response schema implied by what the handler actually returns.

Follows the returned expression — through a delegating service call, a local const, a .map(), an object literal — until it reaches something whose shape is stated in the repo: an ORM call naming a model, a literal, or a constructed object whose keys are right there.

Signature

ts
function constructedResponseSchema(method: MethodDeclaration, ctx: OriginContext): Record<string, unknown> | undefined

Parameters

NameType
methodMethodDeclaration
ctxOriginContext

Returns: Record<string, unknown> | undefined

Was this page helpful?

Download as PDF