{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-patch-request-schema.json",
  "title": "PatchRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-computers-api-openapi.yml#/components/schemas/PatchRequest",
  "type": "array",
  "items": {
    "oneOf": [
      {
        "$ref": "#/$defs/JSONPatchRequestAddReplace"
      }
    ]
  },
  "$defs": {
    "JSONPatchRequestAddReplace": {
      "type": "object",
      "properties": {
        "path": {
          "description": "A JSON Pointer path.",
          "type": "string"
        },
        "value": {
          "description": "The value to add, replace, or test."
        },
        "op": {
          "description": "The operation to perform.",
          "x-enumDescriptions": {
            "add": "Adds a value to an object or inserts it into an array.",
            "replace": "Replaces a value.",
            "test": "Tests that the specified value is set in the document."
          },
          "type": "string",
          "enum": [
            "add",
            "replace",
            "test"
          ]
        }
      },
      "required": [
        "value",
        "op",
        "path"
      ]
    }
  }
}