{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/axway/main/json-schema/axway-user-teams-schema.json",
  "title": "UserTeams",
  "description": "List of teams the user belongs to.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axway-auth-api-openapi.yml#/components/schemas/UserTeams",
  "type": "array",
  "items": {
    "type": "object",
    "description": "Teams a user belongs to.",
    "properties": {
      "default": {
        "$ref": "#/$defs/default"
      },
      "guid": {
        "$ref": "#/$defs/guid"
      },
      "name": {
        "$ref": "#/$defs/name"
      },
      "roles": {
        "type": "array",
        "description": "A list of roles the user has in the team",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/id"
            },
            "name": {
              "$ref": "#/$defs/name"
            }
          }
        }
      },
      "tags": {
        "$ref": "#/$defs/tags"
      }
    }
  }
}