Skip to content

Commit eeb8e51

Browse files
feat: add support for depth 1 in figma
1 parent 2f3ffe7 commit eeb8e51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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)