-
Notifications
You must be signed in to change notification settings - Fork 9
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
Duplicated properties in objects with allof, which makes all properties optional #101
Comments
@mostaphaRoudsari this might be why our current viewer doesn't like this json file. |
@MingboPeng, can you help me to find this issue by letting me know which file are you looking at? additionalProperties is a key in OpenAPI: https://swagger.io/docs/specification/data-models/dictionaries/ |
I'm seeing it now in the one with inheritance. You might be right. I will give it a try. The documentation is currently broken after the most recent commits. I'm also working on that. |
@mostaphaRoudsari Thanks, if I am reading this OpenAPI doc correctly: In terms of how additionalProperties should be defined: |
Hi @MingboPeng, See the attached file. This should address both problems that you have raised here: Let me know if you see any other issues. I will push the fix once I can figure out what is going on with the As for |
@mostaphaRoudsari thanks, this works well, For additionalProperties, I got mixed with userData. I will open another issue for that case. |
In all objects with inheritance, it's "properties" field is duplicated at top level (outside of allof), which should not exist. This also makes all properties optional while generating c# client.
I am not sure if this "additionalProperties" is a property or comes with OpenAPI.
cc: @mostaphaRoudsari
The text was updated successfully, but these errors were encountered: