Skip to content

responsesForShape

reference
1 min readUpdated

Kind: Function

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

The OpenAPI responses object for a classified shape.

Every branch states something true. manual is the interesting one: it publishes a described 200 with NO content schema, which says "there is a response and we could not describe it" — distinct both from a fabricated schema and from an operation that documents nothing at all.

Signature

ts
function responsesForShape(shape: ResponseShape): Record<string, unknown>

Parameters

NameType
shapeResponseShape

Returns: Record<string, unknown>

Was this page helpful?

Download as PDF