Skip to content

description causes failed to match exactly one schema #529

@trks1970

Description

@trks1970

Test yaml

openapi: "3.0.2"
info:
  version: 1.0.0
  title: Swagger Petstore
paths:
  /:
    get:
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Parent'
      
components:
  responses:
    Ok:
      description: ok
  schemas:
    Parent:
      type: object
      properties:
        id:
          type: number
        reference:
          description: description
          $ref: '#/components/schemas/Child'
    Child:
      type: object
      properties:
        id:
          type: number

for this yaml I get failed to match exactly one schema error, which disappears if I remove the

description: description

line

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions