{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/Session",
  "definitions": {
    "Session": {
      "type": "object",
      "properties": {
        "taxationType": {
          "$ref": "#/definitions/TaxationType"
        },
        "operator": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "vatin": {
              "type": "string"
            }
          },
          "required": ["name"],
          "additionalProperties": false
        }
      },
      "required": ["taxationType", "operator"],
      "additionalProperties": false
    },
    "TaxationType": {
      "type": "string",
      "enum": ["osn", "usnIncome", "usnIncomeOutcome", "envd", "esn", "patent"]
    }
  }
}
