{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-baseball-team-schema.json",
  "title": "BaseballTeam",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-baseball-api-openapi.yml#/components/schemas/BaseballTeam",
  "type": "object",
  "properties": {
    "team_id": {
      "type": "string"
    },
    "league": {
      "type": "string",
      "enum": [
        "mlb"
      ]
    },
    "sport": {
      "type": "string",
      "enum": [
        "baseball"
      ]
    },
    "abbreviation": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "nickname": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "conference": {
      "type": "string"
    },
    "division": {
      "type": "string"
    },
    "venue": {
      "$ref": "#/$defs/BaseballVenue"
    },
    "active": {
      "type": "boolean"
    }
  },
  "$defs": {
    "BaseballVenue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-2"
        }
      }
    }
  }
}