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
Create an empty Schema that serializes to null.
Can be used in places where an item can be serialized as null. This is used with unit type enum variants and tuple unit types.
It becomes a jsonschema
type: objectdefault: ~nullable: true
Because it has type: object in there, it can not be used to describe an empty string, int, or any other type. It can only be used to describe an empty object.
It should be changed to use the new Value support added in #568
The text was updated successfully, but these errors were encountered:
https://docs.rs/utoipa/latest/utoipa/openapi/schema/fn.empty.html says
It becomes a jsonschema
Because it has
type: object
in there, it can not be used to describe an empty string, int, or any other type. It can only be used to describe an empty object.It should be changed to use the new
Value
support added in #568The text was updated successfully, but these errors were encountered: