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

Attribute validation defaults to minimum and maximum defined by type if not defined by attribute. #1481

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

dhchandw
Copy link
Collaborator

@dhchandw dhchandw commented Nov 12, 2024

  • Also got rid of isValidSignedNumberString() since it was redundant code.

ZAPP-1536

* @param {*} isMin
* @returns integer
*/
function getTypeBound(typeSize, isSigned, isMin) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

getTypeRange?

src-electron/validation/validation.js Show resolved Hide resolved
src-electron/validation/validation.js Show resolved Hide resolved
Copy link
Collaborator

@brdandu brdandu left a comment

Choose a reason for hiding this comment

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

Add tests to validate the out of range behavior you fixed.

@dhchandw dhchandw requested a review from brdandu November 13, 2024 20:16
@dhchandw dhchandw merged commit 5289d6c into project-chip:master Nov 13, 2024
13 checks passed
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.

3 participants