Skip to content

Comments

Use client locale if possible in validation of incoming requests#3815

Merged
bbakerman merged 3 commits intomasterfrom
fix-client-locale
Mar 20, 2025
Merged

Use client locale if possible in validation of incoming requests#3815
bbakerman merged 3 commits intomasterfrom
fix-client-locale

Conversation

@dondonz
Copy link
Member

@dondonz dondonz commented Feb 8, 2025

Fixes #3779 , thanks @replikonio for reporting!

This updates 2 validation rules to use the locale in the validation context. This locale is set as the client's locale (via ExecutionInput) or defaults to the JVM default locale.

One validation rule for incoming requests VariableTypesMatch was already using the client's locale. This updates 2 more rules to use the client's locale as well.

@dondonz dondonz added this to the 23.x breaking changes milestone Feb 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2025

Test Results

  310 files    310 suites   48s ⏱️
3 565 tests 3 559 ✅ 6 💤 0 ❌
3 654 runs  3 648 ✅ 6 💤 0 ❌

Results for commit be802a9.

♻️ This comment has been updated with latest results.

@dondonz
Copy link
Member Author

dondonz commented Feb 27, 2025

Let me add a test before merging in

@bbakerman bbakerman merged commit 18133bf into master Mar 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request locale not respected when validating enumeration

2 participants