api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Developer Portal: response schema for built-in types shows incorrect, autogenerated name

Open nweseloh opened this issue 1 year ago • 1 comments

Bug description

A clear and concise description of the bug.

Reproduction steps

  1. 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
  1. select the operation in the developer portal
  2. see that the response type has a weird auto-generated name "CountriesGet200ApplicationJsonResponse": image

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

nweseloh avatar Nov 27 '23 12:11 nweseloh