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: Useful error message when "Properties" key is missing in embedded connectors #2966

Merged
merged 8 commits into from
Feb 28, 2023

Conversation

aaythapa
Copy link
Contributor

Issue #, if available

Description of changes

Right now if the user forgets the Properties key when they're making an embedded connector the error message will be "Source is missing".

Added a validation check to make sure Properties is present and is a dict. Error message will tell them that Properties should be a dict.

Description of how you validated changes

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

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

@aaythapa aaythapa marked this pull request as ready for review February 27, 2023 21:38
@aaythapa aaythapa requested a review from a team as a code owner February 27, 2023 21:38
@aaythapa aaythapa requested a review from aahung February 28, 2023 00:10
@aaythapa aaythapa requested a review from aahung February 28, 2023 00:24
Copy link
Contributor

@aahung aahung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx! The error message is much helpful now

samtranslator/translator/translator.py Outdated Show resolved Hide resolved
samtranslator/translator/translator.py Outdated Show resolved Hide resolved
@aaythapa aaythapa enabled auto-merge (squash) February 28, 2023 01:06
@aaythapa aaythapa merged commit be0ddc2 into aws:develop Feb 28, 2023
GavinZZ pushed a commit to GavinZZ/serverless-application-model that referenced this pull request Mar 2, 2023
@aaythapa aaythapa deleted the embedded-connectors-err-fix branch March 13, 2023 22:34
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.

3 participants