Skip to content

fix: accept non-object OpenAPI example values - #155

Merged
Himenon merged 2 commits into
mainfrom
feat/fix-example-validation
Sep 3, 2026
Merged

fix: accept non-object OpenAPI example values#155
Himenon merged 2 commits into
mainfrom
feat/fix-example-validation

Conversation

@Himenon

@Himenon Himenon commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add an OpenAPI 3.0 fixture covering non-object values in Parameter, Media Type, Header, and Link objects.
  • Generate a Functional API Client from the fixture.
  • Add snapshot coverage and validator regression tests.

Specification

OpenAPI Specification v3.0.3 defines example as Any for the Parameter Object and Media Type Object. The Header Object follows the Parameter Object structure, and the Link Object allows Any values for parameters and request bodies.

TDD

This first commit intentionally contains the regression tests and fixture before the validator implementation. The implementation will be added in a follow-up commit.

Fixes #154

@Himenon
Himenon marked this pull request as ready for review September 3, 2026 01:44
@Himenon
Himenon merged commit 60f251c into main Sep 3, 2026
2 checks passed
@Himenon
Himenon deleted the feat/fix-example-validation branch September 3, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: mediaType.example (and other example fields) reject non-object values due to broken #/definitions/any

1 participant