Skip to content

Enhancement: Exclude parameter from schema #4173

@JCHacking

Description

@JCHacking

Summary

Allow to exclude parameters from the autogenerated openapi

Basic Example

@get("/example")
def example(parameter: Annotation[str, Parameter(include_in_schema=False)]) -> None:
    return

Drawbacks and Impact

It should not break anything if everything is included in openapi by default.

Unresolved questions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementThis is a new feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions