changedInput schema / oneOf
Previous value: -[
- {
- "not": {
- "anyOf": [
- {
- "required": [
- "playerId"
- ]
- },
- {
- "required": [
- "requestId"
- ]
- },
- {
- "required": [
- "expectedVersion"
- ]
- },
- {
- "required": [
- "payload"
- ]
- }
- ]
- },
- "properties": {
- "action": {
- "const": "list"
- }
- }
- },
- {
- "not": {
- "anyOf": [
- {
- "required": [
- "expectedVersion"
- ]
- },
- {
- "required": [
- "payload"
- ]
- }
- ]
- },
- "properties": {
- "action": {
- "const": "status"
- }
- },
- "required": [
- "playerId"
- ]
- },
- {
- "not": {
- "required": [
- "payload"
- ]
- },
- "properties": {
- "action": {
- "enum": [
- "pause",
- "resume",
- "next",
- "mix_return",
- "visuals_next",
- "visuals_clear"
- ]
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion"
- ]
- },
- {
- "properties": {
- "action": {
- "const": "mix_start"
- },
- "payload": {
- "additionalProperties": false,
- "properties": {
- "mode": {
- "enum": [
- "blend",
- "pulse"
- ],
- "type": "string"
- },
- "programId": {
- "const": "after-the-arcade"
- }
- },
- "required": [
- "programId",
- "mode"
- ],
- "type": "object"
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion",
- "payload"
- ]
- },
- {
- "properties": {
- "action": {
- "const": "mix_mode"
- },
- "payload": {
- "additionalProperties": false,
- "properties": {
- "mode": {
- "enum": [
- "blend",
- "pulse"
- ],
- "type": "string"
- }
- },
- "required": [
- "mode"
- ],
- "type": "object"
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion",
- "payload"
- ]
- },
- {
- "properties": {
- "action": {
- "const": "mix_direction"
- },
- "payload": {
- "additionalProperties": false,
- "properties": {
- "directionId": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "directionId"
- ],
- "type": "object"
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion",
- "payload"
- ]
- },
- {
- "properties": {
- "action": {
- "const": "mix_cue"
- },
- "payload": {
- "additionalProperties": false,
- "properties": {
- "cueId": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "cueId"
- ],
- "type": "object"
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion",
- "payload"
- ]
- },
- {
- "properties": {
- "action": {
- "const": "visuals_show"
- },
- "payload": {
- "additionalProperties": false,
- "properties": {
- "currentCueId": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "videoIds": {
- "items": {
- "pattern": "^youtube:[\\w-]{11}$",
- "type": "string"
- },
- "maxItems": 8,
- "minItems": 1,
- "type": "array",
- "uniqueItems": true
- }
- },
- "required": [
- "videoIds",
- "currentCueId"
- ],
- "type": "object"
- }
- },
- "required": [
- "playerId",
- "requestId",
- "expectedVersion",
- "payload"
- ]
- }
-]New value: +[
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "playerId"
+ ]
+ },
+ {
+ "required": [
+ "requestId"
+ ]
+ },
+ {
+ "required": [
+ "expectedVersion"
+ ]
+ },
+ {
+ "required": [
+ "payload"
+ ]
+ }
+ ]
+ },
+ "properties": {
+ "action": {
+ "const": "list"
+ }
+ }
+ },
+ {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "expectedVersion"
+ ]
+ },
+ {
+ "required": [
+ "payload"
+ ]
+ }
+ ]
+ },
+ "properties": {
+ "action": {
+ "const": "status"
+ }
+ },
+ "required": [
+ "playerId"
+ ]
+ },
+ {
+ "not": {
+ "required": [
+ "payload"
+ ]
+ },
+ "properties": {
+ "action": {
+ "enum": [
+ "pause",
+ "resume",
+ "next",
+ "mix_return",
+ "visuals_next",
+ "visuals_clear"
+ ]
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "mix_start"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "else": {
+ "required": [
+ "revision"
+ ]
+ },
+ "if": {
+ "properties": {
+ "programId": {
+ "const": "after-the-arcade"
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "mode": {
+ "enum": [
+ "blend",
+ "pulse"
+ ],
+ "type": "string"
+ },
+ "programId": {
+ "oneOf": [
+ {
+ "const": "after-the-arcade"
+ },
+ {
+ "format": "uuid",
+ "type": "string"
+ }
+ ]
+ },
+ "revision": {
+ "description": "Required for original programs; copy the exact revision from program_experience.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "programId",
+ "mode"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "mix_mode"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "mode": {
+ "enum": [
+ "blend",
+ "pulse"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "mix_direction"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "directionId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "directionId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "mix_cue"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "cueId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "cueId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "visuals_show"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "currentCueId": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "videoIds": {
+ "items": {
+ "pattern": "^youtube:[\\w-]{11}$",
+ "type": "string"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ },
+ "required": [
+ "videoIds",
+ "currentCueId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "dj_ask"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "speak": {
+ "type": "boolean"
+ },
+ "text": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "speak"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "dj_speak"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ },
+ {
+ "properties": {
+ "action": {
+ "const": "dj_cancel"
+ },
+ "payload": {
+ "additionalProperties": false,
+ "properties": {
+ "turnId": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turnId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "playerId",
+ "requestId",
+ "expectedVersion",
+ "payload"
+ ]
+ }
+]
changedInput schema / properties / payload / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "mode": {
- "enum": [
- "blend",
- "pulse"
- ],
- "type": "string"
- },
- "programId": {
- "const": "after-the-arcade"
- }
- },
- "required": [
- "programId",
- "mode"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "mode": {
- "enum": [
- "blend",
- "pulse"
- ],
- "type": "string"
- }
- },
- "required": [
- "mode"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "directionId": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "directionId"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "cueId": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "cueId"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "currentCueId": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "videoIds": {
- "items": {
- "pattern": "^youtube:[\\w-]{11}$",
- "type": "string"
- },
- "maxItems": 8,
- "minItems": 1,
- "type": "array",
- "uniqueItems": true
- }
- },
- "required": [
- "videoIds",
- "currentCueId"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "else": {
+ "required": [
+ "revision"
+ ]
+ },
+ "if": {
+ "properties": {
+ "programId": {
+ "const": "after-the-arcade"
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "mode": {
+ "enum": [
+ "blend",
+ "pulse"
+ ],
+ "type": "string"
+ },
+ "programId": {
+ "oneOf": [
+ {
+ "const": "after-the-arcade"
+ },
+ {
+ "format": "uuid",
+ "type": "string"
+ }
+ ]
+ },
+ "revision": {
+ "description": "Required for original programs; copy the exact revision from program_experience.",
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "programId",
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "mode": {
+ "enum": [
+ "blend",
+ "pulse"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "mode"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "directionId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "directionId"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cueId": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "cueId"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currentCueId": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "videoIds": {
+ "items": {
+ "pattern": "^youtube:[\\w-]{11}$",
+ "type": "string"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "type": "array",
+ "uniqueItems": true
+ }
+ },
+ "required": [
+ "videoIds",
+ "currentCueId"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "speak": {
+ "type": "boolean"
+ },
+ "text": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "speak"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "turnId": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "turnId"
+ ],
+ "type": "object"
+ }
+]