Schemas
The v0 wire format is normative as JSON Schema (draft 2020-12). The prose in the spec is descriptive; when the two disagree, the schema wins.
Report schema
Section titled “Report schema”Validates the body of a POST /v1/reports request. See spec §4.
- Download:
/schema/v0/report.schema.json - Source:
protocol/schema/v0/report.schema.json $id:https://docsfeedback.org/schema/v0/report.schema.json
Tools that resolve $ref against the canonical $id URL get the same
file served verbatim from this site.
Validating an example with ajv
Section titled “Validating an example with ajv”npx ajv-cli@5 validate \ -s https://docsfeedback.org/schema/v0/report.schema.json \ --spec=draft2020 --strict=false --all-errors \ -d ./my-report.jsonWell-known schema
Section titled “Well-known schema”Validates the body of a /.well-known/docs-feedback.json discovery
document. See spec §5.
- Download:
/schema/v0/well-known.schema.json - Source:
protocol/schema/v0/well-known.schema.json $id:https://docsfeedback.org/schema/v0/well-known.schema.json
A minimal opt-in document:
{ "protocol_version": "0", "opt_in": true, "endpoint": "https://hub.fixyourdocs.io/v1/reports/example-org"}A minimal opt-out:
{ "protocol_version": "0", "opt_in": false}Licence
Section titled “Licence”The schemas are licensed under Apache 2.0.