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

Input is required when validator is present, despite require: false #4062

Closed
Tracked by #4656
japerry911 opened this issue Jun 17, 2024 · 3 comments
Closed
Tracked by #4656
Assignees
Labels
bug Something isn't working kind/customer-request Requested by one or more customers

Comments

@japerry911
Copy link

Describe the issue

Input is required when validator is present, despite require: false

  • *This occurs in Kestra Cloud
  - id: start_date
    type: STRING
    required: false
    validator: ^\d{4}-\d{2}-\d{2}$
    description: The start date to fetch data from Google Ads.

Error Message from UI:

Screenshot 2024-06-17 at 7 04 15 AM

Environment

  • Kestra Version: 0.17.3
  • Operating System (OS/Docker/Kubernetes): Cloud
  • Java Version (if you don't run kestra in Docker): n/a
@japerry911 japerry911 added the bug Something isn't working label Jun 17, 2024
@anna-geller anna-geller added the kind/customer-request Requested by one or more customers label Aug 14, 2024
@loicmathieu loicmathieu self-assigned this Aug 21, 2024
@loicmathieu
Copy link
Member

Just tested it with the following flow and it works:

id: input-required
namespace: company.team

inputs:
  - id: start_date
    type: STRING
    required: false
    validator: ^\d{4}-\d{2}-\d{2}$
    description: The start date to fetch data from Google Ads.

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Hello World! 🚀

The issue should have been fixed in 0.18 by another change.
Can you please test again and confirm it's fixed?

@japerry911
Copy link
Author

Works great, thank you 🙏

@loicmathieu
Copy link
Member

Fixed in 0.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kind/customer-request Requested by one or more customers
Projects
Status: Done
Development

No branches or pull requests

3 participants