@swaggerexpert/arazzo-runtime-expression 1.0.0 → 1.0.1
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.
- package/README.md +8 -4
- package/cjs/runtime-expression.cjs +62 -58
- package/es/runtime-expression.mjs +62 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,6 +226,7 @@ header-reference = "header." token
|
|
|
226
226
|
query-reference = "query." name
|
|
227
227
|
path-reference = "path." name
|
|
228
228
|
body-reference = "body" ["#" json-pointer ]
|
|
229
|
+
name = *( CHAR )
|
|
229
230
|
|
|
230
231
|
; https://datatracker.ietf.org/doc/html/rfc6901#section-3
|
|
231
232
|
json-pointer = *( "/" reference-token )
|
|
@@ -234,10 +235,13 @@ unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
|
|
|
234
235
|
; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
|
|
235
236
|
escaped = "~" ( "0" / "1" )
|
|
236
237
|
; representing '~' and '/', respectively
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
|
|
239
|
+
; https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6
|
|
240
|
+
token = 1*tchar
|
|
241
|
+
tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
242
|
+
/ "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
|
|
243
|
+
/ DIGIT / ALPHA
|
|
244
|
+
; any VCHAR, except delimiters
|
|
241
245
|
|
|
242
246
|
; https://www.rfc-editor.org/rfc/rfc7159#section-7
|
|
243
247
|
CHAR = unescape /
|
|
@@ -74,32 +74,32 @@ function grammar() {
|
|
|
74
74
|
isBkr: false
|
|
75
75
|
};
|
|
76
76
|
this.rules[7] = {
|
|
77
|
-
name: '
|
|
78
|
-
lower: '
|
|
77
|
+
name: 'name',
|
|
78
|
+
lower: 'name',
|
|
79
79
|
index: 7,
|
|
80
80
|
isBkr: false
|
|
81
81
|
};
|
|
82
82
|
this.rules[8] = {
|
|
83
|
-
name: '
|
|
84
|
-
lower: '
|
|
83
|
+
name: 'json-pointer',
|
|
84
|
+
lower: 'json-pointer',
|
|
85
85
|
index: 8,
|
|
86
86
|
isBkr: false
|
|
87
87
|
};
|
|
88
88
|
this.rules[9] = {
|
|
89
|
-
name: '
|
|
90
|
-
lower: '
|
|
89
|
+
name: 'reference-token',
|
|
90
|
+
lower: 'reference-token',
|
|
91
91
|
index: 9,
|
|
92
92
|
isBkr: false
|
|
93
93
|
};
|
|
94
94
|
this.rules[10] = {
|
|
95
|
-
name: '
|
|
96
|
-
lower: '
|
|
95
|
+
name: 'unescaped',
|
|
96
|
+
lower: 'unescaped',
|
|
97
97
|
index: 10,
|
|
98
98
|
isBkr: false
|
|
99
99
|
};
|
|
100
100
|
this.rules[11] = {
|
|
101
|
-
name: '
|
|
102
|
-
lower: '
|
|
101
|
+
name: 'escaped',
|
|
102
|
+
lower: 'escaped',
|
|
103
103
|
index: 11,
|
|
104
104
|
isBkr: false
|
|
105
105
|
};
|
|
@@ -208,7 +208,7 @@ function grammar() {
|
|
|
208
208
|
}; // TLS
|
|
209
209
|
this.rules[0].opcodes[12] = {
|
|
210
210
|
type: 4,
|
|
211
|
-
index:
|
|
211
|
+
index: 7
|
|
212
212
|
}; // RNM(name)
|
|
213
213
|
this.rules[0].opcodes[13] = {
|
|
214
214
|
type: 2,
|
|
@@ -220,7 +220,7 @@ function grammar() {
|
|
|
220
220
|
}; // TLS
|
|
221
221
|
this.rules[0].opcodes[15] = {
|
|
222
222
|
type: 4,
|
|
223
|
-
index:
|
|
223
|
+
index: 7
|
|
224
224
|
}; // RNM(name)
|
|
225
225
|
this.rules[0].opcodes[16] = {
|
|
226
226
|
type: 2,
|
|
@@ -232,7 +232,7 @@ function grammar() {
|
|
|
232
232
|
}; // TLS
|
|
233
233
|
this.rules[0].opcodes[18] = {
|
|
234
234
|
type: 4,
|
|
235
|
-
index:
|
|
235
|
+
index: 7
|
|
236
236
|
}; // RNM(name)
|
|
237
237
|
this.rules[0].opcodes[19] = {
|
|
238
238
|
type: 2,
|
|
@@ -244,7 +244,7 @@ function grammar() {
|
|
|
244
244
|
}; // TLS
|
|
245
245
|
this.rules[0].opcodes[21] = {
|
|
246
246
|
type: 4,
|
|
247
|
-
index:
|
|
247
|
+
index: 7
|
|
248
248
|
}; // RNM(name)
|
|
249
249
|
this.rules[0].opcodes[22] = {
|
|
250
250
|
type: 2,
|
|
@@ -256,7 +256,7 @@ function grammar() {
|
|
|
256
256
|
}; // TLS
|
|
257
257
|
this.rules[0].opcodes[24] = {
|
|
258
258
|
type: 4,
|
|
259
|
-
index:
|
|
259
|
+
index: 7
|
|
260
260
|
}; // RNM(name)
|
|
261
261
|
this.rules[0].opcodes[25] = {
|
|
262
262
|
type: 2,
|
|
@@ -268,7 +268,7 @@ function grammar() {
|
|
|
268
268
|
}; // TLS
|
|
269
269
|
this.rules[0].opcodes[27] = {
|
|
270
270
|
type: 4,
|
|
271
|
-
index:
|
|
271
|
+
index: 7
|
|
272
272
|
}; // RNM(name)
|
|
273
273
|
this.rules[0].opcodes[28] = {
|
|
274
274
|
type: 2,
|
|
@@ -287,7 +287,7 @@ function grammar() {
|
|
|
287
287
|
this.rules[1].opcodes = [];
|
|
288
288
|
this.rules[1].opcodes[0] = {
|
|
289
289
|
type: 4,
|
|
290
|
-
index:
|
|
290
|
+
index: 7
|
|
291
291
|
}; // RNM(name)
|
|
292
292
|
|
|
293
293
|
/* source */
|
|
@@ -340,7 +340,7 @@ function grammar() {
|
|
|
340
340
|
}; // TLS
|
|
341
341
|
this.rules[4].opcodes[2] = {
|
|
342
342
|
type: 4,
|
|
343
|
-
index:
|
|
343
|
+
index: 7
|
|
344
344
|
}; // RNM(name)
|
|
345
345
|
|
|
346
346
|
/* path-reference */
|
|
@@ -355,7 +355,7 @@ function grammar() {
|
|
|
355
355
|
}; // TLS
|
|
356
356
|
this.rules[5].opcodes[2] = {
|
|
357
357
|
type: 4,
|
|
358
|
-
index:
|
|
358
|
+
index: 7
|
|
359
359
|
}; // RNM(name)
|
|
360
360
|
|
|
361
361
|
/* body-reference */
|
|
@@ -383,10 +383,10 @@ function grammar() {
|
|
|
383
383
|
}; // TLS
|
|
384
384
|
this.rules[6].opcodes[5] = {
|
|
385
385
|
type: 4,
|
|
386
|
-
index:
|
|
386
|
+
index: 8
|
|
387
387
|
}; // RNM(json-pointer)
|
|
388
388
|
|
|
389
|
-
/*
|
|
389
|
+
/* name */
|
|
390
390
|
this.rules[7].opcodes = [];
|
|
391
391
|
this.rules[7].opcodes[0] = {
|
|
392
392
|
type: 3,
|
|
@@ -394,95 +394,95 @@ function grammar() {
|
|
|
394
394
|
max: Infinity
|
|
395
395
|
}; // REP
|
|
396
396
|
this.rules[7].opcodes[1] = {
|
|
397
|
+
type: 4,
|
|
398
|
+
index: 14
|
|
399
|
+
}; // RNM(CHAR)
|
|
400
|
+
|
|
401
|
+
/* json-pointer */
|
|
402
|
+
this.rules[8].opcodes = [];
|
|
403
|
+
this.rules[8].opcodes[0] = {
|
|
404
|
+
type: 3,
|
|
405
|
+
min: 0,
|
|
406
|
+
max: Infinity
|
|
407
|
+
}; // REP
|
|
408
|
+
this.rules[8].opcodes[1] = {
|
|
397
409
|
type: 2,
|
|
398
410
|
children: [2, 3]
|
|
399
411
|
}; // CAT
|
|
400
|
-
this.rules[
|
|
412
|
+
this.rules[8].opcodes[2] = {
|
|
401
413
|
type: 7,
|
|
402
414
|
string: [47]
|
|
403
415
|
}; // TLS
|
|
404
|
-
this.rules[
|
|
416
|
+
this.rules[8].opcodes[3] = {
|
|
405
417
|
type: 4,
|
|
406
|
-
index:
|
|
418
|
+
index: 9
|
|
407
419
|
}; // RNM(reference-token)
|
|
408
420
|
|
|
409
421
|
/* reference-token */
|
|
410
|
-
this.rules[
|
|
411
|
-
this.rules[
|
|
422
|
+
this.rules[9].opcodes = [];
|
|
423
|
+
this.rules[9].opcodes[0] = {
|
|
412
424
|
type: 3,
|
|
413
425
|
min: 0,
|
|
414
426
|
max: Infinity
|
|
415
427
|
}; // REP
|
|
416
|
-
this.rules[
|
|
428
|
+
this.rules[9].opcodes[1] = {
|
|
417
429
|
type: 1,
|
|
418
430
|
children: [2, 3]
|
|
419
431
|
}; // ALT
|
|
420
|
-
this.rules[
|
|
432
|
+
this.rules[9].opcodes[2] = {
|
|
421
433
|
type: 4,
|
|
422
|
-
index:
|
|
434
|
+
index: 10
|
|
423
435
|
}; // RNM(unescaped)
|
|
424
|
-
this.rules[
|
|
436
|
+
this.rules[9].opcodes[3] = {
|
|
425
437
|
type: 4,
|
|
426
|
-
index:
|
|
438
|
+
index: 11
|
|
427
439
|
}; // RNM(escaped)
|
|
428
440
|
|
|
429
441
|
/* unescaped */
|
|
430
|
-
this.rules[
|
|
431
|
-
this.rules[
|
|
442
|
+
this.rules[10].opcodes = [];
|
|
443
|
+
this.rules[10].opcodes[0] = {
|
|
432
444
|
type: 1,
|
|
433
445
|
children: [1, 2, 3]
|
|
434
446
|
}; // ALT
|
|
435
|
-
this.rules[
|
|
447
|
+
this.rules[10].opcodes[1] = {
|
|
436
448
|
type: 5,
|
|
437
449
|
min: 0,
|
|
438
450
|
max: 46
|
|
439
451
|
}; // TRG
|
|
440
|
-
this.rules[
|
|
452
|
+
this.rules[10].opcodes[2] = {
|
|
441
453
|
type: 5,
|
|
442
454
|
min: 48,
|
|
443
455
|
max: 125
|
|
444
456
|
}; // TRG
|
|
445
|
-
this.rules[
|
|
457
|
+
this.rules[10].opcodes[3] = {
|
|
446
458
|
type: 5,
|
|
447
459
|
min: 127,
|
|
448
460
|
max: 1114111
|
|
449
461
|
}; // TRG
|
|
450
462
|
|
|
451
463
|
/* escaped */
|
|
452
|
-
this.rules[
|
|
453
|
-
this.rules[
|
|
464
|
+
this.rules[11].opcodes = [];
|
|
465
|
+
this.rules[11].opcodes[0] = {
|
|
454
466
|
type: 2,
|
|
455
467
|
children: [1, 2]
|
|
456
468
|
}; // CAT
|
|
457
|
-
this.rules[
|
|
469
|
+
this.rules[11].opcodes[1] = {
|
|
458
470
|
type: 7,
|
|
459
471
|
string: [126]
|
|
460
472
|
}; // TLS
|
|
461
|
-
this.rules[
|
|
473
|
+
this.rules[11].opcodes[2] = {
|
|
462
474
|
type: 1,
|
|
463
475
|
children: [3, 4]
|
|
464
476
|
}; // ALT
|
|
465
|
-
this.rules[
|
|
477
|
+
this.rules[11].opcodes[3] = {
|
|
466
478
|
type: 7,
|
|
467
479
|
string: [48]
|
|
468
480
|
}; // TLS
|
|
469
|
-
this.rules[
|
|
481
|
+
this.rules[11].opcodes[4] = {
|
|
470
482
|
type: 7,
|
|
471
483
|
string: [49]
|
|
472
484
|
}; // TLS
|
|
473
485
|
|
|
474
|
-
/* name */
|
|
475
|
-
this.rules[11].opcodes = [];
|
|
476
|
-
this.rules[11].opcodes[0] = {
|
|
477
|
-
type: 3,
|
|
478
|
-
min: 0,
|
|
479
|
-
max: Infinity
|
|
480
|
-
}; // REP
|
|
481
|
-
this.rules[11].opcodes[1] = {
|
|
482
|
-
type: 4,
|
|
483
|
-
index: 14
|
|
484
|
-
}; // RNM(CHAR)
|
|
485
|
-
|
|
486
486
|
/* token */
|
|
487
487
|
this.rules[12].opcodes = [];
|
|
488
488
|
this.rules[12].opcodes[0] = {
|
|
@@ -742,6 +742,7 @@ function grammar() {
|
|
|
742
742
|
str += "query-reference = \"query.\" name\n";
|
|
743
743
|
str += "path-reference = \"path.\" name\n";
|
|
744
744
|
str += "body-reference = \"body\" [\"#\" json-pointer ]\n";
|
|
745
|
+
str += "name = *( CHAR )\n";
|
|
745
746
|
str += "\n";
|
|
746
747
|
str += "; https://datatracker.ietf.org/doc/html/rfc6901#section-3\n";
|
|
747
748
|
str += "json-pointer = *( \"/\" reference-token )\n";
|
|
@@ -750,10 +751,13 @@ function grammar() {
|
|
|
750
751
|
str += " ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n";
|
|
751
752
|
str += "escaped = \"~\" ( \"0\" / \"1\" )\n";
|
|
752
753
|
str += " ; representing '~' and '/', respectively\n";
|
|
753
|
-
str += "
|
|
754
|
-
str += "
|
|
755
|
-
str += "
|
|
756
|
-
str += "
|
|
754
|
+
str += "\n";
|
|
755
|
+
str += "; https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6\n";
|
|
756
|
+
str += "token = 1*tchar\n";
|
|
757
|
+
str += "tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\"\n";
|
|
758
|
+
str += " / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\"\n";
|
|
759
|
+
str += " / DIGIT / ALPHA\n";
|
|
760
|
+
str += " ; any VCHAR, except delimiters\n";
|
|
757
761
|
str += "\n";
|
|
758
762
|
str += "; https://www.rfc-editor.org/rfc/rfc7159#section-7\n";
|
|
759
763
|
str += "CHAR = unescape /\n";
|
|
@@ -70,32 +70,32 @@ export default function grammar() {
|
|
|
70
70
|
isBkr: false
|
|
71
71
|
};
|
|
72
72
|
this.rules[7] = {
|
|
73
|
-
name: '
|
|
74
|
-
lower: '
|
|
73
|
+
name: 'name',
|
|
74
|
+
lower: 'name',
|
|
75
75
|
index: 7,
|
|
76
76
|
isBkr: false
|
|
77
77
|
};
|
|
78
78
|
this.rules[8] = {
|
|
79
|
-
name: '
|
|
80
|
-
lower: '
|
|
79
|
+
name: 'json-pointer',
|
|
80
|
+
lower: 'json-pointer',
|
|
81
81
|
index: 8,
|
|
82
82
|
isBkr: false
|
|
83
83
|
};
|
|
84
84
|
this.rules[9] = {
|
|
85
|
-
name: '
|
|
86
|
-
lower: '
|
|
85
|
+
name: 'reference-token',
|
|
86
|
+
lower: 'reference-token',
|
|
87
87
|
index: 9,
|
|
88
88
|
isBkr: false
|
|
89
89
|
};
|
|
90
90
|
this.rules[10] = {
|
|
91
|
-
name: '
|
|
92
|
-
lower: '
|
|
91
|
+
name: 'unescaped',
|
|
92
|
+
lower: 'unescaped',
|
|
93
93
|
index: 10,
|
|
94
94
|
isBkr: false
|
|
95
95
|
};
|
|
96
96
|
this.rules[11] = {
|
|
97
|
-
name: '
|
|
98
|
-
lower: '
|
|
97
|
+
name: 'escaped',
|
|
98
|
+
lower: 'escaped',
|
|
99
99
|
index: 11,
|
|
100
100
|
isBkr: false
|
|
101
101
|
};
|
|
@@ -204,7 +204,7 @@ export default function grammar() {
|
|
|
204
204
|
}; // TLS
|
|
205
205
|
this.rules[0].opcodes[12] = {
|
|
206
206
|
type: 4,
|
|
207
|
-
index:
|
|
207
|
+
index: 7
|
|
208
208
|
}; // RNM(name)
|
|
209
209
|
this.rules[0].opcodes[13] = {
|
|
210
210
|
type: 2,
|
|
@@ -216,7 +216,7 @@ export default function grammar() {
|
|
|
216
216
|
}; // TLS
|
|
217
217
|
this.rules[0].opcodes[15] = {
|
|
218
218
|
type: 4,
|
|
219
|
-
index:
|
|
219
|
+
index: 7
|
|
220
220
|
}; // RNM(name)
|
|
221
221
|
this.rules[0].opcodes[16] = {
|
|
222
222
|
type: 2,
|
|
@@ -228,7 +228,7 @@ export default function grammar() {
|
|
|
228
228
|
}; // TLS
|
|
229
229
|
this.rules[0].opcodes[18] = {
|
|
230
230
|
type: 4,
|
|
231
|
-
index:
|
|
231
|
+
index: 7
|
|
232
232
|
}; // RNM(name)
|
|
233
233
|
this.rules[0].opcodes[19] = {
|
|
234
234
|
type: 2,
|
|
@@ -240,7 +240,7 @@ export default function grammar() {
|
|
|
240
240
|
}; // TLS
|
|
241
241
|
this.rules[0].opcodes[21] = {
|
|
242
242
|
type: 4,
|
|
243
|
-
index:
|
|
243
|
+
index: 7
|
|
244
244
|
}; // RNM(name)
|
|
245
245
|
this.rules[0].opcodes[22] = {
|
|
246
246
|
type: 2,
|
|
@@ -252,7 +252,7 @@ export default function grammar() {
|
|
|
252
252
|
}; // TLS
|
|
253
253
|
this.rules[0].opcodes[24] = {
|
|
254
254
|
type: 4,
|
|
255
|
-
index:
|
|
255
|
+
index: 7
|
|
256
256
|
}; // RNM(name)
|
|
257
257
|
this.rules[0].opcodes[25] = {
|
|
258
258
|
type: 2,
|
|
@@ -264,7 +264,7 @@ export default function grammar() {
|
|
|
264
264
|
}; // TLS
|
|
265
265
|
this.rules[0].opcodes[27] = {
|
|
266
266
|
type: 4,
|
|
267
|
-
index:
|
|
267
|
+
index: 7
|
|
268
268
|
}; // RNM(name)
|
|
269
269
|
this.rules[0].opcodes[28] = {
|
|
270
270
|
type: 2,
|
|
@@ -283,7 +283,7 @@ export default function grammar() {
|
|
|
283
283
|
this.rules[1].opcodes = [];
|
|
284
284
|
this.rules[1].opcodes[0] = {
|
|
285
285
|
type: 4,
|
|
286
|
-
index:
|
|
286
|
+
index: 7
|
|
287
287
|
}; // RNM(name)
|
|
288
288
|
|
|
289
289
|
/* source */
|
|
@@ -336,7 +336,7 @@ export default function grammar() {
|
|
|
336
336
|
}; // TLS
|
|
337
337
|
this.rules[4].opcodes[2] = {
|
|
338
338
|
type: 4,
|
|
339
|
-
index:
|
|
339
|
+
index: 7
|
|
340
340
|
}; // RNM(name)
|
|
341
341
|
|
|
342
342
|
/* path-reference */
|
|
@@ -351,7 +351,7 @@ export default function grammar() {
|
|
|
351
351
|
}; // TLS
|
|
352
352
|
this.rules[5].opcodes[2] = {
|
|
353
353
|
type: 4,
|
|
354
|
-
index:
|
|
354
|
+
index: 7
|
|
355
355
|
}; // RNM(name)
|
|
356
356
|
|
|
357
357
|
/* body-reference */
|
|
@@ -379,10 +379,10 @@ export default function grammar() {
|
|
|
379
379
|
}; // TLS
|
|
380
380
|
this.rules[6].opcodes[5] = {
|
|
381
381
|
type: 4,
|
|
382
|
-
index:
|
|
382
|
+
index: 8
|
|
383
383
|
}; // RNM(json-pointer)
|
|
384
384
|
|
|
385
|
-
/*
|
|
385
|
+
/* name */
|
|
386
386
|
this.rules[7].opcodes = [];
|
|
387
387
|
this.rules[7].opcodes[0] = {
|
|
388
388
|
type: 3,
|
|
@@ -390,95 +390,95 @@ export default function grammar() {
|
|
|
390
390
|
max: Infinity
|
|
391
391
|
}; // REP
|
|
392
392
|
this.rules[7].opcodes[1] = {
|
|
393
|
+
type: 4,
|
|
394
|
+
index: 14
|
|
395
|
+
}; // RNM(CHAR)
|
|
396
|
+
|
|
397
|
+
/* json-pointer */
|
|
398
|
+
this.rules[8].opcodes = [];
|
|
399
|
+
this.rules[8].opcodes[0] = {
|
|
400
|
+
type: 3,
|
|
401
|
+
min: 0,
|
|
402
|
+
max: Infinity
|
|
403
|
+
}; // REP
|
|
404
|
+
this.rules[8].opcodes[1] = {
|
|
393
405
|
type: 2,
|
|
394
406
|
children: [2, 3]
|
|
395
407
|
}; // CAT
|
|
396
|
-
this.rules[
|
|
408
|
+
this.rules[8].opcodes[2] = {
|
|
397
409
|
type: 7,
|
|
398
410
|
string: [47]
|
|
399
411
|
}; // TLS
|
|
400
|
-
this.rules[
|
|
412
|
+
this.rules[8].opcodes[3] = {
|
|
401
413
|
type: 4,
|
|
402
|
-
index:
|
|
414
|
+
index: 9
|
|
403
415
|
}; // RNM(reference-token)
|
|
404
416
|
|
|
405
417
|
/* reference-token */
|
|
406
|
-
this.rules[
|
|
407
|
-
this.rules[
|
|
418
|
+
this.rules[9].opcodes = [];
|
|
419
|
+
this.rules[9].opcodes[0] = {
|
|
408
420
|
type: 3,
|
|
409
421
|
min: 0,
|
|
410
422
|
max: Infinity
|
|
411
423
|
}; // REP
|
|
412
|
-
this.rules[
|
|
424
|
+
this.rules[9].opcodes[1] = {
|
|
413
425
|
type: 1,
|
|
414
426
|
children: [2, 3]
|
|
415
427
|
}; // ALT
|
|
416
|
-
this.rules[
|
|
428
|
+
this.rules[9].opcodes[2] = {
|
|
417
429
|
type: 4,
|
|
418
|
-
index:
|
|
430
|
+
index: 10
|
|
419
431
|
}; // RNM(unescaped)
|
|
420
|
-
this.rules[
|
|
432
|
+
this.rules[9].opcodes[3] = {
|
|
421
433
|
type: 4,
|
|
422
|
-
index:
|
|
434
|
+
index: 11
|
|
423
435
|
}; // RNM(escaped)
|
|
424
436
|
|
|
425
437
|
/* unescaped */
|
|
426
|
-
this.rules[
|
|
427
|
-
this.rules[
|
|
438
|
+
this.rules[10].opcodes = [];
|
|
439
|
+
this.rules[10].opcodes[0] = {
|
|
428
440
|
type: 1,
|
|
429
441
|
children: [1, 2, 3]
|
|
430
442
|
}; // ALT
|
|
431
|
-
this.rules[
|
|
443
|
+
this.rules[10].opcodes[1] = {
|
|
432
444
|
type: 5,
|
|
433
445
|
min: 0,
|
|
434
446
|
max: 46
|
|
435
447
|
}; // TRG
|
|
436
|
-
this.rules[
|
|
448
|
+
this.rules[10].opcodes[2] = {
|
|
437
449
|
type: 5,
|
|
438
450
|
min: 48,
|
|
439
451
|
max: 125
|
|
440
452
|
}; // TRG
|
|
441
|
-
this.rules[
|
|
453
|
+
this.rules[10].opcodes[3] = {
|
|
442
454
|
type: 5,
|
|
443
455
|
min: 127,
|
|
444
456
|
max: 1114111
|
|
445
457
|
}; // TRG
|
|
446
458
|
|
|
447
459
|
/* escaped */
|
|
448
|
-
this.rules[
|
|
449
|
-
this.rules[
|
|
460
|
+
this.rules[11].opcodes = [];
|
|
461
|
+
this.rules[11].opcodes[0] = {
|
|
450
462
|
type: 2,
|
|
451
463
|
children: [1, 2]
|
|
452
464
|
}; // CAT
|
|
453
|
-
this.rules[
|
|
465
|
+
this.rules[11].opcodes[1] = {
|
|
454
466
|
type: 7,
|
|
455
467
|
string: [126]
|
|
456
468
|
}; // TLS
|
|
457
|
-
this.rules[
|
|
469
|
+
this.rules[11].opcodes[2] = {
|
|
458
470
|
type: 1,
|
|
459
471
|
children: [3, 4]
|
|
460
472
|
}; // ALT
|
|
461
|
-
this.rules[
|
|
473
|
+
this.rules[11].opcodes[3] = {
|
|
462
474
|
type: 7,
|
|
463
475
|
string: [48]
|
|
464
476
|
}; // TLS
|
|
465
|
-
this.rules[
|
|
477
|
+
this.rules[11].opcodes[4] = {
|
|
466
478
|
type: 7,
|
|
467
479
|
string: [49]
|
|
468
480
|
}; // TLS
|
|
469
481
|
|
|
470
|
-
/* name */
|
|
471
|
-
this.rules[11].opcodes = [];
|
|
472
|
-
this.rules[11].opcodes[0] = {
|
|
473
|
-
type: 3,
|
|
474
|
-
min: 0,
|
|
475
|
-
max: Infinity
|
|
476
|
-
}; // REP
|
|
477
|
-
this.rules[11].opcodes[1] = {
|
|
478
|
-
type: 4,
|
|
479
|
-
index: 14
|
|
480
|
-
}; // RNM(CHAR)
|
|
481
|
-
|
|
482
482
|
/* token */
|
|
483
483
|
this.rules[12].opcodes = [];
|
|
484
484
|
this.rules[12].opcodes[0] = {
|
|
@@ -738,6 +738,7 @@ export default function grammar() {
|
|
|
738
738
|
str += "query-reference = \"query.\" name\n";
|
|
739
739
|
str += "path-reference = \"path.\" name\n";
|
|
740
740
|
str += "body-reference = \"body\" [\"#\" json-pointer ]\n";
|
|
741
|
+
str += "name = *( CHAR )\n";
|
|
741
742
|
str += "\n";
|
|
742
743
|
str += "; https://datatracker.ietf.org/doc/html/rfc6901#section-3\n";
|
|
743
744
|
str += "json-pointer = *( \"/\" reference-token )\n";
|
|
@@ -746,10 +747,13 @@ export default function grammar() {
|
|
|
746
747
|
str += " ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n";
|
|
747
748
|
str += "escaped = \"~\" ( \"0\" / \"1\" )\n";
|
|
748
749
|
str += " ; representing '~' and '/', respectively\n";
|
|
749
|
-
str += "
|
|
750
|
-
str += "
|
|
751
|
-
str += "
|
|
752
|
-
str += "
|
|
750
|
+
str += "\n";
|
|
751
|
+
str += "; https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6\n";
|
|
752
|
+
str += "token = 1*tchar\n";
|
|
753
|
+
str += "tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\"\n";
|
|
754
|
+
str += " / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\"\n";
|
|
755
|
+
str += " / DIGIT / ALPHA\n";
|
|
756
|
+
str += " ; any VCHAR, except delimiters\n";
|
|
753
757
|
str += "\n";
|
|
754
758
|
str += "; https://www.rfc-editor.org/rfc/rfc7159#section-7\n";
|
|
755
759
|
str += "CHAR = unescape /\n";
|