{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-draft-api-schema.json",
  "title": "DraftAPI",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-drafts-api-openapi.yml#/components/schemas/DraftAPI",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "type": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "draft_api"
      ]
    },
    "api_version": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "2.0.0"
      ]
    },
    "id": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "version": {
      "type": "string",
      "maxLength": 255
    },
    "title": {
      "type": "string",
      "maxLength": 1023
    },
    "summary": {
      "type": "string",
      "maxLength": 65535
    },
    "draft_api": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "swagger": {
          "type": "string"
        },
        "info": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "title",
            "version"
          ],
          "properties": {
            "title": {
              "type": "string"
            },
            "x-ibm-name": {
              "type": "string"
            },
            "version": {
              "type": "string"
            },
            "x-ibm-summary": {
              "type": "string"
            },
            "x-postman-collection-id": {
              "type": "string"
            },
            "x-postman-workspace-id": {
              "type": "string"
            }
          }
        }
      }
    },
    "remote_api": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "auth_header": {
          "type": "string"
        }
      }
    },
    "api_type": {
      "type": "string",
      "enum": [
        "rest",
        "wsdl",
        "graphql",
        "asyncapi"
      ]
    },
    "enforced": {
      "type": "boolean"
    },
    "gateway_type": {
      "type": "string",
      "enum": [
        "datapower-gateway",
        "datapower-api-gateway",
        "event-gateway",
        "datapower-nano-gateway",
        "wm-api-gateway"
      ]
    },
    "oai_version": {
      "type": "string",
      "enum": [
        "openapi2",
        "openapi3"
      ]
    },
    "document_specification": {
      "type": "string",
      "enum": [
        "asyncapi2.0",
        "asyncapi2.1",
        "openapi2",
        "openapi3"
      ]
    },
    "wsdl": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "content_type",
        "content"
      ],
      "properties": {
        "content_type": {
          "type": "string",
          "enum": [
            "application/wsdl",
            "application/wsdl+xml",
            "text/xml",
            "application/zip"
          ]
        },
        "content": {
          "type": "string",
          "format": "binary"
        }
      }
    },
    "org_url": {
      "type": "string",
      "format": "uri"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "readOnly": true,
      "format": "uri"
    }
  }
}