-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Using OpenAPI 3.0, when having an object field with oneOf inside a request body schema, it is not possible to unselect the first listed oneOf option in the UI. For example, using this this as a request body schema:
OneOfSchema:
type: object
properties:
test:
oneOf:
- title: "Number input"
type: object
properties:
number_input:
type: number
- title: "String input"
type: object
properties:
string_input:
type: stringWhen selecting the "String input" option in the "Try It" window:
Then the data preview still shows the example placeholder for the first option, i.e. number_input:
I would expect it to deselect the first option when selecting a different oneOf field, so the payload shown should be:
{
"test": {
"string_input": "test test"
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels