@kubb/oas 3.0.0-alpha.9 → 3.0.0-beta.2
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/README.md +14 -5
- package/dist/{Oas-BEe7KZDj.d.cts → Oas-Br0yKhGF.d.cts} +3 -0
- package/dist/{Oas-BEe7KZDj.d.ts → Oas-Br0yKhGF.d.ts} +3 -0
- package/dist/chunk-JAZKMYLT.cjs +244 -0
- package/dist/chunk-JAZKMYLT.cjs.map +1 -0
- package/dist/{chunk-LVZACNUG.js → chunk-PHE7X6W6.js} +66 -65
- package/dist/chunk-PHE7X6W6.js.map +1 -0
- package/dist/index.cjs +37 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -432
- package/dist/index.d.ts +7 -432
- package/dist/index.js +4 -21
- package/dist/index.js.map +1 -1
- package/dist/infer.cjs +4 -0
- package/dist/infer.cjs.map +1 -0
- package/dist/infer.d.cts +380 -0
- package/dist/infer.d.ts +380 -0
- package/dist/infer.js +3 -0
- package/dist/infer.js.map +1 -0
- package/dist/parser.cjs +18 -18
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.d.cts +3 -44
- package/dist/parser.d.ts +3 -44
- package/dist/parser.js +11 -18
- package/dist/parser.js.map +1 -1
- package/package.json +19 -12
- package/src/Oas.ts +69 -5
- package/src/index.ts +0 -2
- package/src/parser/index.ts +5 -51
- package/src/utils.ts +1 -49
- package/dist/chunk-LVZACNUG.js.map +0 -1
- package/dist/chunk-WZOC4WVK.cjs +0 -229
- package/dist/chunk-WZOC4WVK.cjs.map +0 -1
- package/src/typings.d.ts +0 -51
package/src/typings.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
declare module 'openapi-format' {
|
|
2
|
-
interface Options {
|
|
3
|
-
verbose?: boolean
|
|
4
|
-
'no-sort'?: boolean
|
|
5
|
-
sort?: boolean
|
|
6
|
-
output?: string
|
|
7
|
-
sortSet?: {
|
|
8
|
-
root?: Array<'openapi' | 'info' | 'servers' | 'paths' | 'components' | 'tags' | 'x-tagGroups' | 'externalDocs'>
|
|
9
|
-
get?: Array<'operationId' | 'summary' | 'description' | 'parameters' | 'requestBody' | 'responses'>
|
|
10
|
-
post?: Array<'operationId' | 'summary' | 'description' | 'parameters' | 'requestBody' | 'responses'>
|
|
11
|
-
put?: Array<'operationId' | 'summary' | 'description' | 'parameters' | 'requestBody' | 'responses'>
|
|
12
|
-
patch?: Array<'operationId' | 'summary' | 'description' | 'parameters' | 'requestBody' | 'responses'>
|
|
13
|
-
delete?: Array<'operationId' | 'summary' | 'description' | 'parameters' | 'requestBody' | 'responses'>
|
|
14
|
-
parameters?: Array<'name' | 'in' | 'description' | 'required' | 'schema'>
|
|
15
|
-
requestBody?: Array<'description' | 'required' | 'content'>
|
|
16
|
-
responses?: Array<'description' | 'headers' | 'content' | 'links'>
|
|
17
|
-
content?: Array<string>
|
|
18
|
-
components?: Array<'parameters' | 'schemas'>
|
|
19
|
-
schema?: Array<'description' | 'type' | 'items' | 'properties' | 'format' | 'example' | 'default'>
|
|
20
|
-
schemas?: Array<'description' | 'type' | 'items' | 'properties' | 'format' | 'example' | 'default'>
|
|
21
|
-
properties?: Array<'description' | 'type' | 'items' | 'format' | 'example' | 'default' | 'enum'>
|
|
22
|
-
}
|
|
23
|
-
filterSet?: {
|
|
24
|
-
methods?: Array<'get' | 'post' | 'put' | 'patch' | 'delete' | 'options' | 'trace' | 'head' | 'parameters'>
|
|
25
|
-
inverseMethods?: Array<'get' | 'post' | 'put' | 'patch' | 'delete' | 'options' | 'trace' | 'head' | 'parameters'>
|
|
26
|
-
tags?: Array<string>
|
|
27
|
-
inverseTags?: Array<string>
|
|
28
|
-
operationIds?: Array<string>
|
|
29
|
-
inverseOperationIds?: Array<string>
|
|
30
|
-
operations?: Array<string>
|
|
31
|
-
flags?: Array<string>
|
|
32
|
-
inverseFlags?: Array<string>
|
|
33
|
-
flagValues?: Array<string>
|
|
34
|
-
inverseFlagValues?: Array<string>
|
|
35
|
-
stripFlags?: Array<string>
|
|
36
|
-
responseContent?: Array<string>
|
|
37
|
-
inverseResponseContent?: Array<string>
|
|
38
|
-
unusedComponents?: Array<'requestBodies' | 'schemas' | 'parameters' | 'responses'>
|
|
39
|
-
}
|
|
40
|
-
sortComponentsSet?: {}
|
|
41
|
-
casingSet?: {}
|
|
42
|
-
}
|
|
43
|
-
function parseFile(path: string): Promise<unknown>
|
|
44
|
-
|
|
45
|
-
function openapiFilter<TOas>(document: TOas, options: Options): { data: Toas; resultData: { unusedComp: any } }
|
|
46
|
-
|
|
47
|
-
function openapiSort<TOas>(document: TOas, options: Options): { data: Toas; resultData: { unusedComp: any } }
|
|
48
|
-
function openapiChangeCase<TOas>(document: TOas, options: Options): { data: Toas; resultData: { unusedComp: any } }
|
|
49
|
-
|
|
50
|
-
function stringify<TOas>(document: TOas, options: Options): string
|
|
51
|
-
}
|