{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/monacloud/main/json-schema/monacloud-app-response-schema.json",
  "title": "AppResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monacloud-vn-openapi.json#/components/schemas/AppResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "repo_url": {
      "type": "string",
      "title": "Repo Url"
    },
    "branch": {
      "type": "string",
      "title": "Branch"
    },
    "build_type": {
      "type": "string",
      "title": "Build Type"
    },
    "status": {
      "type": "string",
      "enum": [
        "awaiting_upload",
        "queued",
        "deploying",
        "done",
        "error",
        "deleted"
      ],
      "title": "Status"
    },
    "url": {
      "type": "string",
      "title": "Url"
    },
    "application_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Application Id"
    },
    "app_host": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "App Host"
    },
    "last_deploy": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Deploy"
    },
    "domains": {
      "items": {
        "type": "object"
      },
      "type": "array",
      "title": "Domains"
    },
    "errorMessage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Errormessage"
    },
    "sandbox": {
      "type": "boolean",
      "title": "Sandbox",
      "default": false
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "repo_url",
    "branch",
    "build_type",
    "status",
    "url"
  ]
}