| 1 | { |
| 2 | "description": "revision meta-data", |
| 3 | "required": [ |
| 4 | "id", |
| 5 | "size", |
| 6 | "delta", |
| 7 | "comment", |
| 8 | "minor", |
| 9 | "timestamp", |
| 10 | "content_model", |
| 11 | "page", |
| 12 | "license" |
| 13 | ], |
| 14 | "properties": { |
| 15 | "id": { |
| 16 | "type": "integer", |
| 17 | "description": "Revision id" |
| 18 | }, |
| 19 | "size": { |
| 20 | "type": "integer", |
| 21 | "description": "The size of the revision, in no particular measure." |
| 22 | }, |
| 23 | "delta": { |
| 24 | "type": "integer", |
| 25 | "nullable": true, |
| 26 | "description": "The difference in size compared to the previous revision." |
| 27 | }, |
| 28 | "comment": { |
| 29 | "type": "string", |
| 30 | "nullable": true, |
| 31 | "description": "The comment the author associated with the revision" |
| 32 | }, |
| 33 | "minor": { |
| 34 | "type": "boolean", |
| 35 | "description": "Whether the author of the revision conidered it minor." |
| 36 | }, |
| 37 | "timestamp": { |
| 38 | "type": "string", |
| 39 | "format": "date-time" |
| 40 | }, |
| 41 | "content_model": { |
| 42 | "type": "string", |
| 43 | "format": "mw-content-model" |
| 44 | }, |
| 45 | "page": { |
| 46 | "description": "the page the revision belongs to", |
| 47 | "required": [ |
| 48 | "id", |
| 49 | "key", |
| 50 | "title" |
| 51 | ], |
| 52 | "properties": { |
| 53 | "id": { |
| 54 | "type": "integer", |
| 55 | "description": "the page ID" |
| 56 | }, |
| 57 | "key": { |
| 58 | "type": "string", |
| 59 | "format": "mw-title", |
| 60 | "description": "the page title in URL form (unencoded)" |
| 61 | }, |
| 62 | "title": { |
| 63 | "type": "string", |
| 64 | "format": "mw-title", |
| 65 | "description": "the page title in human readable form" |
| 66 | } |
| 67 | } |
| 68 | }, |
| 69 | "license": { |
| 70 | "description": "license information for the revision content", |
| 71 | "required": [ |
| 72 | "url", |
| 73 | "title" |
| 74 | ], |
| 75 | "properties": { |
| 76 | "url": { |
| 77 | "type": "string", |
| 78 | "format": "url" |
| 79 | }, |
| 80 | "title": { |
| 81 | "type": "string", |
| 82 | "description": "the name of the license" |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |