What is the recommended, DRY way to use a contract along with a context?
For example let’s consider a model
Device. Each Device can be a
phone or a
I would like to validate the types differently but they would all share validation as
For example for all types I would like to validate
screen_size, but only for a
pc I would like to validate a
I would like to share (inherit?)
rules as well.