-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue when body is an array (#2845)
Issue: when the body was an array, the parameter was fully ignored
- Loading branch information
1 parent
edcd860
commit c5e5c9b
Showing
5 changed files
with
103 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
src/tests/Microsoft.PowerFx.Connectors.Tests.Shared/Swagger/TestSwagger1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Power Apps Connector", | ||
"description": "API definition for Power Apps Connector", | ||
"version": "1.0.0" | ||
}, | ||
"paths": { | ||
"/{connectionId}/codeless/createFileWithTable": { | ||
"post": { | ||
"summary": "Create File with Table", | ||
"description": "Create an excel file with a table", | ||
"operationId": "CreateFileWithTable", | ||
"consumes": [], | ||
"produces": [ | ||
"application/json", | ||
"text/json", | ||
"application/xml", | ||
"text/xml" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "connectionId", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"x-ms-visibility": "internal" | ||
}, | ||
{ | ||
"name": "rows", | ||
"in": "body", | ||
"description": "Input an array with comma separated values", | ||
"required": true, | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": "array", | ||
"items": { | ||
"allOf": [ | ||
{ | ||
"type": "number" | ||
}, | ||
{ | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"x-ms-summary": "Rows to be added to the table" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/CreateFileMetadata" | ||
} | ||
}, | ||
"default": { | ||
"description": "Operation Failed." | ||
} | ||
}, | ||
"deprecated": false, | ||
"x-ms-visibility": "important", | ||
"externalDocs": { | ||
"url": "https://docs.microsoft.com/connectors/excelonlinebusiness/#create-file-with-table" | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"CreateFileMetadata": { | ||
"type": "object", | ||
"properties": { | ||
"fileId": { | ||
"type": "string" | ||
}, | ||
"fileName": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |