{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "id": "http://snowflakepowe.red/stone/schema/platform",
    "properties": {
        "BiosFiles": {
            "additionalProperties": false,
            "id": "http://snowflakepowe.red/stone/schema/platform/BiosFiles",
            "patternProperties": {
                "(^.+\\..+)|(^[a-zA-Z0-9_-]+)": {
                    "items": {
                        "pattern": "^[a-f0-9]{32}$",
                        "type": "string"
                    },
                    "type": "array"
                }
            },
            "type": "object"
        },
        "FileTypes": {
            "id": "http://snowflakepowe.red/stone/schema/platform/FileTypes",
            "minItems": 1,
            "patternProperties": {
                "^BIOS$": {
                    "pattern": "^application\\/vnd\\.stone-romfile\\..+-sys",
                    "type": "string"
                },
                "^RSRC$": {
                    "pattern": "^application\\/vnd\\.stone-romfile\\..+-resource",
                    "type": "string"
                },
                "^\\.": {
                    "pattern": "^application\\/vnd\\.stone-romfile\\..+",
                    "type": "string"
                }
            },
            "required": [
                "RSRC"
            ],
            "type": "object",
            "_uniqueItems": true
        },
        "FriendlyName": {
            "id": "http://snowflakepowe.red/stone/schema/platform/FriendlyName",
            "type": "string"
        },
        "MaximumInputs": {
            "id": "http://snowflakepowe.red/stone/schema/platform/MaximumInputs",
            "type": "integer"
        },
        "Metadata": {
            "additionalProperties": false,
            "id": "http://snowflakepowe.red/stone/schema/platform/Metadata",
            "patternProperties": {
                "^platform_": {
                    "type": "string"
                }
            },
            "properties": {},
            "type": "object"
        },
        "PlatformID": {
            "id": "http://snowflakepowe.red/stone/schema/platform/PlatformID",
            "type": "string"
        }
    },
    "required": [
        "PlatformID",
        "Metadata",
        "MaximumInputs",
        "FriendlyName",
        "FileTypes"
    ],
    "type": "object"
}