@scalar/oas-utils 0.4.15 → 0.4.17
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 +35 -0
- package/dist/entities/spec/operation.d.ts +15 -15
- package/dist/entities/spec/parameters.d.ts +5 -5
- package/dist/entities/spec/request-examples.d.ts +68 -68
- package/dist/entities/spec/requests.d.ts +31 -31
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/index.js.map +2 -2
- package/dist/helpers/normalize-mime-type-object.d.ts +2 -13
- package/dist/helpers/normalize-mime-type-object.d.ts.map +1 -1
- package/dist/helpers/normalize-mime-type-object.js +4 -8
- package/dist/helpers/normalize-mime-type-object.js.map +2 -2
- package/dist/helpers/normalize-mime-type.d.ts +3 -1
- package/dist/helpers/normalize-mime-type.d.ts.map +1 -1
- package/dist/helpers/normalize-mime-type.js.map +2 -2
- package/dist/helpers/operation-to-har/process-body.d.ts +1 -1
- package/dist/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/helpers/operation-to-har/process-body.js +3 -30
- package/dist/helpers/operation-to-har/process-body.js.map +2 -2
- package/dist/helpers/security/get-schemes.d.ts +3 -0
- package/dist/helpers/security/get-schemes.d.ts.map +1 -1
- package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -1
- package/dist/spec-getters/get-example-from-schema.js +5 -2
- package/dist/spec-getters/get-example-from-schema.js.map +2 -2
- package/dist/spec-getters/get-request-body-from-operation.js +1 -1
- package/dist/spec-getters/get-request-body-from-operation.js.map +2 -2
- package/package.json +11 -11
- package/dist/helpers/ssr-state.d.ts +0 -12
- package/dist/helpers/ssr-state.d.ts.map +0 -1
- package/dist/helpers/ssr-state.js +0 -7
- package/dist/helpers/ssr-state.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @scalar/oas-utils
|
|
2
2
|
|
|
3
|
+
## 0.4.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 46ebe6e: fix: use schema to example generator for request example request body
|
|
8
|
+
- Updated dependencies [952bde2]
|
|
9
|
+
- Updated dependencies [5301a80]
|
|
10
|
+
- Updated dependencies [ae8d1b9]
|
|
11
|
+
- Updated dependencies [8199955]
|
|
12
|
+
- Updated dependencies [2888e18]
|
|
13
|
+
- @scalar/workspace-store@0.12.0
|
|
14
|
+
|
|
15
|
+
## 0.4.16
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 94d6d0c: fix: remove old ssr state and update nuxt for workspace store
|
|
20
|
+
- b957a2c: feat: do not use first item of oneOf if it is `type: null`
|
|
21
|
+
- Updated dependencies [ccf875a]
|
|
22
|
+
- Updated dependencies [9924c47]
|
|
23
|
+
- Updated dependencies [94d6d0c]
|
|
24
|
+
- Updated dependencies [952f471]
|
|
25
|
+
- Updated dependencies [a0c92d9]
|
|
26
|
+
- Updated dependencies [c0d6793]
|
|
27
|
+
- Updated dependencies [3c1e3e3]
|
|
28
|
+
- Updated dependencies [f3d0216]
|
|
29
|
+
- Updated dependencies [a5534e6]
|
|
30
|
+
- Updated dependencies [6b6c72c]
|
|
31
|
+
- @scalar/openapi-types@0.3.7
|
|
32
|
+
- @scalar/types@0.2.11
|
|
33
|
+
- @scalar/workspace-store@0.11.0
|
|
34
|
+
- @scalar/themes@0.13.12
|
|
35
|
+
- @scalar/helpers@0.0.7
|
|
36
|
+
- @scalar/object-utils@1.2.3
|
|
37
|
+
|
|
3
38
|
## 0.4.15
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
@@ -43,13 +43,13 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
43
43
|
in: "cookie" | "path" | "query" | "header";
|
|
44
44
|
description?: string | undefined;
|
|
45
45
|
example?: unknown;
|
|
46
|
+
content?: unknown;
|
|
47
|
+
schema?: unknown;
|
|
46
48
|
examples?: unknown[] | Record<string, {
|
|
47
49
|
value?: unknown;
|
|
48
50
|
summary?: string | undefined;
|
|
49
51
|
externalValue?: string | undefined;
|
|
50
52
|
}> | undefined;
|
|
51
|
-
schema?: unknown;
|
|
52
|
-
content?: unknown;
|
|
53
53
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
54
54
|
explode?: boolean | undefined;
|
|
55
55
|
}, {
|
|
@@ -58,14 +58,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
58
58
|
description?: string | undefined;
|
|
59
59
|
required?: boolean | undefined;
|
|
60
60
|
example?: unknown;
|
|
61
|
-
|
|
61
|
+
content?: unknown;
|
|
62
|
+
schema?: unknown;
|
|
62
63
|
examples?: unknown[] | Record<string, {
|
|
63
64
|
value?: unknown;
|
|
64
65
|
summary?: string | undefined;
|
|
65
66
|
externalValue?: string | undefined;
|
|
66
67
|
}> | undefined;
|
|
67
|
-
|
|
68
|
-
content?: unknown;
|
|
68
|
+
deprecated?: boolean | undefined;
|
|
69
69
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
70
70
|
explode?: boolean | undefined;
|
|
71
71
|
}>, "many">>;
|
|
@@ -125,20 +125,20 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
125
125
|
cookies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
126
126
|
}, "strip", import("zod").ZodTypeAny, {
|
|
127
127
|
path?: Record<string, string> | undefined;
|
|
128
|
-
query?: Record<string, string> | undefined;
|
|
129
128
|
headers?: Record<string, string> | undefined;
|
|
129
|
+
query?: Record<string, string> | undefined;
|
|
130
130
|
cookies?: Record<string, string> | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
path?: Record<string, string> | undefined;
|
|
133
|
-
query?: Record<string, string> | undefined;
|
|
134
133
|
headers?: Record<string, string> | undefined;
|
|
134
|
+
query?: Record<string, string> | undefined;
|
|
135
135
|
cookies?: Record<string, string> | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", import("zod").ZodTypeAny, {
|
|
138
138
|
parameters: {
|
|
139
139
|
path?: Record<string, string> | undefined;
|
|
140
|
-
query?: Record<string, string> | undefined;
|
|
141
140
|
headers?: Record<string, string> | undefined;
|
|
141
|
+
query?: Record<string, string> | undefined;
|
|
142
142
|
cookies?: Record<string, string> | undefined;
|
|
143
143
|
};
|
|
144
144
|
name?: string | undefined;
|
|
@@ -153,8 +153,8 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
153
153
|
}, {
|
|
154
154
|
parameters: {
|
|
155
155
|
path?: Record<string, string> | undefined;
|
|
156
|
-
query?: Record<string, string> | undefined;
|
|
157
156
|
headers?: Record<string, string> | undefined;
|
|
157
|
+
query?: Record<string, string> | undefined;
|
|
158
158
|
cookies?: Record<string, string> | undefined;
|
|
159
159
|
};
|
|
160
160
|
name?: string | undefined;
|
|
@@ -251,13 +251,13 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
251
251
|
in: "cookie" | "path" | "query" | "header";
|
|
252
252
|
description?: string | undefined;
|
|
253
253
|
example?: unknown;
|
|
254
|
+
content?: unknown;
|
|
255
|
+
schema?: unknown;
|
|
254
256
|
examples?: unknown[] | Record<string, {
|
|
255
257
|
value?: unknown;
|
|
256
258
|
summary?: string | undefined;
|
|
257
259
|
externalValue?: string | undefined;
|
|
258
260
|
}> | undefined;
|
|
259
|
-
schema?: unknown;
|
|
260
|
-
content?: unknown;
|
|
261
261
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
262
262
|
explode?: boolean | undefined;
|
|
263
263
|
}[] | undefined;
|
|
@@ -297,8 +297,8 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
297
297
|
selectedServerUid?: string | null | undefined;
|
|
298
298
|
servers?: string[] | undefined;
|
|
299
299
|
tags?: string[] | undefined;
|
|
300
|
-
deprecated?: boolean | undefined;
|
|
301
300
|
examples?: string[] | undefined;
|
|
301
|
+
deprecated?: boolean | undefined;
|
|
302
302
|
operationId?: string | undefined;
|
|
303
303
|
requestBody?: any;
|
|
304
304
|
parameters?: {
|
|
@@ -307,14 +307,14 @@ export declare const operationSchema: import("zod").ZodObject<import("zod").obje
|
|
|
307
307
|
description?: string | undefined;
|
|
308
308
|
required?: boolean | undefined;
|
|
309
309
|
example?: unknown;
|
|
310
|
-
|
|
310
|
+
content?: unknown;
|
|
311
|
+
schema?: unknown;
|
|
311
312
|
examples?: unknown[] | Record<string, {
|
|
312
313
|
value?: unknown;
|
|
313
314
|
summary?: string | undefined;
|
|
314
315
|
externalValue?: string | undefined;
|
|
315
316
|
}> | undefined;
|
|
316
|
-
|
|
317
|
-
content?: unknown;
|
|
317
|
+
deprecated?: boolean | undefined;
|
|
318
318
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
319
319
|
explode?: boolean | undefined;
|
|
320
320
|
}[] | undefined;
|
|
@@ -48,13 +48,13 @@ export declare const oasParameterSchema: z.ZodObject<{
|
|
|
48
48
|
in: "cookie" | "path" | "query" | "header";
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
example?: unknown;
|
|
51
|
+
content?: unknown;
|
|
52
|
+
schema?: unknown;
|
|
51
53
|
examples?: unknown[] | Record<string, {
|
|
52
54
|
value?: unknown;
|
|
53
55
|
summary?: string | undefined;
|
|
54
56
|
externalValue?: string | undefined;
|
|
55
57
|
}> | undefined;
|
|
56
|
-
schema?: unknown;
|
|
57
|
-
content?: unknown;
|
|
58
58
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
59
59
|
explode?: boolean | undefined;
|
|
60
60
|
}, {
|
|
@@ -63,14 +63,14 @@ export declare const oasParameterSchema: z.ZodObject<{
|
|
|
63
63
|
description?: string | undefined;
|
|
64
64
|
required?: boolean | undefined;
|
|
65
65
|
example?: unknown;
|
|
66
|
-
|
|
66
|
+
content?: unknown;
|
|
67
|
+
schema?: unknown;
|
|
67
68
|
examples?: unknown[] | Record<string, {
|
|
68
69
|
value?: unknown;
|
|
69
70
|
summary?: string | undefined;
|
|
70
71
|
externalValue?: string | undefined;
|
|
71
72
|
}> | undefined;
|
|
72
|
-
|
|
73
|
-
content?: unknown;
|
|
73
|
+
deprecated?: boolean | undefined;
|
|
74
74
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
75
75
|
explode?: boolean | undefined;
|
|
76
76
|
}>;
|