Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate the type of custom attribute from the attribute data type #24

Open
owenr88 opened this issue May 14, 2024 · 0 comments
Open

Validate the type of custom attribute from the attribute data type #24

owenr88 opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@owenr88
Copy link
Owner

owenr88 commented May 14, 2024

          // TODO: We know the data type of the custom attribute, so we should validate against it

this.customAttributes[attr.Name] = attr.AttributeDataType === "String" ? z.string() : z.number();

@owenr88 owenr88 added enhancement New feature or request good first issue Good for newcomers labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant