Skip to content

[Feature] derive utoipa's ToSchema trait for primitives #1157

Description

@siosw

Component

primitives

Describe the feature you would like

motivation: when creating rest APIs on top of alloy primitives it would be nice to have an easy way of creating openAPI specs via https://docs.rs/utoipa/latest/utoipa/trait.ToSchema.html

this should be behind a feature gate ofc, happy to put up a PR if there is interest.

alternatively this could also be a PR to https://github.com/juhaku/utoipa which provides impls for some external crates but alloy might be too niche for them

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions