PowerAutomate errors when trying to create a powerapp from the following schema generated automatically via swashbuckle decorations:
{
"dynSearchAndReplaceText": {
"type": "object",
"required": [
"fileName",
"fileContent",
"phrases"
],
"properties": {
"phrases": [
],
"fileName": {
"type": "string",
"x-ms-visibility": "important",
"x-ms-summary": "Filename",
"description": "The filename of the source file, the file extension is mandatory: 'file.pdf' and not 'file'"
},
"fileContent": {
"format": "byte",
"type": "string",
"x-ms-visibility": "important",
"x-ms-summary": "File Content",
"description": "The file content of the source file"
}
}
}
}
I'd thought the problem might be related to the array of phrase (I want users to be able to provide a number of strings that can be searched for and their individual replacements.
The 'phrases' array is as below:
"phrases": [
{
"replacementText": {
"type": "string",
"x-ms-visibility": "important",
"x-ms-summary": "ReplacementText",
"description": "The text to be inserted"
},
"searchText": {
"type": "string",
"x-ms-visibility": "important",
"x-ms-summary": "SearchText",
"description": "The text value to locate"
},
"type": "object",
"x-ms-visibility": "important",
"description": "A text phrase to locate and replace."
}
],
Does power automate support arrays at this depth in the schema?