Skip to content

crashes with circular references #313

@lselden

Description

@lselden

I'm trying to load an OpenAPI 3.0 doc where there are circular references to components (i.e. comment has child array of comment objects). It's crashing with "TypeError: Converting circular structure to JSON".

relevant code: https://github.com/readmeio/api/blob/main/packages/api/src/cache.js#L152

I don't know your code, but maybe you need to bundle instead of dereference?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions