
Is there a way to specify the display order of schema definition properties within the OpenAPI schema? For example, given the following object definitions:
{
"definitions": {
"MyObject": {
"type": "object",
"properties": {
"propA": {
"title": "Prop A",
"type": "string"
},
"propB": {
"title": "Prop B",
"type": "string"
}
}
}
}
}I'd like to be able to specify that propA is shown before propB when utilizing an action from within the Microsoft Flow creation interface.
Hi @cjackson ,
Do you want to order the sequence of properties when configuring your OpenAPI definition?
I have seen a relative thread for this issue, please check it at here:
From this thread we know that if you want to preserve some ordering you need to do it within an array. You could achieve this by using an array of objects instead of an object in the items clause. An example:
{
"type" : "array" :
"items" : [{
"properties" : {
"prop2" : {
"type" : "number"
}
}
}, {
"properties" : {
"prop1" : {
"type" : "string"
}
}
}
]
}
Please take it for a reference and try it on your side.
Best regards,
Mabel