You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like for multipart/form-data we don't take into account the parent schema example when generating samples for the properties. There is a workaround for this by specifying an example for each of the properties separately instead of for the entire schema:
Content & configuration
Swagger/OpenAPI definition:
Swagger-UI configuration options:
Is your feature request related to a problem?
Clicking the "Try it out" button for my example endpoint gives the following initial form state:
Instead of using the example provided.
Describe the solution you'd like
I would like the initial form state to be the following
(required_field="foo" and optional_field omitted) to reflect the example given.
Describe alternatives you've considered
I've played around with different ways of specifying the request body and the example. Nothing seems to produce this result in the swagger UI.
The text was updated successfully, but these errors were encountered: