Moved valid_attributes to the spec.