From 002c1948f6413d715a5bc342edf002b4f6e58ea2 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 31 May 2023 13:36:52 +0800 Subject: [PATCH] fix(nocodb): comparison_op & fk_column_id types in swagger.json --- packages/nocodb/src/schema/swagger.json | 146 +++++++++++++----------- 1 file changed, 80 insertions(+), 66 deletions(-) diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index b7d5a6e102..57083b9061 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -15197,38 +15197,45 @@ }, "comparison_op": { "description": "Comparison Operator", - "enum": [ - "allof", - "anyof", - "blank", - "btw", - "checked", - "empty", - "eq", - "ge", - "gt", - "gte", - "in", - "is", - "isWithin", - "isnot", - "le", - "like", - "lt", - "lte", - "nallof", - "nanyof", - "nbtw", - "neq", - "nlike", - "not", - "notblank", - "notchecked", - "notempty", - "notnull", - "null" - ], - "type": "string" + "anyOf": [ + { + "enum": [ + "allof", + "anyof", + "blank", + "btw", + "checked", + "empty", + "eq", + "ge", + "gt", + "gte", + "in", + "is", + "isWithin", + "isnot", + "le", + "like", + "lt", + "lte", + "nallof", + "nanyof", + "nbtw", + "neq", + "nlike", + "not", + "notblank", + "notchecked", + "notempty", + "notnull", + "null" + ], + "type": "string" + }, + { + "type": "null" + } + ] }, "comparison_sub_op": { "anyOf": [ @@ -15262,7 +15269,7 @@ "description": "Comparison Sub-Operator" }, "fk_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_hook_id": { @@ -15518,38 +15525,45 @@ "properties": { "comparison_op": { "description": "Comparison Operator", - "enum": [ - "allof", - "anyof", - "blank", - "btw", - "checked", - "empty", - "eq", - "ge", - "gt", - "gte", - "in", - "is", - "isWithin", - "isnot", - "le", - "like", - "lt", - "lte", - "nallof", - "nanyof", - "nbtw", - "neq", - "nlike", - "not", - "notblank", - "notchecked", - "notempty", - "notnull", - "null" - ], - "type": "string" + "anyOf": [ + { + "enum": [ + "allof", + "anyof", + "blank", + "btw", + "checked", + "empty", + "eq", + "ge", + "gt", + "gte", + "in", + "is", + "isWithin", + "isnot", + "le", + "like", + "lt", + "lte", + "nallof", + "nanyof", + "nbtw", + "neq", + "nlike", + "not", + "notblank", + "notchecked", + "notempty", + "notnull", + "null" + ], + "type": "string" + }, + { + "type": "null" + } + ] }, "comparison_sub_op": { "anyOf": [ @@ -15583,7 +15597,7 @@ "description": "Comparison Sub-Operator" }, "fk_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_parent_id": {