Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Inviz
· 1y ago · 0 comments
gemini api has propertyOrdering field for that
Comments
[–]
msp26
1y ago
that only works for the outer level, not for any nested fields
[–]
Inviz
OP
1y ago
nested field have their own propertyOrdering
[–]
msp26
1y ago
can you provide an example please? The docs suggest that propertyOrdering can only be a list[str].
[–]
Inviz
OP
1y ago
yes but you can put it on nested objects. Each type: object can have its own propertyOrdering, so you control whole tree