openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

Apply NotNull bean-validation to allOf composition #71

Closed Tucos closed 3 years ago

Tucos commented 3 years ago

When using allOf and bean validation, the properties of the composed type do not get annotated with NotNull even though they are marked as required in the schema. While creating and checking a test-case, I came up with a potential fix. The tests are copied and modified from 2 existing ones.

hauner commented 3 years ago

I may fix this slightly different but your pull request is good starting point with the tests in place. :-)

Thanks for the report & fix. :-)