8000 Add functions to response models for schema-extraction · Issue #2191 · oapi-codegen/oapi-codegen · GitHub
[go: up one dir, main page]

Skip to content

Add functions to response models for schema-extraction #2191

@rd-andreas-tollkoetter

Description

@rd-andreas-tollkoetter

At the moment, a generated response might contain a field named JSON200 for the JSON response body of a 200 response, for example. It would be nice if there was also a simple getter function like GetJSON200(). I would like to create an interface which allows a standard handling of all responses and Go does not allow interfaces to have fields, only methods.

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

      0