{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easee/json-schema/easee-easee-cloud-api-basic-site-dto-schema.json",
  "title": "Easee_Cloud_API_BasicSiteDTO",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easee-site-api-openapi.yml#/components/schemas/Easee_Cloud_API_BasicSiteDTO",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "uuid": {
      "type": [
        "string",
        "null"
      ],
      "format": "guid"
    },
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "siteKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "levelOfAccess": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_LevelOfAccess"
        }
      ]
    },
    "address": {
      "oneOf": [
        {
          "$ref": "#/$defs/Easee_Cloud_API_AddressDTO2"
        }
      ]
    },
    "installerAlias": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "Easee_Cloud_API_AddressDTO2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "buildingNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "area": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "oneOf": [
            {
              "$ref": "#/$defs/Easee_Cloud_API_CountryDTO2"
            }
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "altitude": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        }
      }
    },
    "Easee_Cloud_API_CountryDTO2": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "phonePrefix": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      }
    },
    "Easee_Cloud_API_LevelOfAccess": {
      "type": "integer",
      "description": "",
      "x-enumNames": [
        "Open",
        "EaseeAccounts",
        "SpecificUsers"
      ],
      "enum": [
        1,
        2,
        3
      ]
    }
  }
}