Skip to content

Add orpc error schemas to common schemas in OpenAPI #1355

@mykyta-burkovskyi

Description

@mykyta-burkovskyi

Describe the feature

OpenAPI spec generator allows to specify UndefinedError schema in commonSchemas, but I didn't find any way to add schemas for other common orpc errors to commonSchemas.

It would be nice to be able to add other errors to commonSchemas so that endpoint responses use $ref for reduced overall spec size

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions