@altopelago/sansa 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,80 @@
1
+ {
2
+ "implementation": "@altopelago/sansa",
3
+ "version": "0.9.0",
4
+ "profiles": [
5
+ "value-semantics-minimum-consumer",
6
+ "addressing",
7
+ "resolve",
8
+ "query"
9
+ ],
10
+ "capabilities": [
11
+ "AEON.ValueSemantics",
12
+ "SANSA.Addressing",
13
+ "SANSA.Resolve",
14
+ "SANSA.Query",
15
+ "SANSA.Transform"
16
+ ],
17
+ "core": {
18
+ "valueSemanticsMinimumConsumer": true,
19
+ "addressing": true,
20
+ "resolve": true,
21
+ "query": true
22
+ },
23
+ "policies": [
24
+ {
25
+ "id": "validation",
26
+ "capability": "SANSA.Query",
27
+ "category": "policy",
28
+ "maturity": "experimental"
29
+ }
30
+ ],
31
+ "budgetOptions": [
32
+ {
33
+ "id": "maxFromBindings",
34
+ "capability": "SANSA.Query",
35
+ "category": "evaluation-budget",
36
+ "phase": "from"
37
+ },
38
+ {
39
+ "id": "maxWhereCandidates",
40
+ "capability": "SANSA.Query",
41
+ "category": "evaluation-budget",
42
+ "phase": "where"
43
+ },
44
+ {
45
+ "id": "maxOrderCandidates",
46
+ "capability": "SANSA.Query",
47
+ "category": "evaluation-budget",
48
+ "phase": "order"
49
+ },
50
+ {
51
+ "id": "maxResultRecords",
52
+ "capability": "SANSA.Query",
53
+ "category": "evaluation-budget",
54
+ "phase": "select"
55
+ }
56
+ ],
57
+ "extensions": [
58
+ {
59
+ "id": "sansa.transform.objectFrom",
60
+ "name": "objectFrom",
61
+ "capability": "SANSA.Transform",
62
+ "category": "library",
63
+ "maturity": "experimental"
64
+ },
65
+ {
66
+ "id": "sansa.transform.fieldsFrom",
67
+ "name": "fieldsFrom",
68
+ "capability": "SANSA.Transform",
69
+ "category": "library",
70
+ "maturity": "experimental"
71
+ }
72
+ ],
73
+ "limits": {
74
+ "portablePositionIndexMax": 999999,
75
+ "defaultPositionIndexMax": 999999
76
+ },
77
+ "portabilityWarnings": [
78
+ "SANSA_NON_PORTABLE_POSITION_INDEX"
79
+ ]
80
+ }
@@ -0,0 +1,228 @@
1
+ # SANSA Query Tool
2
+
3
+ The package includes a standalone query tool for exercising SANSA.Query against
4
+ AEON source or a host-neutral JSON namespace fixture:
5
+
6
+ ```bash
7
+ npm run query -- --query 'from $.inventory.items.* where contains(.sku, "B") select .sku'
8
+ npm run query -- --format json --query 'from $.inventory.items.* where any(.roles.* == "admin") select { sku = .sku name = .name }'
9
+ npm run query -- --query-file query.sansaq --fixture fixtures/query-inventory.aeon
10
+ npm run query -- --query-file query.sansaq --fixture fixtures/query-inventory.json
11
+ npm run query -- --policy validation --query 'from $.inventory.items.* where .qty >= 4 select .sku'
12
+ npm run query -- --disable-transform --query 'from $.table.content.* select objectFrom($.table.header.*, .*)'
13
+ npm run query -- --max-from-bindings 3 --query 'from $.inventory.items.* select .sku'
14
+ npm run query -- --params '{"source":{"type":"SansaAddressLiteral","address":"$.inventory.items[3]"},"field":{"type":"SansaAddressLiteral","address":"?.sku"}}' --query 'from path($.<"params">.source) select path($.<"params">.field)'
15
+ ```
16
+
17
+ Text output uses an AEON-like value renderer for readability, including
18
+ explicit null reasons such as `!notSet`. JSON output remains the structured
19
+ machine-readable result envelope.
20
+
21
+ The default CLI fixture is [../fixtures/query-inventory.json](../fixtures/query-inventory.json),
22
+ which keeps `sansa-query` self-contained after package install. `.aeon`
23
+ fixtures are compiled with an optional AEON TypeScript Core runtime and adapted
24
+ into a SANSA resolver namespace; JSON fixtures expose bindings with `address`,
25
+ `children`, optional `attributeSpace` or `attributes`, optional `localSpaces`,
26
+ and scalar values through `value` or `scalar`.
27
+
28
+ AEON fixture support is optional so SANSA can remain a lower-level package. For
29
+ published-package use, install `@altopelago/aeon-core` in the calling project or
30
+ set `SANSA_AEON_CORE_MODULE` to an AEON Core module path or specifier. Inside
31
+ the aeon-family development workspace, the tool also falls back to the sibling
32
+ AEON TypeScript build path.
33
+
34
+ The CLI can also mount JSON params at `$.<"params">` using `--params` or
35
+ `--params-file`. Params may be supplied as a full fixture binding with
36
+ `children`, or as a simple object map. Structured SANSA Address Literal values
37
+ use `{ "type": "SansaAddressLiteral", "address": "..." }` and become usable
38
+ through `path(...)`.
39
+
40
+ Use `--policy validation` to exercise the proposal-stage validation policy from
41
+ the CLI. Use `--disable-transform` to run normal Query evaluation with
42
+ experimental `SANSA.Transform` helpers disabled.
43
+
44
+ Host callers can pass optional `evaluateQuery(..., { budget: ... })` limits for
45
+ pipeline sizes such as `maxFromBindings`, `maxWhereCandidates`,
46
+ `maxOrderCandidates`, and `maxResultRecords`. The CLI exposes the same surface
47
+ through `--max-from-bindings`, `--max-where-candidates`,
48
+ `--max-order-candidates`, and `--max-result-records`. Budget exhaustion reports
49
+ `SANSA_QUERY_BUDGET_EXCEEDED` and returns no partial result set.
50
+
51
+ ## Browser Workbench
52
+
53
+ For browser-based testing against `.aeon` source, run the technical workbench:
54
+
55
+ ```bash
56
+ npm run query:web
57
+ ```
58
+
59
+ Then open `http://127.0.0.1:4173/tools/query-web/`.
60
+
61
+ The workbench defaults to [../fixtures/query-inventory.aeon](../fixtures/query-inventory.aeon),
62
+ derives a SANSA resolver namespace from the optional AEON TypeScript Core
63
+ runtime, and runs SANSA.Query over that derived graph. It also includes a params
64
+ local-space editor mounted at `$.<"params">`, a Normal/Validation policy toggle,
65
+ a Transform extension toggle, optional budget limit inputs, plus a JSON fixture
66
+ mode for debugging the resolver shape directly.
67
+
68
+ In text mode, failed parses and evaluations render compact diagnostic lines
69
+ with phase and candidate context when available. JSON mode exposes the full
70
+ diagnostic payload. Inspect mode renders a scan-friendly view of candidate
71
+ addresses, projected values, selected binding addresses, and binding metadata.
72
+
73
+ Workbench examples live in [../tools/query-web/examples.mjs](../tools/query-web/examples.mjs).
74
+ The browser UI renders the grouped example menu from that catalog, and the
75
+ runtime tests execute the same examples against the default `.aeon` fixture
76
+ when an AEON runtime is available.
77
+
78
+ ## Query Semantics
79
+
80
+ Boolean context accepts explicit Boolean scalar values and single resolved
81
+ bindings that expose a Boolean scalar; it does not use host-language truthiness.
82
+ Boolean `not` negates Boolean expressions. Boolean `and` and `or` evaluate left
83
+ to right and short-circuit, so guard predicates can protect later scalar
84
+ comparisons from missing or incompatible bindings.
85
+
86
+ Existence predicates inspect whether a resolution expression resolves any
87
+ bindings. `exists(...)` returns true when one or more bindings are present, and
88
+ `absent(...)` returns true when no bindings are present.
89
+
90
+ ```text
91
+ where exists(.roles) and absent(.roles.*)
92
+ ```
93
+
94
+ Explicit null values are bindings, not missing data. Use `isNull(...)` or
95
+ `isNullReason(...)` to test null values after guarding for presence:
96
+
97
+ ```text
98
+ where exists(.status) and isNullReason(.status, "notSet")
99
+ ```
100
+
101
+ NaN and infinity are explicit numeric special values. Use `isNaN(...)` and
102
+ `isInfinity(...)` for literal-form tests; `NaN` is rejected by scalar comparison
103
+ and ordering.
104
+
105
+ `isValue(...)` is a missing-aware ordinary scalar guard. It returns true for one
106
+ string, Boolean, or finite number expression result. It can inspect scalar
107
+ expressions directly or a Binding Set produced by resolution or `path(...)`. It
108
+ returns false for missing bindings, non-scalar bindings, explicit null, NaN, and
109
+ infinity, while multiple bindings remain a cardinality error.
110
+
111
+ The current evaluator allows same-type number and string comparisons, Boolean
112
+ equality, and infinity as a numeric bound. It rejects mixed-type comparisons,
113
+ Boolean ordering, explicit null comparison, and NaN comparison.
114
+
115
+ Membership tests a scalar against the scalar values exposed by a Binding Set:
116
+
117
+ ```text
118
+ where "admin" in .roles.*
119
+ ```
120
+
121
+ The left operand must resolve to one scalar. The right operand must be a Binding
122
+ Set; empty and non-matching sets evaluate to false. Each right-side binding is
123
+ compared using equality comparison rules, so incompatible values, explicit
124
+ nulls, and NaN fail instead of being skipped.
125
+
126
+ Ordinary string functions consume single scalar string arguments. The current
127
+ built-ins are `contains`, `startsWith`, `endsWith`, `lower`, `upper`, and
128
+ `concat`. Function-name matching is case-sensitive. They fail on missing
129
+ bindings, multiple bindings, explicit null, numeric specials, and other
130
+ non-string values unless a specific function contract says otherwise.
131
+
132
+ String comparison and `order by` use deterministic Unicode scalar-value
133
+ ordering in this implementation slice. They do not use host locale or process
134
+ locale collation.
135
+
136
+ `path(value)` activates a structured SANSA Address Literal value. In expression
137
+ positions such as `select`, `where`, and `order by`, it resolves in the current
138
+ candidate context and returns a Binding Set. In `from path(...)`, it supplies
139
+ the source Binding Set for the query. It does not parse plain strings as
140
+ addresses.
141
+
142
+ `fallback(primary, replacement)` handles missing primary values only. The
143
+ replacement expression is evaluated only when the primary expression resolves no
144
+ scalar value; explicit null, cardinality, type, and comparison errors remain
145
+ fail-fast.
146
+
147
+ `resolveChild(base, key)` resolves a dynamic direct member or position from one
148
+ addressable base container. String keys select members; non-negative integer
149
+ keys select positions. A missing target returns an empty Binding Set, and the
150
+ consuming expression decides whether that is acceptable. It does not parse
151
+ traversal strings or perform collection joins.
152
+
153
+ `objectFrom(keys, values)` is an experimental transform-library helper. It
154
+ pairs two ordered Binding Sets by position and constructs a derived object. Key
155
+ bindings must expose unique string scalar values, value bindings must expose
156
+ scalar values, and mismatched lengths fail with a cardinality diagnostic.
157
+
158
+ `fieldsFrom(keys, values, field, ...)` is an experimental transform-library
159
+ helper. It uses the same ordered pairing model as `objectFrom`, then returns
160
+ only the requested string-named fields.
161
+
162
+ Semantic and representation filters can be used as comparison guards. This
163
+ keeps mixed-type or missing bindings out of scalar comparisons:
164
+
165
+ ```text
166
+ where exists(.id#number) and .id > 2
167
+ ```
168
+
169
+ Cardinality operators follow conventional quantified logic. `any(...)` requires
170
+ at least one match, `all(...)` is true when every resolved binding matches, and
171
+ `none(...)` is true when no resolved binding matches. Empty Binding Sets
172
+ therefore evaluate as `any(empty) = false`, `all(empty) = true`, and
173
+ `none(empty) = true`.
174
+
175
+ To require a non-empty set where every binding matches, combine `any(...)` and
176
+ `all(...)` explicitly:
177
+
178
+ ```text
179
+ where any(.roles.* == "admin") and all(.roles.* == "admin")
180
+ ```
181
+
182
+ The name `only(...)` is not part of the current evaluator surface; it remains a
183
+ possible future shorthand for this non-empty-all pattern.
184
+
185
+ ## Recipes
186
+
187
+ Scalar params mounted in the `params` local space can be compared directly.
188
+ Local-space names use quoted selector syntax:
189
+
190
+ ```text
191
+ from $.inventory.items.*
192
+ where .name == $.<"params">.name
193
+ select .sku
194
+ ```
195
+
196
+ SANSA Address Literal params are activated with `path(...)` before resolution:
197
+
198
+ ```text
199
+ from path($.<"params">.source)
200
+ where isValue(path($.<"params">.statusField)) and path($.<"params">.statusField) == "active"
201
+ order by path($.<"params">.sortField) asc
202
+ select path($.<"params">.field)
203
+ ```
204
+
205
+ ```text
206
+ from $.inventory.items.*
207
+ where isValue(.status) or (exists(.status) and isNull(.status))
208
+ select { sku = .sku status = fallback(.status, "missing") }
209
+ ```
210
+
211
+ ```text
212
+ from $.inventory.items.*
213
+ where .qty >= 4
214
+ select { sku = .sku category = resolveChild($.inventory.categoryLabels, .category) status = fallback(.status, "missing") }
215
+ ```
216
+
217
+ ```text
218
+ from $.table.content.*
219
+ select objectFrom($.table.header.*, .*)
220
+ ```
221
+
222
+ ```text
223
+ from $.table.content.*
224
+ select fieldsFrom($.table.header.*, .*, "age")
225
+ ```
226
+
227
+ The table-row helpers above are experimental `SANSA.Transform` extensions, not
228
+ required SANSA.Query core behavior.
@@ -0,0 +1,37 @@
1
+ # Releasing
2
+
3
+ SANSA publishes to npm from GitHub Actions using npm trusted publishing.
4
+
5
+ ## npm setup
6
+
7
+ On npmjs.com, configure a trusted publisher for `@altopelago/sansa`:
8
+
9
+ - Publisher: GitHub Actions
10
+ - Organization or user: `AltoPelago`
11
+ - Repository: `sansa`
12
+ - Workflow filename: `publish-npm.yml`
13
+ - Environment name: `npm`
14
+ - Allowed action: `npm publish`
15
+
16
+ Trusted publishing requires no long-lived `NPM_TOKEN` secret. npm uses GitHub
17
+ OIDC from the release workflow and automatically generates provenance for public
18
+ packages published from public repositories.
19
+
20
+ ## GitHub setup
21
+
22
+ Create a GitHub environment named `npm`. Add required reviewers to that
23
+ environment if release approval should be explicit before publishing.
24
+
25
+ The publish workflow runs when a GitHub Release is published. It verifies that
26
+ the release tag matches the package version, so `package.json` version `0.9.0`
27
+ must be released from tag `v0.9.0`.
28
+
29
+ ## Release steps
30
+
31
+ 1. Update `package.json`, `docs/capabilities.json`, and `CHANGELOG.md`.
32
+ 2. Merge the release-prep PR into `main`.
33
+ 3. Confirm CI passes on `main`.
34
+ 4. Create tag `vX.Y.Z` from the checked `main` commit.
35
+ 5. Publish a GitHub Release for `vX.Y.Z`.
36
+ 6. Let `Publish npm` run from GitHub Actions.
37
+ 7. Confirm the npm package page shows the expected version and provenance.
@@ -0,0 +1,316 @@
1
+ {
2
+ "meta": {
3
+ "version": "0.1.0",
4
+ "spec": "sansa-address-v1",
5
+ "description": "Initial SANSA Address parser fixtures."
6
+ },
7
+ "cases": [
8
+ {
9
+ "id": "root-absolute",
10
+ "source": "$",
11
+ "valid": true,
12
+ "canonical": "$",
13
+ "exact": true
14
+ },
15
+ {
16
+ "id": "root-contextual",
17
+ "source": "?",
18
+ "valid": true,
19
+ "canonical": "?",
20
+ "exact": true
21
+ },
22
+ {
23
+ "id": "exact-member-index-attribute-local",
24
+ "source": "$.inventory[0].[\"display.name\"].@.<\"pdf\">",
25
+ "valid": true,
26
+ "canonical": "$.inventory[0].[\"display.name\"].@.<\"pdf\">",
27
+ "exact": true
28
+ },
29
+ {
30
+ "id": "canonicalize-safe-quoted-member",
31
+ "source": "$.[\"name\"]",
32
+ "valid": true,
33
+ "canonical": "$.name",
34
+ "exact": true,
35
+ "selectors": ["member"]
36
+ },
37
+ {
38
+ "id": "quoted-member-escapes",
39
+ "source": "$.[\"line\\nfeed\"].[\"tab\\tname\"].[\"quote\\\"name\"]",
40
+ "valid": true,
41
+ "canonical": "$.[\"line\\nfeed\"].[\"tab\\tname\"].[\"quote\\\"name\"]",
42
+ "exact": true,
43
+ "selectors": ["member", "member", "member"]
44
+ },
45
+ {
46
+ "id": "quoted-member-unicode-escape",
47
+ "source": "$.[\"emoji_\\u{1F642}\"]",
48
+ "valid": true,
49
+ "canonical": "$.[\"emoji_🙂\"]",
50
+ "exact": true,
51
+ "selectors": ["member"]
52
+ },
53
+ {
54
+ "id": "contextual-local-space",
55
+ "source": "?.<\"request\">.user_id",
56
+ "valid": true,
57
+ "canonical": "?.<\"request\">.user_id",
58
+ "exact": true,
59
+ "root": "contextual",
60
+ "selectors": ["localSpace", "member"]
61
+ },
62
+ {
63
+ "id": "expanded-selectors",
64
+ "source": "$.items.*#text%stringLiteral.(\"item?*\").**",
65
+ "valid": true,
66
+ "canonical": "$.items.*#text%stringLiteral.(\"item?*\").**",
67
+ "exact": false,
68
+ "selectors": [
69
+ "member",
70
+ "directExpansion",
71
+ "semanticTypeFilter",
72
+ "representationKindFilter",
73
+ "namePattern",
74
+ "descendantExpansion"
75
+ ]
76
+ },
77
+ {
78
+ "id": "direct-expansion-only",
79
+ "source": "$.items.*",
80
+ "valid": true,
81
+ "canonical": "$.items.*",
82
+ "exact": false,
83
+ "selectors": ["member", "directExpansion"]
84
+ },
85
+ {
86
+ "id": "position-range-bounded",
87
+ "source": "$.items[2..5]",
88
+ "valid": true,
89
+ "canonical": "$.items[2..5]",
90
+ "exact": false,
91
+ "selectors": ["member", "positionRange"]
92
+ },
93
+ {
94
+ "id": "position-range-open-end",
95
+ "source": "$.items[2..]",
96
+ "valid": true,
97
+ "canonical": "$.items[2..]",
98
+ "exact": false,
99
+ "selectors": ["member", "positionRange"]
100
+ },
101
+ {
102
+ "id": "position-range-open-start",
103
+ "source": "$.items[..5]",
104
+ "valid": true,
105
+ "canonical": "$.items[..5]",
106
+ "exact": false,
107
+ "selectors": ["member", "positionRange"]
108
+ },
109
+ {
110
+ "id": "parent-selector",
111
+ "source": "$.items[1].^.sku",
112
+ "valid": true,
113
+ "canonical": "$.items[1].^.sku",
114
+ "exact": false,
115
+ "selectors": ["member", "position", "parent", "member"]
116
+ },
117
+ {
118
+ "id": "quoted-caret-member",
119
+ "source": "$.[\"^\"]",
120
+ "valid": true,
121
+ "canonical": "$.[\"^\"]",
122
+ "exact": true,
123
+ "selectors": ["member"]
124
+ },
125
+ {
126
+ "id": "descendant-expansion-only",
127
+ "source": "$.items.**",
128
+ "valid": true,
129
+ "canonical": "$.items.**",
130
+ "exact": false,
131
+ "selectors": ["member", "descendantExpansion"]
132
+ },
133
+ {
134
+ "id": "filters-only",
135
+ "source": "$#record%object",
136
+ "valid": true,
137
+ "canonical": "$#record%object",
138
+ "exact": false,
139
+ "selectors": ["semanticTypeFilter", "representationKindFilter"]
140
+ },
141
+ {
142
+ "id": "qualified-union",
143
+ "source": "$.result:number|nan",
144
+ "valid": true,
145
+ "canonical": "$.result:number|nan",
146
+ "exact": true,
147
+ "qualifierTerms": ["number", "nan"]
148
+ },
149
+ {
150
+ "id": "qualified-generic",
151
+ "source": "$.inventory:list<string>",
152
+ "valid": true,
153
+ "canonical": "$.inventory:list<string>",
154
+ "exact": true,
155
+ "qualifierTerms": ["list"]
156
+ },
157
+ {
158
+ "id": "qualified-repeated-parameter-groups",
159
+ "source": "$.key:tuple<x><y>",
160
+ "valid": true,
161
+ "canonical": "$.key:tuple<x><y>",
162
+ "exact": true,
163
+ "qualifierTerms": ["tuple"]
164
+ },
165
+ {
166
+ "id": "qualified-token-argument",
167
+ "source": "$.version:sep[.]",
168
+ "valid": true,
169
+ "canonical": "$.version:sep[.]",
170
+ "exact": true,
171
+ "qualifierTerms": ["sep"]
172
+ },
173
+ {
174
+ "id": "qualified-quoted-argument",
175
+ "source": "$.inventory:csv[\",\"]",
176
+ "valid": true,
177
+ "canonical": "$.inventory:csv[\",\"]",
178
+ "exact": true,
179
+ "qualifierTerms": ["csv"]
180
+ },
181
+ {
182
+ "id": "qualified-repeated-arguments",
183
+ "source": "$.key:string[\",\"][\".\"]",
184
+ "valid": true,
185
+ "canonical": "$.key:string[\",\"][\".\"]",
186
+ "exact": true,
187
+ "qualifierTerms": ["string"]
188
+ },
189
+ {
190
+ "id": "qualified-rich-host-surface",
191
+ "source": "$.claim:type<type>[arg]",
192
+ "valid": true,
193
+ "canonical": "$.claim:type<type>[arg]",
194
+ "exact": true,
195
+ "qualifierTerms": ["type"]
196
+ },
197
+ {
198
+ "id": "reject-raw-comma-argument",
199
+ "source": "$.inventory:csv[,]",
200
+ "valid": false,
201
+ "error": "SANSA_INVALID_QUALIFIER_ARGUMENT_CHAR"
202
+ },
203
+ {
204
+ "id": "reject-empty-qualifier-argument",
205
+ "source": "$.inventory:csv[]",
206
+ "valid": false,
207
+ "error": "SANSA_EXPECTED_QUALIFIER_ARGUMENT"
208
+ },
209
+ {
210
+ "id": "reject-leading-zero-index",
211
+ "source": "$.items[01]",
212
+ "valid": false,
213
+ "error": "SANSA_LEADING_ZERO_INDEX"
214
+ },
215
+ {
216
+ "id": "reject-empty-position-range",
217
+ "source": "$.items[..]",
218
+ "valid": false,
219
+ "error": "SANSA_EMPTY_POSITION_RANGE"
220
+ },
221
+ {
222
+ "id": "reject-leading-zero-range-end",
223
+ "source": "$.items[1..02]",
224
+ "valid": false,
225
+ "error": "SANSA_LEADING_ZERO_INDEX"
226
+ },
227
+ {
228
+ "id": "max-position-index",
229
+ "source": "$.items[999999]",
230
+ "valid": true,
231
+ "canonical": "$.items[999999]",
232
+ "exact": true,
233
+ "selectors": ["member", "position"]
234
+ },
235
+ {
236
+ "id": "max-position-range-endpoint",
237
+ "source": "$.items[0..999999]",
238
+ "valid": true,
239
+ "canonical": "$.items[0..999999]",
240
+ "exact": false,
241
+ "selectors": ["member", "positionRange"]
242
+ },
243
+ {
244
+ "id": "reject-position-index-above-limit",
245
+ "source": "$.items[1000000]",
246
+ "valid": false,
247
+ "error": "SANSA_POSITION_INDEX_LIMIT_EXCEEDED"
248
+ },
249
+ {
250
+ "id": "reject-position-range-endpoint-above-limit",
251
+ "source": "$.items[0..1000000]",
252
+ "valid": false,
253
+ "error": "SANSA_POSITION_INDEX_LIMIT_EXCEEDED"
254
+ },
255
+ {
256
+ "id": "reject-empty-quoted-member",
257
+ "source": "$.[\"\"]",
258
+ "valid": false,
259
+ "error": "SANSA_EMPTY_MEMBER_NAME"
260
+ },
261
+ {
262
+ "id": "reject-empty-local-space",
263
+ "source": "$.<\"\">",
264
+ "valid": false,
265
+ "error": "SANSA_EMPTY_LOCAL_SPACE_NAME"
266
+ },
267
+ {
268
+ "id": "reject-raw-whitespace",
269
+ "source": "$.bad name",
270
+ "valid": false,
271
+ "error": "SANSA_UNEXPECTED_WHITESPACE"
272
+ },
273
+ {
274
+ "id": "reject-invalid-escape",
275
+ "source": "$.[\"bad\\q\"]",
276
+ "valid": false,
277
+ "error": "SANSA_INVALID_ESCAPE"
278
+ },
279
+ {
280
+ "id": "reject-invalid-unicode-scalar",
281
+ "source": "$.[\"bad\\u{D800}\"]",
282
+ "valid": false,
283
+ "error": "SANSA_INVALID_UNICODE_SCALAR"
284
+ },
285
+ {
286
+ "id": "reject-nested-qualifier-union",
287
+ "source": "$.value:list<string|number>",
288
+ "valid": false,
289
+ "error": "SANSA_INVALID_QUALIFIER"
290
+ },
291
+ {
292
+ "id": "reject-compact-attribute-bare",
293
+ "source": "$.a@id",
294
+ "valid": false,
295
+ "error": "SANSA_UNEXPECTED_CHARACTER"
296
+ },
297
+ {
298
+ "id": "reject-compact-attribute-quoted",
299
+ "source": "$.a@[\"id\"]",
300
+ "valid": false,
301
+ "error": "SANSA_UNEXPECTED_CHARACTER"
302
+ },
303
+ {
304
+ "id": "reject-half-migrated-attribute-bare",
305
+ "source": "$.a.@id",
306
+ "valid": false,
307
+ "error": "SANSA_UNEXPECTED_CHARACTER"
308
+ },
309
+ {
310
+ "id": "reject-half-migrated-attribute-quoted",
311
+ "source": "$.a.@[\"id\"]",
312
+ "valid": false,
313
+ "error": "SANSA_EXPECTED_INDEX"
314
+ }
315
+ ]
316
+ }