File tree Expand file tree Collapse file tree
src/test/groovy/com/github/hauner/openapi/spring/writer/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717package com.github.hauner.openapi.spring.writer.java
1818
19- import com.github.hauner.openapi.core.test.EmptyResponse
19+ import com.github.hauner.openapi.core.model.Response
20+ import com.github.hauner.openapi.core.model.datatypes.NoneDataType
2021import com.github.hauner.openapi.core.writer.java.MethodWriter
2122import com.github.hauner.openapi.core.converter.ApiOptions
2223import com.github.hauner.openapi.core.model.Endpoint
@@ -42,7 +43,7 @@ class MethodWriterSpec extends Specification {
4243
4344 void " writes map from single query parameter" () {
4445 def endpoint = createEndpoint (path : ' /foo' , method : HttpMethod . GET , responses : [
45- ' 204' : [new EmptyResponse ( )]
46+ ' 204' : [new Response ( responseType : new NoneDataType () )]
4647 ], parameters : [
4748 new QueryParameter (name : ' foo' , required : false , dataType : new MappedMapDataType (
4849 type : ' Map' ,
You can’t perform that action at this time.
0 commit comments