{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Schema for GDALG (GDAL Streamed Algorithm) files",

  "oneOf": [
    {
      "$ref": "#/definitions/gdalg_root"
    }
  ],

  "definitions": {
    "gdalg_root": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "gdal_streamed_alg"
          ]
        },
        "command_line": {
          "type": "string"
        },
        "relative_paths_relative_to_this_file": {
          "type": "boolean",
          "default": true
        }
      },
      "required": [
        "type",
        "command_line"
      ],
      "additional_properties": false
    }
  }
}
