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
the minimum properties field is seemingly not enforced. In the above example an empty object will be accepted and generate the class
class RequestBody {
foo: null
bar: null
}
Expected behaviour
My expectation would be that deserialising an empty object into a RequestBody class should throw an error due to fewer than 1 minimum property being present.
Bug Report Checklist
Description
Actual behaviour
When defining an object with
minProperties
like so:the minimum properties field is seemingly not enforced. In the above example an empty object will be accepted and generate the class
Expected behaviour
My expectation would be that deserialising an empty object into a RequestBody class should throw an error due to fewer than 1 minimum property being present.
openapi-generator version
7.10.0, not a regression
OpenAPI declaration file content or url
Related issues/PRs
I wasn't able to find existing issues relating to this topic.
The text was updated successfully, but these errors were encountered: