Skip to content

Commit c42fd7f

Browse files
committed
adding validations
1 parent 1a1ffdc commit c42fd7f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/lib/constants.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,6 @@ export default {
247247
"id1",
248248
"id2"
249249
]
250-
},
251-
{
252-
"figma_file_token": "token_for_second_figma_file",
253-
"figma_ids": [
254-
"id3",
255-
"id4"
256-
]
257250
}
258251
]
259252
}

src/lib/schemaValidation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const FigmaDesignConfigSchema: JSONSchemaType<FigmaDesignConfig> = {
277277
properties: {
278278
depth: {
279279
type: "integer",
280-
minimum: 1,
280+
minimum: 2,
281281
errorMessage: "Depth must be an integer and greater than 1"
282282
},
283283
figma_config: {

0 commit comments

Comments
 (0)