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

respect data annotations #53

Open
dzmitry-lahoda opened this issue Jan 23, 2022 · 2 comments
Open

respect data annotations #53

dzmitry-lahoda opened this issue Jan 23, 2022 · 2 comments

Comments

@dzmitry-lahoda
Copy link

dzmitry-lahoda commented Jan 23, 2022

[ValueObject(typeof(int))]
[System.ComponentModel.DataAnnotations.Range(2,100, Error = "Generate validator from this. Hm. Even compile time validator for well know annotations"]
public partial struct CustomerId {
}
@dzmitry-lahoda dzmitry-lahoda changed the title respet data annotations respect data annotations Jan 23, 2022
@Herdo
Copy link
Contributor

Herdo commented Aug 29, 2022

From the existing attributes, these might be relevant (ordered descending by usefulness, IMO):

@dzmitry-lahoda
Copy link
Author

at least one example can be handy to provide patches for others:) Range is good target.

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

No branches or pull requests

2 participants