changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "confirmation_token": {
- "type": "string"
- },
- "next_step_markdown": {
- "type": "string"
- },
- "plan": {
- "additionalProperties": false,
- "properties": {
- "database_name": {
- "type": "string"
- },
- "database_preview": {
- "additionalProperties": false,
- "properties": {
- "application": {
- "type": [
- "string",
- "null"
- ]
- },
- "backups": {},
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "disk_used": {
- "type": [
- "number",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "operation_in_progress": {
- "type": "boolean"
- },
- "permissions": {}
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- "hosting_id": {
- "type": "number"
- }
- },
- "required": [
- "hosting_id",
- "database_name",
- "database_preview"
- ],
- "type": "object"
- },
- "status": {
- "const": "plan",
- "type": "string"
- },
- "token_expires_at": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "plan",
- "confirmation_token",
- "token_expires_at",
- "next_step_markdown"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "database_name": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "status": {
- "const": "applied",
- "type": "string"
- }
- },
- "required": [
- "status",
- "database_name",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confirmation_token": {
+ "type": "string"
+ },
+ "next_step_markdown": {
+ "type": "string"
+ },
+ "plan": {
+ "additionalProperties": false,
+ "properties": {
+ "database_name": {
+ "type": "string"
+ },
+ "database_preview": {
+ "additionalProperties": false,
+ "properties": {
+ "application": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "anyOf": [
+ {
+ "not": {}
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": [
+ "string",
+ "number"
+ ]
+ },
+ "location": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "backups": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "disk_used": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "operation_in_progress": {
+ "type": "boolean"
+ },
+ "permissions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "rights": {
+ "additionalProperties": false,
+ "properties": {
+ "admin": {
+ "type": "boolean"
+ },
+ "read": {
+ "type": "boolean"
+ },
+ "write": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "user": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "user"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "hosting_id": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "hosting_id",
+ "database_name",
+ "database_preview"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "plan",
+ "type": "string"
+ },
+ "token_expires_at": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "plan",
+ "confirmation_token",
+ "token_expires_at",
+ "next_step_markdown"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "database_name": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "status": {
+ "const": "applied",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "database_name",
+ "message"
+ ],
+ "type": "object"
+ }
+]