|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://oxa.dev/schemas/conformance/test-case.schema.json", |
| 4 | + "title": "OXA Conformance Test Case", |
| 5 | + "description": "A test case for validating OXA format conversions", |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "$schema": { |
| 9 | + "type": "string", |
| 10 | + "description": "Reference to this schema" |
| 11 | + }, |
| 12 | + "title": { |
| 13 | + "type": "string", |
| 14 | + "description": "Short title describing the test case" |
| 15 | + }, |
| 16 | + "description": { |
| 17 | + "type": "string", |
| 18 | + "description": "Detailed description of what the test case validates" |
| 19 | + }, |
| 20 | + "category": { |
| 21 | + "type": "string", |
| 22 | + "enum": ["inline", "block", "document"], |
| 23 | + "description": "Category of the test case" |
| 24 | + }, |
| 25 | + "formats": { |
| 26 | + "type": "object", |
| 27 | + "description": "Format representations of the same content. OXA is always required and should be first.", |
| 28 | + "properties": { |
| 29 | + "oxa": { |
| 30 | + "type": "object", |
| 31 | + "description": "OXA JSON representation (required, authoritative)", |
| 32 | + "additionalProperties": true |
| 33 | + }, |
| 34 | + "myst": { |
| 35 | + "type": "object", |
| 36 | + "description": "MyST Markdown AST representation", |
| 37 | + "additionalProperties": true |
| 38 | + }, |
| 39 | + "pandoc": { |
| 40 | + "type": "object", |
| 41 | + "description": "Pandoc AST JSON representation", |
| 42 | + "additionalProperties": true |
| 43 | + }, |
| 44 | + "stencila": { |
| 45 | + "type": "object", |
| 46 | + "description": "Stencila Schema JSON representation", |
| 47 | + "additionalProperties": true |
| 48 | + }, |
| 49 | + "markdown": { |
| 50 | + "type": "string", |
| 51 | + "description": "CommonMark/GFM Markdown representation" |
| 52 | + }, |
| 53 | + "html": { |
| 54 | + "type": "string", |
| 55 | + "description": "Semantic HTML5 representation" |
| 56 | + }, |
| 57 | + "jats": { |
| 58 | + "type": "string", |
| 59 | + "description": "JATS Publishing XML representation" |
| 60 | + } |
| 61 | + }, |
| 62 | + "required": ["oxa"], |
| 63 | + "additionalProperties": false |
| 64 | + }, |
| 65 | + "notes": { |
| 66 | + "type": "object", |
| 67 | + "description": "Format-specific notes and considerations", |
| 68 | + "additionalProperties": { |
| 69 | + "type": "string" |
| 70 | + } |
| 71 | + } |
| 72 | + }, |
| 73 | + "required": ["title", "category", "formats"], |
| 74 | + "additionalProperties": false |
| 75 | +} |
0 commit comments