Skip to content

Extend OpenApiSpecGeneratorPlugin with the option to ignore response types #1104

@waldekmastykarz

Description

@waldekmastykarz

Let's extend the OpenApiSpecGeneratorPlugin with the option to ignore the response types. When building specs for the sole purpose of integrating with LLMs, response types are ignored in most cases. Removing them from the spec, decreases its size and makes it easier for the LLM to process. We still should generate types for request payloads.

Extend the plugin with a new bool configuration property named ignoreResponseTypes. By default it's false. When set to true, it leads to the plugin skipping parsing response data. Instead, it marks the response type as string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions