@scalar/oas-utils 0.2.7 → 0.2.8
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,2BAA2B,CAAA;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAWxC,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,SAAgB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,2BAA2B,CAAA;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAWxC,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,SAAgB,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuLnE,CAAA"}
|
|
@@ -54,8 +54,13 @@ const importSpecToWorkspace = async (spec) => {
|
|
|
54
54
|
headers: {},
|
|
55
55
|
cookies: {},
|
|
56
56
|
};
|
|
57
|
+
// An operation can have component level parameters as well :)
|
|
58
|
+
const pathAndOperationParameters = [
|
|
59
|
+
...(path.parameters || []),
|
|
60
|
+
...(operation.parameters || []),
|
|
61
|
+
].filter((p) => p);
|
|
57
62
|
// Loop over params to set request params
|
|
58
|
-
|
|
63
|
+
pathAndOperationParameters.forEach((_param) => {
|
|
59
64
|
const param = _param;
|
|
60
65
|
if ('name' in param &&
|
|
61
66
|
PARAM_DICTIONARY[param.in]) {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.2.
|
|
19
|
+
"version": "0.2.8",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"type-fest": "^4.20.0",
|
|
102
102
|
"vite": "^5.2.10",
|
|
103
103
|
"vitest": "^1.6.0",
|
|
104
|
-
"@scalar/build-tooling": "0.1.
|
|
104
|
+
"@scalar/build-tooling": "0.1.8"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"build": "scalar-build-rollup",
|