{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gunspec-io/json-schema/gunspec-io-timeline-entry-schema.json",
  "title": "TimelineEntry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gunspec-io-firearm-discovery-api-openapi.yml#/components/schemas/TimelineEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "URL-safe slug identifying the firearm, e.g. `glock-g17-gen5`."
    },
    "name": {
      "type": "string",
      "description": "Display name, as the maker writes it."
    },
    "manufacturerId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Slug of the manufacturer that makes it. Resolve against `/v1/manufacturers/{id}`."
    },
    "categoryId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Slug of the category it belongs to. Resolve against `/v1/categories`."
    },
    "yearIntroduced": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Year it entered production or service. Null where the date is disputed or unknown."
    },
    "yearDiscontinued": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Year production ended, or null while it is still made."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "Production status, one of `in_production`, `discontinued`, `out_of_production`, `in_service`, `limited_production`, `prototype`. Discontinued records are kept deliberately: a rifle built in 2004 wears parts nobody sells today."
    },
    "countryOfOrigin": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 3166-1 alpha-2 code of where it was designed, e.g. `AT`."
    }
  },
  "required": [
    "id",
    "name"
  ]
}