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
tsfunction constructedResponseSchema(method: MethodDeclaration, ctx: OriginContext): Record<string, unknown> | undefined
Parameters
| Name | Type |
|---|---|
method | MethodDeclaration |
ctx | OriginContext |
Returns: Record<string, unknown> | undefined
Was this page helpful?