Skip to content

Conversation

yasirfolio3
Copy link
Contributor

@yasirfolio3 yasirfolio3 commented Aug 23, 2022

Summary

  • Adds validation on user attributes to only allow primitive types.
  • Adds unit tests.

Test plan

All tests should pass

ISSUE

OASIS-8551

Copy link
Contributor

@Mat001 Mat001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
The valid types are those that are supported by the data backend, make sure that is aligned.

Copy link

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}

// check if attribute value is valid
func isValidAttribute(value interface{}) bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be in switch case.

Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@msohailhussain msohailhussain changed the title fix(attribute-validation): Adds validation on user attributes to only allow primitive types. OASIS-8551 fix(attribute-validation): Adds validation on user attributes to only allow primitive types. Aug 29, 2022
@msohailhussain msohailhussain merged commit 46be3df into master Aug 29, 2022
@msohailhussain msohailhussain deleted the yasir/fix-attribute-validation branch August 29, 2022 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants