changedOutput schema / anyOf
Previous value: -[
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": {},
- "properties": {
- "channel_id": {
- "description": "Discord channel ID (snowflake)",
- "pattern": "^\\d{17,20}$",
- "type": "string"
- },
- "confidence": {
- "enum": [
- "complete",
- "partial"
- ],
- "type": "string"
- },
- "guild_id": {
- "description": "Discord guild (server) ID",
- "pattern": "^\\d{17,20}$",
- "type": "string"
- },
- "member_overwrite_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "permission_source_channel_id": {
- "anyOf": [
- {
- "description": "Discord channel ID (snowflake)",
- "pattern": "^\\d{17,20}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "requested_actions": {
- "items": {
- "enum": [
- "view_channel",
- "send_messages",
- "manage_channel"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "roles": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "actions": {
- "additionalProperties": false,
- "properties": {
- "manage_channel": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "send_messages": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "view_channel": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
- "administrator": {
- "type": "boolean"
- },
- "id": {
- "description": "Discord role ID",
- "pattern": "^\\d{17,20}$",
- "type": "string"
- },
- "managed": {
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "position": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "name",
- "position",
- "managed",
- "administrator",
- "actions"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "summary": {
- "additionalProperties": false,
- "properties": {
- "by_action": {
- "additionalProperties": false,
- "properties": {
- "manage_channel": {
- "additionalProperties": false,
- "properties": {
- "allowed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "denied": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "unknown": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "allowed",
- "denied",
- "unknown"
- ],
- "type": "object"
- },
- "send_messages": {
- "additionalProperties": false,
- "properties": {
- "allowed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "denied": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "unknown": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "allowed",
- "denied",
- "unknown"
- ],
- "type": "object"
- },
- "view_channel": {
- "additionalProperties": false,
- "properties": {
- "allowed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "denied": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "unknown": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "allowed",
- "denied",
- "unknown"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- "role_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "role_count",
- "by_action"
- ],
- "type": "object"
- },
- "unknown_permission_bits": {
- "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
- "pattern": "^\\d+$",
- "type": "string"
- },
- "warnings": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "guild_id",
- "channel_id",
- "permission_source_channel_id",
- "requested_actions",
- "roles",
- "summary",
- "member_overwrite_count",
- "unknown_permission_bits",
- "warnings",
- "confidence"
- ],
- "type": "object"
- },
- {
- "properties": {
- "category": {
- "enum": [
- "client",
- "server"
- ],
- "type": "string"
- },
- "code": {
- "type": "string"
- },
- "recovery_hint": {
- "type": "string"
- },
- "retriable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "retriable",
- "category",
- "recovery_hint"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": {},
+ "properties": {
+ "channel_id": {
+ "description": "Discord channel ID (snowflake)",
+ "pattern": "^\\d{17,20}$",
+ "type": "string"
+ },
+ "confidence": {
+ "enum": [
+ "complete",
+ "partial"
+ ],
+ "type": "string"
+ },
+ "guild_id": {
+ "description": "Discord guild (server) ID",
+ "pattern": "^\\d{17,20}$",
+ "type": "string"
+ },
+ "member_overwrite_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "permission_source_channel_id": {
+ "anyOf": [
+ {
+ "description": "Discord channel ID (snowflake)",
+ "pattern": "^\\d{17,20}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requested_actions": {
+ "items": {
+ "enum": [
+ "view_channel",
+ "send_messages",
+ "manage_channel"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "roles": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "actions": {
+ "additionalProperties": false,
+ "properties": {
+ "manage_channel": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "send_messages": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "view_channel": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "administrator": {
+ "type": "boolean"
+ },
+ "id": {
+ "description": "Discord role ID",
+ "pattern": "^\\d{17,20}$",
+ "type": "string"
+ },
+ "managed": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "position": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "position",
+ "managed",
+ "administrator",
+ "actions"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "by_action": {
+ "additionalProperties": false,
+ "properties": {
+ "manage_channel": {
+ "additionalProperties": false,
+ "properties": {
+ "allowed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "denied": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unknown": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "allowed",
+ "denied",
+ "unknown"
+ ],
+ "type": "object"
+ },
+ "send_messages": {
+ "additionalProperties": false,
+ "properties": {
+ "allowed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "denied": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unknown": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "allowed",
+ "denied",
+ "unknown"
+ ],
+ "type": "object"
+ },
+ "view_channel": {
+ "additionalProperties": false,
+ "properties": {
+ "allowed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "denied": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unknown": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "allowed",
+ "denied",
+ "unknown"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "role_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "role_count",
+ "by_action"
+ ],
+ "type": "object"
+ },
+ "unknown_permission_bits": {
+ "description": "Discord permission bitfield as a base-10 string (e.g. \"8\" = ADMINISTRATOR).",
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "guild_id",
+ "channel_id",
+ "permission_source_channel_id",
+ "requested_actions",
+ "roles",
+ "summary",
+ "member_overwrite_count",
+ "unknown_permission_bits",
+ "warnings",
+ "confidence"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "category": {
+ "enum": [
+ "client",
+ "server"
+ ],
+ "type": "string"
+ },
+ "code": {
+ "type": "string"
+ },
+ "recovery_hint": {
+ "type": "string"
+ },
+ "retriable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "retriable",
+ "category",
+ "recovery_hint"
+ ],
+ "type": "object"
+ }
+]