RepreZen / KaiZen-OpenAPI-Editor

Eclipse Editor for the Swagger-OpenAPI Description Language
Eclipse Public License 1.0
115 stars 12 forks source link

description causes failed to match exactly one schema #529

Open trks1970 opened 3 years ago

trks1970 commented 3 years ago

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