Skip to content

Conversation

aahung
Copy link
Contributor

@aahung aahung commented Nov 29, 2021

Issue #, if available:

Description of changes:

Description of how you validated changes:

Checklist:

  • Add/update tests using:
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected

Examples?

Please reach out in the comments, if you want to add an example. Examples will be
added to sam init through https://github.com/awslabs/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.

@aahung aahung requested a review from torresxb1 November 29, 2021 20:41
@aahung aahung merged commit c8057b0 into aws:develop Nov 29, 2021
Comment on lines +548 to +551
method_definition,
'Value of "{}" ({}) for path {} is not a valid dictionary.'.format(
method_name, method_definition, path
),
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the best way we can avoid having duplicate error messages (like this and the one couple lines above)? To handle this with path items, I created validate_path_item_is_dict, but I'm not sure if there's a better way of handling this (maybe a constant for the string, or a function to get the formatted string, or is it good as is?).

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.

4 participants