diff options
author | vg <vg@devys.org> | 2018-12-07 12:05:14 +0100 |
---|---|---|
committer | vg <vg@devys.org> | 2018-12-07 12:05:14 +0100 |
commit | 8fe0b2c7754873ec33bccb7952683b96113491bc (patch) | |
tree | 4c006a97b194b720b8630395eb8315495f856aad /contacts_validation/scripts/validate-schema.sh | |
download | devys-pim-8fe0b2c7754873ec33bccb7952683b96113491bc.tar.gz devys-pim-8fe0b2c7754873ec33bccb7952683b96113491bc.tar.bz2 devys-pim-8fe0b2c7754873ec33bccb7952683b96113491bc.zip |
first commit; add contacts_validation
Diffstat (limited to 'contacts_validation/scripts/validate-schema.sh')
-rwxr-xr-x | contacts_validation/scripts/validate-schema.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contacts_validation/scripts/validate-schema.sh b/contacts_validation/scripts/validate-schema.sh new file mode 100755 index 0000000..2aad40b --- /dev/null +++ b/contacts_validation/scripts/validate-schema.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eux +mkdir -p tmp +cp ../contacts_schema.yaml tmp/myschema.yaml +convert-yaml2json tmp/myschema.yaml +#python3 -m jsonschema -i tmp/myschema.yaml.json draft4_strict.json +python3 -m jsonschema -i tmp/myschema.yaml.json draft4.json +rm -r tmp |