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

Can't add integers in Publishing information #120

Open
armonge opened this issue Nov 6, 2019 · 0 comments
Open

Can't add integers in Publishing information #120

armonge opened this issue Nov 6, 2019 · 0 comments
Assignees

Comments

@armonge
Copy link
Contributor

armonge commented Nov 6, 2019

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"
    }
  ]
}
@rmberrios rmberrios self-assigned this Mar 31, 2020
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

2 participants