changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "credits_charged": {
- "type": "number"
- },
- "image": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "description": "Edited image id — pass it to download_image or as an image reference",
- "type": [
- "number",
- "null"
- ]
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "url"
- ],
- "type": "object"
- },
- "job_id": {
- "type": "string"
- },
- "status": {
- "const": "completed",
- "type": "string"
- }
- },
- "required": [
- "job_id",
- "status",
- "image",
- "credits_charged"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "credits_charged": {
- "type": "number"
- },
- "job_id": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "status": {
- "const": "pending",
- "type": "string"
- }
- },
- "required": [
- "job_id",
- "status",
- "credits_charged",
- "message"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "credits_charged": {
+ "type": "number"
+ },
+ "image": {
+ "additionalProperties": false,
+ "properties": {
+ "dimensions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "height": {
+ "type": "number"
+ },
+ "width": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "width",
+ "height"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Output pixel size; null when the file could not be probed"
+ },
+ "id": {
+ "description": "Edited image id — pass it to get_image (preview), download_image, or as an image reference",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "url",
+ "dimensions"
+ ],
+ "type": "object"
+ },
+ "job_id": {
+ "type": "string"
+ },
+ "status": {
+ "const": "completed",
+ "type": "string"
+ }
+ },
+ "required": [
+ "job_id",
+ "status",
+ "image",
+ "credits_charged"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "credits_charged": {
+ "type": "number"
+ },
+ "job_id": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "status": {
+ "const": "pending",
+ "type": "string"
+ }
+ },
+ "required": [
+ "job_id",
+ "status",
+ "credits_charged",
+ "message"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ }
+]