Schema Registry
The canonical, versioned JSON Schema for
Open Product Exchange — the open, verifiable standard
for exchanging product information across manufacturers, distributors, retailers, and
marketplaces. Every OpenPX document's $id resolves here.
{
"$schema": "https://schema.openpx.org/v0.6.3/openpx-schema.json",
"openpx": "0.6.3",
"product": { "...": "..." }
}
# Python
pip install jsonschema
python - <<'PY'
import json, urllib.request, jsonschema
schema = json.load(urllib.request.urlopen("https://schema.openpx.org/v0.6.3/openpx-schema.json"))
doc = json.load(open("my-product.json"))
jsonschema.Draft7Validator(schema).validate(doc)
print("valid")
PY
# JavaScript (ajv, draft-07)
npx ajv-cli validate -s <(curl -s https://schema.openpx.org/v0.6.3/openpx-schema.json) -d my-product.json