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 have a quarkus (1.4.2.Final) project with smallrye-openapi in version 1.2.3.
We have an abstract Superclass
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(value = {"field1"})
public abstract class SuperClass {
abstract getField1() {
}
abstract setField1(String value) {
}
}
and some Child classes
public final class ChildClass {
@Override
protected getField1(){
...
}
@Override
protected setField1(String value){
...
}
}
In swagger-ui we see field1 in all subclasses of Superclass. If we put the @JsonIgnoreProperties(value = {"field1"}) on the child classes all is fine and the field is ignored.
Same for @JsonIgnore or @Schema(hidden=true) all work at child class level but are ignored if used on super class.
It is cumbersome to always remember to annotate each new child, so it would be great if this works on super class level
The text was updated successfully, but these errors were encountered:
We have a quarkus (1.4.2.Final) project with smallrye-openapi in version 1.2.3.
We have an abstract Superclass
and some Child classes
In swagger-ui we see field1 in all subclasses of Superclass. If we put the
@JsonIgnoreProperties(value = {"field1"})
on the child classes all is fine and the field is ignored.Same for
@JsonIgnore
or@Schema(hidden=true)
all work at child class level but are ignored if used on super class.It is cumbersome to always remember to annotate each new child, so it would be great if this works on super class level
The text was updated successfully, but these errors were encountered: