Skip to content

Commit

Permalink
fix: fix console wrongly warn field not supporting multiple references (
Browse files Browse the repository at this point in the history
#948)

Because

- console wrongly warn field not supporting multiple references (We
don't support this before, but since we change our reference syntax and
support auto converting the reference to target type right now, so we
support multiple references out of the box)

This commit

- fix console wrongly warn field not supporting multiple references
  • Loading branch information
EiffelFly committed Feb 12, 2024
1 parent 1f9780b commit 3c029e4
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,6 @@ export function transformInstillJSONSchemaToZod({
});
}

if (references.length > 1 && !acceptTemplate) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: "This field only accepts single reference",
});
}

if (
references.length === 0 &&
instillUpstreamValue &&
Expand Down

0 comments on commit 3c029e4

Please sign in to comment.