{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-create-workload-identity-binding-request-schema.json",
  "title": "create-workload-identity-binding-request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-service-accounts-api-openapi.yml#/components/schemas/create-workload-identity-binding-request",
  "required": [
    "provider_name",
    "subject"
  ],
  "type": "object",
  "properties": {
    "provider_name": {
      "maxLength": 63,
      "type": "string",
      "description": "The name of the workload identity provider to trust the subject of. The provider must exist."
    },
    "subject": {
      "maxLength": 512,
      "pattern": "^[^*]+(?:[:/]\\*)?$",
      "type": "string",
      "description": "The `sub` claim to match. A trailing `*` makes it a prefix match, whose prefix must not be empty and must end with `:` or `/`."
    },
    "condition": {
      "maxLength": 2048,
      "type": "string",
      "description": "An optional CEL expression over the token's claims that must evaluate to `true`. The claims are available as the `claims` map, for example `claims.ref == \"refs/heads/main\"`. Use it when the subject alone cannot express the rule."
    }
  }
}