{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.dev/2026-08-25/schemas/common/types/request_constraints.json",
  "title": "Request Constraints",
  "description": "Binds the shared Constraint Expression grammar to data in the next UCP request to the same resource.",
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "A complete RFC 9535 JSONPath query evaluated against the next logical UCP request to the same resource."
    },
    "required": {
      "type": "array",
      "description": "Property names required by the constrained object. Must be non-empty: an empty array applies no constraint.",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "properties": {
      "type": "object",
      "description": "Constraints keyed by property name. Must be non-empty: an empty object applies no constraint.",
      "minProperties": 1,
      "additionalProperties": {
        "oneOf": [
          {
            "$ref": "https://ucp.dev/2026-08-25/schemas/common/types/constraint_expression.json"
          },
          {
            "$ref": "https://ucp.dev/2026-08-25/schemas/common/types/constraint_expression.json#/$defs/value_constraint"
          }
        ]
      }
    },
    "anyOf": {
      "type": "array",
      "description": "Alternative Object Constraints. The constrained object must satisfy at least one. A branch must be non-empty: an empty branch is satisfied by every object and neutralizes the alternation.",
      "minItems": 1,
      "items": {
        "$ref": "https://ucp.dev/2026-08-25/schemas/common/types/constraint_expression.json",
        "minProperties": 1
      }
    }
  },
  "additionalProperties": false
}