For further test coverage on the @SchemaProperty annotation, I believe that the following negative test scenario should be implemented:
Verify that the @SchemaProperty annotation overrides implementation class attributes.
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 @SchemaPropertyJavaDoc:
Provides a java class as implementation for this schema. When provided, additional information in the Schema annotation (except for type information) will augment the java class after introspection.
For further test coverage on the @SchemaProperty annotation, I believe that the following negative test scenario should be implemented:
@SchemaProperty
annotation overrides implementation class attributes.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 theimplementation
element's description within the@SchemaProperty
JavaDoc: