Hacker News new | ask | show | jobs
by Inviz 265 days ago
gemini api has propertyOrdering field for that
1 comments

that only works for the outer level, not for any nested fields
nested field have their own propertyOrdering
can you provide an example please? The docs suggest that propertyOrdering can only be a list[str].
yes but you can put it on nested objects. Each type: object can have its own propertyOrdering, so you control whole tree