File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core
springdoc-openapi-webmvc-core/src/test
java/test/org/springdoc/api/app102 Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 3030import java .util .Map ;
3131import java .util .Optional ;
3232
33+ import com .fasterxml .jackson .annotation .JsonIgnore ;
3334import com .fasterxml .jackson .annotation .JsonView ;
3435import io .swagger .v3 .core .converter .AnnotatedType ;
3536import io .swagger .v3 .core .converter .ModelConverters ;
@@ -74,6 +75,7 @@ public class SpringDocAnnotationsUtils extends AnnotationsUtils {
7475
7576 static {
7677 ANNOTATIONS_TO_IGNORE .add (Hidden .class );
78+ ANNOTATIONS_TO_IGNORE .add (JsonIgnore .class );
7779 ANNOTATIONS_TO_IGNORE .add (RequestAttribute .class );
7880 }
7981
Original file line number Diff line number Diff line change 44import java .util .List ;
55import java .util .Optional ;
66
7+ import com .fasterxml .jackson .annotation .JsonIgnore ;
78import io .swagger .v3 .oas .annotations .Parameter ;
89
910import org .springframework .lang .Nullable ;
1011
1112public class RequestParams {
1213
1314 @ Parameter (description = "string parameter" )
15+ @ JsonIgnore
1416 private String stringParam ;
1517
1618 @ Deprecated
Original file line number Diff line number Diff line change 3535 "type" : " string"
3636 }
3737 },
38- {
39- "name" : " stringParam" ,
40- "in" : " query" ,
41- "description" : " string parameter" ,
42- "required" : false ,
43- "schema" : {
44- "type" : " string"
45- }
46- },
4738 {
4839 "name" : " stringParam1" ,
4940 "in" : " query" ,
139130 }
140131 }
141132 }
142- }
133+ }
You can’t perform that action at this time.
0 commit comments