defender-serverless icon indicating copy to clipboard operation
defender-serverless copied to clipboard

Improve schema for Autotask cron field

Open zeljkoX opened this issue 3 years ago • 0 comments

If possible we should make validation of cron field more stricter.

functions:
  autotask-example-1:
    name: 'Hello world from serverless'
    path: './autotasks/hello-world'
    relayer: ${self:resources.Resources.relayers.relayer-1}
    trigger:
      type: "schedule"
      cron: "4"

This snippet will pass but it will break Defender UI.

I will create addition issue for API validation.

zeljkoX avatar Sep 14 '22 13:09 zeljkoX