{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://openwebcomics.comicopia.app/schema/pages-response.schema.json",
  "title": "PagesResponse",
  "description": "Response from GET /openwebcomics/api/v1/comics/{comicId}/pages. All pages are returned in a single response.",
  "type": "object",
  "required": ["pages"],
  "properties": {
    "pages": {
      "type": "array",
      "description": "All pages for this comic, ordered by page_number and numbered 1 to N with no gaps. The number of pages is the length of this array.",
      "items": { "$ref": "./comic-page.schema.json" }
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "pages": [
        {
          "comic_id": "mycomic",
          "page_number": 1,
          "title": "Act 1. Pg 001",
          "url": "https://www.mycomic.com/comic/1",
          "image_url": "https://www.mycomic.com/images/001.jpg",
          "group_id": "act-1"
        },
        {
          "comic_id": "mycomic",
          "page_number": 2,
          "title": "Act 1. Pg 002",
          "url": "https://www.mycomic.com/comic/2",
          "image_url": "https://www.mycomic.com/images/002.jpg",
          "group_id": "act-1"
        }
      ]
    }
  ]
}
