@scalar/openapi-parser 0.1.0 → 0.3.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 +18 -0
- package/README.md +4 -4
- package/dist/index.d.ts +597 -73
- package/dist/index.js +9165 -5348
- package/package.json +11 -7
- /package/dist/{schema-7A4Uwe4k.js → schema-BQQoKgNw.js} +0 -0
- /package/dist/{schema-Oq6-IuPi.js → schema-BjykgtPd.js} +0 -0
- /package/dist/{schema-IrONjwxQ.js → schema-ZROhtp0X.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @scalar/openapi-parser
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c28d766: fix: circular references can not be resolved
|
|
8
|
+
- c28d766: fix: references inside references are not resolved
|
|
9
|
+
- c28d766: refactor: rewrote the whole parser (again)
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0e98fdb: chore: add light-weight browser polyfill to join paths
|
|
14
|
+
|
|
15
|
+
## 0.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- bf4568e: refactor: rewrite the whole package :)
|
|
20
|
+
|
|
3
21
|
## 0.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm add @scalar/openapi-parser
|
|
|
19
19
|
### Parse
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
-
import {
|
|
22
|
+
import { resolve } from '@scalar/openapi-parser'
|
|
23
23
|
|
|
24
24
|
const file = `{
|
|
25
25
|
"openapi": "3.1.0",
|
|
@@ -30,7 +30,7 @@ const file = `{
|
|
|
30
30
|
"paths": {}
|
|
31
31
|
}`
|
|
32
32
|
|
|
33
|
-
const result = await
|
|
33
|
+
const result = await resolve(file)
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### Validate
|
|
@@ -59,7 +59,7 @@ if (!result.valid) {
|
|
|
59
59
|
### Version
|
|
60
60
|
|
|
61
61
|
```ts
|
|
62
|
-
import {
|
|
62
|
+
import { resolve } from '@scalar/openapi-parser'
|
|
63
63
|
|
|
64
64
|
const file = `{
|
|
65
65
|
"openapi": "3.1.0",
|
|
@@ -70,7 +70,7 @@ const file = `{
|
|
|
70
70
|
"paths": {}
|
|
71
71
|
}`
|
|
72
72
|
|
|
73
|
-
const result = await
|
|
73
|
+
const result = await resolve(file)
|
|
74
74
|
|
|
75
75
|
console.log(result.version)
|
|
76
76
|
```
|