{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-job-pricinginputs-schema.json",
  "title": "JobPricinginputs",
  "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/JobPricinginputs",
  "type": "object",
  "properties": {
    "inputs": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "#/$defs/JobPricinginlineOrRefData"
          },
          {
            "type": "array",
            "items": {
              "$ref": "#/$defs/JobPricinginlineOrRefData"
            }
          }
        ]
      },
      "description": "The input parameters. Specify the STAC item you want to process.\n"
    }
  },
  "$defs": {
    "JobPricingbinaryInputValue": {
      "type": "string",
      "format": "byte"
    },
    "JobPricinginlineOrRefData": {
      "oneOf": [
        {
          "$ref": "#/$defs/inputValueNoObject"
        },
        {
          "$ref": "#/$defs/qualifiedInputValue"
        },
        {
          "$ref": "#/$defs/link"
        }
      ]
    },
    "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"
        }
      ]
    },
    "link": {
      "required": [
        "href"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "description": "The URL of the related link.\n"
        },
        "hreflang": {
          "type": "string",
          "description": "The language of the related link.\n"
        },
        "rel": {
          "type": "string",
          "description": "The type of relation of the link in `links.href` to the current job.\n"
        },
        "type": {
          "type": "string",
          "description": "The media type the link returns.\n"
        },
        "title": {
          "type": "string",
          "description": "The link title.\n"
        }
      }
    },
    "qualifiedInputValue": {
      "allOf": [
        {
          "$ref": "#/$defs/format"
        },
        {
          "required": [
            "value"
          ],
          "type": "object",
          "properties": {
            "value": {
              "$ref": "#/$defs/inputValue"
            }
          }
        }
      ]
    }
  }
}