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
I noticed, that in the JSON response, the fields measurements and units are shown first, before the id, which looks weird.
I thought the order is defined in meta fields. Is this a bug or how can I enforce the order from meta fields?
well this happens somewhere inside pydantic - django ninja sends fields definitions as dict (where fields are sorted as in Meta.fields) but apparently pydantic puts attributes defined on class first
I think I raised this at pydantic issues once but did not get a solution..
I noticed, that in the JSON response, the fields
measurements
andunits
are shown first, before the id, which looks weird.I thought the order is defined in meta fields. Is this a bug or how can I enforce the order from meta fields?
The text was updated successfully, but these errors were encountered: