Skip to content

Commit 1578b44

Browse files
authored
Merge pull request #310 from parthlambdatest/Dot-5888
[Dot-5888] feat: add support for depth 1 in figma
2 parents 40695a1 + b17516b commit 1578b44

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.17",
3+
"version": "4.1.18",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

src/lib/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export default {
360360

361361
FIGMA_API: 'https://api.figma.com/v1/',
362362
DEFAULT_FIGMA_CONFIG: {
363-
"depth": 2,
363+
"depth": 1,
364364
"figma_config": [
365365
{
366366
"figma_file_token": "token_for_first_figma_file",
@@ -381,7 +381,7 @@ export default {
381381
]
382382
},
383383
figma: {
384-
"depth": 2,
384+
"depth": 1,
385385
"configs": [
386386
{
387387
"figma_file_token": "<token>",
@@ -408,7 +408,7 @@ export default {
408408
}
409409
],
410410
figma: {
411-
"depth": 2,
411+
"depth": 1,
412412
"configs": [
413413
{
414414
"figma_file_token": "<token>",

src/lib/schemaValidation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ const FigmaDesignConfigSchema: JSONSchemaType<FigmaDesignConfig> = {
508508
properties: {
509509
depth: {
510510
type: "integer",
511-
minimum: 2,
512-
errorMessage: "Depth must be an integer and greater than 1"
511+
minimum: 1,
512+
errorMessage: "Depth must be an integer and greater than 0"
513513
},
514514
figma_config: {
515515
type: "array",
@@ -582,8 +582,8 @@ const FigmaWebConfigSchema: JSONSchemaType<Object> = {
582582
"properties": {
583583
depth: {
584584
type: "integer",
585-
minimum: 2,
586-
errorMessage: "Depth must be an integer and greater than 1"
585+
minimum: 1,
586+
errorMessage: "Depth must be an integer and greater than 0"
587587
},
588588
"configs": {
589589
"type": "array",
@@ -698,8 +698,8 @@ const FigmaAppConfigSchema: JSONSchemaType<Object> = {
698698
"properties": {
699699
depth: {
700700
type: "integer",
701-
minimum: 2,
702-
errorMessage: "Depth must be an integer and greater than 1"
701+
minimum: 1,
702+
errorMessage: "Depth must be an integer and greater than 0"
703703
},
704704
"configs": {
705705
"type": "array",

0 commit comments

Comments
 (0)