# constructedResponseSchema

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/response-origin.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/response-origin.ts#L228)

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

| Name | Type |
|---|---|
| `method` | `MethodDeclaration` |
| `ctx` | `OriginContext` |

**Returns:** `Record<string, unknown> | undefined`
