filter

Filter

General Information

Domain

TcHmiSrv

Schema

Type

array

JSON Schema

{
    "description": "descFilter",
    "items": {
        "oneOf": [
            {
                "additionalProperties": false,
                "configDescription": "descComparator",
                "properties": {
                    "comparator": {
                        "enum": [
                            "==",
                            "!=",
                            "<",
                            ">",
                            "<=",
                            ">=",
                            "contains",
                            "contains not",
                            "== [ignore case]",
                            "!= [ignore case]",
                            "contains [ignore case]",
                            "contains not [ignore case]"
                        ],
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "value": {
                        "oneOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "number"
                            },
                            {
                                "type": "boolean"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "comparator",
                    "value"
                ],
                "type": "object"
            },
            {
                "additionalProperties": false,
                "configDescription": "descLogic",
                "properties": {
                    "logic": {
                        "enum": [
                            "AND",
                            "OR"
                        ],
                        "type": "string"
                    }
                },
                "required": [
                    "logic"
                ],
                "type": "object"
            },
            {
                "$ref": "tchmi:server#/definitions/filter"
            }
        ]
    },
    "type": "array"
}