openapi-explorer 0.9.329 → 0.9.331
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.
|
@@ -88,10 +88,10 @@ export default async function ProcessSpec(specUrlOrObject, serverUrl = '') {
|
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
if (serverUrl && !jsonParsedSpec.servers.some(s => s.url === serverUrl || s.computedUrl === serverUrl)) {
|
|
91
|
-
jsonParsedSpec.servers
|
|
91
|
+
jsonParsedSpec.servers = [{
|
|
92
92
|
url: serverUrl,
|
|
93
93
|
computedUrl: serverUrl
|
|
94
|
-
});
|
|
94
|
+
}].concat(jsonParsedSpec.servers);
|
|
95
95
|
}
|
|
96
96
|
} else if (serverUrl) {
|
|
97
97
|
jsonParsedSpec.servers = [{
|
|
@@ -333,7 +333,7 @@ function groupByTags(openApiSpec) {
|
|
|
333
333
|
responses: pathOrHookObj.responses,
|
|
334
334
|
callbacks: pathOrHookObj.callbacks,
|
|
335
335
|
deprecated: pathOrHookObj.deprecated,
|
|
336
|
-
security: pathOrHookObj.security,
|
|
336
|
+
security: pathOrHookObj.security || openApiSpec.security,
|
|
337
337
|
// commonSummary: commonPathProp.summary,
|
|
338
338
|
// commonDescription: commonPathProp.description,
|
|
339
339
|
xCodeSamples: pathOrHookObj['x-codeSamples'] || pathOrHookObj['x-code-samples'] || ''
|
|
@@ -98,10 +98,10 @@ async function ProcessSpec(specUrlOrObject, serverUrl = '') {
|
|
|
98
98
|
});
|
|
99
99
|
|
|
100
100
|
if (serverUrl && !jsonParsedSpec.servers.some(s => s.url === serverUrl || s.computedUrl === serverUrl)) {
|
|
101
|
-
jsonParsedSpec.servers
|
|
101
|
+
jsonParsedSpec.servers = [{
|
|
102
102
|
url: serverUrl,
|
|
103
103
|
computedUrl: serverUrl
|
|
104
|
-
});
|
|
104
|
+
}].concat(jsonParsedSpec.servers);
|
|
105
105
|
}
|
|
106
106
|
} else if (serverUrl) {
|
|
107
107
|
jsonParsedSpec.servers = [{
|
|
@@ -344,7 +344,7 @@ function groupByTags(openApiSpec) {
|
|
|
344
344
|
responses: pathOrHookObj.responses,
|
|
345
345
|
callbacks: pathOrHookObj.callbacks,
|
|
346
346
|
deprecated: pathOrHookObj.deprecated,
|
|
347
|
-
security: pathOrHookObj.security,
|
|
347
|
+
security: pathOrHookObj.security || openApiSpec.security,
|
|
348
348
|
// commonSummary: commonPathProp.summary,
|
|
349
349
|
// commonDescription: commonPathProp.description,
|
|
350
350
|
xCodeSamples: pathOrHookObj['x-codeSamples'] || pathOrHookObj['x-code-samples'] || ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.331",
|
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
|
5
5
|
"author": "Rhosys Developers <developers@rhosys.ch>",
|
|
6
6
|
"repository": {
|