Skip to content

Set schema name using withMeta #1392

Closed
Closed

Description

@arlyon

Hello

The default schema naming is verbose, and I would like to be able to tune the results. I looked at potentially overriding some method on Documentation however no such luck. An alternative would be to be able to tune the naming with a withMeta call with the added benefit that we can deduplicate identical schemas used across multiple resources using reference equality.

withMeta(z.object({ data: z.number() })).example("The data").name("MyCoolRequestData");

Thanks for this great lib! (and happy holidays, if you celebrate)

Alex

Activity

  1. added
    enhancement
    on Dec 19, 2023
  2. Repository owner locked and limited conversation to collaborators on Dec 19, 2023
  3. converted this issue into a discussion #1393 on Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions