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

fix: parse to correct data type for nested body parameter #122

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

kakhaUrigashvili
Copy link
Contributor

@kakhaUrigashvili kakhaUrigashvili commented Apr 14, 2020

The following commands were failing.

ask smapi create-content-upload -c amzn1.ask-catalog.cat.c98f84ac-6730-4043-8fa7-19c93447f214 --number-of-upload-parts 1
ask smapi generate-catalog-upload-url -c amzn1.ask-catalog.cat.c98f84ac-6730-4043-8fa7-19c93447f214 --number-of-upload-parts 1

with error: class java.lang.String can not be converted to an Integer

--number-of-upload-parts had to be converted to number before sending to smapi.

this command was failing

ask smapi generate-credentials-for-alexa-hosted-skill -s amzn1.ask.skill.e9ac9d7f-5c4f-4c3b-8e41-1b347f625d95 --repository-url https://git-codecommit.us-east-1.amazonaws.com/v1/repos/e9ac9d7f-5c4f-4c3b-8e41-1b347f625d95 --repository-type GIT

url and type were overwriting each other instead of merging to the same object.

this PR fixes this issues.

@RonWang
Copy link
Contributor

RonWang commented Apr 15, 2020

Overall looks good to me~

@kakhaUrigashvili
Copy link
Contributor Author

Overall looks good to me~

Removed skip test. Merging once the Travis test passes.

@kakhaUrigashvili kakhaUrigashvili merged commit 6998837 into develop Apr 15, 2020
@kakhaUrigashvili kakhaUrigashvili deleted the smapi-number-parsing-fix branch April 15, 2020 15:26
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.

2 participants