{
    "definitions": {
        "kindle": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "authors": {
                    "description": "Authors of kindle - API Author",
                    "example": [
                        "メーブ",
                        "恵広史"
                    ],
                    "items": {
                        "type": [
                            "string"
                        ]
                    },
                    "minItems": 1,
                    "readOnly": true,
                    "type": [
                        "array",
                        "null"
                    ],
                    "_uniqueItems": true
                },
                "created_at": {
                    "description": "when kindle was created",
                    "example": "2015-01-01T00:00:00.000Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                },
                "id": {
                    "description": "ASIN code (unique identifier)",
                    "example": "B01N3PNATY",
                    "pattern": "^[0-9A-Z]{10}$",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "identity": {
                    "$ref": "#/definitions/kindle/definitions/id"
                },
                "images": {
                    "description": "Images of kindle",
                    "properties": {
                        "large": {
                            "description": "Image (h500,w336) - API ImageSet/LargeImage/URL",
                            "example": "https://images-fe.ssl-images-amazon.com/images/G/09/nav2/dp/no-image-no-ciu.gif",
                            "format": "uri",
                            "pattern": "^https://images-fe\\.ssl-images-amazon\\.com/images/.*?(no-image-no-ciu)?\\.(gif|jpg)$",
                            "readOnly": true,
                            "type": [
                                "string"
                            ]
                        },
                        "medium": {
                            "description": "Image (h160,w108) - API ImageSet/MediumImage/URL",
                            "example": "https://images-fe.ssl-images-amazon.com/images/I/51ZcS0q0-BL._SL160_.jpg",
                            "format": "uri",
                            "pattern": "^https://images-fe\\.ssl-images-amazon\\.com/images/.*?(no-image-no-ciu)?\\._SL160_\\.(gif|jpg)$",
                            "readOnly": true,
                            "type": [
                                "string"
                            ]
                        },
                        "small": {
                            "description": "Image (h75,w50) - API ImageSet/SmallImage/URL",
                            "example": "https://images-fe.ssl-images-amazon.com/images/I/51ZcS0q0-BL._SL75_.jpg",
                            "format": "uri",
                            "pattern": "^https://images-fe\\.ssl-images-amazon\\.com/images/.*?(no-image-no-ciu)?\\._SL75_\\.(gif|jpg)$",
                            "readOnly": true,
                            "type": [
                                "string"
                            ]
                        },
                        "swatch": {
                            "description": "Image (h30,w20) - API ImageSet/SwatchImage/URL",
                            "example": "https://images-fe.ssl-images-amazon.com/images/I/51ZcS0q0-BL._SL30_.jpg",
                            "format": "uri",
                            "pattern": "^https://images-fe\\.ssl-images-amazon\\.com/images/.*?(no-image-no-ciu)?\\._SL30_\\.(gif|jpg)$",
                            "readOnly": true,
                            "type": [
                                "string"
                            ]
                        },
                        "tiny": {
                            "description": "Image (h110,w74) - API ImageSet/TinyImage/URL",
                            "example": "https://images-fe.ssl-images-amazon.com/images/I/51ZcS0q0-BL._SL110_.jpg",
                            "format": "uri",
                            "pattern": "^https://images-fe\\.ssl-images-amazon\\.com/images/.*?(no-image-no-ciu)?\\._SL110_\\.(gif|jpg)$",
                            "readOnly": true,
                            "type": [
                                "string"
                            ]
                        }
                    },
                    "readOnly": true,
                    "type": [
                        "object",
                        "null"
                    ]
                },
                "published_at": {
                    "description": "when kindle was released (API PublicationDate)",
                    "example": "2015-01-01",
                    "pattern": "^[12][0-9]{3}-[0-1][0-9]-[0-3][0-9]$",
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "publisher": {
                    "description": "Publisher of kindle - API Publisher",
                    "example": "講談社",
                    "readOnly": true,
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "title": {
                    "description": "Title of kindle",
                    "example": "バトルスタディーズ（８） (モーニングコミックス)",
                    "readOnly": true,
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "updated_at": {
                    "description": "when kindle was updated",
                    "example": "2015-01-01T00:00:00.000Z",
                    "format": "date-time",
                    "type": [
                        "string"
                    ]
                },
                "url": {
                    "description": "Detail page URL of kindle - API DetailPageURL",
                    "example": "https://www.amazon.co.jp/o/ASIN/B00EI2Y81I/habitec-22/",
                    "format": "uri",
                    "pattern": "^https://(www\\.)?amazon\\.co\\.jp/o/ASIN/[0-9A-Z]{10}/habitec-22/?$",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "Amazon.co.jpのKindleデータを操作する",
            "links": [
                {
                    "description": "Info for existing kindle.",
                    "href": "/kindles/{(%23%2Fdefinitions%2Fkindle%2Fdefinitions%2Fidentity)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                },
                {
                    "description": "Create a new kindle.",
                    "href": "/kindles",
                    "method": "POST",
                    "rel": "create",
                    "schema": {
                        "properties": {
                            "id": {
                                "$ref": "#/definitions/kindle/definitions/id"
                            }
                        },
                        "required": [
                            "id"
                        ]
                    },
                    "title": "Create",
                    "type": [
                        "object"
                    ]
                },
                {
                    "description": "Update an existing kindle.",
                    "href": "/kindles/{(%23%2Fdefinitions%2Fkindle%2Fdefinitions%2Fidentity)}",
                    "method": "PATCH",
                    "rel": "update",
                    "schema": {
                        "properties": {},
                        "type": [
                            "object"
                        ]
                    },
                    "title": "Update"
                }
            ],
            "properties": {
                "authors": {
                    "$ref": "#/definitions/kindle/definitions/authors"
                },
                "created_at": {
                    "$ref": "#/definitions/kindle/definitions/created_at"
                },
                "id": {
                    "$ref": "#/definitions/kindle/definitions/id"
                },
                "images": {
                    "$ref": "#/definitions/kindle/definitions/images"
                },
                "published_at": {
                    "$ref": "#/definitions/kindle/definitions/published_at"
                },
                "publisher": {
                    "$ref": "#/definitions/kindle/definitions/publisher"
                },
                "title": {
                    "$ref": "#/definitions/kindle/definitions/title"
                },
                "updated_at": {
                    "$ref": "#/definitions/kindle/definitions/updated_at"
                },
                "url": {
                    "$ref": "#/definitions/kindle/definitions/url"
                }
            },
            "stability": "prototype",
            "strictProperties": true,
            "title": "Kindle",
            "type": [
                "object"
            ]
        }
    },
    "description": "In this schema file, we represents the public interface of HabitEC API in JSON Hyper Schema draft v4.",
    "links": [
        {
            "href": "https://example.com",
            "rel": "self"
        }
    ],
    "properties": {
        "kindle": {
            "$ref": "#/definitions/kindle"
        }
    },
    "title": "HabitEC API JSON Schema",
    "type": [
        "object"
    ]
}