Skip to content

Validation does not start with recursive schemas since version 1.33.0 #779

@TorstenEhrhardt

Description

@TorstenEhrhardt

I have a recursive schema, where the schema is used within the schema like

Human:
  type: object
    properties:
      ....
      children:
        description: Childred
        type: array
        items:
          $ref: '#/components/schemas/Human'

Until version 1.32.4 this works fine, but starting with 1.33.0 the validation does not start anymore:

[ERROR] There was a problem with spectral.
[ERROR] Error running Nimma
[ERROR] Additional error details:
[ERROR] Cause: no such schema #/components/schemas/Human located in </undefined>
[ERROR] At: Validator.resolve (/usr/local/lib/node_modules/ibm-openapi-validator/node_modules/jsonschema/lib/validator.js:271:11)

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