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

Color values are invalid #8

Open
jaw0r3k opened this issue Aug 3, 2023 · 2 comments
Open

Color values are invalid #8

jaw0r3k opened this issue Aug 3, 2023 · 2 comments

Comments

@jaw0r3k
Copy link

jaw0r3k commented Aug 3, 2023

"accent_color": {
"type": [
"integer",
"null"
],
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
},

As we know colors can be from 0 to #FFFFFF
So definetly not the whole int32

The same with other properties like position which cant be negative

Code

"position": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647,
"format": "int32"
}

@mbialecka
Copy link
Contributor

This just means the value fits within int32 type, which is valid. I understand it may look weird for a couple of specific fields, but we didn't want to narrow down response field types too much in general. Over time we may decide to add more specialized response field types.

@SlySven
Copy link

SlySven commented Aug 6, 2023

What about colours with an alpha (transparency) component? You'd need those unused 16 bits then! 😜

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

No branches or pull requests

3 participants