{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-test-case-schema.json",
  "title": "TestCase",
  "description": "A test case within a test suite",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-test-cases-api-openapi.yml#/components/schemas/TestCase",
  "type": "object",
  "properties": {
    "testCase": {
      "type": "object",
      "description": "The work item representing this test case",
      "properties": {
        "id": {
          "type": "string",
          "description": "Work item ID (as string)"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "workItemFields": {
          "type": "array",
          "description": "Work item fields (if requested via witFields parameter)",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      }
    },
    "pointAssignments": {
      "type": "array",
      "description": "Configuration and tester assignments for this test case",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Test point ID"
          },
          "configuration": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "tester": {
            "$ref": "#/$defs/IdentityRef"
          }
        }
      }
    },
    "order": {
      "type": "integer",
      "description": "Display order within the suite"
    },
    "links": {
      "type": "object",
      "description": "HAL links for this test case",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  },
  "$defs": {
    "IdentityRef": {
      "type": "object",
      "description": "Reference to an Azure DevOps user identity",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "displayName": {
          "type": "string"
        },
        "uniqueName": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri"
        },
        "descriptor": {
          "type": "string"
        }
      }
    }
  }
}