eabglobal / juniper

Juniper is a cli based tool used to package lambda functions
Apache License 2.0
67 stars 9 forks source link

Requirements definition should be optional #19

Closed pdiazvargas closed 5 years ago

pdiazvargas commented 5 years ago

Actual

If the requirements field is not defined in the manifest, when I execute juni build the process is failing with the following exeption: KeyError: 'requirements'

This is the sample definition

functions:
  sns-to-slack:
    include:
      - ./src/sns-to-slack

Expected

If the function does not define a requirements file, juni build should not fail. However, then the field is defined, the validation of the file's existence should be executed