:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving (by go-playground)

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.

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 2024-02-03.
  • API completa em Golang - Parte 7
    3 projects | | 3 Feb 2024
  • API completa em Golang - Parte 3
    2 projects | | 16 Dec 2023
  • Is there any equivalent to pydantic, serde, etc?
    8 projects | /r/golang | 6 Dec 2023
    8 projects | /r/golang | 6 Dec 2023
    Go uses zero values to provide sensible default values. It's a design choice. With a quick Google you'll find several libraries such as or I use validator whenever I need to ensure any JSON I unmarshalled is correct.
  • API completa em Golang - Parte 1
    8 projects | | 1 Dec 2023
  • Yet another validator 0.9.5
    2 projects | /r/golang | 5 Sep 2023
    Now it has most of the Playground validator's common checks and a few own tricks.
  • Openapi server generation
    3 projects | /r/golang | 25 Aug 2023
    In Go I've found this package - It seems popular in the community, but it is tag-based. It looks like if I wanted to use it - I would have to basically duplicate structs.
  • Request Validations in Go REST API
    6 projects | /r/golang | 21 May 2023
    I use, but honestly, I am not a fan. I just haven’t found anything better.
  • Tools besides Go for a newbie
    36 projects | /r/golang | 26 Mar 2023
    IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
  • popularity behind pydantic
    2 projects | /r/Python | 24 Mar 2023
    I work in Go now, it's crazy poor in that regard - let's just mention for instance "zero values" ( so things can remain uninitialized with a default value you can't choose ), recurring questions around "empty vs null vs not set", and everyone using go-playground/validator where you attach rules as comments ( "tags" really, but it's barely the same thing ) that are interpreted at runtime, extremely cumbersome to extend. And all that with an insane amount of boilerplate and footguns. But what really takes the cake: if you dare saying it's extremely weak you'll get shut down by the community. You're supposed to praise it, and indeed, hate python ( you know, that toy language that didn't evolve since 2008 ).
  • A note from our sponsor - | 24 Feb 2024
    LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI! Learn more →


Basic validator repo stats
11 days ago
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.