Hello friendly team!
We have developed a connector that has its inputs defined via an x-ms-dynamic-schema.
The inputs are defined here: https://github.com/microsoft/PowerPlatformConnectors/blob/dev/certified-connectors/WooCommerce/apiDefinition.swagger.json#L443
The outputs are then specified here: https://github.com/microsoft/PowerPlatformConnectors/blob/dev/certified-connectors/WooCommerce/apiDefinition.swagger.json#L461
This is a trimmed sample of the request, with both input and output included:
{
"schema": {
"type": "object",
"properties": {
"id": {
"x-ms-summary": "Resource id",
"type": "integer",
"description": "Unique identifier for the resource."
},
"parent_id": {
"x-ms-summary": "Parent id",
"type": "integer",
"description": "Parent order ID."
},
"number": {
"x-ms-summary": "Number",
"type": "string",
"description": "Order number."
},
...
}
},
"post": {
"type": "object",
"properties": {
"parent_id": {
"x-ms-summary": "Parent id",
"type": "integer",
"description": "Parent order ID."
},
"status": {
"x-ms-summary": "Status",
"type": "string",
"description": "Order status.",
"enum": [
"auto-draft",
"pending",
"processing",
"on-hold",
"completed",
"cancelled",
"refunded",
"failed"
],
"default": "pending"
},
...
}
}
}
We are observing the "id" field is not being returned in outputs and that the outputs more closely resemble the inputs.
However, the items do not exactly match so it's really not clear how this is happening.
Is it possible to use x-ms-dynamic-properties for both input and outputs as we have done?