Skip to content

Commit

Permalink
fix otherprops validation, add subproduct validation
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 22, 2024
1 parent 82e02af commit 307fda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/validate-cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ allCards.forEach((card, index) => {
'image',
'imageClass',
'product',
'subproduct',
'locale',
'tags',
'meta',
]);

if (otherProps.length > 0) {
if (Object.keys(otherProps).length > 0) {
console.error(`Card ${card.id} has other props: ${otherProps.join(',')}`);
process.exit(1);
}
Expand Down

0 comments on commit 307fda3

Please sign in to comment.