{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-process-schema.json",
  "title": "process",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-processing-api-openapi.yml#/components/schemas/process",
  "allOf": [
    {
      "$ref": "#/$defs/processSummary"
    },
    {
      "type": "object",
      "properties": {
        "inputs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/inputDescription"
          }
        },
        "outputs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/outputDescription"
          }
        }
      }
    }
  ],
  "$defs": {
    "additionalParameter": {
      "required": [
        "name",
        "value"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter.\n"
        },
        "value": {
          "type": "array",
          "description": "The value of the parameter.\n",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "integer"
              },
              {
                "type": "array",
                "items": {}
              },
              {
                "type": "object"
              }
            ]
          }
        }
      }
    },
    "descriptionType": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "The title of the process.\n"
        },
        "description": {
          "type": "string",
          "description": "The description of the process.\n"
        },
        "metadata": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/metadata"
          }
        },
        "additionalParameters": {
          "type": "object",
          "properties": {
            "role": {
              "type": "string",
              "description": "The role of the additional parameter.\n"
            },
            "parameters": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/additionalParameter"
              }
            }
          }
        }
      }
    },
    "inputDescription": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "description": "The title of the input parameter.\n"
            },
            "description": {
              "type": "string",
              "description": "The description of the input parameter.\n"
            }
          }
        },
        {
          "required": [
            "schema"
          ],
          "type": "object",
          "properties": {
            "minOccurs": {
              "type": "integer",
              "description": "The minimum allowable number of occurrences of this input value.\n",
              "default": 1
            },
            "maxOccurs": {
              "description": "The maximum allowable number of occurrences of this input value. When there's no limit, `unbounded` is used.\n",
              "oneOf": [
                {
                  "type": "integer",
                  "default": 1
                },
                {
                  "type": "string",
                  "enum": [
                    "unbounded"
                  ]
                }
              ]
            },
            "schema": {
              "$ref": "#/$defs/schema"
            }
          }
        }
      ]
    },
    "itemsSchema": {
      "type": "object",
      "properties": {
        "required": {
          "minItems": 1,
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "enum": {
          "minItems": 1,
          "uniqueItems": false,
          "type": "array",
          "items": {}
        },
        "type": {
          "type": "string",
          "enum": [
            "array",
            "boolean",
            "integer",
            "number",
            "object",
            "string"
          ]
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "oneOf": [
              {
                "$ref": "#/$defs/propertiesSchema"
              },
              {
                "$ref": "#/$defs/reference"
              }
            ]
          }
        },
        "description": {
          "type": "string"
        },
        "format": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "metadata": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "description": "The role of the metadata.\n"
        },
        "title": {
          "type": "string",
          "description": "The title of the metadata.\n"
        },
        "href": {
          "type": "string",
          "description": "A link to more information about the metadata.\n"
        }
      }
    },
    "outputDescription": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "description": "The title of the output parameter.\n"
            },
            "description": {
              "type": "string",
              "description": "The description of the output parameter.\n"
            }
          }
        },
        {
          "required": [
            "schema"
          ],
          "type": "object",
          "properties": {
            "schema": {
              "$ref": "#/$defs/schema"
            }
          }
        }
      ]
    },
    "processSummary": {
      "allOf": [
        {
          "$ref": "#/$defs/descriptionType"
        },
        {
          "required": [
            "id",
            "version"
          ],
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "The process ID in a name format.\n"
            },
            "version": {
              "type": "string",
              "description": "The version number of the process.\n"
            },
            "jobControlOptions": {
              "type": "array",
              "description": "The execution mode of the process. The only available value is `async-execute`, which indicates that processes are executed asynchronously.\n",
              "items": {
                "type": "string",
                "enum": [
                  "async-execute"
                ]
              },
              "default": [
                "async-execute"
              ]
            },
            "outputTransmission": {
              "type": "array",
              "description": "The transmission mode of output values. The only available value is `reference`, which indicates that processes produce a link to the processing result.\n",
              "items": {
                "type": "string",
                "enum": [
                  "reference"
                ]
              },
              "default": [
                "reference"
              ]
            }
          }
        }
      ]
    },
    "propertiesSchema": {
      "type": "object",
      "properties": {
        "enum": {
          "minItems": 1,
          "uniqueItems": false,
          "type": "array",
          "items": {}
        },
        "type": {
          "type": "string",
          "enum": [
            "array",
            "boolean",
            "integer",
            "number",
            "object",
            "string"
          ]
        },
        "description": {
          "type": "string"
        },
        "maximum": {
          "type": "number"
        },
        "minimum": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "reference": {
      "required": [
        "$ref"
      ],
      "type": "object",
      "properties": {
        "$ref": {
          "type": "string",
          "format": "uri-reference"
        }
      }
    },
    "schema": {
      "type": "object",
      "properties": {
        "maximum": {
          "type": "number"
        },
        "minimum": {
          "type": "number"
        },
        "maxLength": {
          "minimum": 0,
          "type": "integer"
        },
        "minLength": {
          "minimum": 0,
          "type": "integer",
          "default": 0
        },
        "maxItems": {
          "minimum": 0,
          "type": "integer"
        },
        "minItems": {
          "minimum": 0,
          "type": "integer",
          "default": 0
        },
        "uniqueItems": {
          "type": "boolean",
          "default": false
        },
        "required": {
          "minItems": 1,
          "uniqueItems": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "enum": {
          "minItems": 1,
          "uniqueItems": false,
          "type": "array",
          "items": {}
        },
        "type": {
          "type": "string",
          "enum": [
            "array",
            "boolean",
            "integer",
            "number",
            "object",
            "string"
          ]
        },
        "items": {
          "oneOf": [
            {
              "$ref": "#/$defs/itemsSchema"
            },
            {
              "$ref": "#/$defs/reference"
            }
          ]
        },
        "description": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "default": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "A definition that conforms to the [JSON schema specification](https://json-schema.org/specification).\n"
    }
  }
}