Skip to content

Unstable after circular reference #27

@avelinob

Description

@avelinob

Unstable (i.e. wont pick up new files or preview new files) after a YAML OAS 3 with external references, where in one of those external references, has a anyOf: array with two options: string or a reference back to self. Uninstalling and re-installing does not help.

Example:

openapi.yaml

---
openapi: 3.0.0
# etc
components:
  schemas:
    StuffDefinition:
      $ref: 'stuff.yaml#/schemas/Stuff

stuff.yaml

schemas:
  Stuff:
    type: object
    properties:
       mistake:
           type: array
           items:
              anyOf:
             - type: string
               description: supposed to be a  composite  reference of to an existing object
             - $ref: '#/schemas/Stuff'
               description: supposed to be an inline subordinate object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions