Crates.io | degauss |
lib.rs | degauss |
version | 0.1.8 |
source | src |
created_at | 2021-10-31 20:23:58.772729 |
updated_at | 2023-04-26 20:08:07.793485 |
description | Your friendly neighborhood Avro schema compatibility checker. |
homepage | https://github.com/vertexclique/degauss |
repository | https://github.com/vertexclique/degauss |
max_upload_size | |
id | 474863 |
size | 220,498 |
cargo install degauss
Check the compatibility of your schemas
$ degauss validate -s tests/data/movies-raw-reader.avsc tests/data/movies-raw-writer.avsc -c full-transitive
Check the compatibility and set the exit status in case of a failure.
$ degauss validate -s tests/data/movies-raw-reader.avsc tests/data/movies-raw-writer.avsc -c full-transitive --exit-status
Register a schema to schema-registry
$ cat env
export DEGAUSS_SCHEMA_REGISTRY_URL=https://some-url
export DEGAUSS_SCHEMA_REGISTRY_USER=some-user
export DEGAUSS_SCHEMA_REGISTRY_PASS=some-pass
$ source env
$ degauss schema-registry register --subject-type value --topic test2 --schema-path ./tests/data/movies-raw-reader.avsc
Get the compatibility for a subject:
$ degauss schema-registry compatibility get --subject-type value --topic test
Set the compatibility for a subject:
$ degauss schema-registry compatibility set --subject-type value --topic test --compatibility forward
Apart from integration tests, to run compatibility tests please use:
cargo test _compat