Skip to content

Commit 5b1adf7

Browse files
committed
feat add constraints to schema
1 parent 1159b2b commit 5b1adf7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/schema/Challenge.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ export const ChallengeSchema: Schema = {
153153
totalPrizesInCents: { type: DataType.DATA_TYPE_NUMBER, format: "integer" },
154154
},
155155
},
156+
constraints: {
157+
type: DataType.DATA_TYPE_MAP,
158+
itemType: DataType.DATA_TYPE_MAP,
159+
items: {
160+
allowedRegistrants: { type: DataType.DATA_TYPE_LIST, itemType: DataType.DATA_TYPE_STRING },
161+
},
162+
},
156163
},
157164
indices: {
158165
legacyId: {

0 commit comments

Comments
 (0)