Skip to main content

Function: resolveSchema()

resolveSchema(schema, spec): ResolvedSchema

Defined in: schema.ts:122

Resolves a schema down to a single object shape: follows a top-level $ref and merges oneOf / anyOf alternatives (union of properties, intersection of required) so the caller sees one flat property set.

Parameters

ParameterType
schemaRecord<string, unknown> | undefined
specOpenApiSpec

Returns

ResolvedSchema