{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-rest-wif-service-user-mapping-form-schema.json",
  "title": "RestWifServiceUserMappingForm",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-workload-identity-federation-api-openapi.yml#/components/schemas/RestWifServiceUserMappingForm",
  "type": "object",
  "properties": {
    "serviceUserUuid": {
      "type": "string"
    },
    "environmentId": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "claimMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RestWifClaimMappingForm"
      }
    }
  },
  "required": [
    "serviceUserUuid",
    "environmentId",
    "scopes",
    "claimMappings"
  ],
  "$defs": {
    "RestWifClaimMappingForm": {
      "type": "object",
      "properties": {
        "claimName": {
          "type": "string"
        },
        "claimValue": {
          "type": "string"
        },
        "matchType": {
          "type": "string",
          "enum": [
            "EXACT",
            "GLOB"
          ]
        }
      },
      "required": [
        "claimName",
        "claimValue",
        "matchType"
      ]
    }
  }
}