{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-draft-product-multipart-schema.json",
  "title": "DraftProductMultipart",
  "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/DraftProductMultipart",
  "type": "object",
  "required": [
    "product",
    "openapi"
  ],
  "properties": {
    "product": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductDefinition"
      }
    },
    "visibility": {
      "$ref": "#/$defs/Visibility"
    },
    "openapi": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApi2Definition"
      }
    },
    "wsdl": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Wsdl"
      }
    },
    "metadata": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Metadata"
      }
    }
  },
  "$defs": {
    "Metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "OpenApi2Definition": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "swagger": {
          "type": "string",
          "enum": [
            "2.0.0"
          ]
        },
        "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"
            }
          }
        }
      }
    },
    "ProductDefinition": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "product": {
          "type": "string",
          "enum": [
            "1.0.0"
          ]
        },
        "info": {
          "type": "object",
          "additionalProperties": true,
          "required": [
            "name",
            "version"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "version": {
              "type": "string"
            }
          }
        }
      }
    },
    "Visibility": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "view",
        "subscribe"
      ],
      "properties": {
        "view": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "public",
                "authenticated",
                "custom"
              ]
            },
            "enabled": {
              "type": "boolean"
            },
            "tags": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            },
            "orgs": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            }
          }
        },
        "subscribe": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "authenticated",
                "custom"
              ]
            },
            "enabled": {
              "type": "boolean"
            },
            "tags": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            },
            "orgs": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "Wsdl": {
      "type": "object",
      "additionalProperties": true
    }
  }
}