{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": ["session", "exercise"]
    },
    "target_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mass_unit": {
      "type": "string",
      "enum": ["kg", "lb"]
    }
  },
  "required": ["scope", "target_id", "mass_unit"],
  "additionalProperties": false,
  "$id": "https://docs.sendtopigeon.com/schemas/wn-entry-unit@1.schema.json",
  "title": "Pigeon Open Data: wn-entry-unit@1",
  "$comment": "Apache-2.0. Structural schema; use Zod/parseRecord for semantic invariants. This published schema URL is immutable.",
  "examples": [
    {
      "scope": "session",
      "target_id": "0194ab00-0000-7000-8000-000000000001",
      "mass_unit": "kg"
    }
  ]
}
