Skip to content

Proposal: deprecate or discourage the use of @hono/zod-validator, @hono/valibot-validator, etc and instead encourage use of @hono/standard-validator #1987

Description

@KTrain5169

Hi - sorry for no template, didn't think that the other two necessarily fit for a template.

From what I can tell, most of the validation-library-specific @hono/*-validator middlewares are no longer necessary to be maintained, since almost all use cases can be transferred to @hono/standard-validator instead. (maybe some people rely on throw parsing on the Zod validator instead of non-throw parsing, so that may need to be implemented first, just as a counter-example). So, I propose that those validators be deprecated with a recommendation to use the Standard Validator instead, and the docs on validation also be updated to mention that it is recommended to use the Standard Validator instead of the individual Zod, Valibot or ArkType validators.

The benefits from doing this move (that I could see) are:

  • Less maintenance overhead (each validator would need a test suite and someone maintaining it)
  • Consolidation (most library-specific middlewares do the same thing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions