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

deploy-serverless breaks Swagger definitions in yaml #11

Merged
merged 2 commits into from
May 29, 2018

Conversation

wmmagee
Copy link
Contributor

@wmmagee wmmagee commented May 4, 2018

Issue #, if available:
aws/aws-lambda-dotnet#265

deploy-serverless breaks Swagger definitions in yaml

Description of changes:
Changed LambdaUtilities.UpdateCodeLocationInYamlTemplate
Deserializing the file into a dynamic object, updating the object, and then reserializing the object had unintended side effects that broke when there were swagger definitions and some intrinsic functions

Instead this code parses the file, removes any existing definitions of the code location, and then adds the location defined by the parameters passed into the function.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@normj
Copy link
Member

normj commented May 7, 2018

Thanks for the pull request. I have merged the pull request in the dev branch. I'll get it included with the next release.

@normj normj merged commit 7b95d96 into aws:master May 29, 2018
@normj
Copy link
Member

normj commented May 29, 2018

Version 2.1.4 was released with this pull request. Thanks!

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.

None yet

2 participants