{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-basketball-team-schema.json",
  "title": "BasketballTeam",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-basketball-api-openapi.yml#/components/schemas/BasketballTeam",
  "type": "object",
  "properties": {
    "team_id": {
      "type": "string"
    },
    "league": {
      "type": "string",
      "enum": [
        "nba",
        "wnba"
      ]
    },
    "sport": {
      "type": "string",
      "enum": [
        "basketball"
      ]
    },
    "abbreviation": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "school": {
      "type": "string",
      "description": "College: the school name, e.g. Duke."
    },
    "state": {
      "type": [
        "string",
        "null"
      ],
      "description": "College: state of the home venue."
    },
    "nickname": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "conference": {
      "type": "string"
    },
    "division": {
      "type": "string"
    },
    "venue": {
      "$ref": "#/$defs/BasketballVenue"
    },
    "active": {
      "type": "boolean"
    }
  },
  "$defs": {
    "BasketballVenue": {
      "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"
        }
      }
    }
  }
}