From 602a2513172e2e95c5425f74ef3ab19698653686 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 31 Dec 2019 21:51:05 +0800 Subject: [PATCH] feat: add comparator in validate schema --- httprunner/loader/schemas/common.schema.json | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/httprunner/loader/schemas/common.schema.json b/httprunner/loader/schemas/common.schema.json index 09863f7c..10b610a8 100644 --- a/httprunner/loader/schemas/common.schema.json +++ b/httprunner/loader/schemas/common.schema.json @@ -191,9 +191,18 @@ "type": "object", "propertyNames": { "enum": [ - "eq", - "lt", - "gt" + "eq", "equals", "==", "is", + "lt", "less_than", + "le", "less_than_or_equals", + "gt", "greater_than", + "ge", "greater_than_or_equals", + "ne", "not_equals", + "str_eq", "string_equals", + "len_eq", "length_equals", "count_eq", + "len_gt", "count_gt", "length_greater_than", "count_greater_than", + "len_ge", "count_ge", "length_greater_than_or_equals", "count_greater_than_or_equals", + "len_lt", "count_lt", "length_less_than", "count_less_than", + "len_le", "count_le", "length_less_than_or_equals", "count_less_than_or_equals" ] }, "patternProperties": {