{
    "$id": "https://api.wapuugotchi.com/schema/collection",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "type": "object",
    "$defs": {
        "https://api.wapuugotchi.com/schema/element": {
            "$id": "https://api.wapuugotchi.com/schema/element",
            "type": "object",
            "properties": {
                "meta": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "author": {
                            "type": "string"
                        },
                        "description": {
                            "type": "string"
                        },
                        "published": {
                            "type": "string"
                        },
                        "license": {
                            "type": "string"
                        },
                        "deactivated": {
                            "type": "number"
                        },
                        "priority": {
                            "type": "number"
                        },
                        "price": {
                            "type": "number"
                        }
                    },
                    "required": [
                        "name","author","description","published","license",,
                        "price"
                    ]
                },
                "image": {
                    "type": "string"
                },
                "preview": {
                    "type": "string"
                }
            },
            "required": [
                "meta",
                "image",
                "preview"
            ]
        }
    },
    "properties": {
        "collections": {
            "type": "array",
            "items": {
                "type": "object",
                "items": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "$ref": "/schema/element"
                    }
                },
                "image": {
                    "type": "string"
                },
                "caption": {
                    "type": "string"
                },
                "slug": {
                    "type": "string",
                    "pattern": "^[a-z]*$"
                }
            }
        }
    }
}
