{
    "schema": "https://json-schema.org/draft/2019-09/schema",
    "$id": "https://raw.githubusercontent.com/merokudao/dapp-store-registry/main/src/schemas/merokuDappStore.dAppImagesSchema.json",
    "title": "dApp CDN schema",
    "description": "A schema for dapp CDN for dApp registry",
    "type": "object",
    "properties": {
        "logo": {
            "type": "string",
            "format": "uri",
            "pattern": "^(https?|http?|ipfs?)://",
            "minLength": 1,
            "description": "A URL to the logo of the dApp. Should be square and 512x512 in PNG format"
        },
        "banner": {
            "type": "string",
            "format": "uri",
            "pattern": "^(https?|http?|ipfs?)://",
            "minLength": 1,
            "description": "A URL to the banner of the dApp. Should be 1920x1080 and in PNG format"
        },
        "screenshots": {
            "type": "array",
            "items": {
                "type": "string",
                "format": "uri",
                "pattern": "^(https?|http?|ipfs?)://",
                "minLength": 1
            },
            "minItems": 1,
            "description": "A list of URLs to the screenshots of the dApp. Should be 1284 x 2778 and in PNG format"
        },
        "mobileScreenshots": {
            "type": "array",
            "items": {
                "type": "string",
                "format": "uri",
                "pattern": "^(https?|http?|ipfs?)://",
                "minLength": 1
            },
            "minItems": 1,
            "description": "A list of URLs to the mobile screenshots of the dApp"
        }
    },
    "anyOf": [
        {
            "required": [
                "screenshots"
            ]
        },
        {
            "required": [
                "mobileScreenshots"
            ]
        }
    ],
    "additionalProperties": false
}
