Closed lselden closed 3 years ago
Are you comfortable sharing the OpenAPI definition that's causing this?
@codat/v1.1.0#1mld74kq6wk0s1
crashes because of circular structures
I just pushed up v3.4.2 to npm which will fix your issue @josei. It should also fix yours @lselden but let me know if it doesn't.
I'm trying to load an OpenAPI 3.0 doc where there are circular references to components (i.e.
comment
has child array ofcomment
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 ofdereference
?