Closed hampuskraft closed 2 years ago
Additionally, I've encountered issues with the default $refStrategy
. Setting it to 'none'
resolves these issues for me without affecting other definitions. The problem arises when a nested object in an anyOf
incorrectly references the counterpart in anyOf[0]
instead of inlining it, which happens with the default setting. For now, I've copied these functions into my own application and modified them accordingly.
Hi! Thanks for your contribution. I had to slightly modify some details and tests to account for the new target, which is now an option. Released as 0.0.2.
This update upgrades the output JSON schema to OpenAPI 3, replacing
anyOf
withnullable
fields. This change ensures compliance with codegen tools like openapi-typescript. Everything should remain compatible, as it works fine in my app.