Skip to content

Allow annotation of tag fields #972

@umarbutler

Description

@umarbutler

Description

Currently, because tag_fields cannot live directly underneath a Struct as attributes but instead are defined as arguments of Struct, it does not seem possible to annotate tag fields such that, when exporting an OpenAPI schema, descriptions and examples for a tag field could be included.

This is unfortunate as I am trying to use msgspec in a production application alongside litestar to create an extensively documented autogenerated OpenAPI schema for consumers of my API and not having the ability to annotate tag fields will make my schema incomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions