{
  "$id": "https://www.itb.ec.europa.eu/api/linkShared_request",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "JSON schema for the test suites' linkShared operation request payload",
  "type": "object",
  "properties": {
    "testSuite": {
      "description": "The identifier of the shared test suite.",
      "type": "string"
    },
    "specifications": {
      "description": "The list of specifications to link the test suite to.",
      "type": "array",
      "items": {
        "$ref": "#/definitions/testSuiteLinkRequestSpecification"
      }
    }
  },
  "required": [
    "testSuite",
    "specifications"
  ],
  "additionalProperties": false,
  "definitions": {
    "testSuiteLinkRequestSpecification": {
      "description": "Information on how to link a shared test suite to a given specification.",
      "type": "object",
      "properties": {
        "specification": {
          "description": "The API key identifying the specification to link the test suite to.",
          "type": "string"
        },
        "update": {
          "description": "Whether or not to update the specification's actor metadata based on the test suite.",
          "type": "boolean"
        }
      },
      "required": [
        "specification"
      ],
      "additionalProperties": false
    }
  }
}