eclipse / microprofile-open-api

Microprofile open api
Apache License 2.0
132 stars 82 forks source link

Negative Test Scenario - @SchemaProperty Precedence Behaviour #466

Closed scottcurtis2605 closed 3 years ago

scottcurtis2605 commented 3 years ago

For further test coverage on the @SchemaProperty annotation, I believe that the following negative test scenario should be implemented:

This originates from a suggestion by @MikeEdgar within the following issue raised within the SmallRye OpenAPI repository.

This would further reinforce behaviour described within the JavaDoc for @SchemaProperty, which implies that attribute & attribute values defined on the @SchemaProperty annotation will override those defined on the implemntation class upon OpenAPI document generation. The following is stated within the implementation element's description within the @SchemaProperty JavaDoc: