{ "$id": "complianceError", "title": "Compliance error object", "description": "An instance of a compliance error object", "type": "object", "properties": { "query": { "type": "string", "examples": [ "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version" ] }, "condition": { "type": "string", "enum": [ "must", "cant" ] }, "value": { "oneOf": [ { "type": "string", "pattern": "[a-zA-Z]+" }, { "type": "number" }, { "type": "boolean" } ] }, "severity": { "type": "string", "enum": [ "error", "warning", "notices" ] }, "comparison": { "type": "string", "enum": [ "string", "regex" ] }, "ruleId": { "$ref": "IDType" }, "templateVariable": { "type": "string", "pattern": "[a-zA-Z]+" } }, "required": [ "query", "condition", "value", "severity", "comparison", "ruleId" ] }