Can't add integers in Publishing information
armonge opened this issue · 0 comments
armonge commented
While trying to use the voxa cli to generate an alexa publishing information json i realized that it's not possible to use numbers cause they always become strings in the generated json
Example:
value | key |
---|---|
HUB | alexa.apis.custom.interfaces[0].supportedViewports[0].mode |
ROUND | alexa.apis.custom.interfaces[0].supportedViewports[0].shape |
480 | alexa.apis.custom.interfaces[0].supportedViewports[0].minWidth |
480 | alexa.apis.custom.interfaces[0].supportedViewports[0].maxWidth |
480 | alexa.apis.custom.interfaces[0].supportedViewports[0].minHeight |
480 | alexa.apis.custom.interfaces[0].supportedViewports[0].maxHeight |
Expected:
{
"supportedViewports": [
{
"mode": "HUB",
"shape": "ROUND",
"minWidth": 480,
"maxWidth": 480,
"minHeight": 480,
"maxHeight": 480
}
]
}
Actual:
{
"supportedViewports": [
{
"mode": "HUB",
"shape": "ROUND",
"minWidth": "480",
"maxWidth": "480",
"minHeight": "480",
"maxHeight": "480"
}
]
}