@@ -74,7 +74,7 @@ class MappingAnnotationWriterSpec extends Specification {
7474
7575 void " writes 'produces' parameter with response content type" () {
7676 def endpoint = createEndpoint (path : ' /foo' , method : HttpMethod . GET , responses : [
77- ' 200' : [new Response (contentType, new StringDataType ())]
77+ ' 200' : [new Response (contentType, new StringDataType (), null )]
7878 ])
7979
8080 when :
@@ -92,7 +92,7 @@ class MappingAnnotationWriterSpec extends Specification {
9292 void " writes 'consumes' & 'produces' parameters" () {
9393 def endpoint = createEndpoint (path : ' /foo' , method : HttpMethod . GET , responses : [
9494 ' 200' : [
95- new Response (responseContentType, new StringDataType ())
95+ new Response (responseContentType, new StringDataType (), null )
9696 ]
9797 ], requestBodies : [
9898 new RequestBody (' body' , requestContentType, new StringDataType (),
@@ -113,10 +113,10 @@ class MappingAnnotationWriterSpec extends Specification {
113113 void " writes mapping annotation with multiple result content types" () {
114114 def endpoint = createEndpoint (path : ' /foo' , method : HttpMethod . GET , responses : [
115115 ' 200' : [
116- new Response (' application/json' , new StringDataType ())
116+ new Response (' application/json' , new StringDataType (), null )
117117 ],
118118 ' default' : [
119- new Response (' text/plain' , new StringDataType ())
119+ new Response (' text/plain' , new StringDataType (), null )
120120 ]
121121 ])
122122
@@ -133,7 +133,8 @@ class MappingAnnotationWriterSpec extends Specification {
133133 properties. path as String ?: ' ' ,
134134 properties. method as HttpMethod ?: HttpMethod . GET ,
135135 properties. operationId as String ?: null ,
136- properties. deprecated as boolean ?: false
136+ properties. deprecated as boolean ?: false ,
137+ properties. description as String ?: null
137138 )
138139 ep. parameters = properties. parameters ?: []
139140 ep. responses = properties. responses ?: [:]
0 commit comments