{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gunspec-io/json-schema/gunspec-io-game-profile-schema.json",
  "title": "GameProfile",
  "description": "Game stats for a firearm plus its derived archetype classification.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gunspec-io-firearm-analysis-api-openapi.yml#/components/schemas/GameProfile",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Slug of the firearm this profile is for."
    },
    "name": {
      "type": "string",
      "description": "Display name, as the maker writes it."
    },
    "gameDamage": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. **Not a measured figure.** These are balance numbers for game use and are not derived from the ballistics above."
    },
    "gameAccuracy": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameRange": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameFireRate": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameMobility": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameRecoilControl": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameReloadSpeed": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "gameConcealment": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Editorial game statistic, 0-100. Not a measured figure."
    },
    "archetype": {
      "$ref": "#/$defs/GameArchetype"
    },
    "strengths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The statistics this firearm scores highest on."
    },
    "weaknesses": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The statistics it scores lowest on."
    }
  },
  "required": [
    "id",
    "name",
    "archetype"
  ],
  "$defs": {
    "GameArchetype": {
      "type": "string",
      "enum": [
        "sniper",
        "assault",
        "tank",
        "glass-cannon",
        "all-rounder",
        "support",
        "stealth",
        "speedster"
      ],
      "description": "The role a firearm's game profile assigns it."
    }
  }
}