Skip to content

Commit e741435

Browse files
committed
corrected expected output
1 parent 4a3055f commit e741435

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/groovy/com/github/hauner/openapi/spring/writer/MethodWriterSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class MethodWriterSpec extends Specification {
382382
then:
383383
target.toString () == """\
384384
@GetMapping(path = "${endpoint.path}")
385-
ResponseEntity<void> getFoo(@RequestParam(name = "foo", required = false, default = "bar") String foo);
385+
ResponseEntity<void> getFoo(@RequestParam(name = "foo", required = false, defaultValue = "bar") String foo);
386386
"""
387387
}
388388

src/testInt/resources/params-simple-data-types/generated/api/EndpointApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ public interface EndpointApi {
1515
ResponseEntity<void> getEndpoint(@RequestParam(name = "foo") String foo);
1616

1717
@GetMapping(path = "/endpoint-optional")
18-
ResponseEntity<void> getEndpointOptional(@RequestParam(name = "foo", required = false, defaultValue="bar") String foo);
18+
ResponseEntity<void> getEndpointOptional(@RequestParam(name = "foo", required = false, defaultValue = "bar") String foo);
1919

2020
}

0 commit comments

Comments
 (0)