SchemaTypeHelpers
Utility helpers to work with OpenAPI schema types and $ref dereferencing.
Functions
Finds the first success status code (2xx) from operation responses.
Resolves an example $ref against OpenAPI components.
Resolves a response by status code using OpenAPI matching rules: exact code -> range (e.g. 2XX) -> default.
Attempts to dereference a parameter $ref against the OpenAPI components. Returns the dereferenced parameter if found; otherwise returns the original.
Attempts to dereference a request body $ref against the OpenAPI components. Returns the dereferenced request body if found; otherwise returns the original.
Attempts to dereference a schema $ref against the OpenAPI components. Returns the dereferenced schema if found; otherwise returns the original schema.