Skip to content

Commit 4b5da28

Browse files
committed
validation check
1 parent c1ef20c commit 4b5da28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib/schemaValidation.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
395395
uniqueItems: true,
396396
errorMessage: "Invalid snapshot options; ignoreDOM xpath array must have unique and non-empty items"
397397
},
398+
coordinates: {
399+
type: "array",
400+
items: { type: "string", minLength: 1 },
401+
uniqueItems: true,
402+
errorMessage: "Invalid snapshot options; ignoreDOM coordinates array must have unique and non-empty items"
403+
}
398404
}
399405
},
400406
selectDOM: {
@@ -424,6 +430,12 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
424430
uniqueItems: true,
425431
errorMessage: "Invalid snapshot options; selectDOM xpath array must have unique and non-empty items"
426432
},
433+
coordinates: {
434+
type: "array",
435+
items: { type: "string", minLength: 1 },
436+
uniqueItems: true,
437+
errorMessage: "Invalid snapshot options; selectDOM coordinates array must have unique and non-empty items"
438+
}
427439
}
428440
},
429441
ignoreType: {

0 commit comments

Comments
 (0)