Skip to content

Add functions to response models for schema-extraction #2191

Closed

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.

Activity

  1. added
    enhancement
    help wanted
    on Feb 8, 2026
  2. jamietanna commented on Feb 8, 2026

    @jamietanna
    Member

    Sounds reasonable as an opt-in output-options configuration!

  3. rd-andreas-tollkoetter commented on May 20, 2026

    @rd-andreas-tollkoetter
    ContributorAuthor

    Thanks @mromaszewicz :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions