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
utopia::ToSchema macro documentation says that serdedefault field attribute should be used in the schema (see here). But this simple example does not work with utoipa v.4:
Addition of #[schema(default = default_prop)] corrects the situation, but this attribute duplication looks strange. Is it possible to avoid this duplication?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
utopia::ToSchema
macro documentation says thatserde
default
field attribute should be used in the schema (see here). But this simple example does not work withutoipa
v.4:Generated code:
Addition of
#[schema(default = default_prop)]
corrects the situation, but this attribute duplication looks strange. Is it possible to avoid this duplication?Beta Was this translation helpful? Give feedback.
All reactions