APIM removing some of the properties from the specification automatically.
Below one is my request body :
"requestBody": {
"description": "Request payload in multipart/form-data format",
"content": {
"multipart/form-data": {
"schema": {
"type" : "object",
"properties": {
"document": {
"type": "string",
"format" : "binary"
},
"sampleID": {
"type": "string"
},
"notes": {
"type": "string"
}
}
},
"example": {
"sampleID": "61399",
"notes": "document",
"document": "file content"
}
}
}
},
After saving, APIM removing the binary format and type :
"requestBody": {
"description": "Request payload in multipart/form-data format",
"content": {
"multipart/form-data": {
"schema": {
"properties": {
"document": {
"type": "string"
},
"sampleID": {
"type": "string"
},
"notes": {
"type": "string"
}
}
},
"example": {
"sampleID": "61399",
"notes": "document",
"document": "file content"
}
}
}
},
Could you please check and let me know why this is happening? And workaround for this?