fix: OpenAPI Converter was not parsing examples for request parameters
Merged
SH
4mo ago+376+376+012345678901234567890123456789-12-12-01234567890123456789
-
Fixes the parsing of OpenAPI Specifications to include
exampleorexamples. Previously, they were being silently dropped. https://spec.openapis.org/oas/v3.0.3#fixed-fields-9 -
Fixes some Type Checking/Linting type errors
Summary by cubic
Fixes OpenAPI example handling and normalizes them into JSON Schema examples for parameters, request bodies, and responses. Also validates HTTP methods and skips unsupported ones to prevent crashes.
- Bug Fixes
- Extract and merge examples from
example/examplesat parameter, media type, and schema levels; resolve$ref, de-duplicate, ignoreexternalValue; normalize into JSON Schemaexamplesand strip rawexample/exampleskeys. - Validate HTTP method against a supported set and skip unsupported (
OPTIONS,HEAD,TRACE) instead of erroring. - Tighten typing and attribute access; add tests for parameter/body/response examples, schema-level normalization, and unsupported-method skipping.
- Extract and merge examples from