api-management-developer-portal
api-management-developer-portal copied to clipboard
Developer Portal: response schema for built-in types shows incorrect, autogenerated name
Bug description
A clear and concise description of the bug.
Reproduction steps
- import an OpenAPI operation like this (abbreviated):
paths:
/countries:
get:
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Country'
components:
schemas:
Country:
type: object
properties:
code:
type: string
- select the operation in the developer portal
- see that the response type has a weird auto-generated name "CountriesGet200ApplicationJsonResponse":
This happens for all response types that are built-in OpenAPI types, e.g.:
- array
- number
- string
Expected behavior
The response type should be "Country[]", similar to an operation that returns a single custom schema object.
Is your portal managed or self-hosted?
Managed