File tree 6 files changed +53
-7
lines changed
openapi-processor-core/src
main/kotlin/io/openapiprocessor/core/parser/openapi/v31
testInt/resources/tests/bean-validation
6 files changed +53
-7
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,13 @@ class Schema(val schema: Schema31) : ParserSchema {
137
137
138
138
override fun getMaxItems (): Int? = schema.maxItems
139
139
140
- override fun getMaximum (): Number ? = schema.maximum
140
+ override fun getMaximum (): Number ? = schema.maximum ? : schema.exclusiveMaximum
141
141
142
- override fun isExclusiveMaximum (): Boolean = schema.exclusiveMaximum
142
+ override fun isExclusiveMaximum (): Boolean = schema.exclusiveMaximum != null
143
143
144
- override fun getMinimum (): Number ? = schema.minimum
144
+ override fun getMinimum (): Number ? = schema.minimum ? : schema.exclusiveMinimum
145
145
146
- override fun isExclusiveMinimum (): Boolean = schema.exclusiveMinimum
146
+ override fun isExclusiveMinimum (): Boolean = schema.exclusiveMinimum != null
147
147
148
148
override val pattern: String?
149
149
get() = schema.pattern
Original file line number Diff line number Diff line change 3
3
- inputs/openapi31.yaml
4
4
- inputs/required.yaml
5
5
- inputs/length.yaml
6
- - inputs/minmax.yaml
6
+ - inputs/minmax30.yaml
7
+ - inputs/minmax31.yaml
7
8
- inputs/items.yaml
8
9
- inputs/obj.yaml
9
10
- inputs/obj-components.yaml
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ get :
2
+ tags :
3
+ - endpoint
4
+ parameters :
5
+ - in : query
6
+ name : min
7
+ schema :
8
+ type : integer
9
+ format : int32
10
+ minimum : 10
11
+ - in : query
12
+ name : min-ex
13
+ schema :
14
+ type : integer
15
+ format : int32
16
+ exclusiveMinimum : 10
17
+ - in : query
18
+ name : max
19
+ schema :
20
+ type : integer
21
+ format : int32
22
+ maximum : 20
23
+ - in : query
24
+ name : max-ex
25
+ schema :
26
+ type : integer
27
+ format : int32
28
+ exclusiveMaximum : 20
29
+ - in : query
30
+ name : min-max
31
+ schema :
32
+ type : integer
33
+ format : int32
34
+ minimum : 10
35
+ maximum : 20
36
+ - in : query
37
+ name : min-max-ex
38
+ schema :
39
+ type : integer
40
+ format : int32
41
+ exclusiveMinimum : 10
42
+ exclusiveMaximum : 20
43
+ responses :
44
+ ' 204 ' :
45
+ description : empty
Original file line number Diff line number Diff line change 11
11
$ref : ' length.yaml'
12
12
13
13
/endpoint/minmax :
14
- $ref : ' minmax .yaml'
14
+ $ref : ' minmax30 .yaml'
15
15
16
16
/endpoint/items :
17
17
$ref : ' items.yaml'
Original file line number Diff line number Diff line change 11
11
$ref : ' length.yaml'
12
12
13
13
/endpoint/minmax :
14
- $ref : ' minmax .yaml'
14
+ $ref : ' minmax31 .yaml'
15
15
16
16
/endpoint/items :
17
17
$ref : ' items.yaml'
You can’t perform that action at this time.
0 commit comments