Skip to content
New issue

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

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

Already on GitHub? # to your account

Validate label size #7

Open
kamilturek opened this issue Aug 27, 2022 · 0 comments
Open

Validate label size #7

kamilturek opened this issue Aug 27, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kamilturek
Copy link
Owner

As per Labelary docs, the maximum label size is 15 x 15 inches.

Maximum label size of 15 x 15 inches. Larger labels result in a HTTP 400 (Bad Request) error.

Validation can be added to these functions.

go-zpl/zpl.go

Lines 109 to 123 in ff042c3

func WithWidth(width int) option {
return func(c *converter) error {
c.width = width
return nil
}
}
func WithHeight(height int) option {
return func(c *converter) error {
c.height = height
return nil
}
}

@kamilturek kamilturek added enhancement New feature or request good first issue Good for newcomers labels Aug 27, 2022
# for free to join this conversation on GitHub. Already have an account? # 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