swagger-client 3.32.2 → 3.32.3

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.
@@ -35423,6 +35423,14 @@ __webpack_require__.r(__webpack_exports__);
35423
35423
 
35424
35424
  // @ts-ignore
35425
35425
  const visitAsync = _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.visit[Symbol.for('nodejs.util.promisify.custom')];
35426
+
35427
+ /**
35428
+ * @public
35429
+ */
35430
+
35431
+ /**
35432
+ * @public
35433
+ */
35426
35434
  class OpenAPI3_1DereferenceStrategy extends _DereferenceStrategy_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] {
35427
35435
  constructor(options) {
35428
35436
  super({
@@ -35535,7 +35543,10 @@ __webpack_require__.r(__webpack_exports__);
35535
35543
 
35536
35544
 
35537
35545
 
35538
- // isAnchor :: String -> Boolean
35546
+
35547
+ /**
35548
+ * @public
35549
+ */
35539
35550
  const isAnchor = uri => {
35540
35551
  /**
35541
35552
  * MUST start with a letter ([A-Za-z]) or underscore ("_"), followed by any number of letters,
@@ -35546,13 +35557,17 @@ const isAnchor = uri => {
35546
35557
  return /^[A-Za-z_][A-Za-z_0-9.-]*$/.test(uri);
35547
35558
  };
35548
35559
 
35549
- // uriToAnchor :: String -> String
35560
+ /**
35561
+ * @public
35562
+ */
35550
35563
  const uriToAnchor = uri => {
35551
35564
  const hash = (0,_util_url_mjs__WEBPACK_IMPORTED_MODULE_0__.getHash)(uri);
35552
35565
  return (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__["default"])('#', hash);
35553
35566
  };
35554
35567
 
35555
- // parse :: String -> String
35568
+ /**
35569
+ * @public
35570
+ */
35556
35571
  const parse = anchor => {
35557
35572
  if (!isAnchor(anchor)) {
35558
35573
  throw new _errors_InvalidJsonSchema$anchorError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](anchor);
@@ -35560,7 +35575,10 @@ const parse = anchor => {
35560
35575
  return anchor;
35561
35576
  };
35562
35577
 
35563
- // evaluates JSON Schema $anchor against ApiDOM fragment
35578
+ /**
35579
+ * Evaluates JSON Schema $anchor against ApiDOM fragment.
35580
+ * @public
35581
+ */
35564
35582
  const evaluate = (anchor, element) => {
35565
35583
  const token = parse(anchor);
35566
35584
 
@@ -35608,6 +35626,7 @@ __webpack_require__.r(__webpack_exports__);
35608
35626
 
35609
35627
  /**
35610
35628
  * Evaluates JSON Schema $ref containing unknown URI against ApiDOM fragment.
35629
+ * @public
35611
35630
  */
35612
35631
  const evaluate = (uri, element) => {
35613
35632
  const {
@@ -35671,6 +35690,9 @@ __webpack_require__.r(__webpack_exports__);
35671
35690
 
35672
35691
 
35673
35692
 
35693
+ /**
35694
+ * @public
35695
+ */
35674
35696
  const resolveSchema$refField = (retrievalURI, schemaElement) => {
35675
35697
  if (typeof schemaElement.$ref === 'undefined') {
35676
35698
  return undefined;
@@ -35682,6 +35704,10 @@ const resolveSchema$refField = (retrievalURI, schemaElement) => {
35682
35704
  }, retrievalURI, [...inherited$id, (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__["default"])(schemaElement.$ref)]);
35683
35705
  return `${$refBaseURI}${hash === '#' ? '' : hash}`;
35684
35706
  };
35707
+
35708
+ /**
35709
+ * @public
35710
+ */
35685
35711
  const resolveSchema$idField = (retrievalURI, schemaElement) => {
35686
35712
  if (typeof schemaElement.$id === 'undefined') {
35687
35713
  return undefined;
@@ -35704,6 +35730,10 @@ const refractToSchemaElement = element => {
35704
35730
  return refracted;
35705
35731
  };
35706
35732
  refractToSchemaElement.cache = new WeakMap();
35733
+
35734
+ /**
35735
+ * @public
35736
+ */
35707
35737
  const maybeRefractToSchemaElement = element => {
35708
35738
  /**
35709
35739
  * Conditional version of refractToSchemaElement, that acts as an identity
@@ -35723,7 +35753,8 @@ const maybeRefractToSchemaElement = element => {
35723
35753
  "use strict";
35724
35754
  __webpack_require__.r(__webpack_exports__);
35725
35755
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
35726
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
35756
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
35757
+ /* harmony export */ mutationReplacer: () => (/* binding */ mutationReplacer)
35727
35758
  /* harmony export */ });
35728
35759
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(95201);
35729
35760
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(10796);
@@ -35776,7 +35807,10 @@ const visitAsync = _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.visit[S
35776
35807
  // initialize element identity manager
35777
35808
  const identityManager = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.IdentityManager();
35778
35809
 
35779
- // custom mutation replacer
35810
+ /**
35811
+ * Custom mutation replacer.
35812
+ * @public
35813
+ */
35780
35814
  const mutationReplacer = (newElement, oldElement, key, parent) => {
35781
35815
  if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isMemberElement)(parent)) {
35782
35816
  parent.value = newElement; // eslint-disable-line no-param-reassign
@@ -35784,6 +35818,14 @@ const mutationReplacer = (newElement, oldElement, key, parent) => {
35784
35818
  parent[key] = newElement; // eslint-disable-line no-param-reassign
35785
35819
  }
35786
35820
  };
35821
+
35822
+ /**
35823
+ * @public
35824
+ */
35825
+
35826
+ /**
35827
+ * @public
35828
+ */
35787
35829
  class OpenAPI3_1DereferenceVisitor {
35788
35830
  indirections;
35789
35831
  namespace;
@@ -37512,6 +37554,10 @@ __webpack_require__.r(__webpack_exports__);
37512
37554
  /**
37513
37555
  * Everything that is not recognized by other parsers will be considered by this parser
37514
37556
  * as a binary data and will be encoded to Base64 format.
37557
+ * @public
37558
+ */
37559
+ /**
37560
+ * @public
37515
37561
  */
37516
37562
  class BinaryParser extends _Parser_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
37517
37563
  constructor(options) {
@@ -37756,6 +37802,12 @@ __webpack_require__.r(__webpack_exports__);
37756
37802
 
37757
37803
 
37758
37804
 
37805
+ /**
37806
+ * @public
37807
+ */
37808
+ /**
37809
+ * @public
37810
+ */
37759
37811
  class OpenAPI3_1ResolveStrategy extends _ResolveStrategy_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
37760
37812
  constructor(options) {
37761
37813
  super({
@@ -44799,50 +44851,6 @@ __webpack_require__.r(__webpack_exports__);
44799
44851
 
44800
44852
 
44801
44853
 
44802
- /***/ }),
44803
-
44804
- /***/ 41856:
44805
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44806
-
44807
- "use strict";
44808
- __webpack_require__.r(__webpack_exports__);
44809
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44810
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
44811
- /* harmony export */ });
44812
- /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
44813
-
44814
- const fragmentMarker = (state, chars, phraseIndex, phraseLength, data) => {
44815
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
44816
- data.push(['fragment-marker', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
44817
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
44818
- /* not used in this example */
44819
- }
44820
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
44821
- };
44822
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fragmentMarker);
44823
-
44824
- /***/ }),
44825
-
44826
- /***/ 97774:
44827
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44828
-
44829
- "use strict";
44830
- __webpack_require__.r(__webpack_exports__);
44831
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44832
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
44833
- /* harmony export */ });
44834
- /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
44835
-
44836
- const fragment = (state, chars, phraseIndex, phraseLength, data) => {
44837
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
44838
- data.push(['fragment', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
44839
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
44840
- /* not used in this example */
44841
- }
44842
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
44843
- };
44844
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fragment);
44845
-
44846
44854
  /***/ }),
44847
44855
 
44848
44856
  /***/ 88430:
@@ -44890,72 +44898,6 @@ const pathTemplate = (state, chars, phraseIndex, phraseLength, data) => {
44890
44898
 
44891
44899
  /***/ }),
44892
44900
 
44893
- /***/ 28580:
44894
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44895
-
44896
- "use strict";
44897
- __webpack_require__.r(__webpack_exports__);
44898
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44899
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
44900
- /* harmony export */ });
44901
- /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
44902
-
44903
- const path = (state, chars, phraseIndex, phraseLength, data) => {
44904
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
44905
- data.push(['path', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
44906
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
44907
- /* not used in this example */
44908
- }
44909
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
44910
- };
44911
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (path);
44912
-
44913
- /***/ }),
44914
-
44915
- /***/ 34518:
44916
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44917
-
44918
- "use strict";
44919
- __webpack_require__.r(__webpack_exports__);
44920
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44921
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
44922
- /* harmony export */ });
44923
- /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
44924
-
44925
- const queryMarker = (state, chars, phraseIndex, phraseLength, data) => {
44926
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
44927
- data.push(['query-marker', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
44928
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
44929
- /* not used in this example */
44930
- }
44931
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
44932
- };
44933
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (queryMarker);
44934
-
44935
- /***/ }),
44936
-
44937
- /***/ 76559:
44938
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44939
-
44940
- "use strict";
44941
- __webpack_require__.r(__webpack_exports__);
44942
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44943
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
44944
- /* harmony export */ });
44945
- /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
44946
-
44947
- const query = (state, chars, phraseIndex, phraseLength, data) => {
44948
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
44949
- data.push(['query', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
44950
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
44951
- /* not used in this example */
44952
- }
44953
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
44954
- };
44955
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (query);
44956
-
44957
- /***/ }),
44958
-
44959
44901
  /***/ 31696:
44960
44902
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
44961
44903
 
@@ -45031,22 +44973,12 @@ __webpack_require__.r(__webpack_exports__);
45031
44973
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
45032
44974
  /* harmony export */ });
45033
44975
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
45034
- /* harmony import */ var _path_templating_mjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56167);
44976
+ /* harmony import */ var _path_templating_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(56167);
45035
44977
  /* harmony import */ var _callbacks_slash_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31696);
45036
44978
  /* harmony import */ var _callbacks_path_template_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33659);
45037
- /* harmony import */ var _callbacks_path_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28580);
45038
- /* harmony import */ var _callbacks_path_literal_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(88430);
45039
- /* harmony import */ var _callbacks_query_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(76559);
45040
- /* harmony import */ var _callbacks_query_marker_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34518);
45041
- /* harmony import */ var _callbacks_fragment_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(97774);
45042
- /* harmony import */ var _callbacks_fragment_marker_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41856);
45043
- /* harmony import */ var _callbacks_template_expression_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82966);
45044
- /* harmony import */ var _callbacks_template_expression_param_name_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21926);
45045
-
45046
-
45047
-
45048
-
45049
-
44979
+ /* harmony import */ var _callbacks_path_literal_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(88430);
44980
+ /* harmony import */ var _callbacks_template_expression_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82966);
44981
+ /* harmony import */ var _callbacks_template_expression_param_name_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21926);
45050
44982
 
45051
44983
 
45052
44984
 
@@ -45054,20 +44986,15 @@ __webpack_require__.r(__webpack_exports__);
45054
44986
 
45055
44987
 
45056
44988
 
45057
- const grammar = new _path_templating_mjs__WEBPACK_IMPORTED_MODULE_11__["default"]();
44989
+ const grammar = new _path_templating_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]();
45058
44990
  const parse = pathTemplate => {
45059
44991
  const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
45060
44992
  parser.ast = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Ast();
45061
44993
  parser.ast.callbacks['path-template'] = _callbacks_path_template_mjs__WEBPACK_IMPORTED_MODULE_2__["default"];
45062
- parser.ast.callbacks['path'] = _callbacks_path_mjs__WEBPACK_IMPORTED_MODULE_3__["default"];
45063
- parser.ast.callbacks['query'] = _callbacks_query_mjs__WEBPACK_IMPORTED_MODULE_5__["default"];
45064
- parser.ast.callbacks['query-marker'] = _callbacks_query_marker_mjs__WEBPACK_IMPORTED_MODULE_6__["default"];
45065
- parser.ast.callbacks['fragment'] = _callbacks_fragment_mjs__WEBPACK_IMPORTED_MODULE_7__["default"];
45066
- parser.ast.callbacks['fragment-marker'] = _callbacks_fragment_marker_mjs__WEBPACK_IMPORTED_MODULE_8__["default"];
45067
44994
  parser.ast.callbacks['slash'] = _callbacks_slash_mjs__WEBPACK_IMPORTED_MODULE_1__["default"];
45068
- parser.ast.callbacks['path-literal'] = _callbacks_path_literal_mjs__WEBPACK_IMPORTED_MODULE_4__["default"];
45069
- parser.ast.callbacks['template-expression'] = _callbacks_template_expression_mjs__WEBPACK_IMPORTED_MODULE_9__["default"];
45070
- parser.ast.callbacks['template-expression-param-name'] = _callbacks_template_expression_param_name_mjs__WEBPACK_IMPORTED_MODULE_10__["default"];
44995
+ parser.ast.callbacks['path-literal'] = _callbacks_path_literal_mjs__WEBPACK_IMPORTED_MODULE_3__["default"];
44996
+ parser.ast.callbacks['template-expression'] = _callbacks_template_expression_mjs__WEBPACK_IMPORTED_MODULE_4__["default"];
44997
+ parser.ast.callbacks['template-expression-param-name'] = _callbacks_template_expression_param_name_mjs__WEBPACK_IMPORTED_MODULE_5__["default"];
45071
44998
  const result = parser.parse(grammar, 'path-template', pathTemplate);
45072
44999
  return {
45073
45000
  result,
@@ -45093,22 +45020,22 @@ __webpack_require__.r(__webpack_exports__);
45093
45020
  function grammar() {
45094
45021
  // ```
45095
45022
  // SUMMARY
45096
- // rules = 19
45023
+ // rules = 13
45097
45024
  // udts = 0
45098
- // opcodes = 102
45025
+ // opcodes = 65
45099
45026
  // --- ABNF original opcodes
45100
- // ALT = 9
45101
- // CAT = 7
45102
- // REP = 11
45103
- // RNM = 31
45104
- // TLS = 41
45105
- // TBS = 0
45106
- // TRG = 3
45027
+ // ALT = 7
45028
+ // CAT = 4
45029
+ // REP = 5
45030
+ // RNM = 16
45031
+ // TLS = 27
45032
+ // TBS = 1
45033
+ // TRG = 5
45107
45034
  // --- SABNF superset opcodes
45108
45035
  // UDT = 0
45109
45036
  // AND = 0
45110
45037
  // NOT = 0
45111
- // characters = [33 - 126]
45038
+ // characters = [0 - 1114111]
45112
45039
  // ```
45113
45040
  /* OBJECT IDENTIFIER (for internal parser use) */
45114
45041
  this.grammarObject = 'grammarObject';
@@ -45122,111 +45049,75 @@ function grammar() {
45122
45049
  isBkr: false
45123
45050
  };
45124
45051
  this.rules[1] = {
45125
- name: 'path',
45126
- lower: 'path',
45052
+ name: 'path-segment',
45053
+ lower: 'path-segment',
45127
45054
  index: 1,
45128
45055
  isBkr: false
45129
45056
  };
45130
45057
  this.rules[2] = {
45131
- name: 'path-segment',
45132
- lower: 'path-segment',
45058
+ name: 'slash',
45059
+ lower: 'slash',
45133
45060
  index: 2,
45134
45061
  isBkr: false
45135
45062
  };
45136
45063
  this.rules[3] = {
45137
- name: 'query',
45138
- lower: 'query',
45064
+ name: 'path-literal',
45065
+ lower: 'path-literal',
45139
45066
  index: 3,
45140
45067
  isBkr: false
45141
45068
  };
45142
45069
  this.rules[4] = {
45143
- name: 'query-literal',
45144
- lower: 'query-literal',
45070
+ name: 'template-expression',
45071
+ lower: 'template-expression',
45145
45072
  index: 4,
45146
45073
  isBkr: false
45147
45074
  };
45148
45075
  this.rules[5] = {
45149
- name: 'query-marker',
45150
- lower: 'query-marker',
45076
+ name: 'template-expression-param-name',
45077
+ lower: 'template-expression-param-name',
45151
45078
  index: 5,
45152
45079
  isBkr: false
45153
45080
  };
45154
45081
  this.rules[6] = {
45155
- name: 'fragment',
45156
- lower: 'fragment',
45082
+ name: 'pchar',
45083
+ lower: 'pchar',
45157
45084
  index: 6,
45158
45085
  isBkr: false
45159
45086
  };
45160
45087
  this.rules[7] = {
45161
- name: 'fragment-literal',
45162
- lower: 'fragment-literal',
45163
- index: 7,
45164
- isBkr: false
45165
- };
45166
- this.rules[8] = {
45167
- name: 'fragment-marker',
45168
- lower: 'fragment-marker',
45169
- index: 8,
45170
- isBkr: false
45171
- };
45172
- this.rules[9] = {
45173
- name: 'slash',
45174
- lower: 'slash',
45175
- index: 9,
45176
- isBkr: false
45177
- };
45178
- this.rules[10] = {
45179
- name: 'path-literal',
45180
- lower: 'path-literal',
45181
- index: 10,
45182
- isBkr: false
45183
- };
45184
- this.rules[11] = {
45185
- name: 'template-expression',
45186
- lower: 'template-expression',
45187
- index: 11,
45188
- isBkr: false
45189
- };
45190
- this.rules[12] = {
45191
- name: 'template-expression-param-name',
45192
- lower: 'template-expression-param-name',
45193
- index: 12,
45194
- isBkr: false
45195
- };
45196
- this.rules[13] = {
45197
45088
  name: 'unreserved',
45198
45089
  lower: 'unreserved',
45199
- index: 13,
45090
+ index: 7,
45200
45091
  isBkr: false
45201
45092
  };
45202
- this.rules[14] = {
45093
+ this.rules[8] = {
45203
45094
  name: 'pct-encoded',
45204
45095
  lower: 'pct-encoded',
45205
- index: 14,
45096
+ index: 8,
45206
45097
  isBkr: false
45207
45098
  };
45208
- this.rules[15] = {
45099
+ this.rules[9] = {
45209
45100
  name: 'sub-delims',
45210
45101
  lower: 'sub-delims',
45211
- index: 15,
45102
+ index: 9,
45212
45103
  isBkr: false
45213
45104
  };
45214
- this.rules[16] = {
45105
+ this.rules[10] = {
45215
45106
  name: 'ALPHA',
45216
45107
  lower: 'alpha',
45217
- index: 16,
45108
+ index: 10,
45218
45109
  isBkr: false
45219
45110
  };
45220
- this.rules[17] = {
45111
+ this.rules[11] = {
45221
45112
  name: 'DIGIT',
45222
45113
  lower: 'digit',
45223
- index: 17,
45114
+ index: 11,
45224
45115
  isBkr: false
45225
45116
  };
45226
- this.rules[18] = {
45117
+ this.rules[12] = {
45227
45118
  name: 'HEXDIG',
45228
45119
  lower: 'hexdig',
45229
- index: 18,
45120
+ index: 12,
45230
45121
  isBkr: false
45231
45122
  };
45232
45123
 
@@ -45242,12 +45133,12 @@ function grammar() {
45242
45133
  }; // CAT
45243
45134
  this.rules[0].opcodes[1] = {
45244
45135
  type: 4,
45245
- index: 1
45246
- }; // RNM(path)
45136
+ index: 2
45137
+ }; // RNM(slash)
45247
45138
  this.rules[0].opcodes[2] = {
45248
45139
  type: 3,
45249
45140
  min: 0,
45250
- max: 1
45141
+ max: Infinity
45251
45142
  }; // REP
45252
45143
  this.rules[0].opcodes[3] = {
45253
45144
  type: 2,
@@ -45255,460 +45146,290 @@ function grammar() {
45255
45146
  }; // CAT
45256
45147
  this.rules[0].opcodes[4] = {
45257
45148
  type: 4,
45258
- index: 5
45259
- }; // RNM(query-marker)
45149
+ index: 1
45150
+ }; // RNM(path-segment)
45260
45151
  this.rules[0].opcodes[5] = {
45261
- type: 4,
45262
- index: 3
45263
- }; // RNM(query)
45264
- this.rules[0].opcodes[6] = {
45265
- type: 3,
45266
- min: 0,
45267
- max: 1
45268
- }; // REP
45269
- this.rules[0].opcodes[7] = {
45270
- type: 2,
45271
- children: [8, 9]
45272
- }; // CAT
45273
- this.rules[0].opcodes[8] = {
45274
- type: 4,
45275
- index: 8
45276
- }; // RNM(fragment-marker)
45277
- this.rules[0].opcodes[9] = {
45278
- type: 4,
45279
- index: 6
45280
- }; // RNM(fragment)
45281
-
45282
- /* path */
45283
- this.rules[1].opcodes = [];
45284
- this.rules[1].opcodes[0] = {
45285
- type: 2,
45286
- children: [1, 2, 6]
45287
- }; // CAT
45288
- this.rules[1].opcodes[1] = {
45289
- type: 4,
45290
- index: 9
45291
- }; // RNM(slash)
45292
- this.rules[1].opcodes[2] = {
45293
- type: 3,
45294
- min: 0,
45295
- max: Infinity
45296
- }; // REP
45297
- this.rules[1].opcodes[3] = {
45298
- type: 2,
45299
- children: [4, 5]
45300
- }; // CAT
45301
- this.rules[1].opcodes[4] = {
45302
45152
  type: 4,
45303
45153
  index: 2
45304
- }; // RNM(path-segment)
45305
- this.rules[1].opcodes[5] = {
45306
- type: 4,
45307
- index: 9
45308
45154
  }; // RNM(slash)
45309
- this.rules[1].opcodes[6] = {
45155
+ this.rules[0].opcodes[6] = {
45310
45156
  type: 3,
45311
45157
  min: 0,
45312
45158
  max: 1
45313
45159
  }; // REP
45314
- this.rules[1].opcodes[7] = {
45160
+ this.rules[0].opcodes[7] = {
45315
45161
  type: 4,
45316
- index: 2
45162
+ index: 1
45317
45163
  }; // RNM(path-segment)
45318
45164
 
45319
45165
  /* path-segment */
45320
- this.rules[2].opcodes = [];
45321
- this.rules[2].opcodes[0] = {
45166
+ this.rules[1].opcodes = [];
45167
+ this.rules[1].opcodes[0] = {
45322
45168
  type: 3,
45323
45169
  min: 1,
45324
45170
  max: Infinity
45325
45171
  }; // REP
45326
- this.rules[2].opcodes[1] = {
45172
+ this.rules[1].opcodes[1] = {
45327
45173
  type: 1,
45328
45174
  children: [2, 3]
45329
45175
  }; // ALT
45330
- this.rules[2].opcodes[2] = {
45176
+ this.rules[1].opcodes[2] = {
45331
45177
  type: 4,
45332
- index: 10
45178
+ index: 3
45333
45179
  }; // RNM(path-literal)
45334
- this.rules[2].opcodes[3] = {
45335
- type: 4,
45336
- index: 11
45337
- }; // RNM(template-expression)
45338
-
45339
- /* query */
45340
- this.rules[3].opcodes = [];
45341
- this.rules[3].opcodes[0] = {
45342
- type: 3,
45343
- min: 0,
45344
- max: Infinity
45345
- }; // REP
45346
- this.rules[3].opcodes[1] = {
45180
+ this.rules[1].opcodes[3] = {
45347
45181
  type: 4,
45348
45182
  index: 4
45349
- }; // RNM(query-literal)
45350
-
45351
- /* query-literal */
45352
- this.rules[4].opcodes = [];
45353
- this.rules[4].opcodes[0] = {
45354
- type: 3,
45355
- min: 1,
45356
- max: Infinity
45357
- }; // REP
45358
- this.rules[4].opcodes[1] = {
45359
- type: 1,
45360
- children: [2, 3, 4, 5, 6, 7, 8, 9, 10]
45361
- }; // ALT
45362
- this.rules[4].opcodes[2] = {
45363
- type: 4,
45364
- index: 13
45365
- }; // RNM(unreserved)
45366
- this.rules[4].opcodes[3] = {
45367
- type: 4,
45368
- index: 14
45369
- }; // RNM(pct-encoded)
45370
- this.rules[4].opcodes[4] = {
45371
- type: 4,
45372
- index: 15
45373
- }; // RNM(sub-delims)
45374
- this.rules[4].opcodes[5] = {
45375
- type: 7,
45376
- string: [58]
45377
- }; // TLS
45378
- this.rules[4].opcodes[6] = {
45379
- type: 7,
45380
- string: [64]
45381
- }; // TLS
45382
- this.rules[4].opcodes[7] = {
45383
- type: 7,
45384
- string: [47]
45385
- }; // TLS
45386
- this.rules[4].opcodes[8] = {
45387
- type: 7,
45388
- string: [63]
45389
- }; // TLS
45390
- this.rules[4].opcodes[9] = {
45391
- type: 7,
45392
- string: [38]
45393
- }; // TLS
45394
- this.rules[4].opcodes[10] = {
45395
- type: 7,
45396
- string: [61]
45397
- }; // TLS
45398
-
45399
- /* query-marker */
45400
- this.rules[5].opcodes = [];
45401
- this.rules[5].opcodes[0] = {
45402
- type: 7,
45403
- string: [63]
45404
- }; // TLS
45405
-
45406
- /* fragment */
45407
- this.rules[6].opcodes = [];
45408
- this.rules[6].opcodes[0] = {
45409
- type: 3,
45410
- min: 0,
45411
- max: Infinity
45412
- }; // REP
45413
- this.rules[6].opcodes[1] = {
45414
- type: 4,
45415
- index: 7
45416
- }; // RNM(fragment-literal)
45417
-
45418
- /* fragment-literal */
45419
- this.rules[7].opcodes = [];
45420
- this.rules[7].opcodes[0] = {
45421
- type: 3,
45422
- min: 1,
45423
- max: Infinity
45424
- }; // REP
45425
- this.rules[7].opcodes[1] = {
45426
- type: 1,
45427
- children: [2, 3, 4, 5, 6, 7, 8]
45428
- }; // ALT
45429
- this.rules[7].opcodes[2] = {
45430
- type: 4,
45431
- index: 13
45432
- }; // RNM(unreserved)
45433
- this.rules[7].opcodes[3] = {
45434
- type: 4,
45435
- index: 14
45436
- }; // RNM(pct-encoded)
45437
- this.rules[7].opcodes[4] = {
45438
- type: 4,
45439
- index: 15
45440
- }; // RNM(sub-delims)
45441
- this.rules[7].opcodes[5] = {
45442
- type: 7,
45443
- string: [58]
45444
- }; // TLS
45445
- this.rules[7].opcodes[6] = {
45446
- type: 7,
45447
- string: [64]
45448
- }; // TLS
45449
- this.rules[7].opcodes[7] = {
45450
- type: 7,
45451
- string: [47]
45452
- }; // TLS
45453
- this.rules[7].opcodes[8] = {
45454
- type: 7,
45455
- string: [63]
45456
- }; // TLS
45457
-
45458
- /* fragment-marker */
45459
- this.rules[8].opcodes = [];
45460
- this.rules[8].opcodes[0] = {
45461
- type: 7,
45462
- string: [35]
45463
- }; // TLS
45183
+ }; // RNM(template-expression)
45464
45184
 
45465
45185
  /* slash */
45466
- this.rules[9].opcodes = [];
45467
- this.rules[9].opcodes[0] = {
45186
+ this.rules[2].opcodes = [];
45187
+ this.rules[2].opcodes[0] = {
45468
45188
  type: 7,
45469
45189
  string: [47]
45470
45190
  }; // TLS
45471
45191
 
45472
45192
  /* path-literal */
45473
- this.rules[10].opcodes = [];
45474
- this.rules[10].opcodes[0] = {
45193
+ this.rules[3].opcodes = [];
45194
+ this.rules[3].opcodes[0] = {
45475
45195
  type: 3,
45476
45196
  min: 1,
45477
45197
  max: Infinity
45478
45198
  }; // REP
45479
- this.rules[10].opcodes[1] = {
45480
- type: 1,
45481
- children: [2, 3, 4, 5, 6]
45482
- }; // ALT
45483
- this.rules[10].opcodes[2] = {
45484
- type: 4,
45485
- index: 13
45486
- }; // RNM(unreserved)
45487
- this.rules[10].opcodes[3] = {
45488
- type: 4,
45489
- index: 14
45490
- }; // RNM(pct-encoded)
45491
- this.rules[10].opcodes[4] = {
45199
+ this.rules[3].opcodes[1] = {
45492
45200
  type: 4,
45493
- index: 15
45494
- }; // RNM(sub-delims)
45495
- this.rules[10].opcodes[5] = {
45496
- type: 7,
45497
- string: [58]
45498
- }; // TLS
45499
- this.rules[10].opcodes[6] = {
45500
- type: 7,
45501
- string: [64]
45502
- }; // TLS
45201
+ index: 6
45202
+ }; // RNM(pchar)
45503
45203
 
45504
45204
  /* template-expression */
45505
- this.rules[11].opcodes = [];
45506
- this.rules[11].opcodes[0] = {
45205
+ this.rules[4].opcodes = [];
45206
+ this.rules[4].opcodes[0] = {
45507
45207
  type: 2,
45508
45208
  children: [1, 2, 3]
45509
45209
  }; // CAT
45510
- this.rules[11].opcodes[1] = {
45210
+ this.rules[4].opcodes[1] = {
45511
45211
  type: 7,
45512
45212
  string: [123]
45513
45213
  }; // TLS
45514
- this.rules[11].opcodes[2] = {
45214
+ this.rules[4].opcodes[2] = {
45515
45215
  type: 4,
45516
- index: 12
45216
+ index: 5
45517
45217
  }; // RNM(template-expression-param-name)
45518
- this.rules[11].opcodes[3] = {
45218
+ this.rules[4].opcodes[3] = {
45519
45219
  type: 7,
45520
45220
  string: [125]
45521
45221
  }; // TLS
45522
45222
 
45523
45223
  /* template-expression-param-name */
45524
- this.rules[12].opcodes = [];
45525
- this.rules[12].opcodes[0] = {
45224
+ this.rules[5].opcodes = [];
45225
+ this.rules[5].opcodes[0] = {
45526
45226
  type: 3,
45527
45227
  min: 1,
45528
45228
  max: Infinity
45529
45229
  }; // REP
45530
- this.rules[12].opcodes[1] = {
45230
+ this.rules[5].opcodes[1] = {
45531
45231
  type: 1,
45532
- children: [2, 3, 4, 5, 6]
45232
+ children: [2, 3, 4]
45533
45233
  }; // ALT
45534
- this.rules[12].opcodes[2] = {
45234
+ this.rules[5].opcodes[2] = {
45235
+ type: 5,
45236
+ min: 0,
45237
+ max: 121
45238
+ }; // TRG
45239
+ this.rules[5].opcodes[3] = {
45240
+ type: 6,
45241
+ string: [124]
45242
+ }; // TBS
45243
+ this.rules[5].opcodes[4] = {
45244
+ type: 5,
45245
+ min: 126,
45246
+ max: 1114111
45247
+ }; // TRG
45248
+
45249
+ /* pchar */
45250
+ this.rules[6].opcodes = [];
45251
+ this.rules[6].opcodes[0] = {
45252
+ type: 1,
45253
+ children: [1, 2, 3, 4, 5]
45254
+ }; // ALT
45255
+ this.rules[6].opcodes[1] = {
45535
45256
  type: 4,
45536
- index: 13
45257
+ index: 7
45537
45258
  }; // RNM(unreserved)
45538
- this.rules[12].opcodes[3] = {
45259
+ this.rules[6].opcodes[2] = {
45539
45260
  type: 4,
45540
- index: 14
45261
+ index: 8
45541
45262
  }; // RNM(pct-encoded)
45542
- this.rules[12].opcodes[4] = {
45263
+ this.rules[6].opcodes[3] = {
45543
45264
  type: 4,
45544
- index: 15
45265
+ index: 9
45545
45266
  }; // RNM(sub-delims)
45546
- this.rules[12].opcodes[5] = {
45267
+ this.rules[6].opcodes[4] = {
45547
45268
  type: 7,
45548
45269
  string: [58]
45549
45270
  }; // TLS
45550
- this.rules[12].opcodes[6] = {
45271
+ this.rules[6].opcodes[5] = {
45551
45272
  type: 7,
45552
45273
  string: [64]
45553
45274
  }; // TLS
45554
45275
 
45555
45276
  /* unreserved */
45556
- this.rules[13].opcodes = [];
45557
- this.rules[13].opcodes[0] = {
45277
+ this.rules[7].opcodes = [];
45278
+ this.rules[7].opcodes[0] = {
45558
45279
  type: 1,
45559
45280
  children: [1, 2, 3, 4, 5, 6]
45560
45281
  }; // ALT
45561
- this.rules[13].opcodes[1] = {
45282
+ this.rules[7].opcodes[1] = {
45562
45283
  type: 4,
45563
- index: 16
45284
+ index: 10
45564
45285
  }; // RNM(ALPHA)
45565
- this.rules[13].opcodes[2] = {
45286
+ this.rules[7].opcodes[2] = {
45566
45287
  type: 4,
45567
- index: 17
45288
+ index: 11
45568
45289
  }; // RNM(DIGIT)
45569
- this.rules[13].opcodes[3] = {
45290
+ this.rules[7].opcodes[3] = {
45570
45291
  type: 7,
45571
45292
  string: [45]
45572
45293
  }; // TLS
45573
- this.rules[13].opcodes[4] = {
45294
+ this.rules[7].opcodes[4] = {
45574
45295
  type: 7,
45575
45296
  string: [46]
45576
45297
  }; // TLS
45577
- this.rules[13].opcodes[5] = {
45298
+ this.rules[7].opcodes[5] = {
45578
45299
  type: 7,
45579
45300
  string: [95]
45580
45301
  }; // TLS
45581
- this.rules[13].opcodes[6] = {
45302
+ this.rules[7].opcodes[6] = {
45582
45303
  type: 7,
45583
45304
  string: [126]
45584
45305
  }; // TLS
45585
45306
 
45586
45307
  /* pct-encoded */
45587
- this.rules[14].opcodes = [];
45588
- this.rules[14].opcodes[0] = {
45308
+ this.rules[8].opcodes = [];
45309
+ this.rules[8].opcodes[0] = {
45589
45310
  type: 2,
45590
45311
  children: [1, 2, 3]
45591
45312
  }; // CAT
45592
- this.rules[14].opcodes[1] = {
45313
+ this.rules[8].opcodes[1] = {
45593
45314
  type: 7,
45594
45315
  string: [37]
45595
45316
  }; // TLS
45596
- this.rules[14].opcodes[2] = {
45317
+ this.rules[8].opcodes[2] = {
45597
45318
  type: 4,
45598
- index: 18
45319
+ index: 12
45599
45320
  }; // RNM(HEXDIG)
45600
- this.rules[14].opcodes[3] = {
45321
+ this.rules[8].opcodes[3] = {
45601
45322
  type: 4,
45602
- index: 18
45323
+ index: 12
45603
45324
  }; // RNM(HEXDIG)
45604
45325
 
45605
45326
  /* sub-delims */
45606
- this.rules[15].opcodes = [];
45607
- this.rules[15].opcodes[0] = {
45327
+ this.rules[9].opcodes = [];
45328
+ this.rules[9].opcodes[0] = {
45608
45329
  type: 1,
45609
45330
  children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
45610
45331
  }; // ALT
45611
- this.rules[15].opcodes[1] = {
45332
+ this.rules[9].opcodes[1] = {
45612
45333
  type: 7,
45613
45334
  string: [33]
45614
45335
  }; // TLS
45615
- this.rules[15].opcodes[2] = {
45336
+ this.rules[9].opcodes[2] = {
45616
45337
  type: 7,
45617
45338
  string: [36]
45618
45339
  }; // TLS
45619
- this.rules[15].opcodes[3] = {
45340
+ this.rules[9].opcodes[3] = {
45620
45341
  type: 7,
45621
45342
  string: [38]
45622
45343
  }; // TLS
45623
- this.rules[15].opcodes[4] = {
45344
+ this.rules[9].opcodes[4] = {
45624
45345
  type: 7,
45625
45346
  string: [39]
45626
45347
  }; // TLS
45627
- this.rules[15].opcodes[5] = {
45348
+ this.rules[9].opcodes[5] = {
45628
45349
  type: 7,
45629
45350
  string: [40]
45630
45351
  }; // TLS
45631
- this.rules[15].opcodes[6] = {
45352
+ this.rules[9].opcodes[6] = {
45632
45353
  type: 7,
45633
45354
  string: [41]
45634
45355
  }; // TLS
45635
- this.rules[15].opcodes[7] = {
45356
+ this.rules[9].opcodes[7] = {
45636
45357
  type: 7,
45637
45358
  string: [42]
45638
45359
  }; // TLS
45639
- this.rules[15].opcodes[8] = {
45360
+ this.rules[9].opcodes[8] = {
45640
45361
  type: 7,
45641
45362
  string: [43]
45642
45363
  }; // TLS
45643
- this.rules[15].opcodes[9] = {
45364
+ this.rules[9].opcodes[9] = {
45644
45365
  type: 7,
45645
45366
  string: [44]
45646
45367
  }; // TLS
45647
- this.rules[15].opcodes[10] = {
45368
+ this.rules[9].opcodes[10] = {
45648
45369
  type: 7,
45649
45370
  string: [59]
45650
45371
  }; // TLS
45651
- this.rules[15].opcodes[11] = {
45372
+ this.rules[9].opcodes[11] = {
45652
45373
  type: 7,
45653
45374
  string: [61]
45654
45375
  }; // TLS
45655
45376
 
45656
45377
  /* ALPHA */
45657
- this.rules[16].opcodes = [];
45658
- this.rules[16].opcodes[0] = {
45378
+ this.rules[10].opcodes = [];
45379
+ this.rules[10].opcodes[0] = {
45659
45380
  type: 1,
45660
45381
  children: [1, 2]
45661
45382
  }; // ALT
45662
- this.rules[16].opcodes[1] = {
45383
+ this.rules[10].opcodes[1] = {
45663
45384
  type: 5,
45664
45385
  min: 65,
45665
45386
  max: 90
45666
45387
  }; // TRG
45667
- this.rules[16].opcodes[2] = {
45388
+ this.rules[10].opcodes[2] = {
45668
45389
  type: 5,
45669
45390
  min: 97,
45670
45391
  max: 122
45671
45392
  }; // TRG
45672
45393
 
45673
45394
  /* DIGIT */
45674
- this.rules[17].opcodes = [];
45675
- this.rules[17].opcodes[0] = {
45395
+ this.rules[11].opcodes = [];
45396
+ this.rules[11].opcodes[0] = {
45676
45397
  type: 5,
45677
45398
  min: 48,
45678
45399
  max: 57
45679
45400
  }; // TRG
45680
45401
 
45681
45402
  /* HEXDIG */
45682
- this.rules[18].opcodes = [];
45683
- this.rules[18].opcodes[0] = {
45403
+ this.rules[12].opcodes = [];
45404
+ this.rules[12].opcodes[0] = {
45684
45405
  type: 1,
45685
45406
  children: [1, 2, 3, 4, 5, 6, 7]
45686
45407
  }; // ALT
45687
- this.rules[18].opcodes[1] = {
45408
+ this.rules[12].opcodes[1] = {
45688
45409
  type: 4,
45689
- index: 17
45410
+ index: 11
45690
45411
  }; // RNM(DIGIT)
45691
- this.rules[18].opcodes[2] = {
45412
+ this.rules[12].opcodes[2] = {
45692
45413
  type: 7,
45693
45414
  string: [97]
45694
45415
  }; // TLS
45695
- this.rules[18].opcodes[3] = {
45416
+ this.rules[12].opcodes[3] = {
45696
45417
  type: 7,
45697
45418
  string: [98]
45698
45419
  }; // TLS
45699
- this.rules[18].opcodes[4] = {
45420
+ this.rules[12].opcodes[4] = {
45700
45421
  type: 7,
45701
45422
  string: [99]
45702
45423
  }; // TLS
45703
- this.rules[18].opcodes[5] = {
45424
+ this.rules[12].opcodes[5] = {
45704
45425
  type: 7,
45705
45426
  string: [100]
45706
45427
  }; // TLS
45707
- this.rules[18].opcodes[6] = {
45428
+ this.rules[12].opcodes[6] = {
45708
45429
  type: 7,
45709
45430
  string: [101]
45710
45431
  }; // TLS
45711
- this.rules[18].opcodes[7] = {
45432
+ this.rules[12].opcodes[7] = {
45712
45433
  type: 7,
45713
45434
  string: [102]
45714
45435
  }; // TLS
@@ -45717,25 +45438,21 @@ function grammar() {
45717
45438
  this.toString = function toString() {
45718
45439
  let str = "";
45719
45440
  str += "; OpenAPI Path Templating ABNF syntax\n";
45720
- str += "path-template = path [ query-marker query ] [ fragment-marker fragment ]\n";
45721
- str += "path = slash *( path-segment slash ) [ path-segment ]\n";
45441
+ str += "path-template = slash *( path-segment slash ) [ path-segment ]\n";
45722
45442
  str += "path-segment = 1*( path-literal / template-expression )\n";
45723
- str += "query = *( query-literal )\n";
45724
- str += "query-literal = 1*( unreserved / pct-encoded / sub-delims / \":\" / \"@\" / \"/\" / \"?\" / \"&\" / \"=\" )\n";
45725
- str += "query-marker = \"?\"\n";
45726
- str += "fragment = *( fragment-literal )\n";
45727
- str += "fragment-literal = 1*( unreserved / pct-encoded / sub-delims / \":\" / \"@\" / \"/\" / \"?\" )\n";
45728
- str += "fragment-marker = \"#\"\n";
45729
45443
  str += "slash = \"/\"\n";
45730
- str += "path-literal = 1*( unreserved / pct-encoded / sub-delims / \":\" / \"@\" )\n";
45444
+ str += "path-literal = 1*pchar\n";
45731
45445
  str += "template-expression = \"{\" template-expression-param-name \"}\"\n";
45732
- str += "template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / \":\" / \"@\" )\n";
45446
+ str += "template-expression-param-name = 1*( %x00-79 / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n";
45733
45447
  str += "\n";
45734
45448
  str += "; Characters definitions (from RFC 3986)\n";
45449
+ str += "pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n";
45735
45450
  str += "unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n";
45736
45451
  str += "pct-encoded = \"%\" HEXDIG HEXDIG\n";
45737
45452
  str += "sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n";
45738
45453
  str += " / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n";
45454
+ str += "\n";
45455
+ str += "; Characters definitions (from RFC 5234)\n";
45739
45456
  str += "ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n";
45740
45457
  str += "DIGIT = %x30-39 ; 0-9\n";
45741
45458
  str += "HEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n";
@@ -45769,7 +45486,7 @@ const encodePathComponent = parameterValue => {
45769
45486
  }
45770
45487
  return encodeURIComponent(parameterValue).replace(/%5B/g, '[').replace(/%5D/g, ']');
45771
45488
  };
45772
- const significantTypes = ['slash', 'path-literal', 'query-marker', 'query-literal', 'template-expression-param-name'];
45489
+ const significantTypes = ['slash', 'path-literal', 'template-expression-param-name'];
45773
45490
  const resolve = (pathTemplate, parameters, options = {}) => {
45774
45491
  const defaultOptions = {
45775
45492
  encoder: encodePathComponent