Closed oliviernguyenquoc closed 3 weeks ago
Have you read https://pb33f.io/libopenapi/circular-references/ ?
Maybe I'm missing something in your intent, sorry if I am, but the benefit of this library is that it doesn't error out when circular references are present (which can be a valid use-case).
So it is working as expected, right?
Have you read https://pb33f.io/libopenapi/circular-references/ ?
Maybe I'm missing something in your intent, sorry if I am, but the benefit of this library is that it doesn't error out when circular references are present (which can be a valid use-case).
So it is working as expected, right?
This is correct. Circular reference management and detection is a feature of the library, it's not a showstopper, which is why there are configuration options available when building documents.
The docs here: https://pb33f.io/libopenapi/circular-references/ explain this all in detail.
Thanks.
Ok I missed this phrase: "A circular reference isn’t considered something that’s broken, unless required is set to true"
When I use this YAML:
Output: "Successfully parsed OpenAPI document with circular references"
I should have an error