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
| Parameter | Type |
|---|---|
schema | Record<string, unknown> | undefined |
spec | OpenApiSpec |
documents? | OpenApiDocuments |
Returns
ResolvedSchema