Skip to content

SAM validate crashes on improperly formatted function Events #915

@xrendan

Description

@xrendan

Description:

sam validate crashes on invalid template,

SAM CLI, version 0.15.0
Windows 10

Steps to reproduce the issue:

  1. Use the following template file (sorry for .txt extension, github insists on it)
    crash-template.yaml.txt

  2. run sam validate -t crash-template.yaml.txt

  3. Watch as SAM crashes and burns (see debug output)
    debug.txt

Observed result:
Sam validate crashes with TypeError: Resource dict has missing or invalid value for key Type. Resource Dict is: None
Expected result:
Error Validating, not crashing of the valiadate method

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions