@speclynx/apidom-reference 2.6.1 → 2.7.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.
- package/CHANGELOG.md +6 -0
- package/README.md +60 -33
- package/dist/apidom-reference.browser.js +284 -89
- package/dist/apidom-reference.browser.min.js +1 -1
- package/package.json +25 -25
- package/src/configuration/saturated.cjs +2 -4
- package/src/configuration/saturated.mjs +3 -5
- package/src/dereference/strategies/arazzo-1/index.cjs +10 -0
- package/src/dereference/strategies/arazzo-1/index.mjs +10 -0
- package/src/dereference/strategies/arazzo-1/source-description.cjs +179 -0
- package/src/dereference/strategies/arazzo-1/source-description.mjs +172 -0
- package/src/dereference/strategies/openapi-3-0/visitor.cjs +2 -2
- package/src/dereference/strategies/openapi-3-0/visitor.mjs +2 -2
- package/src/dereference/strategies/openapi-3-1/visitor.cjs +2 -2
- package/src/dereference/strategies/openapi-3-1/visitor.mjs +2 -2
- package/src/parse/parsers/arazzo-json-1/index.cjs +1 -4
- package/src/parse/parsers/arazzo-json-1/index.mjs +1 -4
- package/src/parse/parsers/arazzo-json-1/source-description.cjs +14 -19
- package/src/parse/parsers/arazzo-json-1/source-description.mjs +14 -20
- package/src/parse/parsers/arazzo-yaml-1/index.cjs +1 -4
- package/src/parse/parsers/arazzo-yaml-1/index.mjs +1 -4
- package/src/resolve/resolvers/file/index-browser.cjs +1 -1
- package/src/resolve/resolvers/file/index-browser.mjs +1 -1
- package/types/dereference/strategies/arazzo-1/source-description.d.ts +8 -0
- package/types/parse/parsers/arazzo-json-1/index.d.ts +0 -3
- package/types/parse/parsers/arazzo-json-1/source-description.d.ts +1 -6
- package/types/parse/parsers/arazzo-yaml-1/index.d.ts +0 -3
|
@@ -816,9 +816,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
816
816
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
817
817
|
/* harmony export */ Arazzo1DereferenceVisitor: () => (/* reexport safe */ _visitor_ts__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
818
818
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
819
|
-
/* harmony export */ maybeRefractToJSONSchemaElement: () => (/* reexport safe */
|
|
820
|
-
/* harmony export */ resolveSchema$idField: () => (/* reexport safe */
|
|
821
|
-
/* harmony export */ resolveSchema$refField: () => (/* reexport safe */
|
|
819
|
+
/* harmony export */ maybeRefractToJSONSchemaElement: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_11__.maybeRefractToJSONSchemaElement),
|
|
820
|
+
/* harmony export */ resolveSchema$idField: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_12__.resolveSchema$idField),
|
|
821
|
+
/* harmony export */ resolveSchema$refField: () => (/* reexport safe */ _util_ts__WEBPACK_IMPORTED_MODULE_12__.resolveSchema$refField)
|
|
822
822
|
/* harmony export */ });
|
|
823
823
|
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55156);
|
|
824
824
|
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12111);
|
|
@@ -830,8 +830,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
830
830
|
/* harmony import */ var _Reference_ts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(98979);
|
|
831
831
|
/* harmony import */ var _ReferenceSet_ts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(24131);
|
|
832
832
|
/* harmony import */ var _visitor_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31843);
|
|
833
|
-
/* harmony import */ var
|
|
834
|
-
/* harmony import */ var _util_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
833
|
+
/* harmony import */ var _source_description_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(99371);
|
|
834
|
+
/* harmony import */ var _util_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91005);
|
|
835
|
+
/* harmony import */ var _util_ts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(60888);
|
|
836
|
+
|
|
835
837
|
|
|
836
838
|
|
|
837
839
|
|
|
@@ -901,6 +903,15 @@ class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORT
|
|
|
901
903
|
mutable: true
|
|
902
904
|
});
|
|
903
905
|
|
|
906
|
+
/**
|
|
907
|
+
* Dereference source descriptions if option is enabled.
|
|
908
|
+
*/
|
|
909
|
+
const shouldDereferenceSourceDescriptions = options?.dereference?.strategyOpts?.[this.name]?.sourceDescriptions ?? options?.dereference?.strategyOpts?.sourceDescriptions;
|
|
910
|
+
if (shouldDereferenceSourceDescriptions) {
|
|
911
|
+
const sourceDescriptions = await (0,_source_description_ts__WEBPACK_IMPORTED_MODULE_10__.dereferenceSourceDescriptions)(dereferencedElement, reference, options);
|
|
912
|
+
dereferencedElement.push(...sourceDescriptions);
|
|
913
|
+
}
|
|
914
|
+
|
|
904
915
|
/**
|
|
905
916
|
* If immutable option is set, replay refs from the refSet.
|
|
906
917
|
*/
|
|
@@ -928,6 +939,203 @@ class Arazzo1DereferenceStrategy extends _DereferenceStrategy_ts__WEBPACK_IMPORT
|
|
|
928
939
|
|
|
929
940
|
/***/ },
|
|
930
941
|
|
|
942
|
+
/***/ 99371
|
|
943
|
+
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
944
|
+
|
|
945
|
+
"use strict";
|
|
946
|
+
__webpack_require__.r(__webpack_exports__);
|
|
947
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
948
|
+
/* harmony export */ dereferenceSourceDescriptions: () => (/* binding */ dereferenceSourceDescriptions)
|
|
949
|
+
/* harmony export */ });
|
|
950
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
951
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12111);
|
|
952
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84660);
|
|
953
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4823);
|
|
954
|
+
/* harmony import */ var _speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28839);
|
|
955
|
+
/* harmony import */ var _speclynx_apidom_ns_openapi_2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26365);
|
|
956
|
+
/* harmony import */ var _speclynx_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32131);
|
|
957
|
+
/* harmony import */ var _speclynx_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76332);
|
|
958
|
+
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(44673);
|
|
959
|
+
/* harmony import */ var _util_url_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30658);
|
|
960
|
+
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(86547);
|
|
961
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(42037);
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
// shared key for recursion state (works across JSON/YAML documents)
|
|
973
|
+
const ARAZZO_DEREFERENCE_RECURSION_KEY = 'arazzo-1';
|
|
974
|
+
/**
|
|
975
|
+
* Dereferences a single source description element.
|
|
976
|
+
* Returns ParseResultElement on success, or with annotation if skipped.
|
|
977
|
+
*/
|
|
978
|
+
async function dereferenceSourceDescription(sourceDescription, ctx) {
|
|
979
|
+
const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
980
|
+
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isSourceDescriptionElement)(sourceDescription)) {
|
|
981
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Element is not a valid SourceDescriptionElement. Skipping');
|
|
982
|
+
annotation.classes.push('warning');
|
|
983
|
+
parseResult.push(annotation);
|
|
984
|
+
return parseResult;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
// set class and metadata from source description element
|
|
988
|
+
parseResult.classes.push('source-description');
|
|
989
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(sourceDescription.name)) parseResult.setMetaProperty('name', (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(sourceDescription.name));
|
|
990
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(sourceDescription.type)) parseResult.setMetaProperty('type', (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(sourceDescription.type));
|
|
991
|
+
const sourceDescriptionURI = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(sourceDescription.url);
|
|
992
|
+
if (typeof sourceDescriptionURI !== 'string') {
|
|
993
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Source description URL is missing or not a string. Skipping');
|
|
994
|
+
annotation.classes.push('warning');
|
|
995
|
+
parseResult.push(annotation);
|
|
996
|
+
return parseResult;
|
|
997
|
+
}
|
|
998
|
+
const retrievalURI = _util_url_ts__WEBPACK_IMPORTED_MODULE_9__.resolve(ctx.baseURI, sourceDescriptionURI);
|
|
999
|
+
|
|
1000
|
+
// skip if already visited (cycle detection)
|
|
1001
|
+
if (ctx.visitedUrls.has(retrievalURI)) {
|
|
1002
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" has already been visited. Skipping to prevent cycle`);
|
|
1003
|
+
annotation.classes.push('warning');
|
|
1004
|
+
parseResult.push(annotation);
|
|
1005
|
+
return parseResult;
|
|
1006
|
+
}
|
|
1007
|
+
ctx.visitedUrls.add(retrievalURI);
|
|
1008
|
+
try {
|
|
1009
|
+
const sourceDescriptionDereferenced = await (0,_index_ts__WEBPACK_IMPORTED_MODULE_11__["default"])(retrievalURI, (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_10__.merge)(ctx.options, {
|
|
1010
|
+
parse: {
|
|
1011
|
+
mediaType: 'text/plain' // allow parser plugin detection
|
|
1012
|
+
},
|
|
1013
|
+
dereference: {
|
|
1014
|
+
strategyOpts: {
|
|
1015
|
+
[ARAZZO_DEREFERENCE_RECURSION_KEY]: {
|
|
1016
|
+
sourceDescriptionsDepth: ctx.currentDepth + 1,
|
|
1017
|
+
sourceDescriptionsVisitedUrls: ctx.visitedUrls
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}));
|
|
1022
|
+
// merge dereferenced result into our parse result
|
|
1023
|
+
for (const item of sourceDescriptionDereferenced) {
|
|
1024
|
+
parseResult.push(item);
|
|
1025
|
+
}
|
|
1026
|
+
} catch (error) {
|
|
1027
|
+
// create error annotation instead of failing entire dereference
|
|
1028
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1029
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Error dereferencing source description "${retrievalURI}": ${message}`);
|
|
1030
|
+
annotation.classes.push('error');
|
|
1031
|
+
parseResult.push(annotation);
|
|
1032
|
+
return parseResult;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// only allow OpenAPI and Arazzo as source descriptions
|
|
1036
|
+
const {
|
|
1037
|
+
api: sourceDescriptionAPI
|
|
1038
|
+
} = parseResult;
|
|
1039
|
+
const isOpenApi = (0,_speclynx_apidom_ns_openapi_2__WEBPACK_IMPORTED_MODULE_5__.isSwaggerElement)(sourceDescriptionAPI) || (0,_speclynx_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_6__.isOpenApi3_0Element)(sourceDescriptionAPI) || (0,_speclynx_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_7__.isOpenApi3_1Element)(sourceDescriptionAPI);
|
|
1040
|
+
const isArazzo = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isArazzoSpecification1Element)(sourceDescriptionAPI);
|
|
1041
|
+
if (!isOpenApi && !isArazzo) {
|
|
1042
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" is not an OpenAPI or Arazzo document`);
|
|
1043
|
+
annotation.classes.push('warning');
|
|
1044
|
+
parseResult.push(annotation);
|
|
1045
|
+
return parseResult;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// validate declared type matches actual dereferenced type
|
|
1049
|
+
const declaredType = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(sourceDescription.type);
|
|
1050
|
+
if (typeof declaredType === 'string') {
|
|
1051
|
+
if (declaredType === 'openapi' && !isOpenApi) {
|
|
1052
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "openapi" but dereferenced as Arazzo document`);
|
|
1053
|
+
annotation.classes.push('warning');
|
|
1054
|
+
parseResult.push(annotation);
|
|
1055
|
+
} else if (declaredType === 'arazzo' && !isArazzo) {
|
|
1056
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "arazzo" but dereferenced as OpenAPI document`);
|
|
1057
|
+
annotation.classes.push('warning');
|
|
1058
|
+
parseResult.push(annotation);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
return parseResult;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Dereferences source descriptions from an Arazzo document.
|
|
1066
|
+
* @public
|
|
1067
|
+
*/
|
|
1068
|
+
async function dereferenceSourceDescriptions(parseResult, reference, options) {
|
|
1069
|
+
const results = [];
|
|
1070
|
+
const strategyName = 'arazzo-1';
|
|
1071
|
+
|
|
1072
|
+
// get API from dereferenced parse result
|
|
1073
|
+
const {
|
|
1074
|
+
api
|
|
1075
|
+
} = parseResult;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Validate prerequisites for dereferencing source descriptions.
|
|
1079
|
+
* Return warning annotations if validation fails.
|
|
1080
|
+
*/
|
|
1081
|
+
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isArazzoSpecification1Element)(api)) {
|
|
1082
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot dereference source descriptions: API is not an Arazzo specification');
|
|
1083
|
+
annotation.classes.push('warning');
|
|
1084
|
+
return [new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation])];
|
|
1085
|
+
}
|
|
1086
|
+
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(api.sourceDescriptions)) {
|
|
1087
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot dereference source descriptions: sourceDescriptions field is missing or not an array');
|
|
1088
|
+
annotation.classes.push('warning');
|
|
1089
|
+
return [new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation])];
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
// user config: strategy-specific options take precedence over global strategyOpts
|
|
1093
|
+
const maxDepth = options?.dereference?.strategyOpts?.[strategyName]?.sourceDescriptionsMaxDepth ?? options?.dereference?.strategyOpts?.sourceDescriptionsMaxDepth ?? +Infinity;
|
|
1094
|
+
|
|
1095
|
+
// recursion state comes from shared key (works across JSON/YAML)
|
|
1096
|
+
const sharedOpts = options?.dereference?.strategyOpts?.[ARAZZO_DEREFERENCE_RECURSION_KEY] ?? {};
|
|
1097
|
+
const currentDepth = sharedOpts.sourceDescriptionsDepth ?? 0;
|
|
1098
|
+
const visitedUrls = sharedOpts.sourceDescriptionsVisitedUrls ?? new Set();
|
|
1099
|
+
|
|
1100
|
+
// add current file to visited URLs to prevent cycles
|
|
1101
|
+
visitedUrls.add(reference.uri);
|
|
1102
|
+
if (currentDepth >= maxDepth) {
|
|
1103
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Maximum dereference depth of ${maxDepth} has been exceeded by file "${reference.uri}"`);
|
|
1104
|
+
annotation.classes.push('error');
|
|
1105
|
+
const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation]);
|
|
1106
|
+
parseResult.classes.push('source-description');
|
|
1107
|
+
return [parseResult];
|
|
1108
|
+
}
|
|
1109
|
+
const ctx = {
|
|
1110
|
+
baseURI: reference.uri,
|
|
1111
|
+
options,
|
|
1112
|
+
currentDepth,
|
|
1113
|
+
visitedUrls
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
// determine which source descriptions to dereference
|
|
1117
|
+
const sourceDescriptionsOption = options?.dereference?.strategyOpts?.[strategyName]?.sourceDescriptions ?? options?.dereference?.strategyOpts?.sourceDescriptions;
|
|
1118
|
+
|
|
1119
|
+
// handle false or other falsy values - no source descriptions should be dereferenced
|
|
1120
|
+
if (!sourceDescriptionsOption) {
|
|
1121
|
+
return results;
|
|
1122
|
+
}
|
|
1123
|
+
const sourceDescriptions = Array.isArray(sourceDescriptionsOption) ? api.sourceDescriptions.filter(sd => {
|
|
1124
|
+
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isSourceDescriptionElement)(sd)) return false;
|
|
1125
|
+
const name = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(sd.name);
|
|
1126
|
+
return typeof name === 'string' && sourceDescriptionsOption.includes(name);
|
|
1127
|
+
}) : api.sourceDescriptions;
|
|
1128
|
+
|
|
1129
|
+
// process sequentially to ensure proper cycle detection with shared visitedUrls
|
|
1130
|
+
for (const sourceDescription of sourceDescriptions) {
|
|
1131
|
+
const sourceDescriptionDereferenceResult = await dereferenceSourceDescription(sourceDescription, ctx);
|
|
1132
|
+
results.push(sourceDescriptionDereferenceResult);
|
|
1133
|
+
}
|
|
1134
|
+
return results;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/***/ },
|
|
1138
|
+
|
|
931
1139
|
/***/ 91005
|
|
932
1140
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
933
1141
|
|
|
@@ -3148,7 +3356,7 @@ class OpenAPI3_0DereferenceVisitor {
|
|
|
3148
3356
|
|
|
3149
3357
|
// operationRef and operationId fields are mutually exclusive
|
|
3150
3358
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(linkElement.operationRef) && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(linkElement.operationId)) {
|
|
3151
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_7__["default"]('LinkElement operationRef and operationId fields are mutually exclusive
|
|
3359
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_7__["default"]('LinkElement operationRef and operationId fields are mutually exclusive');
|
|
3152
3360
|
}
|
|
3153
3361
|
let operationElement;
|
|
3154
3362
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(linkElement.operationRef)) {
|
|
@@ -3221,7 +3429,7 @@ class OpenAPI3_0DereferenceVisitor {
|
|
|
3221
3429
|
|
|
3222
3430
|
// value and externalValue fields are mutually exclusive
|
|
3223
3431
|
if (exampleElement.hasKey('value') && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(exampleElement.externalValue)) {
|
|
3224
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_7__["default"]('ExampleElement value and externalValue fields are mutually exclusive
|
|
3432
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_7__["default"]('ExampleElement value and externalValue fields are mutually exclusive');
|
|
3225
3433
|
}
|
|
3226
3434
|
const retrievalURI = this.toBaseURI((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_6__["default"])(exampleElement.externalValue));
|
|
3227
3435
|
const isInternalReference = _util_url_ts__WEBPACK_IMPORTED_MODULE_16__.stripHash(this.reference.uri) === retrievalURI;
|
|
@@ -4048,7 +4256,7 @@ class OpenAPI3_1DereferenceVisitor {
|
|
|
4048
4256
|
|
|
4049
4257
|
// operationRef and operationId fields are mutually exclusive
|
|
4050
4258
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(linkElement.operationRef) && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(linkElement.operationId)) {
|
|
4051
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_9__["default"]('LinkElement operationRef and operationId fields are mutually exclusive
|
|
4259
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_9__["default"]('LinkElement operationRef and operationId fields are mutually exclusive');
|
|
4052
4260
|
}
|
|
4053
4261
|
let operationElement;
|
|
4054
4262
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(linkElement.operationRef)) {
|
|
@@ -4120,7 +4328,7 @@ class OpenAPI3_1DereferenceVisitor {
|
|
|
4120
4328
|
|
|
4121
4329
|
// value and externalValue fields are mutually exclusive
|
|
4122
4330
|
if (exampleElement.hasKey('value') && (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(exampleElement.externalValue)) {
|
|
4123
|
-
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_9__["default"]('ExampleElement value and externalValue fields are mutually exclusive
|
|
4331
|
+
throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_9__["default"]('ExampleElement value and externalValue fields are mutually exclusive');
|
|
4124
4332
|
}
|
|
4125
4333
|
const retrievalURI = this.toBaseURI((0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(exampleElement.externalValue));
|
|
4126
4334
|
const isInternalReference = _util_url_ts__WEBPACK_IMPORTED_MODULE_21__.stripHash(this.reference.uri) === retrievalURI;
|
|
@@ -5519,10 +5727,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5519
5727
|
*/
|
|
5520
5728
|
class ArazzoJSON1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default"] {
|
|
5521
5729
|
refractorOpts;
|
|
5522
|
-
parseFn;
|
|
5523
5730
|
constructor(options) {
|
|
5524
5731
|
const {
|
|
5525
|
-
parseFn,
|
|
5526
5732
|
fileExtensions = [],
|
|
5527
5733
|
mediaTypes = _speclynx_apidom_parser_adapter_arazzo_json_1__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
5528
5734
|
...rest
|
|
@@ -5533,7 +5739,6 @@ class ArazzoJSON1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default
|
|
|
5533
5739
|
fileExtensions,
|
|
5534
5740
|
mediaTypes
|
|
5535
5741
|
});
|
|
5536
|
-
this.parseFn = parseFn;
|
|
5537
5742
|
}
|
|
5538
5743
|
async canParse(file) {
|
|
5539
5744
|
const hasSupportedFileExtension = this.fileExtensions.length === 0 ? true : this.fileExtensions.includes(file.extension);
|
|
@@ -5552,7 +5757,7 @@ class ArazzoJSON1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default
|
|
|
5552
5757
|
const parseResult = await (0,_speclynx_apidom_parser_adapter_arazzo_json_1__WEBPACK_IMPORTED_MODULE_1__.parse)(source, parserOpts);
|
|
5553
5758
|
const shouldParseSourceDescriptions = options?.parse?.parserOpts?.[this.name]?.sourceDescriptions ?? options?.parse?.parserOpts?.sourceDescriptions;
|
|
5554
5759
|
if (shouldParseSourceDescriptions) {
|
|
5555
|
-
const sourceDescriptions = await _source_description_ts__WEBPACK_IMPORTED_MODULE_5__.parseSourceDescriptions
|
|
5760
|
+
const sourceDescriptions = await (0,_source_description_ts__WEBPACK_IMPORTED_MODULE_5__.parseSourceDescriptions)(this.name, parseResult.api, file, options);
|
|
5556
5761
|
parseResult.push(...sourceDescriptions);
|
|
5557
5762
|
}
|
|
5558
5763
|
return parseResult;
|
|
@@ -5586,6 +5791,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5586
5791
|
/* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(44673);
|
|
5587
5792
|
/* harmony import */ var _util_url_ts__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30658);
|
|
5588
5793
|
/* harmony import */ var _options_util_ts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(86547);
|
|
5794
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(35014);
|
|
5795
|
+
|
|
5589
5796
|
|
|
5590
5797
|
|
|
5591
5798
|
|
|
@@ -5604,7 +5811,7 @@ const ARAZZO_RECURSION_KEY = 'arazzo-1';
|
|
|
5604
5811
|
async function parseSourceDescription(sourceDescription, ctx) {
|
|
5605
5812
|
const parseResult = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]();
|
|
5606
5813
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isSourceDescriptionElement)(sourceDescription)) {
|
|
5607
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Element is not a valid SourceDescriptionElement. Skipping
|
|
5814
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Element is not a valid SourceDescriptionElement. Skipping');
|
|
5608
5815
|
annotation.classes.push('warning');
|
|
5609
5816
|
parseResult.push(annotation);
|
|
5610
5817
|
return parseResult;
|
|
@@ -5616,7 +5823,7 @@ async function parseSourceDescription(sourceDescription, ctx) {
|
|
|
5616
5823
|
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(sourceDescription.type)) parseResult.setMetaProperty('type', (0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(sourceDescription.type));
|
|
5617
5824
|
const sourceDescriptionURI = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(sourceDescription.url);
|
|
5618
5825
|
if (typeof sourceDescriptionURI !== 'string') {
|
|
5619
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Source description URL is missing or not a string. Skipping
|
|
5826
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Source description URL is missing or not a string. Skipping');
|
|
5620
5827
|
annotation.classes.push('warning');
|
|
5621
5828
|
parseResult.push(annotation);
|
|
5622
5829
|
return parseResult;
|
|
@@ -5625,14 +5832,14 @@ async function parseSourceDescription(sourceDescription, ctx) {
|
|
|
5625
5832
|
|
|
5626
5833
|
// skip if already visited (cycle detection)
|
|
5627
5834
|
if (ctx.visitedUrls.has(retrievalURI)) {
|
|
5628
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" has already been visited. Skipping to prevent cycle
|
|
5835
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" has already been visited. Skipping to prevent cycle`);
|
|
5629
5836
|
annotation.classes.push('warning');
|
|
5630
5837
|
parseResult.push(annotation);
|
|
5631
5838
|
return parseResult;
|
|
5632
5839
|
}
|
|
5633
5840
|
ctx.visitedUrls.add(retrievalURI);
|
|
5634
5841
|
try {
|
|
5635
|
-
const sdParseResult = await
|
|
5842
|
+
const sdParseResult = await (0,_index_ts__WEBPACK_IMPORTED_MODULE_11__["default"])(retrievalURI, (0,_options_util_ts__WEBPACK_IMPORTED_MODULE_10__.merge)(ctx.options, {
|
|
5636
5843
|
parse: {
|
|
5637
5844
|
mediaType: 'text/plain',
|
|
5638
5845
|
// allow parser plugin detection
|
|
@@ -5664,7 +5871,7 @@ async function parseSourceDescription(sourceDescription, ctx) {
|
|
|
5664
5871
|
const isOpenApi = (0,_speclynx_apidom_ns_openapi_2__WEBPACK_IMPORTED_MODULE_5__.isSwaggerElement)(sourceDescriptionAPI) || (0,_speclynx_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_MODULE_6__.isOpenApi3_0Element)(sourceDescriptionAPI) || (0,_speclynx_apidom_ns_openapi_3_1__WEBPACK_IMPORTED_MODULE_7__.isOpenApi3_1Element)(sourceDescriptionAPI);
|
|
5665
5872
|
const isArazzo = (0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isArazzoSpecification1Element)(sourceDescriptionAPI);
|
|
5666
5873
|
if (!isOpenApi && !isArazzo) {
|
|
5667
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" is not an OpenAPI or Arazzo document
|
|
5874
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" is not an OpenAPI or Arazzo document`);
|
|
5668
5875
|
annotation.classes.push('warning');
|
|
5669
5876
|
parseResult.push(annotation);
|
|
5670
5877
|
return parseResult;
|
|
@@ -5674,11 +5881,11 @@ async function parseSourceDescription(sourceDescription, ctx) {
|
|
|
5674
5881
|
const declaredType = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_8__["default"])(sourceDescription.type);
|
|
5675
5882
|
if (typeof declaredType === 'string') {
|
|
5676
5883
|
if (declaredType === 'openapi' && !isOpenApi) {
|
|
5677
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "openapi" but parsed as Arazzo document
|
|
5884
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "openapi" but parsed as Arazzo document`);
|
|
5678
5885
|
annotation.classes.push('warning');
|
|
5679
5886
|
parseResult.push(annotation);
|
|
5680
5887
|
} else if (declaredType === 'arazzo' && !isArazzo) {
|
|
5681
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "arazzo" but parsed as OpenAPI document
|
|
5888
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"](`Source description "${retrievalURI}" declared as "arazzo" but parsed as OpenAPI document`);
|
|
5682
5889
|
annotation.classes.push('warning');
|
|
5683
5890
|
parseResult.push(annotation);
|
|
5684
5891
|
}
|
|
@@ -5688,10 +5895,9 @@ async function parseSourceDescription(sourceDescription, ctx) {
|
|
|
5688
5895
|
|
|
5689
5896
|
/**
|
|
5690
5897
|
* Shared function for parsing source descriptions.
|
|
5691
|
-
* Call with `.call(this, ...)` where `this` has `name` and `parseFn` properties.
|
|
5692
5898
|
* @public
|
|
5693
5899
|
*/
|
|
5694
|
-
async function parseSourceDescriptions(api, file, options) {
|
|
5900
|
+
async function parseSourceDescriptions(parserName, api, file, options) {
|
|
5695
5901
|
const results = [];
|
|
5696
5902
|
|
|
5697
5903
|
/**
|
|
@@ -5699,23 +5905,18 @@ async function parseSourceDescriptions(api, file, options) {
|
|
|
5699
5905
|
* Return warning annotations if validation fails.
|
|
5700
5906
|
*/
|
|
5701
5907
|
if (!(0,_speclynx_apidom_ns_arazzo_1__WEBPACK_IMPORTED_MODULE_4__.isArazzoSpecification1Element)(api)) {
|
|
5702
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot parse source descriptions: API is not an Arazzo specification
|
|
5908
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot parse source descriptions: API is not an Arazzo specification');
|
|
5703
5909
|
annotation.classes.push('warning');
|
|
5704
5910
|
return [new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation])];
|
|
5705
5911
|
}
|
|
5706
5912
|
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(api.sourceDescriptions)) {
|
|
5707
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot parse source descriptions: sourceDescriptions field is missing or not an array
|
|
5913
|
+
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Cannot parse source descriptions: sourceDescriptions field is missing or not an array');
|
|
5708
5914
|
annotation.classes.push('warning');
|
|
5709
5915
|
return [new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation])];
|
|
5710
5916
|
}
|
|
5711
|
-
if (typeof this.parseFn !== 'function') {
|
|
5712
|
-
const annotation = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"]('Source descriptions found but parseFn is not configured. Skipping source description parsing.');
|
|
5713
|
-
annotation.classes.push('error');
|
|
5714
|
-
return [new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"]([annotation])];
|
|
5715
|
-
}
|
|
5716
5917
|
|
|
5717
5918
|
// user config: parser-specific options take precedence over global parserOpts
|
|
5718
|
-
const maxDepth = options?.parse?.parserOpts?.[
|
|
5919
|
+
const maxDepth = options?.parse?.parserOpts?.[parserName]?.sourceDescriptionsMaxDepth ?? options?.parse?.parserOpts?.sourceDescriptionsMaxDepth ?? +Infinity;
|
|
5719
5920
|
|
|
5720
5921
|
// recursion state comes from shared key (works across JSON/YAML)
|
|
5721
5922
|
const sharedOpts = options?.parse?.parserOpts?.[ARAZZO_RECURSION_KEY] ?? {};
|
|
@@ -5732,7 +5933,6 @@ async function parseSourceDescriptions(api, file, options) {
|
|
|
5732
5933
|
return [parseResult];
|
|
5733
5934
|
}
|
|
5734
5935
|
const ctx = {
|
|
5735
|
-
parseFn: this.parseFn,
|
|
5736
5936
|
baseURI: file.uri,
|
|
5737
5937
|
options,
|
|
5738
5938
|
currentDepth,
|
|
@@ -5740,7 +5940,7 @@ async function parseSourceDescriptions(api, file, options) {
|
|
|
5740
5940
|
};
|
|
5741
5941
|
|
|
5742
5942
|
// determine which source descriptions to parse
|
|
5743
|
-
const sourceDescriptionsOption = options?.parse?.parserOpts?.[
|
|
5943
|
+
const sourceDescriptionsOption = options?.parse?.parserOpts?.[parserName]?.sourceDescriptions ?? options?.parse?.parserOpts?.sourceDescriptions;
|
|
5744
5944
|
|
|
5745
5945
|
// handle false or other falsy values - no source descriptions should be parsed
|
|
5746
5946
|
if (!sourceDescriptionsOption) {
|
|
@@ -5791,10 +5991,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5791
5991
|
*/
|
|
5792
5992
|
class ArazzoYAML1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default"] {
|
|
5793
5993
|
refractorOpts;
|
|
5794
|
-
parseFn;
|
|
5795
5994
|
constructor(options) {
|
|
5796
5995
|
const {
|
|
5797
|
-
parseFn,
|
|
5798
5996
|
fileExtensions = [],
|
|
5799
5997
|
mediaTypes = _speclynx_apidom_parser_adapter_arazzo_yaml_1__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
5800
5998
|
...rest
|
|
@@ -5805,7 +6003,6 @@ class ArazzoYAML1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default
|
|
|
5805
6003
|
fileExtensions,
|
|
5806
6004
|
mediaTypes
|
|
5807
6005
|
});
|
|
5808
|
-
this.parseFn = parseFn;
|
|
5809
6006
|
}
|
|
5810
6007
|
async canParse(file) {
|
|
5811
6008
|
const hasSupportedFileExtension = this.fileExtensions.length === 0 ? true : this.fileExtensions.includes(file.extension);
|
|
@@ -5824,7 +6021,7 @@ class ArazzoYAML1Parser extends _Parser_ts__WEBPACK_IMPORTED_MODULE_4__["default
|
|
|
5824
6021
|
const parseResult = await (0,_speclynx_apidom_parser_adapter_arazzo_yaml_1__WEBPACK_IMPORTED_MODULE_1__.parse)(source, parserOpts);
|
|
5825
6022
|
const shouldParseSourceDescriptions = options?.parse?.parserOpts?.[this.name]?.sourceDescriptions ?? options?.parse?.parserOpts?.sourceDescriptions;
|
|
5826
6023
|
if (shouldParseSourceDescriptions) {
|
|
5827
|
-
const sourceDescriptions = await _arazzo_json_1_source_description_ts__WEBPACK_IMPORTED_MODULE_5__.parseSourceDescriptions
|
|
6024
|
+
const sourceDescriptions = await (0,_arazzo_json_1_source_description_ts__WEBPACK_IMPORTED_MODULE_5__.parseSourceDescriptions)(this.name, parseResult.api, file, options);
|
|
5828
6025
|
parseResult.push(...sourceDescriptions);
|
|
5829
6026
|
}
|
|
5830
6027
|
return parseResult;
|
|
@@ -6746,7 +6943,7 @@ class FileResolver extends _Resolver_ts__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
|
6746
6943
|
return false;
|
|
6747
6944
|
}
|
|
6748
6945
|
read() {
|
|
6749
|
-
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_1__["default"]('FileResolver is not intended to be used in browser context
|
|
6946
|
+
throw new _errors_ResolverError_ts__WEBPACK_IMPORTED_MODULE_1__["default"]('FileResolver is not intended to be used in browser context');
|
|
6750
6947
|
}
|
|
6751
6948
|
}
|
|
6752
6949
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FileResolver);
|
|
@@ -96020,47 +96217,47 @@ var __webpack_exports__ = {};
|
|
|
96020
96217
|
"use strict";
|
|
96021
96218
|
__webpack_require__.r(__webpack_exports__);
|
|
96022
96219
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
96023
|
-
/* harmony export */ BundleError: () => (/* reexport safe */
|
|
96024
|
-
/* harmony export */ BundleStrategy: () => (/* reexport safe */
|
|
96025
|
-
/* harmony export */ DereferenceAncestorLineage: () => (/* reexport safe */
|
|
96026
|
-
/* harmony export */ DereferenceError: () => (/* reexport safe */
|
|
96027
|
-
/* harmony export */ DereferenceStrategy: () => (/* reexport safe */
|
|
96028
|
-
/* harmony export */ EvaluationElementIdError: () => (/* reexport safe */
|
|
96029
|
-
/* harmony export */ EvaluationJsonSchema$anchorError: () => (/* reexport safe */
|
|
96030
|
-
/* harmony export */ EvaluationJsonSchemaUriError: () => (/* reexport safe */
|
|
96031
|
-
/* harmony export */ File: () => (/* reexport safe */
|
|
96032
|
-
/* harmony export */ HTTPResolver: () => (/* reexport safe */
|
|
96033
|
-
/* harmony export */ InvalidJsonSchema$anchorError: () => (/* reexport safe */
|
|
96034
|
-
/* harmony export */ JsonSchema$anchorError: () => (/* reexport safe */
|
|
96035
|
-
/* harmony export */ JsonSchemaURIError: () => (/* reexport safe */
|
|
96036
|
-
/* harmony export */ MaximumBundleDepthError: () => (/* reexport safe */
|
|
96037
|
-
/* harmony export */ MaximumDereferenceDepthError: () => (/* reexport safe */
|
|
96038
|
-
/* harmony export */ MaximumResolveDepthError: () => (/* reexport safe */
|
|
96039
|
-
/* harmony export */ ParseError: () => (/* reexport safe */
|
|
96040
|
-
/* harmony export */ Parser: () => (/* reexport safe */
|
|
96041
|
-
/* harmony export */ ParserError: () => (/* reexport safe */
|
|
96042
|
-
/* harmony export */ PluginError: () => (/* reexport safe */
|
|
96043
|
-
/* harmony export */ Reference: () => (/* reexport safe */
|
|
96044
|
-
/* harmony export */ ReferenceSet: () => (/* reexport safe */
|
|
96045
|
-
/* harmony export */ ResolveError: () => (/* reexport safe */
|
|
96046
|
-
/* harmony export */ ResolveStrategy: () => (/* reexport safe */
|
|
96047
|
-
/* harmony export */ Resolver: () => (/* reexport safe */
|
|
96048
|
-
/* harmony export */ ResolverError: () => (/* reexport safe */
|
|
96049
|
-
/* harmony export */ UnmatchedBundleStrategyError: () => (/* reexport safe */
|
|
96050
|
-
/* harmony export */ UnmatchedDereferenceStrategyError: () => (/* reexport safe */
|
|
96051
|
-
/* harmony export */ UnmatchedParserError: () => (/* reexport safe */
|
|
96052
|
-
/* harmony export */ UnmatchedResolveStrategyError: () => (/* reexport safe */
|
|
96053
|
-
/* harmony export */ UnmatchedResolverError: () => (/* reexport safe */
|
|
96054
|
-
/* harmony export */ bundle: () => (/* reexport safe */
|
|
96055
|
-
/* harmony export */ dereference: () => (/* reexport safe */
|
|
96056
|
-
/* harmony export */ dereferenceApiDOM: () => (/* reexport safe */
|
|
96057
|
-
/* harmony export */ mergeOptions: () => (/* reexport safe */
|
|
96058
|
-
/* harmony export */ options: () => (/* reexport safe */
|
|
96059
|
-
/* harmony export */ parse: () => (/* reexport safe */
|
|
96060
|
-
/* harmony export */ readFile: () => (/* reexport safe */
|
|
96061
|
-
/* harmony export */ resolve: () => (/* reexport safe */
|
|
96062
|
-
/* harmony export */ resolveApiDOM: () => (/* reexport safe */
|
|
96063
|
-
/* harmony export */ url: () => (/* reexport safe */
|
|
96220
|
+
/* harmony export */ BundleError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.BundleError),
|
|
96221
|
+
/* harmony export */ BundleStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.BundleStrategy),
|
|
96222
|
+
/* harmony export */ DereferenceAncestorLineage: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.DereferenceAncestorLineage),
|
|
96223
|
+
/* harmony export */ DereferenceError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.DereferenceError),
|
|
96224
|
+
/* harmony export */ DereferenceStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.DereferenceStrategy),
|
|
96225
|
+
/* harmony export */ EvaluationElementIdError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.EvaluationElementIdError),
|
|
96226
|
+
/* harmony export */ EvaluationJsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.EvaluationJsonSchema$anchorError),
|
|
96227
|
+
/* harmony export */ EvaluationJsonSchemaUriError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.EvaluationJsonSchemaUriError),
|
|
96228
|
+
/* harmony export */ File: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.File),
|
|
96229
|
+
/* harmony export */ HTTPResolver: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.HTTPResolver),
|
|
96230
|
+
/* harmony export */ InvalidJsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.InvalidJsonSchema$anchorError),
|
|
96231
|
+
/* harmony export */ JsonSchema$anchorError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.JsonSchema$anchorError),
|
|
96232
|
+
/* harmony export */ JsonSchemaURIError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.JsonSchemaURIError),
|
|
96233
|
+
/* harmony export */ MaximumBundleDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.MaximumBundleDepthError),
|
|
96234
|
+
/* harmony export */ MaximumDereferenceDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.MaximumDereferenceDepthError),
|
|
96235
|
+
/* harmony export */ MaximumResolveDepthError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.MaximumResolveDepthError),
|
|
96236
|
+
/* harmony export */ ParseError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ParseError),
|
|
96237
|
+
/* harmony export */ Parser: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.Parser),
|
|
96238
|
+
/* harmony export */ ParserError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ParserError),
|
|
96239
|
+
/* harmony export */ PluginError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.PluginError),
|
|
96240
|
+
/* harmony export */ Reference: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.Reference),
|
|
96241
|
+
/* harmony export */ ReferenceSet: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ReferenceSet),
|
|
96242
|
+
/* harmony export */ ResolveError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ResolveError),
|
|
96243
|
+
/* harmony export */ ResolveStrategy: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ResolveStrategy),
|
|
96244
|
+
/* harmony export */ Resolver: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.Resolver),
|
|
96245
|
+
/* harmony export */ ResolverError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.ResolverError),
|
|
96246
|
+
/* harmony export */ UnmatchedBundleStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.UnmatchedBundleStrategyError),
|
|
96247
|
+
/* harmony export */ UnmatchedDereferenceStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.UnmatchedDereferenceStrategyError),
|
|
96248
|
+
/* harmony export */ UnmatchedParserError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.UnmatchedParserError),
|
|
96249
|
+
/* harmony export */ UnmatchedResolveStrategyError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.UnmatchedResolveStrategyError),
|
|
96250
|
+
/* harmony export */ UnmatchedResolverError: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.UnmatchedResolverError),
|
|
96251
|
+
/* harmony export */ bundle: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.bundle),
|
|
96252
|
+
/* harmony export */ dereference: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.dereference),
|
|
96253
|
+
/* harmony export */ dereferenceApiDOM: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.dereferenceApiDOM),
|
|
96254
|
+
/* harmony export */ mergeOptions: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.mergeOptions),
|
|
96255
|
+
/* harmony export */ options: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.options),
|
|
96256
|
+
/* harmony export */ parse: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.parse),
|
|
96257
|
+
/* harmony export */ readFile: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.readFile),
|
|
96258
|
+
/* harmony export */ resolve: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.resolve),
|
|
96259
|
+
/* harmony export */ resolveApiDOM: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.resolveApiDOM),
|
|
96260
|
+
/* harmony export */ url: () => (/* reexport safe */ _index_ts__WEBPACK_IMPORTED_MODULE_29__.url)
|
|
96064
96261
|
/* harmony export */ });
|
|
96065
96262
|
/* harmony import */ var _resolve_resolvers_file_index_node_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50365);
|
|
96066
96263
|
/* harmony import */ var _resolve_resolvers_http_axios_index_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16341);
|
|
@@ -96090,8 +96287,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96090
96287
|
/* harmony import */ var _dereference_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(12683);
|
|
96091
96288
|
/* harmony import */ var _dereference_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(82941);
|
|
96092
96289
|
/* harmony import */ var _bundle_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(16432);
|
|
96093
|
-
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
|
|
96094
|
-
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
|
|
96290
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(98363);
|
|
96291
|
+
/* harmony import */ var _index_ts__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(33906);
|
|
96095
96292
|
|
|
96096
96293
|
|
|
96097
96294
|
|
|
@@ -96121,7 +96318,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96121
96318
|
|
|
96122
96319
|
|
|
96123
96320
|
|
|
96124
|
-
|
|
96321
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"].parse.parsers = [new _parse_parsers_openapi_json_2_index_ts__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
96125
96322
|
allowEmpty: true,
|
|
96126
96323
|
sourceMap: false
|
|
96127
96324
|
}), new _parse_parsers_openapi_yaml_2_index_ts__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
@@ -96147,12 +96344,10 @@ _index_ts__WEBPACK_IMPORTED_MODULE_29__["default"].parse.parsers = [new _parse_p
|
|
|
96147
96344
|
sourceMap: false
|
|
96148
96345
|
}), new _parse_parsers_arazzo_json_1_index_ts__WEBPACK_IMPORTED_MODULE_15__["default"]({
|
|
96149
96346
|
allowEmpty: true,
|
|
96150
|
-
sourceMap: false
|
|
96151
|
-
parseFn: _index_ts__WEBPACK_IMPORTED_MODULE_28__.parse
|
|
96347
|
+
sourceMap: false
|
|
96152
96348
|
}), new _parse_parsers_arazzo_yaml_1_index_ts__WEBPACK_IMPORTED_MODULE_16__["default"]({
|
|
96153
96349
|
allowEmpty: true,
|
|
96154
|
-
sourceMap: false
|
|
96155
|
-
parseFn: _index_ts__WEBPACK_IMPORTED_MODULE_28__.parse
|
|
96350
|
+
sourceMap: false
|
|
96156
96351
|
}), new _parse_parsers_apidom_json_index_ts__WEBPACK_IMPORTED_MODULE_17__["default"]({
|
|
96157
96352
|
allowEmpty: true,
|
|
96158
96353
|
sourceMap: false
|
|
@@ -96165,14 +96360,14 @@ _index_ts__WEBPACK_IMPORTED_MODULE_29__["default"].parse.parsers = [new _parse_p
|
|
|
96165
96360
|
}), new _parse_parsers_binary_index_node_ts__WEBPACK_IMPORTED_MODULE_20__["default"]({
|
|
96166
96361
|
allowEmpty: true
|
|
96167
96362
|
})];
|
|
96168
|
-
|
|
96363
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"].resolve.resolvers = [new _resolve_resolvers_file_index_node_ts__WEBPACK_IMPORTED_MODULE_0__["default"](), new _resolve_resolvers_http_axios_index_ts__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
96169
96364
|
timeout: 5000,
|
|
96170
96365
|
redirects: 5,
|
|
96171
96366
|
withCredentials: false
|
|
96172
96367
|
})];
|
|
96173
|
-
|
|
96174
|
-
|
|
96175
|
-
|
|
96368
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"].resolve.strategies = [new _resolve_strategies_openapi_2_index_ts__WEBPACK_IMPORTED_MODULE_2__["default"](), new _resolve_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_3__["default"](), new _resolve_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_4__["default"](), new _resolve_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_5__["default"](), new _resolve_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_6__["default"]()];
|
|
96369
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"].dereference.strategies = [new _dereference_strategies_openapi_2_index_ts__WEBPACK_IMPORTED_MODULE_22__["default"](), new _dereference_strategies_openapi_3_0_index_ts__WEBPACK_IMPORTED_MODULE_23__["default"](), new _dereference_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_24__["default"](), new _dereference_strategies_asyncapi_2_index_ts__WEBPACK_IMPORTED_MODULE_25__["default"](), new _dereference_strategies_arazzo_1_index_ts__WEBPACK_IMPORTED_MODULE_26__["default"](), new _dereference_strategies_apidom_index_ts__WEBPACK_IMPORTED_MODULE_21__["default"]()];
|
|
96370
|
+
_index_ts__WEBPACK_IMPORTED_MODULE_28__["default"].bundle.strategies = [new _bundle_strategies_openapi_3_1_index_ts__WEBPACK_IMPORTED_MODULE_27__["default"]()];
|
|
96176
96371
|
|
|
96177
96372
|
})();
|
|
96178
96373
|
|