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
Any validation support? #137
Comments
Hi @vasib, thanks for the question, that raises a good point. All depends at which level you consider the validation. Currently, the However, there is currently no out-of-the-box support for a custom validation in the sense of "validating my model regarding my domain". So, if you want to validate your model depending on some extra rules, then you need to write the validator yourself (e.g: this property on this instance of In the past, I started to write something that was suppose to be generic enough to fit various validation scenarios, but at the end, I wasn't convinced by the API it provided and the way to write rules. |
What do you think would be a better design? |
Sorry for the late answer... That would be a solution, but it needs to be studied in detail. From memory, the early design from the gist I put in the previous message is going towards this idea, to have something that is close from the EMF implementation without being exactly this. One way to gain a little bit in fluidity would be to introduce a |
Does pyecore have any support for standard/custom validation?
I saw something about BadValueError runtime checking, but do basic EObject things like multiplicities have validation support?
The text was updated successfully, but these errors were encountered: