Simple validation for Rust structs (by Keats)

Validator Alternatives

Similar projects and alternatives to validator

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better validator alternative or higher similarity.

Suggest an alternative to validator

Reviews and mentions

Posts with mentions or reviews of validator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-05.
  • Is Rust really only good for larger-scale projects? | 2021-10-05
    ...and that's before you get to how "best in class" some of the libraries are, like StructOpt for argument parsing, Serde for JSON/TOML/etc., the built-in include_str! and include_bytes! for embedding default versions of user-editable resources in the binary so you can --write-conf, etc. (Try Figment and validator for your tools' configuration schema.)
  • Idiomatic Way to Validate Struct Field Values | 2021-08-24
    It's not called automatically but you can use for something similar to pydantic. Overkill for one field probably but if you have some more complex structs it would be easier than handwriting it.
  • Ask HN: What are some tools / libraries you built yourself? | 2021-05-16
    - validator ( my take on Python marshmallow validations, nothing existed at the time.

    So yeah, most of my open-source is re-creating libraries I use with Python in Rust.

  • Good use cases for Rust? I'm trying to find a reason to use Rust | 2021-04-15
    (Plus, nothing beats Serde for convenience... especially when paired with StructOpt (slower to compile but supports proper path handling) or Gumdrop (faster to compile but unavoidably panics on encountering non-UTF8-able bytes in an argument), and validator. I'm currently preparing to evaluate Figment as the final piece in that puzzle.)
  • Why is rust a productive language and how is the relationship between webassambly? | 2021-04-08
    Serde and StructOpt are hard to match (let alone beat) for declarative programming, especially when paired with things like validator.
  • I really love TOML files | 2021-03-12
    Fair points... but now that I've gotten used to using Serde to deserialize my configurations and enforce schema at the same time (with the help of the validator crate for the fancier invariants), I don't want to consider any configuration format that doesn't have a Serde deserializer, and not having a Serde serializer cripples my ability to do more complex composition of components to produce solutions with compile-time Schema correctness.


Basic validator repo stats
about 2 months ago

Keats/validator is an open source project licensed under MIT License which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Find remote jobs at our new job board There are 37 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.