This is the place to share and discuss new xarf schemas. The schemas are written in json schema and use its extension mechanisms to allow sharing common sub schemas.
pip install jsonschema
python validate.py xarf.schema.json samples/*.json
If it validation fails for a sample you can get better error messages by using the concrete schema:
python validate.py rpz.schema.json samples/rpz_sample.json
File(s) | Content |
---|---|
xarf.schema.json | contains links to all concrete schemas |
xarf_shared.schema.json | reusable sub schemas |
*.schema.json | concrete schemas |
validate.py | script for validating documents against the schemas |
samples/* | example documents for the schemas |
- Add a new schema as [subtype].schema.json and try to reuse as much as possible from xarf_shared.schema.json
- Add an example sample to samples/*
- Add the new schema to the list in xarf.schema.json
- Discuss and improve