-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[BUG] Generation fails "the allOf schemas must use $ref" #7262
Comments
@felschr we have three issues at play here.
Let's dig into point two a little more
With additionalProperties false for the inline schema that has break and for UserTimeBase. What about when additionalProperties is true? (This is what we need) I will look into this bug. |
Bug Report Checklist
Description
After upgrading from v4.2.2 to v5 (d3017ff) to get the changes from #6789 I'm getting a new error now that wasn't present before:
The
UserSleep
schema looks like this:I don't see any mention of this being invalid in the official OpenAPI specification.
openapi-generator version
d3017ff (v5)
It was working in v4.2.2.
I haven't tested any other versions.
Generation Details
This issue happens for all generators.
Steps to reproduce
Minimum config to reproduce the issue:
While creating this minimum config I noticed that when I add in
properties
(the commented block) to the inline schema inallOf
the generation will work.Suggest a fix
Using discriminators in
allOf
schemas should work no matter if it's using$ref
or inline schemas and no matter if it includesproperties
or not.The text was updated successfully, but these errors were encountered: