Hi, my turn to say sorry for the delay @Shireesha Eeraboina and @RithwikBojja
Here is a minimal example of a OpenAPI 3.1 file with only one nullable property :
{
"openapi": "3.1.0",
"info": {
"title": "Test",
"version": "1"
},
"paths": {
"/test_path": {
"get": {
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/myObject"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"myObject": {
"type": "object",
"properties": {
"myProperty": {
"type": [
"string",
"null"
]
}
}
}
}
}
}
It has been generated with https://editor-next.swagger.io/ and the result is correctly displayed on it as shown in the attached image. And it works as expected elsewhere (internal tooling, openapi viewers, etc).microsoft_openapi_issue.png
Except it won’t work on Azure APIM, I attached an image of the error during import.[azure_apim_import_error.png](/api/attachments/42479827-df07-4570-abcd-9e2fd6ac5ca6?platform=QnA)
I’m quite sure this is a bug in Azure APIM, because the example is valid OpenAPI 3.1 data, and none of the "limitations" listed on APIM documentation are used here. Plus this is really a trivial example, only a single array of an object containing one nullable string.
Does it help you ?