Skip to content

oas with circular reference #80

@kshavva

Description

@kshavva

Hello, i have a problem:

my openapi spec has circular reference, so i am getting Maximum call stack size exceeded because of it in walkSchema function of schema-utils.js.

Is there a way to make express-openapi-validate work with oas with circular reference?

i have something like this:

Characteristic:
  type: object
  description: Provides the value of a given characteristic
  required:
    - name
  properties:
    id:
      type: string
      description: Unique identifier of the characteristic
    name:
      type: string
      description: Name of the characteristic
    nested:
      type: array
      items:
        $ref: '#/components/schemas/Characteristics'


Characteristics:
  type: array
  items:
    $ref: '#/components/schemas/Characteristic'

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