JsonSchemaNif
Library for validating JSON instances against JSON schemas.
Provides a straightforward way to ensure that JSON data adheres to a predefined schema, enhancing the reliability and consistency of data. Especially useful in contexts like Kafka.
Installation
The package can be installed by adding json_schema_nif to your list of dependencies in mix.exs:
defp deps do
[
{:json_schema_nif, "~> 0.1.0"}
]
endContributing
See CONTRIBUTING.md.
Documentation
Documentation is available in HexDocs.
Releasing
Since we rely on RustlerPrecompiled actually building our Rust bindings in advance, we need to follow their recommended flow:
- Release a new tag
- Push the code to your repository with the new tag: git push origin main --tags
- Wait for all NIFs to be built
-
Run the
mix rustler_precompiled.download JsonSchemaNif --alltask (with the flag --all) release the package to Hex.pm (make sure your release includes the correct files).-
Run
mix hex.build --unpackto ensure checksum files exist
-
Run