{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-allowance-answer-schema.json",
  "title": "AllowanceAnswer",
  "description": "The allowance answer: the counts, no vehicle list.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wenmarpro-com-labor-openapi.json#/components/schemas/AllowanceAnswer",
  "properties": {
    "limit": {
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "period": {
      "description": "`day` or `year`; empty from an older Wenmar: read as `year` (Wenmar W6).",
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "resets_at": {
      "description": "The RFC 3339 instant the allowance resets (Wenmar W6).",
      "type": [
        "string",
        "null"
      ]
    },
    "unlimited": {
      "type": "boolean"
    },
    "used": {
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "limit",
    "used",
    "unlimited",
    "reason",
    "period"
  ],
  "type": "object"
}