Skip to content

Commit 313095f

Browse files
committed
fix test, update base api usage (#479)
1 parent 5c5e510 commit 313095f

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/groovy/io/openapiprocessor/spring/writer/java/MappingAnnotationFactorySpec.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class MappingAnnotationFactorySpec extends Specification {
168168
properties.operationId as String ?: null,
169169
properties.deprecated as boolean ?: false,
170170
new Documentation(null, properties.description as String),
171+
new HashSet<String>()
171172
)
172173
}
173174
}

src/test/groovy/io/openapiprocessor/spring/writer/java/MethodWriterSpec.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class MethodWriterSpec extends Specification {
5656
properties.responses ?: [:],
5757
properties.operationId as String ?: null,
5858
properties.deprecated as boolean ?: false,
59-
new Documentation(null, properties.description as String ?: null))
59+
new Documentation(null, properties.description as String ?: null),
60+
new HashSet<String>())
6061
}
6162

6263
void "writes map from single query parameter" () {

src/testInt/resources/tests/params-request-body-form-urlencoded/outputs/api/Api.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public interface Api {
1212

1313
@ResponseStatus(HttpStatus.NO_CONTENT)
14-
@PostMapping(path = "/foo/params")
14+
@PostMapping(path = "/foo/params", consumes = {"application/x-www-form-urlencoded"})
1515
void postFooParams(
1616
@RequestParam(name = "foo", required = false) String foo,
1717
@RequestParam(name = "bar", required = false) String bar);

0 commit comments

Comments
 (0)