Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve schema for Autotask cron field #18

Open
zeljkoX opened this issue Sep 14, 2022 · 0 comments
Open

Improve schema for Autotask cron field #18

zeljkoX opened this issue Sep 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@zeljkoX
Copy link
Contributor

zeljkoX commented Sep 14, 2022

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 zeljkoX added the enhancement New feature or request label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant