{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "EarthCode Experiment",
  "allOf": [
    {
      "$ref": "https://ogcincubator.github.io/bblocks-openscience/build/annotated/osc/geodcat-stac-earthcode/common/schema.json"
    },
    {
      "$ref": "https://ogcincubator.github.io/geodcat-ogcapi-records/build/annotated/geo/geodcat/geodcat-records/schema.json"
    }
  ],
  "properties": {
    "properties": {
      "allOf": [
        {
          "$ref": "https://ogcincubator.github.io/bblocks-wf4ever/build/annotated/bbr/wf4ever/wfprov/WorkflowRun/schema.json"
        }
      ],
      "type": "object",
      "required": [
        "osc:workflow"
      ],
      "properties": {
        "osc:workflow": {
          "$ref": "https://ogcincubator.github.io/bblocks-openscience/build/annotated/osc/geodcat-stac-earthcode/common/schema.json#/$defs/osc:workflow"
        }
      }
    },
    "links": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "title": "Other Link",
            "properties": {
              "rel": {
                "not": {
                  "enum": [
                    "via",
                    "input",
                    "environment"
                  ]
                }
              }
            }
          },
          {
            "title": "Link to Input Parameter",
            "properties": {
              "rel": {
                "const": "input"
              }
            }
          },
          {
            "title": "Link to Execution Environment",
            "properties": {
              "rel": {
                "const": "environment"
              }
            }
          },
          {
            "$ref": "https://ogcincubator.github.io/bblocks-openscience/build/annotated/osc/geodcat-stac-earthcode/common/schema.json#/$defs/via_links"
          }
        ]
      }
    }
  }
}