Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React to localization workaround removal for data annotations attributes #12333

Merged
merged 3 commits into from Sep 8, 2022

Conversation

hishamco
Copy link
Member

@hishamco hishamco commented Sep 4, 2022

Related to #11130

@hishamco
Copy link
Member Author

hishamco commented Sep 4, 2022

There is RegisterExternalLoginViewModel that needs to follow the others, but some extra properties that need to think properly

Also there are AutoSetupOptions and SmtpSettings that might need to rid-off IValidatableObject if it's possible


namespace OrchardCore.Email.ViewModels
{
public class SmtpSettingsViewModel : IValidatableObject
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikeAlhayek this the proper way to handle the data attributes validation after localizations support

@hishamco
Copy link
Member Author

hishamco commented Sep 4, 2022

Oops the build is failed, seems we need to validate the model by call post

@sebastienros sebastienros merged commit 793526b into main Sep 8, 2022
@sebastienros sebastienros deleted the hishamco/remove-ivalidatable-object branch September 8, 2022 18:17
@hishamco hishamco added this to the 1.5 milestone Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants