Skip to content

Response $ref type != struct #54

@llonchj

Description

@llonchj
/*
GET /v1/test
tests

Response 200: $ref: bool
*/

throws could not parse response 200 params: GetReference: could not find type "bool" in package ...

then tried:

type TestResponse bool

/*
GET /v1/test
tests

Response 200: $ref: TestResponse
*/

and throws: could not parse response 200 params: GetReference: TestResponse is not a struct or interface but a *ast.Ident

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions