Fixes so that a oneOf schema with a single sub-schema is simplified (#21043)

* Fixes so that a oneOf schema with a single sub-schema is simplified when SIMPLIFY_ONEOF_ANYOF is set to true

* Adjusts oneOf_array test to ensure that it is generated as an interface instead of being simplified

* Update ruby samples so that they no longer refer to a model that is now gone due to the schema being simplified
This commit is contained in:
Mattias Sehlstedt
2025-04-26 16:53:21 +02:00
committed by GitHub
parent 02204d0e4b
commit 1eee6038df
21 changed files with 198 additions and 409 deletions

View File

@@ -30,4 +30,5 @@ components:
- items:
$ref: '#/components/schemas/OneOf1'
type: array
- $ref: '#/components/schemas/OneOf1'