From b67077a0a8b715689674057f205da85f294d5a34 Mon Sep 17 00:00:00 2001 From: "Nelly (automation bot)" <> Date: Fri, 19 Apr 2024 19:13:51 +0000 Subject: [PATCH] Automated spec update (42638) --- specs/openapi.json | 56 ++++++++++++++++++++++++++++++++++---- specs/openapi_preview.json | 56 ++++++++++++++++++++++++++++++++++---- 2 files changed, 102 insertions(+), 10 deletions(-) diff --git a/specs/openapi.json b/specs/openapi.json index 43412cd..8773b35 100644 --- a/specs/openapi.json +++ b/specs/openapi.json @@ -13061,7 +13061,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "channel" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType" @@ -20857,7 +20865,16 @@ "array", "null" ], - "items": {}, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValue" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValue" + } + ] + }, "maxItems": 25 } }, @@ -24674,7 +24691,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "role" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType" @@ -24977,7 +25002,20 @@ }, "SnowflakeSelectDefaultValueTypes": { "type": "string", - "oneOf": [] + "oneOf": [ + { + "title": "USER", + "const": "user" + }, + { + "title": "ROLE", + "const": "role" + }, + { + "title": "CHANNEL", + "const": "channel" + } + ] }, "SnowflakeType": { "type": "string", @@ -26870,7 +26908,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "user" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType" diff --git a/specs/openapi_preview.json b/specs/openapi_preview.json index adccfee..70d9d3e 100644 --- a/specs/openapi_preview.json +++ b/specs/openapi_preview.json @@ -13304,7 +13304,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "channel" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType" @@ -21185,7 +21193,16 @@ "array", "null" ], - "items": {}, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/RoleSelectDefaultValue" + }, + { + "$ref": "#/components/schemas/UserSelectDefaultValue" + } + ] + }, "maxItems": 25 } }, @@ -25431,7 +25448,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "role" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType" @@ -25758,7 +25783,20 @@ }, "SnowflakeSelectDefaultValueTypes": { "type": "string", - "oneOf": [] + "oneOf": [ + { + "title": "USER", + "const": "user" + }, + { + "title": "ROLE", + "const": "role" + }, + { + "title": "CHANNEL", + "const": "channel" + } + ] }, "SnowflakeType": { "type": "string", @@ -27682,7 +27720,15 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + "type": "string", + "enum": [ + "user" + ], + "allOf": [ + { + "$ref": "#/components/schemas/SnowflakeSelectDefaultValueTypes" + } + ] }, "id": { "$ref": "#/components/schemas/SnowflakeType"