-
Notifications
You must be signed in to change notification settings - Fork 136
OpenAPI v3.1.0 spec files do not generate valid data classes #1854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI v3.1.0 spec files do not generate valid data classes #1854
Conversation
|
Also, code works fine with OpenAPI |
|
So I poked around a bit and discovered that (hilariously?) All the matching we do on |
|
Seems like this is not related to |
6db6cb0 to
253580b
Compare
|
OK. A little more coffee helped clear up what likely needs to happen in the interim, and some initial poking around to see if I could convince the parser to emit anything other than Considering that, we can fall back to the supertype and just match on the various implementation branches and be done with things for now. |
|
I'm offering this here as what I intend to merge, though the test still needs to be reflowed into |
|
Nice! |
This should have no impact since $ref is mutually exclusive to any other object properties
253580b to
5b1a35e
Compare
5b1a35e to
cc3ccb1
Compare
cc3ccb1 to
99cd329
Compare
|
Thanks again for the report! |
|
Ah, too bad there are no snapshots for guardrail, hoping for a release soon! |
|
Yeah, I've not had time to figure out how to get snapshots working with the release. If you know something about that, PRs are welcome! This will come in the 1.0 release coming soon. |
|
I have some thoughts about snapshot releases, will create an issue. |
If spec would contain paths that use said schemas, then models would be generated.#1854 (comment)