changedInput schema / properties / split / oneOf
Previous value: -[
- {
- "properties": {
- "method": {
- "const": "equal",
- "type": "string"
- },
- "participants": {
- "items": {
- "anyOf": [
- {
- "properties": {
- "agent_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "agent_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "handle": {
- "pattern": "^[a-z0-9][a-z0-9_-]{2,31}$",
- "type": "string"
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 50,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "method"
- ],
- "type": "object"
- },
- {
- "properties": {
- "method": {
- "const": "exact",
- "type": "string"
- },
- "shares": {
- "items": {
- "properties": {
- "agent": {
- "anyOf": [
- {
- "properties": {
- "agent_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "agent_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "handle": {
- "pattern": "^[a-z0-9][a-z0-9_-]{2,31}$",
- "type": "string"
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- }
- ]
- },
- "amount": {
- "anyOf": [
- {
- "maxLength": 32,
- "minLength": 1,
- "type": "string"
- },
- {
- "exclusiveMinimum": 0,
- "type": "number"
- }
- ]
- }
- },
- "required": [
- "agent",
- "amount"
- ],
- "type": "object"
- },
- "maxItems": 50,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "method",
- "shares"
- ],
- "type": "object"
- },
- {
- "properties": {
- "method": {
- "const": "shares",
- "type": "string"
- },
- "shares": {
- "items": {
- "properties": {
- "agent": {
- "anyOf": [
- {
- "properties": {
- "agent_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "agent_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "handle": {
- "pattern": "^[a-z0-9][a-z0-9_-]{2,31}$",
- "type": "string"
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- }
- ]
- },
- "shares": {
- "maximum": 1000000,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "agent",
- "shares"
- ],
- "type": "object"
- },
- "maxItems": 50,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "method",
- "shares"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "method": {
+ "const": "equal",
+ "type": "string"
+ },
+ "participants": {
+ "items": {
+ "anyOf": [
+ {
+ "properties": {
+ "agent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "agent_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "handle": {
+ "pattern": "^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "method"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "method": {
+ "const": "exact",
+ "type": "string"
+ },
+ "shares": {
+ "items": {
+ "properties": {
+ "agent": {
+ "anyOf": [
+ {
+ "properties": {
+ "agent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "agent_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "handle": {
+ "pattern": "^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "amount": {
+ "anyOf": [
+ {
+ "maxLength": 32,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ ]
+ }
+ },
+ "required": [
+ "agent",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "method",
+ "shares"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "method": {
+ "const": "shares",
+ "type": "string"
+ },
+ "shares": {
+ "items": {
+ "properties": {
+ "agent": {
+ "anyOf": [
+ {
+ "properties": {
+ "agent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "agent_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "handle": {
+ "pattern": "^@?[A-Za-z0-9][A-Za-z0-9_-]{2,31}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "shares": {
+ "maximum": 1000000,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "agent",
+ "shares"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "method",
+ "shares"
+ ],
+ "type": "object"
+ }
+]