Skip to content

Commit

Permalink
chore: support required attribute in variable section (#1636)
Browse files Browse the repository at this point in the history
Because

- we want users to explicitly define which variables are required.

This commit

- adds support for the required attribute in variables.
  • Loading branch information
donch1989 authored Dec 3, 2024
1 parent ec98f18 commit cb00594
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/toolkit/src/view/recipe-editor/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const connectorDefinitionIds = [
"google-sheets",
"perplexity-ai",
"leadiq",
"smartlead"
"smartlead",
];

export const InstillYamlSchema = {
Expand Down Expand Up @@ -105,6 +105,9 @@ export const InstillYamlSchema = {
type: "array",
items: { type: "string" },
},
required: {
type: "boolean",
},
},
additionalProperties: false,
required: ["format"],
Expand Down

0 comments on commit cb00594

Please sign in to comment.