Skip to content

Commit

Permalink
fix: missing arg passing to recursion (#1832)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 authored Nov 6, 2024
1 parent 9cc01d5 commit 13f95d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function hasValidationAttributes(
if (
decl.fields.some((field) => {
if (isTypeDef(field.type.reference?.ref)) {
return hasValidationAttributes(field.type.reference?.ref);
return hasValidationAttributes(field.type.reference?.ref, seen);
} else {
return field.attributes.some((attr) => isValidationAttribute(attr));
}
Expand Down

0 comments on commit 13f95d2

Please sign in to comment.