Skip to content

Add option to enable circular reference #154

Open
@VolodymyrMachekhin

Description

Hello team! Thank you again for creating and maintaining the library.
I have a question about the circular references. When I try to use a circular reference in spec it throws an error during the initialization.

ReferenceError: Circular $ref pointer found at...

The error is thrown by json-schema-ref-parser
While json-schema-ref-parser allows the circular refs, in the source code I found that oas-chow-chow puts a hardcoded option to the parser

dereference: {
  circular: false,
},

Is there any specific reason to it, and can it be changed?

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