{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-inputs-schema.json",
  "title": "inputs",
  "description": "An implementation of the [OGC Standard](https://docs.ogc.org/is/18-062r2/18-062r2.html), but with different default response values. Results are always provided with permanent links and a job's results field only contains references or errors.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-processing-api-openapi.yml#/components/schemas/inputs",
  "type": "object",
  "properties": {
    "inputs": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "#/$defs/ValidationinlineOrRefData"
          },
          {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ValidationinlineOrRefData"
            }
          }
        ]
      },
      "description": "The input parameters. The schemas are different, depending on the selected process.\n"
    }
  },
  "$defs": {
    "JobPricingbinaryInputValue": {
      "type": "string",
      "format": "byte"
    },
    "ValidationinlineOrRefData": {
      "oneOf": [
        {
          "$ref": "#/$defs/inputValueNoObject"
        },
        {
          "$ref": "#/$defs/qualifiedInputValue"
        },
        {
          "$ref": "#/$defs/Validationlink"
        }
      ]
    },
    "Validationlink": {
      "required": [
        "href"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "rel": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "hreflang": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "bbox": {
      "required": [
        "bbox"
      ],
      "type": "object",
      "properties": {
        "bbox": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "crs": {
          "type": "string",
          "format": "uri",
          "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
          "enum": [
            "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
            "http://www.opengis.net/def/crs/OGC/0/CRS84h"
          ]
        }
      }
    },
    "format": {
      "type": "object",
      "properties": {
        "mediaType": {
          "type": "string"
        },
        "encoding": {
          "type": "string"
        },
        "schema": {
          "oneOf": [
            {
              "type": "string",
              "format": "url"
            },
            {
              "type": "object"
            }
          ]
        }
      }
    },
    "inputValue": {
      "oneOf": [
        {
          "$ref": "#/$defs/inputValueNoObject"
        },
        {
          "type": "object"
        }
      ]
    },
    "inputValueNoObject": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "integer"
        },
        {
          "type": "boolean"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "$ref": "#/$defs/JobPricingbinaryInputValue"
        },
        {
          "$ref": "#/$defs/bbox"
        }
      ]
    },
    "qualifiedInputValue": {
      "allOf": [
        {
          "$ref": "#/$defs/format"
        },
        {
          "required": [
            "value"
          ],
          "type": "object",
          "properties": {
            "value": {
              "$ref": "#/$defs/inputValue"
            }
          }
        }
      ]
    }
  }
}