- 重命名 ContentRules→ContentExpectations, KeyValueExpect→KeyedExpectations - 新增 Raw/Resolved 双层模型:resolve 阶段物化为执行计划,store 持久化 Raw 快照 - HTTP body 按需读取:status/headers 失败或无 body expectation 时不读取 body - 新增 displayValueExpectation() 解包 failure.expected 用户可读展示 - 修复 checkEarlyTimeout 独立 lte/lt 检查,修复 KeyedExpectations JSON Schema - 新增 expect/value.ts(resolve/check/display)、keyed.ts、content.ts、headers.ts、status.ts - 删除旧 normalize.ts/matcher.ts/validate-matcher.ts/key-value.ts - 更新 DEVELOPMENT.md:expect 五层管线表、displayValueExpectation、1.7↔1.10 交叉引用 - 同步 13 个 main specs,归档 refactor-expect-type-model 变更(62/62 tasks)
4997 lines
166 KiB
JSON
4997 lines
166 KiB
JSON
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"targets"
|
|
],
|
|
"properties": {
|
|
"defaults": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"http": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"maxBodyBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"cmd": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"cwd": {
|
|
"type": "string"
|
|
},
|
|
"maxOutputBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"db": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"tcp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"bannerReadTimeout": {
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"maxBannerBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"icmp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"udp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"encoding": {
|
|
"anyOf": [
|
|
{
|
|
"const": "text",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "hex",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "base64",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"maxResponseBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"responseEncoding": {
|
|
"anyOf": [
|
|
{
|
|
"const": "text",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "hex",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "base64",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"llm": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ignoreSSL": {
|
|
"type": "boolean"
|
|
},
|
|
"mode": {
|
|
"anyOf": [
|
|
{
|
|
"const": "http",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "stream",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"frequencyPenalty": {
|
|
"type": "number"
|
|
},
|
|
"maxOutputTokens": {
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"presencePenalty": {
|
|
"type": "number"
|
|
},
|
|
"seed": {
|
|
"type": "number"
|
|
},
|
|
"stopSequences": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"temperature": {
|
|
"type": "number"
|
|
},
|
|
"topK": {
|
|
"type": "number"
|
|
},
|
|
"topP": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"providerOptions": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^(.*)$": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"runtime": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"maxConcurrentChecks": {
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"retention": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"server": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"dataDir": {
|
|
"type": "string"
|
|
},
|
|
"host": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"maximum": 65535,
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"targets": {
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"http"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"body": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"status": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 599,
|
|
"minimum": 100,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"pattern": "^[1-5]xx$",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "http",
|
|
"type": "string"
|
|
},
|
|
"http": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ignoreSSL": {
|
|
"type": "boolean"
|
|
},
|
|
"maxBodyBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"maxRedirects": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"method": {
|
|
"anyOf": [
|
|
{
|
|
"const": "DELETE",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "GET",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "HEAD",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "OPTIONS",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "PATCH",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "POST",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "PUT",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"cmd"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"exitCode": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"stderr": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"stdout": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "cmd",
|
|
"type": "string"
|
|
},
|
|
"cmd": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"exec"
|
|
],
|
|
"properties": {
|
|
"args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cwd": {
|
|
"type": "string"
|
|
},
|
|
"env": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"exec": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"maxOutputBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"db"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"result": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rowCount": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "db",
|
|
"type": "string"
|
|
},
|
|
"db": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"query": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"tcp"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"banner": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"connected": {
|
|
"type": "boolean"
|
|
},
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "tcp",
|
|
"type": "string"
|
|
},
|
|
"tcp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"host",
|
|
"port"
|
|
],
|
|
"properties": {
|
|
"bannerReadTimeout": {
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"host": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"maxBannerBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"port": {
|
|
"maximum": 65535,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"readBanner": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"icmp"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"alive": {
|
|
"type": "boolean"
|
|
},
|
|
"avgLatencyMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"maxLatencyMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"packetLossPercent": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "icmp",
|
|
"type": "string"
|
|
},
|
|
"icmp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"host"
|
|
],
|
|
"properties": {
|
|
"count": {
|
|
"maximum": 100,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"host": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"packetSize": {
|
|
"maximum": 65500,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"udp"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"responded": {
|
|
"type": "boolean"
|
|
},
|
|
"response": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responseSize": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"sourceHost": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"sourcePort": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "udp",
|
|
"type": "string"
|
|
},
|
|
"udp": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"host",
|
|
"port"
|
|
],
|
|
"properties": {
|
|
"encoding": {
|
|
"anyOf": [
|
|
{
|
|
"const": "text",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "hex",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "base64",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"host": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"maxResponseBytes": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"payload": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"maximum": 65535,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"responseEncoding": {
|
|
"anyOf": [
|
|
{
|
|
"const": "text",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "hex",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "base64",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"type",
|
|
"llm"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 500,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"durationMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"finishReason": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"output": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rawFinishReason": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"maximum": 599,
|
|
"minimum": 100,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"pattern": "^[1-5]xx$",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"stream": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"completed": {
|
|
"type": "boolean"
|
|
},
|
|
"firstTokenMs": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"usage": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"inputTokens": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"outputTokens": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"totalTokens": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"maxLength": 30,
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "llm",
|
|
"type": "string"
|
|
},
|
|
"llm": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"model",
|
|
"prompt",
|
|
"provider",
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"authToken": {
|
|
"type": "string"
|
|
},
|
|
"headers": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ignoreSSL": {
|
|
"type": "boolean"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"anyOf": [
|
|
{
|
|
"const": "http",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "stream",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"model": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"frequencyPenalty": {
|
|
"type": "number"
|
|
},
|
|
"maxOutputTokens": {
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
"presencePenalty": {
|
|
"type": "number"
|
|
},
|
|
"seed": {
|
|
"type": "number"
|
|
},
|
|
"stopSequences": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"temperature": {
|
|
"type": "number"
|
|
},
|
|
"topK": {
|
|
"type": "number"
|
|
},
|
|
"topP": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"prompt": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"anyOf": [
|
|
{
|
|
"const": "openai",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "openai-responses",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"const": "anthropic",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"providerOptions": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^(.*)$": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"properties": {}
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"variables": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$id": "https://dial.local/probe-config.schema.json",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"ContentExpectations": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"css": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"attr": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"json": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"xpath": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"KeyedExpectations": {
|
|
"additionalProperties": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ValueExpectation": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"ValueMatcher": {
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"type": "object",
|
|
"properties": {
|
|
"contains": {
|
|
"type": "string"
|
|
},
|
|
"empty": {
|
|
"type": "boolean"
|
|
},
|
|
"equals": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"additionalProperties": {},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"exists": {
|
|
"type": "boolean"
|
|
},
|
|
"gt": {
|
|
"type": "number"
|
|
},
|
|
"gte": {
|
|
"type": "number"
|
|
},
|
|
"lt": {
|
|
"type": "number"
|
|
},
|
|
"lte": {
|
|
"type": "number"
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|