aws / serverless-application-model

The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.
https://aws.amazon.com/serverless/sam
Apache License 2.0
9.29k stars 2.37k forks source link

fix: add error message when JwtConfiguration is not a map #3567

Closed aaythapa closed 3 months ago

aaythapa commented 3 months ago

Issue #, if available

Description of changes

Add an error message for when JwtConfiguration property not set to a map. Right now the error message is confusing

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.