alexjomin / openapi-parser

Simple and still naive openapi documentation generator from comments of your Go code.
18 stars 8 forks source link

Parser should use full type name and resolve types from other packages #31

Closed Sadzeih closed 3 years ago

Sadzeih commented 4 years ago
// @openapi:schema
type Response struct {
    Data external.MoreData `json:"data"`
}

This example will produce:

Response:
    type: object
    properties:
        data:
            $ref: '#/components/schemas/external'

instead of

Response:
    type: object
    properties:
        data:
            $ref: '#/components/schemas/MoreData'