{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/createprints-ai/json-schema/createprints-ai-accepted-import-schema.json",
  "title": "AcceptedImport",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/createprints-ai-openapi.yml#/components/schemas/AcceptedImport",
  "type": "object",
  "required": [
    "jobId",
    "status",
    "purchasable",
    "imageUploaded",
    "retained",
    "imagePrivate",
    "aspect",
    "width",
    "height",
    "warnings"
  ],
  "properties": {
    "jobId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "const": "complete"
    },
    "purchasable": {
      "type": "boolean",
      "const": true
    },
    "imageUploaded": {
      "type": "boolean",
      "const": true
    },
    "retained": {
      "type": "boolean",
      "const": true
    },
    "imagePrivate": {
      "type": "boolean",
      "const": true
    },
    "aspect": {
      "$ref": "#/$defs/Aspect"
    },
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    },
    "warnings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImportWarning"
      }
    },
    "artworkCheck": {
      "$ref": "#/$defs/ArtworkCheck"
    }
  },
  "$defs": {
    "ArtworkCheck": {
      "type": "object",
      "description": "Standalone-artwork classifier result; fields may expand.",
      "properties": {
        "status": {
          "type": "string"
        },
        "warningCodes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    },
    "Aspect": {
      "type": "string",
      "enum": [
        "square",
        "portrait",
        "landscape"
      ]
    },
    "ImportWarning": {
      "type": "object",
      "required": [
        "code",
        "severity",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "const": "warning"
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}