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
Currently, I am trying to migrate from manually created openapi schema to auto-generated one. Both for Home and Street utoipa generates a reference to the Pet called Pet, which is expected. But our current schema has different links to that pet:
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
-
Consider the following example:
Currently, I am trying to migrate from manually created openapi schema to auto-generated one. Both for Home and Street utoipa generates a reference to the Pet called Pet, which is expected. But our current schema has different links to that pet:
Is there any way in utoipa to define schema names for different fields? Something like:
I tried the following, which is not a convenient option:
But the generated schema for HomePet and StreetPet is weird:
What would be the best workaround here?
Beta Was this translation helpful? Give feedback.
All reactions