Repository navigation
Use config key names in API Center validation errors - #1979
Merged
waldekmastykarz merged 1 commit intoOct 26, 2026
Merged
waldekmastykarz merged 1 commit into
waldekmastykarz merged 1 commit into
Conversation
Error messages now reference camelCase config keys (subscriptionId, resourceGroupName, serviceName, workspaceName) instead of PascalCase property names. Closes dotnet#1969 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2bc25ec3-3ffb-4816-84ef-3f33c88a2c57
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused changes match the requirements and include targeted regression coverage; tests were not executed.
No open issues 🎉
What changed in this PR
Aligns API Center validation errors with camelCase configuration keys, addressing #1969.
Changes:
- Updates all four validation messages to use config key names.
- Adds parameterized regression tests for each message.
| File | Description |
|---|---|
| DevProxy.Plugins/ApiCenter/ApiCenterClient.cs | Corrects configuration key names in validation errors. |
| DevProxy.Integration.Tests/ApiCenterClientTests.cs | Tests all four validation messages. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Center validation errors referenced PascalCase property names (e.g.
SubscriptionId) while the config keys are camelCase. Messages now usesubscriptionId,resourceGroupName,serviceName, andworkspaceName.Adds tests covering each validation message.
Closes #1969