Closed fantapop closed 6 months ago
hi @fantapop
This is indeed an uncovered case as a result of the recursive handling. I'll try to create a fix in the coming period, by excluding the "schemas" when it is part of the "example" node.
Thanks for reporting this.
hi @fantapop
There is a new release v1.14.2 that contains the bug fix for this issue. I added a test that uses your example as input with the correct output after the conversion. https://github.com/thim81/openapi-format/tree/main/test/json-example-schemas
Can you verify, if the new version solves your issue?
Hey, sorry I meant to test this. I did just now. Its fixed! Thank you so much for upkeeping this library.
I have an api endpoint like this:
After running this through openapi-format, the example is rewritten like so:
Could this be due to some kind of recursive handling of the open api "schemas" field? Thanks in advance for taking a look.