{
    "definitions": {
        "filter_group": {
            "additionalProperties": false,
            "properties": {
                "match_max": {
                    "_id": "/match_max",
                    "type": [
                        "number",
                        "null"
                    ]
                },
                "match_min": {
                    "_id": "/match_min",
                    "type": [
                        "number",
                        "null"
                    ]
                },
                "mfs": {
                    "_id": "/mf",
                    "items": {
                        "_id": "/mf/items",
                        "additionalProperties": false,
                        "properties": {
                            "expr": {
                                "_id": "/mf/expr",
                                "type": "string"
                            },
                            "max": {
                                "_id": "/mf/max",
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "min": {
                                "_id": "/mf/min",
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "type": {
                                "_id": "/mf/type",
                                "enum": [
                                    "pseudo",
                                    "total",
                                    "explicit",
                                    "implicit",
                                    "crafted",
                                    "enchant",
                                    "prophecy",
                                    "leaguestone"
                                ],
                                "type": "string"
                            }
                        },
                        "required": [
                            "type",
                            "expr"
                        ],
                        "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                },
                "type": {
                    "_id": "/type",
                    "enum": [
                        "all",
                        "count",
                        "none"
                    ],
                    "type": "string"
                }
            },
            "required": [
                "type"
            ],
            "type": "object"
        }
    },
    "properties": {
        "_id": {
            "id": "/id",
            "type": "string"
        },
        "baseid": {
            "_id": "/baseid",
            "type": "string"
        },
        "criteria": {
            "additionalProperties": false,
            "properties": {
                "aps_max": {
                    "_id": "/criteria/aps_max",
                    "type": "number"
                },
                "aps_min": {
                    "_id": "/criteria/aps_min",
                    "type": "number"
                },
                "armour_max": {
                    "_id": "/criteria/armour_max",
                    "type": "number"
                },
                "armour_min": {
                    "_id": "/criteria/armour_min",
                    "type": "number"
                },
                "base": {
                    "_id": "/criteria/base",
                    "type": "string"
                },
                "block_max": {
                    "_id": "/criteria/block_max",
                    "type": "number"
                },
                "block_min": {
                    "_id": "/criteria/block_min",
                    "type": "number"
                },
                "buyout": {
                    "_id": "/criteria/buyout",
                    "type": "boolean"
                },
                "corrupted": {
                    "_id": "/criteria/corrupted",
                    "type": "boolean"
                },
                "crafted": {
                    "_id": "/criteria/crafted",
                    "type": "boolean"
                },
                "crit_max": {
                    "_id": "/criteria/crit_max",
                    "type": "number"
                },
                "crit_min": {
                    "_id": "/criteria/crit_min",
                    "type": "number"
                },
                "dps_max": {
                    "_id": "/criteria/dps_max",
                    "type": "number"
                },
                "dps_min": {
                    "_id": "/criteria/dps_min",
                    "type": "number"
                },
                "edps_max": {
                    "_id": "/criteria/epds_max",
                    "type": "number"
                },
                "edps_min": {
                    "_id": "/criteria/epds_min",
                    "type": "number"
                },
                "enchanted": {
                    "_id": "/criteria/enchanted",
                    "type": "boolean"
                },
                "es_max": {
                    "_id": "/criteria/es_max",
                    "type": "number"
                },
                "es_min": {
                    "_id": "/criteria/es_min",
                    "type": "number"
                },
                "evasion_max": {
                    "_id": "/criteria/evasion_max",
                    "type": "number"
                },
                "evasion_min": {
                    "_id": "/criteria/evasion_min",
                    "type": "number"
                },
                "exp": {
                    "_id": "/criteria/exp",
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                },
                "fgs": {
                    "items": {
                        "$ref": "#/definitions/filter_group"
                    },
                    "minItems": 1,
                    "type": "array"
                },
                "iclass": {
                    "_id": "/criteria/iclass",
                    "type": "string"
                },
                "identified": {
                    "_id": "/criteria/identified",
                    "type": "boolean"
                },
                "ilvl_max": {
                    "_id": "/criteria/ilvl_max",
                    "type": "number"
                },
                "ilvl_min": {
                    "_id": "/criteria/ilvl_min",
                    "type": "number"
                },
                "level_max": {
                    "_id": "/criteria/level_max",
                    "type": "number"
                },
                "level_min": {
                    "_id": "/criteria/level_min",
                    "type": "number"
                },
                "links_max": {
                    "_id": "/criteria/links_max",
                    "type": "number"
                },
                "links_min": {
                    "_id": "/criteria/links_min",
                    "type": "number"
                },
                "modcount_max": {
                    "_id": "/criteria/modcount_max",
                    "type": "number"
                },
                "modcount_min": {
                    "_id": "/criteria/modcount_min",
                    "type": "number"
                },
                "modifiable": {
                    "_id": "/criteria/modifiable",
                    "type": "boolean"
                },
                "name": {
                    "_id": "/criteria/name",
                    "items": {
                        "_id": "/criteria/name/items",
                        "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                },
                "pdps_max": {
                    "_id": "/criteria/pdps_max",
                    "type": "number"
                },
                "pdps_min": {
                    "_id": "/criteria/pdps_min",
                    "type": "number"
                },
                "price_max": {
                    "_id": "/criteria/price_max",
                    "type": "string"
                },
                "price_min": {
                    "_id": "/criteria/price_min",
                    "type": "string"
                },
                "quality_max": {
                    "_id": "/criteria/quality_max",
                    "type": "number"
                },
                "quality_min": {
                    "_id": "/criteria/quality_min",
                    "type": "number"
                },
                "rarity": {
                    "_id": "/criteria/rarity",
                    "items": {
                        "_id": "/criteria/rarity/items",
                        "enum": [
                            "normal",
                            "magic",
                            "rare",
                            "unique",
                            "relic"
                        ],
                        "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                },
                "sockets_max": {
                    "_id": "/criteria/sockets_max",
                    "type": "number"
                },
                "sockets_min": {
                    "_id": "/criteria/sockets_min",
                    "type": "number"
                },
                "stacksize_max": {
                    "_id": "/criteria/stacksize_max",
                    "type": "number"
                },
                "stacksize_min": {
                    "_id": "/criteria/stacksize_min",
                    "type": "number"
                },
                "type": {
                    "_id": "/criteria/type",
                    "items": {
                        "_id": "/criteria/type/items",
                        "enum": [
                            "normal",
                            "magic",
                            "rare",
                            "unique",
                            "gem",
                            "currency",
                            "divination card",
                            "quest item",
                            "prophecy",
                            "relic"
                        ],
                        "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                }
            },
            "type": "object"
        },
        "description": {
            "_id": "/description",
            "type": "string"
        },
        "enabled": {
            "_id": "/enabled",
            "type": "boolean"
        },
        "priority": {
            "_id": "/priority",
            "type": "number"
        },
        "title": {
            "_id": "/title",
            "type": "string"
        }
    },
    "required": [
        "criteria",
        "title"
    ],
    "type": "object"
}