Skip to content

OpenAPI V2 documents do not properly render anyOf including nullable references #762

@darrelmiller

Description

@darrelmiller

#1005
#1004

The following OpenAPI description does not render the complex object properly in V2

openapi: 3.0.0
info:
  title: asdads
  version: 1.0.0
paths:
  /:
   get:
     responses:
       200:
         description: ok
         content:
           application/json:
             schema:
               type: object
               properties:
                 complex:
                   anyOf:
                     - $ref: '#/components/schemas/complex'
                     - nullable: true
components:
  schemas:
    complex:
      type: object
      properties:
        name: 
          type: string
  

Metadata

Metadata

Assignees

Labels

priority:p1High priority but not blocking. Causes major but not critical loss of functionality SLA <=7daystype:bugA broken experience

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions