{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Tenant",
  "type": "object",
  "properties": {
    "id": {
      "description": "The tenant's unique identifier",
      "type": "integer",
      "format": "int64",
      "minimum": 1,
      "maximum": 9007199254740991,
      "examples": [
        1
      ]
    },
    "name": {
      "description": "The name of the tenant",
      "type": "string",
      "examples": [
        "Contoso Ltd."
      ]
    },
    "subdomain": {
      "description": "The tenant's subdomain under affinity.co",
      "type": "string",
      "format": "hostname",
      "examples": [
        "contoso"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "subdomain"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "name": "Contoso Ltd.",
      "subdomain": "contoso",
      "id": 1
    }
  ]
}