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"