Skip to content

Commit dc71fd0

Browse files
committed
no need to override
1 parent 131f44d commit dc71fd0

5 files changed

Lines changed: 2 additions & 18 deletions

File tree

src/main/groovy/com/github/hauner/openapi/spring/model/parameters/CookieParameter.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class CookieParameter extends Parameter {
2727
"CookieValue"
2828
}
2929

30-
ParameterConstraints getConstraints() {
31-
null
32-
}
33-
3430
boolean withAnnotation () {
3531
true
3632
}

src/main/groovy/com/github/hauner/openapi/spring/model/parameters/HeaderParameter.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class HeaderParameter extends Parameter {
2727
"RequestHeader"
2828
}
2929

30-
ParameterConstraints getConstraints() {
31-
null
32-
}
33-
3430
boolean withAnnotation () {
3531
true
3632
}

src/main/groovy/com/github/hauner/openapi/spring/model/parameters/Parameter.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ abstract class Parameter {
6868
*
6969
* @return the constraint details or null if the parameter has no constraints
7070
*/
71-
ParameterConstraints getConstraints () {
72-
null
71+
ParameterConstraints getConstraints() {
72+
new ParameterConstraints(constraints: dataType.constraints)
7373
}
7474

7575
/**

src/main/groovy/com/github/hauner/openapi/spring/model/parameters/PathParameter.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class PathParameter extends Parameter {
2727
"PathVariable"
2828
}
2929

30-
ParameterConstraints getConstraints() {
31-
null
32-
}
33-
3430
boolean withAnnotation () {
3531
true
3632
}

src/main/groovy/com/github/hauner/openapi/spring/model/parameters/QueryParameter.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ class QueryParameter extends Parameter {
3939
this.@required
4040
}
4141

42-
ParameterConstraints getConstraints() {
43-
new ParameterConstraints(constraints: dataType.constraints)
44-
}
45-
4642
/**
4743
* If the query parameter is mapped to a pojo object it should not have a {@code @RequestParam}
4844
* annotation.

0 commit comments

Comments
 (0)