You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kalaiyarasiganeshalingam
changed the title
Generated Custom connector operation's request body incorrect
Request body of the generated custom connector operation is incorrect
Feb 18, 2025
We currently do not fully support mappings from OAS to MI, but we are working on it step by step. Here is the current mapping status:
Primitive Data Types
OpenAPI Data Type
Mapped Representation in Synapse
integer
synapse:number
boolean
synapse:number
string
synapse:string
number
synapse:string
null (OpenAPI 3.1)
Not explicitly handled
String Formats
OpenAPI Data Type
Mapped Representation in Synapse
date
Not explicitly handled
date-time
Not explicitly handled
password
Not explicitly handled
byte
Not explicitly handled
binary
Not explicitly handled
email
Not explicitly handled
uuid
Not explicitly handled
Complex Data Types
OpenAPI Data Type
Mapped Representation in Synapse
array
Not explicitly handled
object
Not explicitly handled
The mapping logic assigns integer and boolean types to synapse:number.
All other types (e.g., string, number, date, binary) are mapped to synapse:string.
Description
When the field type is an object or array, the generated request body has that field value as a string.
Tested open API definition: https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml
Generated connector's addPet operation configurations:
In the spec,
Category
type is JSON objectPhoto Urls
type is arrayTags
type is object arrayWire logs for this operation
Steps to Reproduce
Source code:
Version
latest
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: