{
    "defs": {
        "feed": {
            "additionalProperties": false,
            "properties": {
                "cache_timestamp": {
                    "type": "string"
                },
                "caching_enabled": {
                    "type": "boolean"
                },
                "default": {
                    "type": "boolean"
                },
                "delete_local_file": {
                    "type": "boolean"
                },
                "delta_merge": {
                    "type": "boolean"
                },
                "distribution": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "event_id": {
                    "type": "string"
                },
                "fixed_event": {
                    "type": "boolean"
                },
                "headers": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "input_source": {
                    "enum": [
                        "network",
                        "local"
                    ],
                    "type": "string"
                },
                "lookup_visible": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "override_ids": {
                    "type": "boolean"
                },
                "provider": {
                    "type": "string"
                },
                "publish": {
                    "type": "boolean"
                },
                "rules": {
                    "type": "string"
                },
                "settings": {
                    "type": "string"
                },
                "sharing_group_id": {
                    "type": "string"
                },
                "source_format": {
                    "enum": [
                        "misp",
                        "csv",
                        "freetext"
                    ],
                    "type": "string"
                },
                "tag_id": {
                    "type": "string"
                },
                "url": {
                    "type": "string"
                }
            },
            "required": [
                "id",
                "name",
                "provider",
                "url",
                "rules",
                "enabled",
                "distribution",
                "sharing_group_id",
                "tag_id",
                "default",
                "source_format",
                "fixed_event",
                "delta_merge",
                "event_id",
                "publish",
                "override_ids",
                "settings",
                "input_source",
                "delete_local_file",
                "lookup_visible"
            ],
            "type": "object"
        },
        "tag": {
            "additionalProperties": false,
            "properties": {
                "colour": {
                    "type": "string"
                },
                "exportable": {
                    "type": "boolean"
                },
                "hide_tag": {
                    "type": "boolean"
                },
                "id": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "org_id": {
                    "type": "string"
                }
            },
            "required": [
                "id",
                "name",
                "colour",
                "exportable",
                "org_id",
                "hide_tag"
            ],
            "type": "object"
        }
    },
    "items": {
        "additionalProperties": false,
        "properties": {
            "Feed": {
                "$ref": "#/defs/feed"
            },
            "Tag": {
                "$ref": "#/defs/tag"
            }
        },
        "required": [
            "Feed"
        ],
        "type": "object"
    },
    "title": "Validator for MISP feed metadata",
    "type": "array",
    "_uniqueItems": true
}