{
  "$id": "https://www.itb.ec.europa.eu/api/start_response",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "JSON schema for the tests' start operation response payload",
  "type": "object",
  "properties": {
    "createdSessions": {
      "description": "Information on the created test session(s).",
      "type": "array",
      "items": {
        "$ref": "#/definitions/sessionCreationInformation"
      }
    }
  },
  "required": [
    "createdSessions"
  ],
  "additionalProperties": false,
  "definitions": {
    "sessionCreationInformation": {
      "description": "The metadata for a created test session.",
      "type": "object",
      "properties": {
        "testSuite": {
          "description": "The identifier of the test session's relevant test suite.",
          "type": "string"
        },
        "testCase": {
          "description": "The identifier of the test session's relevant test case.",
          "type": "string"
        },
        "session": {
          "description": "The identifier assigned to the test session.",
          "type": "string"
        },
        "completed": {
          "description": "If the call waited until test sessions were completed, this flag specifies whether the given test session is known to be completed. This may be false if the session did not complete within the maximum wait time, or altogether missing if the call was not set to wait for test session completion.",
          "type": "boolean"
        }
      },
      "required": [
        "testSuite",
        "testCase",
        "session"
      ],
      "additionalProperties": false
    }
  }
}