@visulima/jsdoc-open-api 3.0.0-alpha.9 → 3.0.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +429 -0
  2. package/LICENSE.md +34 -0
  3. package/README.md +44 -33
  4. package/bin/index.js +12 -9
  5. package/dist/cli/commander/index.d.ts +1000 -2
  6. package/dist/cli/commander/index.js +1 -0
  7. package/dist/cli/index.d.ts +9 -2
  8. package/dist/cli/index.js +1 -0
  9. package/dist/index.d.ts +266 -7
  10. package/dist/index.js +1 -0
  11. package/dist/packem_shared/DEFAULT_OPTIONS-C7o6qjwP.js +1 -0
  12. package/dist/packem_shared/SpecBuilder-Vbq42UbW.js +1 -0
  13. package/dist/packem_shared/SwaggerCompilerPlugin-PUOALp2i.js +1 -0
  14. package/dist/packem_shared/constants-CdEv9ZcD.js +1 -0
  15. package/dist/packem_shared/customizer-BXFVpImq.js +1 -0
  16. package/dist/packem_shared/generateCommand-C_XPsbS6.js +5 -0
  17. package/dist/packem_shared/generateCommand-ClL9Mnc3.js +1 -0
  18. package/dist/packem_shared/initCommand-Ca1hGdYS.js +35 -0
  19. package/dist/packem_shared/initCommand-TixxsVQU.js +1 -0
  20. package/dist/packem_shared/jsDocumentCommentsToOpenApi-TjPhUj5G.js +1 -0
  21. package/dist/packem_shared/loadDefinition-7r9qpfuE.js +1 -0
  22. package/dist/packem_shared/parseFile-RDlR4tEF.js +1 -0
  23. package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-Bm9R1BnW.js +10 -0
  24. package/dist/packem_shared/validate-9Rwe2A3r.js +1 -0
  25. package/dist/packem_shared/yamlLoc-DPq-xUM4.js +1 -0
  26. package/package.json +23 -43
  27. package/dist/cli/command/generate-command.d.cts +0 -7
  28. package/dist/cli/command/generate-command.d.mts +0 -7
  29. package/dist/cli/command/generate-command.d.ts +0 -7
  30. package/dist/cli/command/init-command.d.cts +0 -2
  31. package/dist/cli/command/init-command.d.mts +0 -2
  32. package/dist/cli/command/init-command.d.ts +0 -2
  33. package/dist/cli/commander/command/generate-command.d.cts +0 -3
  34. package/dist/cli/commander/command/generate-command.d.mts +0 -3
  35. package/dist/cli/commander/command/generate-command.d.ts +0 -3
  36. package/dist/cli/commander/command/init-command.d.cts +0 -3
  37. package/dist/cli/commander/command/init-command.d.mts +0 -3
  38. package/dist/cli/commander/command/init-command.d.ts +0 -3
  39. package/dist/cli/commander/index.cjs +0 -11
  40. package/dist/cli/commander/index.d.cts +0 -2
  41. package/dist/cli/commander/index.d.mts +0 -2
  42. package/dist/cli/commander/index.mjs +0 -2
  43. package/dist/cli/index.cjs +0 -11
  44. package/dist/cli/index.d.cts +0 -2
  45. package/dist/cli/index.d.mts +0 -2
  46. package/dist/cli/index.mjs +0 -2
  47. package/dist/constants.d.cts +0 -1
  48. package/dist/constants.d.mts +0 -1
  49. package/dist/constants.d.ts +0 -1
  50. package/dist/exported.d.cts +0 -198
  51. package/dist/exported.d.mts +0 -198
  52. package/dist/exported.d.ts +0 -198
  53. package/dist/index.cjs +0 -19
  54. package/dist/index.d.cts +0 -7
  55. package/dist/index.d.mts +0 -7
  56. package/dist/index.mjs +0 -6
  57. package/dist/jsdoc/comments-to-open-api.d.cts +0 -6
  58. package/dist/jsdoc/comments-to-open-api.d.mts +0 -6
  59. package/dist/jsdoc/comments-to-open-api.d.ts +0 -6
  60. package/dist/packem_shared/SpecBuilder-B7YiF7zR.mjs +0 -61
  61. package/dist/packem_shared/SpecBuilder-CCESkmm5.cjs +0 -63
  62. package/dist/packem_shared/SwaggerCompilerPlugin-BkYJzU4f.cjs +0 -88
  63. package/dist/packem_shared/SwaggerCompilerPlugin-DZ7tIJ8x.mjs +0 -86
  64. package/dist/packem_shared/customizer-CoMXMU7a.mjs +0 -8
  65. package/dist/packem_shared/customizer-DDFwFqJl.cjs +0 -10
  66. package/dist/packem_shared/generateCommand-DRMkfIle.mjs +0 -15
  67. package/dist/packem_shared/generateCommand-MwnCNgEE.cjs +0 -82
  68. package/dist/packem_shared/generateCommand-RY4QFtm7.cjs +0 -17
  69. package/dist/packem_shared/generateCommand-a9_RAbug.mjs +0 -80
  70. package/dist/packem_shared/initCommand-B6Z9EXHP.mjs +0 -15
  71. package/dist/packem_shared/initCommand-Ch-72dKZ.cjs +0 -65
  72. package/dist/packem_shared/initCommand-D3yVEMwO.cjs +0 -17
  73. package/dist/packem_shared/initCommand-zE4VRDGW.mjs +0 -63
  74. package/dist/packem_shared/jsDocumentCommentsToOpenApi-C7yMeXJ5.cjs +0 -337
  75. package/dist/packem_shared/jsDocumentCommentsToOpenApi-DtrIZ2lK.mjs +0 -331
  76. package/dist/packem_shared/parseFile-BE-sKiRK.mjs +0 -35
  77. package/dist/packem_shared/parseFile-Dk7Bw7lt.cjs +0 -42
  78. package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-B7g9rVr5.mjs +0 -131
  79. package/dist/packem_shared/swaggerJsDocumentCommentsToOpenApi-BuB7eE94.cjs +0 -138
  80. package/dist/packem_shared/validate-DZHaKH07.mjs +0 -30
  81. package/dist/packem_shared/validate-FKieC3ln.cjs +0 -37
  82. package/dist/packem_shared/yamlLoc-C7iHWvdq.mjs +0 -14
  83. package/dist/packem_shared/yamlLoc-CEvBiR4K.cjs +0 -16
  84. package/dist/parse-file.d.cts +0 -9
  85. package/dist/parse-file.d.mts +0 -9
  86. package/dist/parse-file.d.ts +0 -9
  87. package/dist/spec-builder.d.cts +0 -14
  88. package/dist/spec-builder.d.mts +0 -14
  89. package/dist/spec-builder.d.ts +0 -14
  90. package/dist/swagger-jsdoc/comments-to-open-api.d.cts +0 -6
  91. package/dist/swagger-jsdoc/comments-to-open-api.d.mts +0 -6
  92. package/dist/swagger-jsdoc/comments-to-open-api.d.ts +0 -6
  93. package/dist/swagger-jsdoc/organize-swagger-object.d.cts +0 -7
  94. package/dist/swagger-jsdoc/organize-swagger-object.d.mts +0 -7
  95. package/dist/swagger-jsdoc/organize-swagger-object.d.ts +0 -7
  96. package/dist/swagger-jsdoc/utils.d.cts +0 -22
  97. package/dist/swagger-jsdoc/utils.d.mts +0 -22
  98. package/dist/swagger-jsdoc/utils.d.ts +0 -22
  99. package/dist/util/customizer.d.cts +0 -2
  100. package/dist/util/customizer.d.mts +0 -2
  101. package/dist/util/customizer.d.ts +0 -2
  102. package/dist/util/object-merge.d.cts +0 -2
  103. package/dist/util/object-merge.d.mts +0 -2
  104. package/dist/util/object-merge.d.ts +0 -2
  105. package/dist/util/yaml-loc.d.cts +0 -2
  106. package/dist/util/yaml-loc.d.mts +0 -2
  107. package/dist/util/yaml-loc.d.ts +0 -2
  108. package/dist/validate.d.cts +0 -2
  109. package/dist/validate.d.mts +0 -2
  110. package/dist/validate.d.ts +0 -2
  111. package/dist/webpack/swagger-compiler-plugin.d.cts +0 -15
  112. package/dist/webpack/swagger-compiler-plugin.d.mts +0 -15
  113. package/dist/webpack/swagger-compiler-plugin.d.ts +0 -15
@@ -1,2 +0,0 @@
1
- export { default as generateCommand } from '../packem_shared/generateCommand-a9_RAbug.mjs';
2
- export { default as initCommand } from '../packem_shared/initCommand-zE4VRDGW.mjs';
@@ -1 +0,0 @@
1
- export declare const DEFAULT_EXCLUDE: string[];
@@ -1 +0,0 @@
1
- export declare const DEFAULT_EXCLUDE: string[];
@@ -1 +0,0 @@
1
- export declare const DEFAULT_EXCLUDE: string[];
@@ -1,198 +0,0 @@
1
- export interface BaseDefinition {
2
- components?: ComponentsObject;
3
- externalDocs?: ExternalDocumentationObject;
4
- info: InfoObject;
5
- openapi: string;
6
- paths?: PathsObject;
7
- security?: SecurityRequirementObject[];
8
- servers?: ServerObject[];
9
- tags?: TagObject[];
10
- }
11
- export interface OpenApiObject extends BaseDefinition {
12
- paths?: PathsObject;
13
- }
14
- export interface InfoObject {
15
- contact?: ContactObject;
16
- description?: string;
17
- license?: LicenseObject;
18
- termsOfService?: string;
19
- title: string;
20
- version: string;
21
- }
22
- export interface ContactObject {
23
- email?: string;
24
- name?: string;
25
- url?: string;
26
- }
27
- export interface LicenseObject {
28
- name: string;
29
- url?: string;
30
- }
31
- export interface ServerObject {
32
- description?: string;
33
- url: string;
34
- variables?: Map<ServerVariable>;
35
- }
36
- export interface ServerVariable {
37
- default: string;
38
- description?: string;
39
- enum?: string[];
40
- }
41
- export interface ComponentsObject {
42
- callbacks?: Map<CallbackObject | ReferenceObject>;
43
- examples?: Map<ExampleObject | ReferenceObject>;
44
- headers?: Map<HeaderObject | ReferenceObject>;
45
- links?: Map<LinkObject | ReferenceObject>;
46
- parameters?: Map<ParameterObject | ReferenceObject>;
47
- requestBodies?: Map<ReferenceObject | RequestBodyObject>;
48
- responses?: Map<ReferenceObject | ResponseObject>;
49
- schemas?: Map<ReferenceObject | SchemaObject>;
50
- securitySchemes?: Map<ApiKeySecuritySchemeObject | HttpSecuritySchemeObject | Oauth2SecuritySchemeObject | OpenIdConnectSecuritySchemeObject | ReferenceObject>;
51
- }
52
- export type PathsObject = Record<string, PathItemObject>;
53
- export interface PathItemObject {
54
- $ref?: string;
55
- delete?: OperationObject;
56
- description?: string;
57
- get?: OperationObject;
58
- head?: OperationObject;
59
- options?: OperationObject;
60
- parameters?: (ParameterObject | ReferenceObject)[];
61
- patch?: OperationObject;
62
- post?: OperationObject;
63
- put?: OperationObject;
64
- servers?: ServerObject[];
65
- summary?: string;
66
- trace?: OperationObject;
67
- }
68
- export interface OperationObject {
69
- callbacks?: Map<CallbackObject | ReferenceObject>;
70
- deprecated?: boolean;
71
- description?: string;
72
- externalDocs?: ExternalDocumentationObject;
73
- operationId?: string;
74
- parameters?: (ParameterObject | ReferenceObject)[];
75
- requestBody?: ReferenceObject | RequestBodyObject;
76
- responses: ResponsesObject;
77
- security?: SecurityRequirementObject[];
78
- servers?: ServerObject[];
79
- summary?: string;
80
- tags?: string[];
81
- }
82
- export interface ExternalDocumentationObject {
83
- description?: string;
84
- url: string;
85
- }
86
- export interface ParameterObject {
87
- allowEmptyValue?: boolean;
88
- allowReserved?: boolean;
89
- content?: Map<MediaTypeObject>;
90
- deprecated?: boolean;
91
- description?: string;
92
- example?: any;
93
- examples?: Map<ExampleObject | ReferenceObject>;
94
- explode?: string;
95
- in: string;
96
- name: string;
97
- required?: boolean;
98
- schema?: ReferenceObject | SchemaObject;
99
- style?: string;
100
- }
101
- export interface RequestBodyObject {
102
- content: Map<MediaTypeObject>;
103
- description?: string;
104
- required?: boolean;
105
- }
106
- export interface MediaTypeObject {
107
- encoding?: Map<EncodingObject>;
108
- example?: any;
109
- examples?: Map<ExampleObject | ReferenceObject>;
110
- schema?: ReferenceObject | SchemaObject;
111
- }
112
- export interface EncodingObject {
113
- allowReserved?: boolean;
114
- contentType?: string;
115
- explode?: boolean;
116
- headers?: Map<HeaderObject | ReferenceObject>;
117
- style?: string;
118
- }
119
- export type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
120
- export interface ResponseObject {
121
- content?: Map<MediaTypeObject>;
122
- description: string;
123
- headers?: Map<HeaderObject | ReferenceObject>;
124
- links?: Map<LinkObject | ReferenceObject>;
125
- }
126
- export type CallbackObject = Record<string, PathItemObject>;
127
- export interface ExampleObject {
128
- description?: string;
129
- externalValue?: string;
130
- summary?: string;
131
- value?: any;
132
- }
133
- export interface LinkObject {
134
- description?: string;
135
- operationId?: string;
136
- operationRef?: string;
137
- parameters?: Map<any>;
138
- requestBody?: any;
139
- server?: ServerObject;
140
- }
141
- export interface HeaderObject {
142
- allowEmptyValue?: boolean;
143
- allowReserved?: boolean;
144
- content?: Map<MediaTypeObject>;
145
- deprecated?: boolean;
146
- description?: string;
147
- example?: any;
148
- examples?: Map<ExampleObject | ReferenceObject>;
149
- explode?: string;
150
- required?: boolean;
151
- schema?: ReferenceObject | SchemaObject;
152
- style?: string;
153
- }
154
- export interface TagObject {
155
- description?: string;
156
- externalDocs?: ExternalDocumentationObject;
157
- name: string;
158
- }
159
- export interface ReferenceObject {
160
- $ref: string;
161
- }
162
- export type SchemaObject = Record<string, any>;
163
- export interface ApiKeySecuritySchemeObject {
164
- description?: string;
165
- in: string;
166
- name: string;
167
- type: string;
168
- }
169
- export interface HttpSecuritySchemeObject {
170
- bearerFormat?: string;
171
- description?: string;
172
- scheme: string;
173
- type: string;
174
- }
175
- export interface Oauth2SecuritySchemeObject {
176
- description?: string;
177
- flows: OAuthFlowsObject;
178
- type: string;
179
- }
180
- export interface OpenIdConnectSecuritySchemeObject {
181
- description?: string;
182
- openIdConnectUrl: string;
183
- type: string;
184
- }
185
- export interface OAuthFlowsObject {
186
- authorizationCode?: OAuthFlowObject;
187
- clientCredentials?: OAuthFlowObject;
188
- implicit?: OAuthFlowObject;
189
- password?: OAuthFlowObject;
190
- }
191
- export interface OAuthFlowObject {
192
- authorizationUrl?: string;
193
- refreshUrl: string;
194
- scopes: Map<string>;
195
- tokenUrl?: string;
196
- }
197
- export type SecurityRequirementObject = Record<string, string[]>;
198
- export type Map<T> = Record<string, T>;
@@ -1,198 +0,0 @@
1
- export interface BaseDefinition {
2
- components?: ComponentsObject;
3
- externalDocs?: ExternalDocumentationObject;
4
- info: InfoObject;
5
- openapi: string;
6
- paths?: PathsObject;
7
- security?: SecurityRequirementObject[];
8
- servers?: ServerObject[];
9
- tags?: TagObject[];
10
- }
11
- export interface OpenApiObject extends BaseDefinition {
12
- paths?: PathsObject;
13
- }
14
- export interface InfoObject {
15
- contact?: ContactObject;
16
- description?: string;
17
- license?: LicenseObject;
18
- termsOfService?: string;
19
- title: string;
20
- version: string;
21
- }
22
- export interface ContactObject {
23
- email?: string;
24
- name?: string;
25
- url?: string;
26
- }
27
- export interface LicenseObject {
28
- name: string;
29
- url?: string;
30
- }
31
- export interface ServerObject {
32
- description?: string;
33
- url: string;
34
- variables?: Map<ServerVariable>;
35
- }
36
- export interface ServerVariable {
37
- default: string;
38
- description?: string;
39
- enum?: string[];
40
- }
41
- export interface ComponentsObject {
42
- callbacks?: Map<CallbackObject | ReferenceObject>;
43
- examples?: Map<ExampleObject | ReferenceObject>;
44
- headers?: Map<HeaderObject | ReferenceObject>;
45
- links?: Map<LinkObject | ReferenceObject>;
46
- parameters?: Map<ParameterObject | ReferenceObject>;
47
- requestBodies?: Map<ReferenceObject | RequestBodyObject>;
48
- responses?: Map<ReferenceObject | ResponseObject>;
49
- schemas?: Map<ReferenceObject | SchemaObject>;
50
- securitySchemes?: Map<ApiKeySecuritySchemeObject | HttpSecuritySchemeObject | Oauth2SecuritySchemeObject | OpenIdConnectSecuritySchemeObject | ReferenceObject>;
51
- }
52
- export type PathsObject = Record<string, PathItemObject>;
53
- export interface PathItemObject {
54
- $ref?: string;
55
- delete?: OperationObject;
56
- description?: string;
57
- get?: OperationObject;
58
- head?: OperationObject;
59
- options?: OperationObject;
60
- parameters?: (ParameterObject | ReferenceObject)[];
61
- patch?: OperationObject;
62
- post?: OperationObject;
63
- put?: OperationObject;
64
- servers?: ServerObject[];
65
- summary?: string;
66
- trace?: OperationObject;
67
- }
68
- export interface OperationObject {
69
- callbacks?: Map<CallbackObject | ReferenceObject>;
70
- deprecated?: boolean;
71
- description?: string;
72
- externalDocs?: ExternalDocumentationObject;
73
- operationId?: string;
74
- parameters?: (ParameterObject | ReferenceObject)[];
75
- requestBody?: ReferenceObject | RequestBodyObject;
76
- responses: ResponsesObject;
77
- security?: SecurityRequirementObject[];
78
- servers?: ServerObject[];
79
- summary?: string;
80
- tags?: string[];
81
- }
82
- export interface ExternalDocumentationObject {
83
- description?: string;
84
- url: string;
85
- }
86
- export interface ParameterObject {
87
- allowEmptyValue?: boolean;
88
- allowReserved?: boolean;
89
- content?: Map<MediaTypeObject>;
90
- deprecated?: boolean;
91
- description?: string;
92
- example?: any;
93
- examples?: Map<ExampleObject | ReferenceObject>;
94
- explode?: string;
95
- in: string;
96
- name: string;
97
- required?: boolean;
98
- schema?: ReferenceObject | SchemaObject;
99
- style?: string;
100
- }
101
- export interface RequestBodyObject {
102
- content: Map<MediaTypeObject>;
103
- description?: string;
104
- required?: boolean;
105
- }
106
- export interface MediaTypeObject {
107
- encoding?: Map<EncodingObject>;
108
- example?: any;
109
- examples?: Map<ExampleObject | ReferenceObject>;
110
- schema?: ReferenceObject | SchemaObject;
111
- }
112
- export interface EncodingObject {
113
- allowReserved?: boolean;
114
- contentType?: string;
115
- explode?: boolean;
116
- headers?: Map<HeaderObject | ReferenceObject>;
117
- style?: string;
118
- }
119
- export type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
120
- export interface ResponseObject {
121
- content?: Map<MediaTypeObject>;
122
- description: string;
123
- headers?: Map<HeaderObject | ReferenceObject>;
124
- links?: Map<LinkObject | ReferenceObject>;
125
- }
126
- export type CallbackObject = Record<string, PathItemObject>;
127
- export interface ExampleObject {
128
- description?: string;
129
- externalValue?: string;
130
- summary?: string;
131
- value?: any;
132
- }
133
- export interface LinkObject {
134
- description?: string;
135
- operationId?: string;
136
- operationRef?: string;
137
- parameters?: Map<any>;
138
- requestBody?: any;
139
- server?: ServerObject;
140
- }
141
- export interface HeaderObject {
142
- allowEmptyValue?: boolean;
143
- allowReserved?: boolean;
144
- content?: Map<MediaTypeObject>;
145
- deprecated?: boolean;
146
- description?: string;
147
- example?: any;
148
- examples?: Map<ExampleObject | ReferenceObject>;
149
- explode?: string;
150
- required?: boolean;
151
- schema?: ReferenceObject | SchemaObject;
152
- style?: string;
153
- }
154
- export interface TagObject {
155
- description?: string;
156
- externalDocs?: ExternalDocumentationObject;
157
- name: string;
158
- }
159
- export interface ReferenceObject {
160
- $ref: string;
161
- }
162
- export type SchemaObject = Record<string, any>;
163
- export interface ApiKeySecuritySchemeObject {
164
- description?: string;
165
- in: string;
166
- name: string;
167
- type: string;
168
- }
169
- export interface HttpSecuritySchemeObject {
170
- bearerFormat?: string;
171
- description?: string;
172
- scheme: string;
173
- type: string;
174
- }
175
- export interface Oauth2SecuritySchemeObject {
176
- description?: string;
177
- flows: OAuthFlowsObject;
178
- type: string;
179
- }
180
- export interface OpenIdConnectSecuritySchemeObject {
181
- description?: string;
182
- openIdConnectUrl: string;
183
- type: string;
184
- }
185
- export interface OAuthFlowsObject {
186
- authorizationCode?: OAuthFlowObject;
187
- clientCredentials?: OAuthFlowObject;
188
- implicit?: OAuthFlowObject;
189
- password?: OAuthFlowObject;
190
- }
191
- export interface OAuthFlowObject {
192
- authorizationUrl?: string;
193
- refreshUrl: string;
194
- scopes: Map<string>;
195
- tokenUrl?: string;
196
- }
197
- export type SecurityRequirementObject = Record<string, string[]>;
198
- export type Map<T> = Record<string, T>;
@@ -1,198 +0,0 @@
1
- export interface BaseDefinition {
2
- components?: ComponentsObject;
3
- externalDocs?: ExternalDocumentationObject;
4
- info: InfoObject;
5
- openapi: string;
6
- paths?: PathsObject;
7
- security?: SecurityRequirementObject[];
8
- servers?: ServerObject[];
9
- tags?: TagObject[];
10
- }
11
- export interface OpenApiObject extends BaseDefinition {
12
- paths?: PathsObject;
13
- }
14
- export interface InfoObject {
15
- contact?: ContactObject;
16
- description?: string;
17
- license?: LicenseObject;
18
- termsOfService?: string;
19
- title: string;
20
- version: string;
21
- }
22
- export interface ContactObject {
23
- email?: string;
24
- name?: string;
25
- url?: string;
26
- }
27
- export interface LicenseObject {
28
- name: string;
29
- url?: string;
30
- }
31
- export interface ServerObject {
32
- description?: string;
33
- url: string;
34
- variables?: Map<ServerVariable>;
35
- }
36
- export interface ServerVariable {
37
- default: string;
38
- description?: string;
39
- enum?: string[];
40
- }
41
- export interface ComponentsObject {
42
- callbacks?: Map<CallbackObject | ReferenceObject>;
43
- examples?: Map<ExampleObject | ReferenceObject>;
44
- headers?: Map<HeaderObject | ReferenceObject>;
45
- links?: Map<LinkObject | ReferenceObject>;
46
- parameters?: Map<ParameterObject | ReferenceObject>;
47
- requestBodies?: Map<ReferenceObject | RequestBodyObject>;
48
- responses?: Map<ReferenceObject | ResponseObject>;
49
- schemas?: Map<ReferenceObject | SchemaObject>;
50
- securitySchemes?: Map<ApiKeySecuritySchemeObject | HttpSecuritySchemeObject | Oauth2SecuritySchemeObject | OpenIdConnectSecuritySchemeObject | ReferenceObject>;
51
- }
52
- export type PathsObject = Record<string, PathItemObject>;
53
- export interface PathItemObject {
54
- $ref?: string;
55
- delete?: OperationObject;
56
- description?: string;
57
- get?: OperationObject;
58
- head?: OperationObject;
59
- options?: OperationObject;
60
- parameters?: (ParameterObject | ReferenceObject)[];
61
- patch?: OperationObject;
62
- post?: OperationObject;
63
- put?: OperationObject;
64
- servers?: ServerObject[];
65
- summary?: string;
66
- trace?: OperationObject;
67
- }
68
- export interface OperationObject {
69
- callbacks?: Map<CallbackObject | ReferenceObject>;
70
- deprecated?: boolean;
71
- description?: string;
72
- externalDocs?: ExternalDocumentationObject;
73
- operationId?: string;
74
- parameters?: (ParameterObject | ReferenceObject)[];
75
- requestBody?: ReferenceObject | RequestBodyObject;
76
- responses: ResponsesObject;
77
- security?: SecurityRequirementObject[];
78
- servers?: ServerObject[];
79
- summary?: string;
80
- tags?: string[];
81
- }
82
- export interface ExternalDocumentationObject {
83
- description?: string;
84
- url: string;
85
- }
86
- export interface ParameterObject {
87
- allowEmptyValue?: boolean;
88
- allowReserved?: boolean;
89
- content?: Map<MediaTypeObject>;
90
- deprecated?: boolean;
91
- description?: string;
92
- example?: any;
93
- examples?: Map<ExampleObject | ReferenceObject>;
94
- explode?: string;
95
- in: string;
96
- name: string;
97
- required?: boolean;
98
- schema?: ReferenceObject | SchemaObject;
99
- style?: string;
100
- }
101
- export interface RequestBodyObject {
102
- content: Map<MediaTypeObject>;
103
- description?: string;
104
- required?: boolean;
105
- }
106
- export interface MediaTypeObject {
107
- encoding?: Map<EncodingObject>;
108
- example?: any;
109
- examples?: Map<ExampleObject | ReferenceObject>;
110
- schema?: ReferenceObject | SchemaObject;
111
- }
112
- export interface EncodingObject {
113
- allowReserved?: boolean;
114
- contentType?: string;
115
- explode?: boolean;
116
- headers?: Map<HeaderObject | ReferenceObject>;
117
- style?: string;
118
- }
119
- export type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
120
- export interface ResponseObject {
121
- content?: Map<MediaTypeObject>;
122
- description: string;
123
- headers?: Map<HeaderObject | ReferenceObject>;
124
- links?: Map<LinkObject | ReferenceObject>;
125
- }
126
- export type CallbackObject = Record<string, PathItemObject>;
127
- export interface ExampleObject {
128
- description?: string;
129
- externalValue?: string;
130
- summary?: string;
131
- value?: any;
132
- }
133
- export interface LinkObject {
134
- description?: string;
135
- operationId?: string;
136
- operationRef?: string;
137
- parameters?: Map<any>;
138
- requestBody?: any;
139
- server?: ServerObject;
140
- }
141
- export interface HeaderObject {
142
- allowEmptyValue?: boolean;
143
- allowReserved?: boolean;
144
- content?: Map<MediaTypeObject>;
145
- deprecated?: boolean;
146
- description?: string;
147
- example?: any;
148
- examples?: Map<ExampleObject | ReferenceObject>;
149
- explode?: string;
150
- required?: boolean;
151
- schema?: ReferenceObject | SchemaObject;
152
- style?: string;
153
- }
154
- export interface TagObject {
155
- description?: string;
156
- externalDocs?: ExternalDocumentationObject;
157
- name: string;
158
- }
159
- export interface ReferenceObject {
160
- $ref: string;
161
- }
162
- export type SchemaObject = Record<string, any>;
163
- export interface ApiKeySecuritySchemeObject {
164
- description?: string;
165
- in: string;
166
- name: string;
167
- type: string;
168
- }
169
- export interface HttpSecuritySchemeObject {
170
- bearerFormat?: string;
171
- description?: string;
172
- scheme: string;
173
- type: string;
174
- }
175
- export interface Oauth2SecuritySchemeObject {
176
- description?: string;
177
- flows: OAuthFlowsObject;
178
- type: string;
179
- }
180
- export interface OpenIdConnectSecuritySchemeObject {
181
- description?: string;
182
- openIdConnectUrl: string;
183
- type: string;
184
- }
185
- export interface OAuthFlowsObject {
186
- authorizationCode?: OAuthFlowObject;
187
- clientCredentials?: OAuthFlowObject;
188
- implicit?: OAuthFlowObject;
189
- password?: OAuthFlowObject;
190
- }
191
- export interface OAuthFlowObject {
192
- authorizationUrl?: string;
193
- refreshUrl: string;
194
- scopes: Map<string>;
195
- tokenUrl?: string;
196
- }
197
- export type SecurityRequirementObject = Record<string, string[]>;
198
- export type Map<T> = Record<string, T>;
package/dist/index.cjs DELETED
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
-
5
- const jsDocumentCommentsToOpenApi = require('./packem_shared/jsDocumentCommentsToOpenApi-C7yMeXJ5.cjs');
6
- const parseFile = require('./packem_shared/parseFile-Dk7Bw7lt.cjs');
7
- const SpecBuilder = require('./packem_shared/SpecBuilder-CCESkmm5.cjs');
8
- const swaggerJsDocumentCommentsToOpenApi = require('./packem_shared/swaggerJsDocumentCommentsToOpenApi-BuB7eE94.cjs');
9
- const yamlLoc = require('./packem_shared/yamlLoc-CEvBiR4K.cjs');
10
- const SwaggerCompilerPlugin = require('./packem_shared/SwaggerCompilerPlugin-BkYJzU4f.cjs');
11
-
12
-
13
-
14
- exports.jsDocumentCommentsToOpenApi = jsDocumentCommentsToOpenApi;
15
- exports.parseFile = parseFile;
16
- exports.SpecBuilder = SpecBuilder;
17
- exports.swaggerJsDocumentCommentsToOpenApi = swaggerJsDocumentCommentsToOpenApi;
18
- exports.yamlLoc = yamlLoc;
19
- exports.SwaggerCompilerPlugin = SwaggerCompilerPlugin;
package/dist/index.d.cts DELETED
@@ -1,7 +0,0 @@
1
- export type { BaseDefinition, OpenApiObject } from "./exported.d.cts";
2
- export { default as jsDocumentCommentsToOpenApi } from "./jsdoc/comments-to-open-api.d.cts";
3
- export { default as parseFile } from "./parse-file.d.cts";
4
- export { default as SpecBuilder } from "./spec-builder.d.cts";
5
- export { default as swaggerJsDocumentCommentsToOpenApi } from "./swagger-jsdoc/comments-to-open-api.d.cts";
6
- export { default as yamlLoc } from "./util/yaml-loc.d.cts";
7
- export { default as SwaggerCompilerPlugin } from "./webpack/swagger-compiler-plugin.d.cts";
package/dist/index.d.mts DELETED
@@ -1,7 +0,0 @@
1
- export type { BaseDefinition, OpenApiObject } from "./exported.d.mts";
2
- export { default as jsDocumentCommentsToOpenApi } from "./jsdoc/comments-to-open-api.d.mts";
3
- export { default as parseFile } from "./parse-file.d.mts";
4
- export { default as SpecBuilder } from "./spec-builder.d.mts";
5
- export { default as swaggerJsDocumentCommentsToOpenApi } from "./swagger-jsdoc/comments-to-open-api.d.mts";
6
- export { default as yamlLoc } from "./util/yaml-loc.d.mts";
7
- export { default as SwaggerCompilerPlugin } from "./webpack/swagger-compiler-plugin.d.mts";
package/dist/index.mjs DELETED
@@ -1,6 +0,0 @@
1
- export { default as jsDocumentCommentsToOpenApi } from './packem_shared/jsDocumentCommentsToOpenApi-DtrIZ2lK.mjs';
2
- export { default as parseFile } from './packem_shared/parseFile-BE-sKiRK.mjs';
3
- export { default as SpecBuilder } from './packem_shared/SpecBuilder-B7YiF7zR.mjs';
4
- export { default as swaggerJsDocumentCommentsToOpenApi } from './packem_shared/swaggerJsDocumentCommentsToOpenApi-B7g9rVr5.mjs';
5
- export { default as yamlLoc } from './packem_shared/yamlLoc-C7iHWvdq.mjs';
6
- export { default as SwaggerCompilerPlugin } from './packem_shared/SwaggerCompilerPlugin-DZ7tIJ8x.mjs';
@@ -1,6 +0,0 @@
1
- import type { OpenApiObject } from "../exported.d.cts";
2
- declare const commentsToOpenApi: (fileContents: string, verbose?: boolean) => {
3
- loc: number;
4
- spec: OpenApiObject;
5
- }[];
6
- export = commentsToOpenApi;
@@ -1,6 +0,0 @@
1
- import type { OpenApiObject } from "../exported.d.mts";
2
- declare const commentsToOpenApi: (fileContents: string, verbose?: boolean) => {
3
- loc: number;
4
- spec: OpenApiObject;
5
- }[];
6
- export default commentsToOpenApi;
@@ -1,6 +0,0 @@
1
- import type { OpenApiObject } from "../exported.d.ts";
2
- declare const commentsToOpenApi: (fileContents: string, verbose?: boolean) => {
3
- loc: number;
4
- spec: OpenApiObject;
5
- }[];
6
- export = commentsToOpenApi;