{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alto-vebra/json-schema/alto-vebra-alto-inventory-api-domain-alto-key-set-schema.json",
  "title": "Alto.Inventory.Api.Domain.AltoKeySet",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alto-vebra-inventory-api-openapi.yml#/components/schemas/Alto.Inventory.Api.Domain.AltoKeySet",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "propertyId": {
      "type": "integer",
      "format": "int32"
    },
    "referenceCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "keyCount": {
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/Alto.Services.SDK.Enums.Property.KeySetStatus"
        }
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "dateOut": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "expectedDateIn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "holderType": {
      "enum": [
        "Contact",
        "User"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "holderId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "holderName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Alto.Services.SDK.Enums.Property.KeySetStatus": {
      "enum": [
        "Unspecified",
        "In",
        "Out",
        "Lost",
        "Returned"
      ],
      "type": "string"
    }
  }
}