basePath: /
consumes:
- application/json
definitions:
Domain:
description: |-
An example domain
properties:
id:
type: string
name:
type: string
type: object
domainsList:
description: A list of all domains
items:
$ref: '#/definitions/Domain'
type: array
info:
description: This documentation describes example APIs
license:
name: MIT
title: Example
version: 1.0.0
paths:
/domain:
get:
operationId: domains
responses:
"200":
description: A list of all domains
schema:
$ref: '#/definitions/domainsList'
summary: Get all domains
produces:
- application/json
responses:
ok:
description: The response type of a call to get all domains
schemes:
- https
securityDefinitions:
bearer:
in: header
name: Authorization
type: apiKey
swagger: "2.0"
domainsList is of type array with items of type #/definitions/Domain. However when shown in the Models section this is rendered incorrectly:
Expected
A list of Domain ie. [Domain{...}]
Actual
The name of the object is incorrectly shown as the name of the list
Consider this representation:
domainsList
is of typearray
with items of type#/definitions/Domain
. However when shown in theModels
section this is rendered incorrectly:Expected
A list of
Domain
ie.[Domain{...}]
Actual
The name of the object is incorrectly shown as the name of the list
This is reproducible by pasting the content above onto https://editor.swagger.io