valix
jsonschema
valix | jsonschema | |
---|---|---|
- | 3 | |
25 | 847 | |
- | - | |
3.5 | 7.1 | |
6 months ago | 8 days ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
valix
We haven't tracked posts mentioning valix yet.
Tracking mentions began in Dec 2020.
jsonschema
-
Validating dynamic JSON user input
If I were doing it, I would define struct that match the data you expect and update those struct as the project progresses. Also if I were doing it I'd explicitly not allow values with different types for the same key so that would prevent me from having to declare value types as interface{}. If you want a more general purpose validation of arbitrary JSON, you could define a JSON schema and validate it with a library like this.
-
GitHub - santhosh-tekuri/jsonschema now implements draft2020-12
check release notes (license Apache-2.0)
-
github.com/santhosh-tekuri/jsonschema@v4 implements draft 2019-09
Just released v4.0.0 of https://github.com/santhosh-tekuri/jsonschema
What are some alternatives?
govalidator - [Go] Package of validators and sanitizers for strings, numerics, slices and structs
ozzo-validation - An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
jio - jio is a json schema validator similar to joi
yavp - Yet Another Validation Package for golang, inspired by https://www.npmjs.com/package/validator
Password validator library for Go - Flexible and customizable password validation
checker - Checker is a Go library for validating user input through checker rules provided in struct tags.
Handy Go utilities - GO Golang Utilities and helpers like validators and string formatters
CONFLATE - Library providing routines to merge and validate JSON, YAML and/or TOML files
errdetail - Wrap multiple errors in one Go error type.
go-validator-playground - An online playground to test your go-validator struct tags against JSON data. Powered by WASM ⚡
handy - The easiest way to mocap your hands!
gody - :balloon: A lightweight struct validator for Go