Skip to main content

Function: resolveSchema()

resolveSchema(schema, spec, documents?): ResolvedSchema

Defined in: http-server-mcp-openapi/src/schema.ts:212

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
documents?OpenApiDocuments

Returns​

ResolvedSchema