{
    "definitions": {
        "Item": {
            "properties": {
                "archetype": {
                    "$ref": "#/definitions/link"
                },
                "attribution": {
                    "description": "Byline or author/contributor credits",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "#/definitions/person"
                            },
                            {
                                "$ref": "#/definitions/organization"
                            }
                        ]
                    },
                    "type": "array"
                },
                "category": {
                    "$ref": "#/definitions/category"
                },
                "contenttype": {
                    "type": "string"
                },
                "created": {
                    "_format": "date-time",
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "guid": {
                    "_format": "uri",
                    "type": "string"
                },
                "itemtype": {
                    "type": "string"
                },
                "links": {
                    "$ref": "#/definitions/linklist"
                },
                "published": {
                    "_format": "date-time",
                    "type": "string"
                },
                "rights": {
                    "$ref": "#/definitions/rights"
                },
                "slug": {
                    "type": "string"
                },
                "thumbnail": {
                    "$ref": "#/definitions/link"
                },
                "title": {
                    "type": "string"
                },
                "updated": {
                    "_format": "date-time",
                    "type": "string"
                }
            },
            "required": [
                "archetype",
                "contenttype",
                "guid",
                "itemtype",
                "published",
                "rights",
                "title",
                "updated"
            ],
            "type": "object"
        },
        "category": {
            "description": "Category, (loosely) modeled after RFC 4287",
            "properties": {
                "icon": {
                    "$ref": "#/definitions/link"
                },
                "label": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "scheme": {
                    "_format": "uri",
                    "type": "string"
                }
            },
            "required": [
                "name"
            ],
            "type": "object"
        },
        "link": {
            "description": "Link as defined by RFC 5988, extended for S3",
            "properties": {
                "bucket": {
                    "type": "string"
                },
                "href": {
                    "_format": "uri",
                    "type": "string"
                },
                "hreflang": {
                    "type": "string"
                },
                "key": {
                    "type": "string"
                },
                "rel": {
                    "type": "string"
                },
                "rev": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            },
            "required": [
                "href"
            ],
            "type": "object"
        },
        "linklist": {
            "description": "List of links is so common, we define separately.",
            "items": {
                "$ref": "#/definitions/link"
            },
            "type": "array"
        },
        "organization": {
            "properties": {
                "email": {
                    "_format": "email",
                    "type": "string"
                },
                "links": {
                    "$ref": "#/definitions/linklist"
                },
                "name": {
                    "description": "for display",
                    "type": "string"
                },
                "role": {
                    "type": "string"
                },
                "sort": {
                    "description": "for lexical sort",
                    "type": "string"
                }
            },
            "required": [
                "name"
            ],
            "type": "object"
        },
        "person": {
            "properties": {
                "description": {
                    "description": "Bio or about me.",
                    "type": "string"
                },
                "email": {
                    "_format": "email",
                    "type": "string"
                },
                "links": {
                    "$ref": "#/definitions/linklist"
                },
                "name": {
                    "description": "for display",
                    "type": "string"
                },
                "role": {
                    "type": "string"
                },
                "sort": {
                    "description": "for lexical sort",
                    "type": "string"
                },
                "thumbnail": {
                    "$ref": "#/definitions/link"
                }
            },
            "required": [
                "name"
            ],
            "type": "object"
        },
        "rights": {
            "properties": {
                "copyright_holder": {
                    "anyOf": [
                        {
                            "$ref": "#/definitions/person"
                        },
                        {
                            "$ref": "#/definitions/organization"
                        }
                    ],
                    "description": "Person or organization who owns the copyright",
                    "type": "object"
                },
                "copyright_notice": {
                    "type": "string"
                },
                "copyright_year": {
                    "type": "number"
                },
                "license": {
                    "$ref": "#/definitions/link"
                },
                "usage_terms": {
                    "type": "string"
                }
            },
            "required": [
                "copyright_notice"
            ]
        }
    },
    "properties": {
        "Item": {
            "$ref": "#/definitions/Item"
        }
    },
    "required": [
        "Item"
    ],
    "type": "object"
}