Skip to content

Conversation

@rreyn-bruno
Copy link
Collaborator

@rreyn-bruno rreyn-bruno commented Nov 7, 2025

Description

  • Add support for content.example (singular) in responses
  • Add support for schema.example in responses
  • Add support for property-level examples in schemas
  • Add support for array item examples
  • Add request body example extraction (examples, example, schema.example, property-level)
  • Implement priority ordering: examples > example > schema.example > property examples
  • Add getBodyModeFromContentType helper for request body examples
  • Update tests to verify request body example extraction

This makes the OpenAPI importer much more robust and able to extract examples regardless of how they are defined in the OpenAPI specification.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

- Add support for content.example (singular) in responses
- Add support for schema.example in responses
- Add support for property-level examples in schemas
- Add support for array item examples
- Add request body example extraction (examples, example, schema.example, property-level)
- Implement priority ordering: examples > example > schema.example > property examples
- Add getBodyModeFromContentType helper for request body examples
- Update tests to verify request body example extraction

This makes the OpenAPI importer much more robust and able to extract
examples regardless of how they are defined in the OpenAPI specification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant