jsonschema
macschema
Our great sponsors
jsonschema | macschema | |
---|---|---|
3 | 2 | |
832 | 19 | |
- | - | |
7.2 | 0.0 | |
6 days ago | 9 months ago | |
Go | Go | |
Apache License 2.0 | MIT License |
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.
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
macschema
-
Towards the Personal Potential of Software
With the macschema toolchain, you can generate API schemas about any Apple framework, class, function, etc based on their documentation and header declarations. This is useful for us in generating framework bindings in macdriver, but it would be useful for any project doing similar work, such as bindings for other languages. This sort of approach will play a big part in how Tractor will integrate with "whatever we want" down the line.
-
Apple API schemas for code generation and more
If this is interesting, take a look at the tool I built, macschema, which is open source on GitHub. Right now it's just the toolchain, but in theory we could generate schemas for all of Apple's APIs and put them in a repo in such a way that can be updated by a combination of macschema and user contributed patches. I'll let somebody else do that though.
What are some alternatives?
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.
cool - Never let the heat slow your pre-2018 Mac down again.
yavp - Yet Another Validation Package for golang, inspired by https://www.npmjs.com/package/validator
vz - Create virtual machines and run Linux-based operating systems in Go using Apple Virtualization.framework.
checker - Checker is a Go library for validating user input through checker rules provided in struct tags.
macdriver - Native Mac APIs for Go. Soon to be renamed DarwinKit!
CONFLATE - Library providing routines to merge and validate JSON, YAML and/or TOML files
topframe - Local webpage screen overlay for customizing your computing experience
valix - Go package for validating requests
schemata - Helper methods for creating test schemas in PostgreSQL databases with copies of tables from the live schema for unit testing.
go-validator-playground - An online playground to test your go-validator struct tags against JSON data. Powered by WASM ⚡
supervillain - Converts Go structs to Zod schemas