Skip to content

Wrong item schema title in array schemas #3505

@hkosova

Description

@hkosova

Version: 3.1.2

Array schemas display incorrect title of the item schema - same as the array schema. The issue applies to both 2.0 and 3.0 specs.

ArrayOfFoo

2.0 spec:

swagger: '2.0'
info:
  version: 0.0.0
  title: test

paths: {}

definitions:
  ArrayOfFoo:
    type: array
    items:
      $ref: '#/definitions/Foo'

  Foo:
    type: object
    properties:
      bar:
        type: string

3.0 spec:

openapi: 3.0.0
info:
  version: 0.0.0
  title: test

paths: {}

components:
  schemas:
    ArrayOfFoo:
      type: array
      items:
        $ref: '#/components/schemas/Foo'
  
    Foo:
      type: object
      properties:
        bar:
          type: string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions