Add unit validations for Inputs using a Unit model.
- Change the unit field of the input from a string to a model
- For now the unit will have only one string attribute that will be validated by a constant list of all supported unit types. We do not care for conversions for now.
- The
Unit should have a to_s or to_string method that will return the unit in human readable string format (check conventions in Python)
Add unit validations for Inputs using a
Unitmodel.Unitshould have ato_sorto_stringmethod that will return the unit in human readable string format (check conventions in Python)