Skip to content

Commit 936cf87

Browse files
committed
new parameter required by core 2021.1
1 parent f12334d commit 936cf87

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package com.github.hauner.openapi.spring.writer.java
1818

19+
import io.openapiprocessor.core.writer.java.JavaDocWriter
1920
import io.openapiprocessor.spring.model.parameters.QueryParameter
2021
import io.openapiprocessor.spring.processor.SpringFrameworkAnnotations
2122
import io.openapiprocessor.core.converter.ApiOptions
@@ -35,7 +36,8 @@ class MethodWriterSpec extends Specification {
3536
apiOptions,
3637
new MappingAnnotationWriter(),
3738
new ParameterAnnotationWriter(new SpringFrameworkAnnotations()),
38-
new BeanValidationFactory ())
39+
new BeanValidationFactory (),
40+
new JavaDocWriter())
3941
def target = new StringWriter ()
4042

4143
@Deprecated
@@ -44,7 +46,8 @@ class MethodWriterSpec extends Specification {
4446
properties.path as String ?: '',
4547
properties.method as HttpMethod ?: HttpMethod.GET,
4648
properties.operationId as String ?: null,
47-
properties.deprecated as boolean ?: false
49+
properties.deprecated as boolean ?: false,
50+
properties.description as String ?: null
4851
)
4952
ep.parameters = properties.parameters ?: []
5053
ep.responses = properties.responses ?: [:]
@@ -62,7 +65,7 @@ class MethodWriterSpec extends Specification {
6265
['java.lang.String', 'java.lang.String'],
6366
null,
6467
false
65-
), false, false)
68+
), false, false, null)
6669
])
6770

6871
when:

0 commit comments

Comments
 (0)