Closed Sadzeih closed 3 years ago
// @openapi:schema:CustomName type RegularType struct { // properties } // openapi:schema type Response { Data RegularType `json:"data"` }
we will get
Response: type: object properties: data: $ref: '#/components/schemas/RegularType' CustomName: type: object properties: # properties
Here the ref in Response should be #/components/schemas/CustomName
Response
#/components/schemas/CustomName
we will get
Here the ref in
Response
should be#/components/schemas/CustomName