{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-status-create-schema.json",
  "title": "AssetStatusCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-asset-statuses-api-openapi.yml#/components/schemas/AssetStatusCreate",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "module": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "facilities",
        "infrastructure",
        null
      ],
      "description": "Workspace it is offered in. Null or omitted = shared by both."
    },
    "color": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "green",
        "blue",
        "amber",
        "red",
        null
      ],
      "description": "Badge color in the app. Null renders blue."
    }
  }
}