Skip to content

Enhance OpenAPI 3 import: add support for allOf, oneOf, and anyOf in example request generation#9653

Merged
shelby-moore merged 2 commits intoKong:developfrom
89ht:develop
Feb 13, 2026
Merged

Enhance OpenAPI 3 import: add support for allOf, oneOf, and anyOf in example request generation#9653
shelby-moore merged 2 commits intoKong:developfrom
89ht:develop

Conversation

@89ht
Copy link
Contributor

@89ht 89ht commented Feb 11, 2026

Summary:

This update enhances the OpenAPI 3 import functionality by adding support for the allOf, oneOf, and anyOf keywords in example request generation. Previously, the handling of these keywords was limited, often resulting in empty arrays or null values in generated examples (see screenshots for reference). With this improvement, example requests are now generated according to the OpenAPI 3 specification, ensuring that composed schemas are properly represented. OpenAPI 3.0 Data Models - oneOf, anyOf, allOf, not

This enhancement also resolves GitHub Issue #3046.

Before:
current_importer

After:
enhanced_importer

Used example openapi3 json:
openapi-3-test-spec.json

@CLAassistant
Copy link

CLAassistant commented Feb 11, 2026

CLA assistant check
All committers have signed the CLA.

@89ht 89ht force-pushed the develop branch 2 times, most recently from ce8c48a to 0e9a8c2 Compare February 11, 2026 16:43
Copy link
Contributor

@shelby-moore shelby-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@shelby-moore shelby-moore enabled auto-merge (squash) February 13, 2026 19:13
@shelby-moore shelby-moore merged commit a2afc3a into Kong:develop Feb 13, 2026
10 of 11 checks passed
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.

OpenAPI Schema Definition with allOf

3 participants