Valid values for attributes: is there a list or a way to look them up?

Thank you. It might be useful to implement the input checks via a function that returns all valid options for a given attribute. Users could then call that function to see the options available.