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
The issue is in the default value. UUID is a simple string with UUID format for swagger, and setting default to {} is creating confusion from user's perspective and messes with tools which are using swagger schema (e.g validation based on the schema).
Proposed model definition
Since UUID as default is a function, rather than a static value, a proposal is to omit default value at all
Steps
OpenApi3Strategy
schema for this modelActual model definition
The issue is in the
default
value. UUID is a simple string with UUID format for swagger, and setting default to {} is creating confusion from user's perspective and messes with tools which are using swagger schema (e.g validation based on the schema).Proposed model definition
Since UUID as default is a function, rather than a static value, a proposal is to omit default value at all
Workaround
Currently, I'm using
jsonSchema
on a field to create own definition for a field withoutdefault
parameterThe text was updated successfully, but these errors were encountered: