ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
96 stars 76 forks source link

Attribute type validator #454

Closed aestoltm closed 1 year ago

aestoltm commented 1 year ago

Fixes #451 : Provided a validation tool for attribute types. The validation tool can be expanded to accommodate more data types as necessary. Instead of having to write custom validation of attribute types, now you can create an AttributeValidator class and use the provided methods for validating attribute types. This structure will help adhere to DRY principle of software development.

Tested implementation by:

aebruno commented 1 year ago

Some of this code exists in #466 which will be merged first.