@scalar/openapi-parser 0.10.9 → 0.10.10
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
package/README.md
CHANGED
|
@@ -101,8 +101,6 @@ const { specification } = filter(
|
|
|
101
101
|
|
|
102
102
|
There’s an `upgrade` command to upgrade all your OpenAPI documents to the latest OpenAPI version.
|
|
103
103
|
|
|
104
|
-
> ⚠️ The upgrade from Swagger 2.0 is still experimental and probably lacks features.
|
|
105
|
-
|
|
106
104
|
```ts
|
|
107
105
|
import { upgrade } from '@scalar/openapi-parser'
|
|
108
106
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgradeFromTwoToThree.d.ts","sourceRoot":"","sources":["../../src/utils/upgradeFromTwoToThree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"upgradeFromTwoToThree.d.ts","sourceRoot":"","sources":["../../src/utils/upgradeFromTwoToThree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,aAAa,0CAgOzE"}
|
|
@@ -16,7 +16,6 @@ function upgradeFromTwoToThree(originalSpecification) {
|
|
|
16
16
|
// Skip if it’s something else than 3.0.x
|
|
17
17
|
return specification;
|
|
18
18
|
}
|
|
19
|
-
console.warn(`[upgradeFromTwoToThree] The upgrade from Swagger 2.0 to OpenAPI 3.0 documents is experimental and lacks features.`);
|
|
20
19
|
// Servers
|
|
21
20
|
if (specification.host) {
|
|
22
21
|
const schemes = Array.isArray(specification.schemes) && specification.schemes?.length ? specification.schemes : ['http'];
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"parser",
|
|
18
18
|
"typescript"
|
|
19
19
|
],
|
|
20
|
-
"version": "0.10.
|
|
20
|
+
"version": "0.10.10",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=18"
|
|
23
23
|
},
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"json-to-ast": "^2.1.0",
|
|
65
65
|
"just-diff": "^6.0.2",
|
|
66
66
|
"tinybench": "^2.8.0",
|
|
67
|
-
"@scalar/build-tooling": "0.1.
|
|
68
|
-
"@scalar/types": "0.
|
|
69
|
-
"@scalar/
|
|
67
|
+
"@scalar/build-tooling": "0.1.17",
|
|
68
|
+
"@scalar/openapi-types": "0.1.9",
|
|
69
|
+
"@scalar/types": "0.0.40"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "scalar-build-rollup",
|