Azure API Management importing openapi generating random names
Petula Lau
0
Reputation points
Hi, I have the following openapi.json, and when I import it into the azure api management portal it generates a long name like: RestApiAdminLocationSourcesGet200ApplicationJsonResponse for the definition for 200 status
How do I change it so its a specific name? I realize that the type=array is the problem
"/rest/api/admin/locationSources": {
"get": {
"tags": [
"Admin Location Source API"
],
"summary": "Admin - Get all location sources",
"description": "Get all location sources for the Admin Console",
"operationId": "getAllLocationSources",
"responses": {
"200": {
"description": "Location sources retrieved successfully",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LocationSourceResponse"
}
}
}
}
},
Sign in to answer