Open Zerotask opened 6 months ago
Hi @Zerotask
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?