KaiZen-OpenAPI-Editor icon indicating copy to clipboard operation
KaiZen-OpenAPI-Editor copied to clipboard

description causes failed to match exactly one schema

Open trks1970 opened this issue 4 years ago • 0 comments

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

trks1970 avatar Apr 15 '21 06:04 trks1970