| 1 | { |
| 2 | "description": "Search results", |
| 3 | "required": [ |
| 4 | "pages" |
| 5 | ], |
| 6 | "properties": { |
| 7 | "pages": { |
| 8 | "type": "array", |
| 9 | "description": "List of search result pages", |
| 10 | "items": { |
| 11 | "type": "object", |
| 12 | "required": [ |
| 13 | "id", |
| 14 | "key", |
| 15 | "title", |
| 16 | "excerpt", |
| 17 | "matched_title", |
| 18 | "description", |
| 19 | "thumbnail" |
| 20 | ], |
| 21 | "properties": { |
| 22 | "id": { |
| 23 | "type": "integer", |
| 24 | "description": "Page identifier" |
| 25 | }, |
| 26 | "key": { |
| 27 | "type": "string", |
| 28 | "description": "Page title in URL-friendly format" |
| 29 | }, |
| 30 | "title": { |
| 31 | "type": "string", |
| 32 | "description": "Page title in reading-friendly format" |
| 33 | }, |
| 34 | "excerpt": { |
| 35 | "type": "string", |
| 36 | "description": "Excerpt of the page content matching the search query" |
| 37 | }, |
| 38 | "matched_title": { |
| 39 | "type": "string", |
| 40 | "nullable": true, |
| 41 | "description": "The title of a page redirection from, if applicable, or null" |
| 42 | }, |
| 43 | "description": { |
| 44 | "type": "string", |
| 45 | "nullable": true, |
| 46 | "description": "Short summary of the page topic or null if no summary exists." |
| 47 | }, |
| 48 | "thumbnail": { |
| 49 | "type": "object", |
| 50 | "nullable": true, |
| 51 | "description": "Information about the thumbnail image for the page, or null if no thumbnail exists.", |
| 52 | "properties": { |
| 53 | "mimetype": { |
| 54 | "type": "string", |
| 55 | "description": "The file type" |
| 56 | }, |
| 57 | "width": { |
| 58 | "type": "integer", |
| 59 | "nullable": true, |
| 60 | "description": "Maximum recommended image width in pixels or null if not available" |
| 61 | }, |
| 62 | "height": { |
| 63 | "type": "integer", |
| 64 | "nullable": true, |
| 65 | "description": "Maximum recommended image height in pixels or null if not available" |
| 66 | }, |
| 67 | "duration": { |
| 68 | "type": "number", |
| 69 | "nullable": true, |
| 70 | "description": "The length of the video, audio, or multimedia file or null for other media types" |
| 71 | }, |
| 72 | "url": { |
| 73 | "type": "string", |
| 74 | "format": "uri", |
| 75 | "description": "URL to download the file" |
| 76 | } |
| 77 | }, |
| 78 | "required": [ "mimetype", "width", "height", "duration", "url" ] |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |