You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Starting in 2.11.12 (the behaviour is not present in 2.11.11, which I reverted to), fields in the model not present in the required list are being generated as required in the model. I suspect this has something to do with #650
My json doesn't specify nullable on the fields, it just omits the non-required ones from the required list. If I ALSO set nullable: true on the fields not in the required list, then I get the proper behaviour again. Sadly, Strapi doesn't generate the nullable property on the fields.
To Reproduce
Please attach swagger and code snippet of generated value
Expected behavior
If a list of required properties is provided, then any property not explicitly marked as nullable: false should be assumed to be nullable: true.
Swagger specification link
Link to swagger/OpenApi documentation
Library version used:
2.11.12
Additional context
I am generating swagger.json from Strapi (famous for it's very poor abilities to generate the api docs)
The text was updated successfully, but these errors were encountered:
Describe the bug
Starting in 2.11.12 (the behaviour is not present in 2.11.11, which I reverted to), fields in the model not present in the required list are being generated as required in the model. I suspect this has something to do with #650
My json doesn't specify nullable on the fields, it just omits the non-required ones from the required list. If I ALSO set nullable: true on the fields not in the required list, then I get the proper behaviour again. Sadly, Strapi doesn't generate the nullable property on the fields.
To Reproduce
Please attach swagger and code snippet of generated value
Expected behavior
If a list of required properties is provided, then any property not explicitly marked as nullable: false should be assumed to be nullable: true.
Swagger specification link
Link to swagger/OpenApi documentation
Library version used:
2.11.12
Additional context
I am generating swagger.json from Strapi (famous for it's very poor abilities to generate the api docs)
The text was updated successfully, but these errors were encountered: