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
We would expect to only accept this payload:
{"empty_map": {}}
But our code ends up accepting javascript objects with any values and any number of key value pairs.
any generator
this came up in python-experimental in #6290
Steps to reproduce
Generate a model for the above schema and check the validations in that model
Related issues/PRs
Suggest a fix
When this condition is seen (property schema of type object with no properties and additionalProperties: False) in Java we need to set the maxItems for this property to 0.
The text was updated successfully, but these errors were encountered:
spacether
changed the title
[BUG] [Java] Empty Object Property not working correctly
[BUG] [Java] Empty object property not working correctly
May 22, 2020
Bug Report Checklist
Description
When defining a schema that looks like this:
We would expect to only accept this payload:
{"empty_map": {}}
But our code ends up accepting javascript objects with any values and any number of key value pairs.
@sebastien-rosset
openapi-generator version
Master branch
OpenAPI declaration file content or url
See the above example
Command line used for generation
any generator
this came up in python-experimental in #6290
Steps to reproduce
Generate a model for the above schema and check the validations in that model
Related issues/PRs
Suggest a fix
When this condition is seen (property schema of type object with no properties and additionalProperties: False) in Java we need to set the maxItems for this property to 0.
The text was updated successfully, but these errors were encountered: