Skip to content

Commit 45d6a88

Browse files
committed
removes error messaging with the invalid _|_ syntax
1 parent b8b1569 commit 45d6a88

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

data-raw/excelguide_schema.cue

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
"translations": [...#Translation]
1515

1616
// Version constraint: must be in major.minor format (e.g., "1.0", "2.3")
17-
#Version: string
18-
#Version: =~"^\\d+\\.\\d+$" | _|_("Version must be in major.minor format (e.g., '1.0' or '2.3')")
17+
#Version: =~"^\\d+\\.\\d+$"
1918

20-
// Valid plate formats for laboratory experiments
21-
#Plateformat: 24 | 48 | 96 | 384 | _|_("Plate format must be one of: 24, 48, 96, or 384")
19+
// Valid plate formats for laboratory experiments (must be one of: 24, 48, 96, or 384)
20+
#Plateformat: 24 | 48 | 96 | 384
2221

2322
// Common fields shared by all location types
2423
#AnyLocation: {
@@ -31,6 +30,9 @@
3130
// Whether to apply translations to extracted values (default: false)
3231
"translate"?: bool | *false
3332

33+
// Optional atomic class specification for type coercion
34+
"atomicclass"?: #Atom | [...#Atom] | *"character"
35+
3436
// Allow additional fields for specific location types
3537
...
3638
}
@@ -42,9 +44,6 @@
4244

4345
// List of variables to extract, each with a name and cell reference
4446
"variables"!: [...#Variable]
45-
46-
// Optional atomic class specification for type coercion
47-
"atomicclass"?: #Atom | [...#Atom] | *"character"
4847
}
4948

5049
// Range-based location: extracts data from rectangular ranges
@@ -57,9 +56,6 @@
5756

5857
// List of cell ranges to extract (e.g., "A1:B10")
5958
"ranges"!: [...#Range]
60-
61-
// Optional atomic class specification for type coercion
62-
"atomicclass"?: #Atom | [...#Atom] | *"character"
6359
}
6460

6561
// A location can be either cell-based or range-based
@@ -83,17 +79,16 @@
8379
"long"!: string
8480
}
8581

86-
// Atomic data types for type coercion
87-
#Atom: "character" | "date" | "numeric" | _|_("Atomic class must be one of: 'character', 'date', or 'numeric'")
82+
// Atomic data types for type coercion (must be one of: 'character', 'date', or 'numeric')
83+
#Atom: "character" | "date" | "numeric"
8884

8985
// Valid spreadsheet range format (e.g., "A1:B10", "C5:Z20")
90-
#Range: string
91-
#Range: =~"^[A-Z]+\\d+:[A-Z]+\\d+$" | _|_("Range must be in format 'A1:B10' (uppercase letters followed by numbers)")
86+
// Must be uppercase letters followed by numbers, colon, then uppercase letters followed by numbers
87+
#Range: =~"^[A-Z]+\\d+:[A-Z]+\\d+$"
9288

9389
// Valid spreadsheet cell reference (e.g., "A1", "B23", "Z99")
94-
#Cell: string
95-
#Cell: =~"^[A-Z]+\\d+$" | _|_("Cell reference must be in format 'A1' (uppercase letters followed by numbers)")
90+
// Must be uppercase letters followed by numbers
91+
#Cell: =~"^[A-Z]+\\d+$"
9692

9793
// Variable names cannot contain whitespace characters
98-
#VariableName: string
99-
#VariableName: =~"[^\\s]" | _|_("Variable names cannot contain whitespace characters")
94+
#VariableName: =~"[^\\s]"

0 commit comments

Comments
 (0)