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
I created a test project and ran the code exactly as provided. The validation fails. After some debugging, it turns out the exclamation mark does not pass the regular expression, and so fails the validation.
I would recommend you either remove the exclamation mark, or add a note saying that the validation will fail due to the exclamation mark to make this clearer if it was intentional.
Type of issue
Code doesn't work
Description
I created a test project and ran the code exactly as provided. The validation fails. After some debugging, it turns out the exclamation mark does not pass the regular expression, and so fails the validation.
I would recommend you either remove the exclamation mark, or add a note saying that the validation will fail due to the exclamation mark to make this clearer if it was intentional.
"MyCustomSettingsSection": { "SiteTitle": "Amazing docs from awesome people!", "Scale": 10, "VerbosityLevel": 32 },
Page URL
https://learn.microsoft.com/en-us/dotnet/core/extensions/options-validation-generator
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/extensions/options-validation-generator.md
Document Version Independent Id
0775474e-7773-d061-ed21-0a360c8466b1
Article author
@tarekgh
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: