Skip to content

Commit

Permalink
disable client-side cron schedule validation (airbytehq#16784)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfsiega-airbyte authored Sep 15, 2022
1 parent 44edaf5 commit e198311
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
} from "core/request/AirbyteClient";
import { ValuesProps } from "hooks/services/useConnectionHook";
import { useCurrentWorkspace } from "services/workspaces/WorkspacesService";
import { isValidCron } from "utils/cron";

import calculateInitialCatalog from "./calculateInitialCatalog";
import { ConnectionOrPartialConnection } from "./ConnectionForm";
Expand Down Expand Up @@ -104,7 +103,7 @@ export const connectionValidationSchema = yup
name: "cronExpression",
message: "Incorrect cron string",
test(value) {
if (value && isValidCron(value, { seconds: true, allowBlankDay: true })) {
if (value) {
return true;
}

Expand Down

0 comments on commit e198311

Please sign in to comment.