Skip to content

Add label size validation for Labelary API limits - #8

Open
thorakna wants to merge 1 commit into
kamilturek:masterfrom
thorakna:master
Open

Add label size validation for Labelary API limits#8
thorakna wants to merge 1 commit into
kamilturek:masterfrom
thorakna:master

Conversation

@thorakna

Copy link
Copy Markdown
  • Add MaxLabelSizeInches constant (15 inches max)
  • Add ErrInvalidWidth and ErrInvalidHeight error variables
  • Validate width/height in WithWidth() and WithHeight() functions
  • Add unit tests for dimension validation
  • Prevents HTTP 400 errors from exceeding Labelary's 15x15 inch limit

- Add MaxLabelSizeInches constant (15 inches max)
- Add ErrInvalidWidth and ErrInvalidHeight error variables
- Validate width/height in WithWidth() and WithHeight() functions
- Add unit tests for dimension validation
- Prevents HTTP 400 errors from exceeding Labelary's 15x15 inch limit
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.

1 participant