You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Api validation failed: mediationRule. Causes: errorSummary: The condition 'userIdentifier' must have 'patterns'.
omitempty on UserIdentifierConditionEvaluatorPattern prevents requests being made with a blank pattern value; if a policy rule is retrieved, it can have a blank value for the pattern. If the policy rule is updated, a valid policy rule with a blank pattern will throw an error trying to update.
Updating userIdentifierPolicyRuleCondition.go to remove omitempty resolves the issue
What is expected to happen?
Expected behavior would be for the policy rule to update successfully even with a blank value for the pattern
What is the actual behavior?
Api validation failed: mediationRule. Causes: errorSummary: The condition 'userIdentifier' must have 'patterns'.
Reproduction Steps?
Update a policy rule via golang SDK that has a blank value for the user identifier patterns
Additional Information?
No response
Golang Version
go version go1.19.2 darwin/amd64
SDK Version
2.17
OS version
Darwin C02G12VPML85 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
Describe the bug?
Api validation failed: mediationRule. Causes: errorSummary: The condition 'userIdentifier' must have 'patterns'.
omitempty on UserIdentifierConditionEvaluatorPattern prevents requests being made with a blank pattern value; if a policy rule is retrieved, it can have a blank value for the pattern. If the policy rule is updated, a valid policy rule with a blank pattern will throw an error trying to update.
Updating userIdentifierPolicyRuleCondition.go to remove omitempty resolves the issue
What is expected to happen?
Expected behavior would be for the policy rule to update successfully even with a blank value for the pattern
What is the actual behavior?
Api validation failed: mediationRule. Causes: errorSummary: The condition 'userIdentifier' must have 'patterns'.
Reproduction Steps?
Update a policy rule via golang SDK that has a blank value for the user identifier patterns
Additional Information?
No response
Golang Version
go version go1.19.2 darwin/amd64
SDK Version
2.17
OS version
Darwin C02G12VPML85 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: