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 30
30
import java .util .Map ;
31
31
import java .util .Optional ;
32
32
33
+ import com .fasterxml .jackson .annotation .JsonIgnore ;
33
34
import com .fasterxml .jackson .annotation .JsonView ;
34
35
import io .swagger .v3 .core .converter .AnnotatedType ;
35
36
import io .swagger .v3 .core .converter .ModelConverters ;
@@ -74,6 +75,7 @@ public class SpringDocAnnotationsUtils extends AnnotationsUtils {
74
75
75
76
static {
76
77
ANNOTATIONS_TO_IGNORE .add (Hidden .class );
78
+ ANNOTATIONS_TO_IGNORE .add (JsonIgnore .class );
77
79
ANNOTATIONS_TO_IGNORE .add (RequestAttribute .class );
78
80
}
79
81
Original file line number Diff line number Diff line change 4
4
import java .util .List ;
5
5
import java .util .Optional ;
6
6
7
+ import com .fasterxml .jackson .annotation .JsonIgnore ;
7
8
import io .swagger .v3 .oas .annotations .Parameter ;
8
9
9
10
import org .springframework .lang .Nullable ;
10
11
11
12
public class RequestParams {
12
13
13
14
@ Parameter (description = "string parameter" )
15
+ @ JsonIgnore
14
16
private String stringParam ;
15
17
16
18
@ Deprecated
Original file line number Diff line number Diff line change 35
35
"type" : " string"
36
36
}
37
37
},
38
- {
39
- "name" : " stringParam" ,
40
- "in" : " query" ,
41
- "description" : " string parameter" ,
42
- "required" : false ,
43
- "schema" : {
44
- "type" : " string"
45
- }
46
- },
47
38
{
48
39
"name" : " stringParam1" ,
49
40
"in" : " query" ,
139
130
}
140
131
}
141
132
}
142
- }
133
+ }
You can’t perform that action at this time.
0 commit comments