swagger-sdk-generator 0.0.0-stage → 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 (217) hide show
  1. package/README.md +58 -2
  2. package/dist/cli/commands/generate.d.ts +2 -0
  3. package/dist/cli/commands/generate.js +196 -0
  4. package/dist/cli/commands/init.d.ts +2 -0
  5. package/dist/cli/commands/init.js +130 -0
  6. package/dist/cli/commands/inspect.d.ts +2 -0
  7. package/dist/cli/commands/inspect.js +164 -0
  8. package/dist/cli/commands/templates.d.ts +2 -0
  9. package/dist/cli/commands/templates.js +126 -0
  10. package/dist/cli/context.d.ts +16 -0
  11. package/dist/cli/context.js +85 -0
  12. package/dist/cli/main.d.ts +2 -0
  13. package/dist/cli/main.js +25 -0
  14. package/dist/config/dotenv.d.ts +2 -0
  15. package/dist/config/dotenv.js +82 -0
  16. package/dist/config/interpolate.d.ts +8 -0
  17. package/dist/config/interpolate.js +85 -0
  18. package/dist/config/load.d.ts +11 -0
  19. package/dist/config/load.js +182 -0
  20. package/dist/config/migrate-v3.d.ts +5 -0
  21. package/dist/config/migrate-v3.js +6 -0
  22. package/dist/config/mode-compatibility.d.ts +9 -0
  23. package/dist/config/mode-compatibility.js +17 -0
  24. package/dist/config/modes.d.ts +13 -0
  25. package/dist/config/modes.js +27 -0
  26. package/dist/config/preset-definitions.d.ts +2 -0
  27. package/dist/config/preset-definitions.js +4 -0
  28. package/dist/config/presets.d.ts +25 -0
  29. package/dist/config/presets.js +36 -0
  30. package/dist/config/resolve.d.ts +32 -0
  31. package/dist/config/resolve.js +288 -0
  32. package/dist/config/schema.d.ts +93 -0
  33. package/dist/config/schema.js +173 -0
  34. package/dist/config/types.d.ts +42 -0
  35. package/dist/config/types.js +2 -0
  36. package/dist/config/workspace.d.ts +30 -0
  37. package/dist/config/workspace.js +95 -0
  38. package/dist/core/case-align.d.ts +5 -0
  39. package/dist/core/case-align.js +90 -0
  40. package/dist/core/deep-merge.d.ts +2 -0
  41. package/dist/core/deep-merge.js +21 -0
  42. package/dist/core/file-set.d.ts +10 -0
  43. package/dist/core/file-set.js +31 -0
  44. package/dist/core/import-module.d.ts +1 -0
  45. package/dist/core/import-module.js +61 -0
  46. package/dist/core/log.d.ts +9 -0
  47. package/dist/core/log.js +24 -0
  48. package/dist/core/manifest.d.ts +17 -0
  49. package/dist/core/manifest.js +195 -0
  50. package/dist/core/overlaps.d.ts +6 -0
  51. package/dist/core/overlaps.js +67 -0
  52. package/dist/core/package-version.d.ts +1 -0
  53. package/dist/core/package-version.js +44 -0
  54. package/dist/core/pipeline.d.ts +30 -0
  55. package/dist/core/pipeline.js +335 -0
  56. package/dist/core/plugin.d.ts +72 -0
  57. package/dist/core/plugin.js +2 -0
  58. package/dist/core/targets.d.ts +14 -0
  59. package/dist/core/targets.js +120 -0
  60. package/dist/core/unmanaged.d.ts +3 -0
  61. package/dist/core/unmanaged.js +101 -0
  62. package/dist/core/writer.d.ts +28 -0
  63. package/dist/core/writer.js +148 -0
  64. package/dist/index.d.ts +20 -0
  65. package/dist/index.js +37 -0
  66. package/dist/ir/casing.d.ts +5 -0
  67. package/dist/ir/casing.js +22 -0
  68. package/dist/ir/graph.d.ts +8 -0
  69. package/dist/ir/graph.js +95 -0
  70. package/dist/ir/operations/grouping.d.ts +17 -0
  71. package/dist/ir/operations/grouping.js +39 -0
  72. package/dist/ir/operations/legacy-naming.d.ts +2 -0
  73. package/dist/ir/operations/legacy-naming.js +8 -0
  74. package/dist/ir/operations/naming.d.ts +6 -0
  75. package/dist/ir/operations/naming.js +54 -0
  76. package/dist/ir/option-errors.d.ts +3 -0
  77. package/dist/ir/option-errors.js +68 -0
  78. package/dist/ir/transforms/builtins.d.ts +2 -0
  79. package/dist/ir/transforms/builtins.js +4 -0
  80. package/dist/ir/transforms/index.d.ts +10 -0
  81. package/dist/ir/transforms/index.js +39 -0
  82. package/dist/ir/transforms/types.d.ts +9 -0
  83. package/dist/ir/transforms/types.js +2 -0
  84. package/dist/ir/types.d.ts +140 -0
  85. package/dist/ir/types.js +2 -0
  86. package/dist/runtime/axios.d.ts +28 -0
  87. package/dist/runtime/axios.js +132 -0
  88. package/dist/runtime/fetch.d.ts +6 -0
  89. package/dist/runtime/fetch.js +38 -0
  90. package/dist/runtime/index.d.ts +54 -0
  91. package/dist/runtime/index.js +167 -0
  92. package/dist/runtime/rtk.d.ts +35 -0
  93. package/dist/runtime/rtk.js +36 -0
  94. package/dist/runtime/transport.d.ts +38 -0
  95. package/dist/runtime/transport.js +30 -0
  96. package/dist/runtime/wire.d.ts +27 -0
  97. package/dist/runtime/wire.js +148 -0
  98. package/dist/spec/html-entities.d.ts +1 -0
  99. package/dist/spec/html-entities.js +25 -0
  100. package/dist/spec/load.d.ts +26 -0
  101. package/dist/spec/load.js +130 -0
  102. package/dist/spec/openapi/all-of.d.ts +3 -0
  103. package/dist/spec/openapi/all-of.js +9 -0
  104. package/dist/spec/openapi/normalize.d.ts +4 -0
  105. package/dist/spec/openapi/normalize.js +31 -0
  106. package/dist/spec/openapi/operations.d.ts +4 -0
  107. package/dist/spec/openapi/operations.js +173 -0
  108. package/dist/spec/openapi/schema.d.ts +51 -0
  109. package/dist/spec/openapi/schema.js +307 -0
  110. package/dist/targets/declarative/config.d.ts +533 -0
  111. package/dist/targets/declarative/config.js +280 -0
  112. package/dist/targets/declarative/extensions.d.ts +45 -0
  113. package/dist/targets/declarative/extensions.js +123 -0
  114. package/dist/targets/declarative/files.d.ts +13 -0
  115. package/dist/targets/declarative/files.js +127 -0
  116. package/dist/targets/declarative/format.d.ts +4 -0
  117. package/dist/targets/declarative/format.js +104 -0
  118. package/dist/targets/declarative/index.d.ts +9 -0
  119. package/dist/targets/declarative/index.js +170 -0
  120. package/dist/targets/declarative/liquid.d.ts +8 -0
  121. package/dist/targets/declarative/liquid.js +57 -0
  122. package/dist/targets/declarative/naming-case.d.ts +3 -0
  123. package/dist/targets/declarative/naming-case.js +31 -0
  124. package/dist/targets/declarative/naming.d.ts +42 -0
  125. package/dist/targets/declarative/naming.js +174 -0
  126. package/dist/targets/declarative/scaffold.d.ts +5 -0
  127. package/dist/targets/declarative/scaffold.js +146 -0
  128. package/dist/targets/declarative/types.d.ts +52 -0
  129. package/dist/targets/declarative/types.js +287 -0
  130. package/dist/targets/declarative/views.d.ts +180 -0
  131. package/dist/targets/declarative/views.js +447 -0
  132. package/dist/targets/python/extensions.js +152 -0
  133. package/dist/targets/python/target.json +549 -0
  134. package/dist/targets/python/templates/client/client.liquid +114 -0
  135. package/dist/targets/python/templates/client/httpx_transport.liquid +172 -0
  136. package/dist/targets/python/templates/client/init.liquid +20 -0
  137. package/dist/targets/python/templates/client/partials/operation_method.liquid +41 -0
  138. package/dist/targets/python/templates/client/resource.liquid +28 -0
  139. package/dist/targets/python/templates/client/runtime.liquid +133 -0
  140. package/dist/targets/python/templates/client/transport.liquid +62 -0
  141. package/dist/targets/python/templates/models/module.liquid +48 -0
  142. package/dist/targets/python/templates/models/partials/docstring.liquid +5 -0
  143. package/dist/targets/python/templates/models/partials/enum_class.liquid +11 -0
  144. package/dist/targets/python/templates/models/partials/field_line.liquid +5 -0
  145. package/dist/targets/python/templates/models/partials/model_class.liquid +17 -0
  146. package/dist/targets/typescript/compatibility-naming.d.ts +6 -0
  147. package/dist/targets/typescript/compatibility-naming.js +28 -0
  148. package/dist/targets/typescript/compatibility-options.d.ts +5 -0
  149. package/dist/targets/typescript/compatibility-options.js +8 -0
  150. package/dist/targets/typescript/compatibility-target.d.ts +5 -0
  151. package/dist/targets/typescript/compatibility-target.js +10 -0
  152. package/dist/targets/typescript/http-operations.d.ts +34 -0
  153. package/dist/targets/typescript/http-operations.js +155 -0
  154. package/dist/targets/typescript/imports.d.ts +43 -0
  155. package/dist/targets/typescript/imports.js +154 -0
  156. package/dist/targets/typescript/index.d.ts +7 -0
  157. package/dist/targets/typescript/index.js +52 -0
  158. package/dist/targets/typescript/mock-compatibility.d.ts +4 -0
  159. package/dist/targets/typescript/mock-compatibility.js +6 -0
  160. package/dist/targets/typescript/mock-hints.d.ts +13 -0
  161. package/dist/targets/typescript/mock-hints.js +75 -0
  162. package/dist/targets/typescript/mock-reachability.d.ts +12 -0
  163. package/dist/targets/typescript/mock-reachability.js +87 -0
  164. package/dist/targets/typescript/model-compatibility.d.ts +14 -0
  165. package/dist/targets/typescript/model-compatibility.js +16 -0
  166. package/dist/targets/typescript/naming.d.ts +13 -0
  167. package/dist/targets/typescript/naming.js +50 -0
  168. package/dist/targets/typescript/options.d.ts +124 -0
  169. package/dist/targets/typescript/options.js +90 -0
  170. package/dist/targets/typescript/outputs/client.d.ts +67 -0
  171. package/dist/targets/typescript/outputs/client.js +187 -0
  172. package/dist/targets/typescript/outputs/mocks.d.ts +32 -0
  173. package/dist/targets/typescript/outputs/mocks.js +371 -0
  174. package/dist/targets/typescript/outputs/models.d.ts +85 -0
  175. package/dist/targets/typescript/outputs/models.js +246 -0
  176. package/dist/targets/typescript/outputs/rtk-query.d.ts +69 -0
  177. package/dist/targets/typescript/outputs/rtk-query.js +266 -0
  178. package/dist/targets/typescript/prettier.d.ts +7 -0
  179. package/dist/targets/typescript/prettier.js +44 -0
  180. package/dist/targets/typescript/templates/client/client.liquid +30 -0
  181. package/dist/targets/typescript/templates/client/partials/api-member.liquid +13 -0
  182. package/dist/targets/typescript/templates/client/partials/jsdoc.liquid +10 -0
  183. package/dist/targets/typescript/templates/client/partials/method.liquid +26 -0
  184. package/dist/targets/typescript/templates/client/partials/query-type.liquid +10 -0
  185. package/dist/targets/typescript/templates/client/resource.liquid +34 -0
  186. package/dist/targets/typescript/templates/mocks/mock.liquid +15 -0
  187. package/dist/targets/typescript/templates/mocks/partials/factory.liquid +12 -0
  188. package/dist/targets/typescript/templates/mocks/partials/imports.liquid +7 -0
  189. package/dist/targets/typescript/templates/models/alias.liquid +16 -0
  190. package/dist/targets/typescript/templates/models/enum.liquid +27 -0
  191. package/dist/targets/typescript/templates/models/index.liquid +14 -0
  192. package/dist/targets/typescript/templates/models/model.liquid +25 -0
  193. package/dist/targets/typescript/templates/models/partials/const.liquid +10 -0
  194. package/dist/targets/typescript/templates/models/partials/imports.liquid +9 -0
  195. package/dist/targets/typescript/templates/models/partials/jsdoc.liquid +9 -0
  196. package/dist/targets/typescript/templates/models/partials/property.liquid +7 -0
  197. package/dist/targets/typescript/templates/rtk-query/api.liquid +16 -0
  198. package/dist/targets/typescript/templates/rtk-query/partials/arg-types.liquid +6 -0
  199. package/dist/targets/typescript/templates/rtk-query/partials/endpoint-mutation.liquid +13 -0
  200. package/dist/targets/typescript/templates/rtk-query/partials/endpoint-query.liquid +13 -0
  201. package/dist/targets/typescript/templates/rtk-query/partials/file-warning.liquid +7 -0
  202. package/dist/targets/typescript/templates/rtk-query/partials/hooks.liquid +9 -0
  203. package/dist/targets/typescript/templates/rtk-query/partials/imports.liquid +7 -0
  204. package/dist/targets/typescript/templates/rtk-query/partials/request-config.liquid +9 -0
  205. package/dist/targets/typescript/templates/rtk-query/resource.liquid +40 -0
  206. package/dist/targets/typescript/ts-type.d.ts +70 -0
  207. package/dist/targets/typescript/ts-type.js +62 -0
  208. package/dist/targets/typescript/type-printer.d.ts +21 -0
  209. package/dist/targets/typescript/type-printer.js +115 -0
  210. package/dist/templates/engine.d.ts +20 -0
  211. package/dist/templates/engine.js +161 -0
  212. package/dist/templates/inspect.d.ts +27 -0
  213. package/dist/templates/inspect.js +331 -0
  214. package/package.json +65 -4
  215. package/schema/sdk-gen.local.schema.json +75 -0
  216. package/schema/sdk-gen.schema.json +980 -0
  217. package/schema/sdk-gen.target.schema.json +1384 -0
@@ -0,0 +1,1384 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
8
+ "name": {
9
+ "type": "string"
10
+ },
11
+ "extends": {
12
+ "type": "string"
13
+ },
14
+ "naming": {
15
+ "type": "object",
16
+ "properties": {
17
+ "type": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string"
21
+ },
22
+ {
23
+ "type": "object",
24
+ "properties": {
25
+ "case": {
26
+ "anyOf": [
27
+ {
28
+ "type": "string",
29
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
30
+ },
31
+ {
32
+ "type": "object",
33
+ "properties": {
34
+ "option": {
35
+ "type": "string"
36
+ },
37
+ "default": {
38
+ "type": "string",
39
+ "enum": [
40
+ "pascal",
41
+ "camel",
42
+ "snake",
43
+ "upper_snake",
44
+ "kebab",
45
+ "preserve"
46
+ ]
47
+ }
48
+ },
49
+ "required": [
50
+ "option"
51
+ ],
52
+ "additionalProperties": false,
53
+ "description": "Case taken from an output option"
54
+ }
55
+ ]
56
+ },
57
+ "fallbackCase": {
58
+ "type": "string",
59
+ "enum": [
60
+ "pascal",
61
+ "camel",
62
+ "snake",
63
+ "upper_snake",
64
+ "kebab",
65
+ "preserve"
66
+ ]
67
+ },
68
+ "empty": {
69
+ "type": "string"
70
+ },
71
+ "identifier": {
72
+ "type": [
73
+ "string",
74
+ "boolean"
75
+ ]
76
+ },
77
+ "invalid": {
78
+ "type": "string"
79
+ },
80
+ "reserved": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "escape": {
87
+ "type": "string"
88
+ },
89
+ "after": {
90
+ "type": "string"
91
+ },
92
+ "avoid": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "unique": {
99
+ "type": "boolean"
100
+ },
101
+ "qualify": {
102
+ "type": "string",
103
+ "const": "namespace"
104
+ },
105
+ "numeric": {
106
+ "type": "string"
107
+ },
108
+ "null": {
109
+ "type": "string"
110
+ }
111
+ },
112
+ "additionalProperties": false
113
+ }
114
+ ]
115
+ },
116
+ "property": {
117
+ "anyOf": [
118
+ {
119
+ "type": "string"
120
+ },
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "case": {
125
+ "anyOf": [
126
+ {
127
+ "type": "string",
128
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "option": {
134
+ "type": "string"
135
+ },
136
+ "default": {
137
+ "type": "string",
138
+ "enum": [
139
+ "pascal",
140
+ "camel",
141
+ "snake",
142
+ "upper_snake",
143
+ "kebab",
144
+ "preserve"
145
+ ]
146
+ }
147
+ },
148
+ "required": [
149
+ "option"
150
+ ],
151
+ "additionalProperties": false,
152
+ "description": "Case taken from an output option"
153
+ }
154
+ ]
155
+ },
156
+ "fallbackCase": {
157
+ "type": "string",
158
+ "enum": [
159
+ "pascal",
160
+ "camel",
161
+ "snake",
162
+ "upper_snake",
163
+ "kebab",
164
+ "preserve"
165
+ ]
166
+ },
167
+ "empty": {
168
+ "type": "string"
169
+ },
170
+ "identifier": {
171
+ "type": [
172
+ "string",
173
+ "boolean"
174
+ ]
175
+ },
176
+ "invalid": {
177
+ "type": "string"
178
+ },
179
+ "reserved": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string"
183
+ }
184
+ },
185
+ "escape": {
186
+ "type": "string"
187
+ },
188
+ "after": {
189
+ "type": "string"
190
+ },
191
+ "avoid": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "unique": {
198
+ "type": "boolean"
199
+ },
200
+ "qualify": {
201
+ "type": "string",
202
+ "const": "namespace"
203
+ },
204
+ "numeric": {
205
+ "type": "string"
206
+ },
207
+ "null": {
208
+ "type": "string"
209
+ }
210
+ },
211
+ "additionalProperties": false
212
+ }
213
+ ]
214
+ },
215
+ "enumKey": {
216
+ "anyOf": [
217
+ {
218
+ "type": "string"
219
+ },
220
+ {
221
+ "type": "object",
222
+ "properties": {
223
+ "case": {
224
+ "anyOf": [
225
+ {
226
+ "type": "string",
227
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "option": {
233
+ "type": "string"
234
+ },
235
+ "default": {
236
+ "type": "string",
237
+ "enum": [
238
+ "pascal",
239
+ "camel",
240
+ "snake",
241
+ "upper_snake",
242
+ "kebab",
243
+ "preserve"
244
+ ]
245
+ }
246
+ },
247
+ "required": [
248
+ "option"
249
+ ],
250
+ "additionalProperties": false,
251
+ "description": "Case taken from an output option"
252
+ }
253
+ ]
254
+ },
255
+ "fallbackCase": {
256
+ "type": "string",
257
+ "enum": [
258
+ "pascal",
259
+ "camel",
260
+ "snake",
261
+ "upper_snake",
262
+ "kebab",
263
+ "preserve"
264
+ ]
265
+ },
266
+ "empty": {
267
+ "type": "string"
268
+ },
269
+ "identifier": {
270
+ "type": [
271
+ "string",
272
+ "boolean"
273
+ ]
274
+ },
275
+ "invalid": {
276
+ "type": "string"
277
+ },
278
+ "reserved": {
279
+ "type": "array",
280
+ "items": {
281
+ "type": "string"
282
+ }
283
+ },
284
+ "escape": {
285
+ "type": "string"
286
+ },
287
+ "after": {
288
+ "type": "string"
289
+ },
290
+ "avoid": {
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string"
294
+ }
295
+ },
296
+ "unique": {
297
+ "type": "boolean"
298
+ },
299
+ "qualify": {
300
+ "type": "string",
301
+ "const": "namespace"
302
+ },
303
+ "numeric": {
304
+ "type": "string"
305
+ },
306
+ "null": {
307
+ "type": "string"
308
+ }
309
+ },
310
+ "additionalProperties": false
311
+ }
312
+ ]
313
+ },
314
+ "file": {
315
+ "anyOf": [
316
+ {
317
+ "type": "string"
318
+ },
319
+ {
320
+ "type": "object",
321
+ "properties": {
322
+ "case": {
323
+ "anyOf": [
324
+ {
325
+ "type": "string",
326
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
327
+ },
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "option": {
332
+ "type": "string"
333
+ },
334
+ "default": {
335
+ "type": "string",
336
+ "enum": [
337
+ "pascal",
338
+ "camel",
339
+ "snake",
340
+ "upper_snake",
341
+ "kebab",
342
+ "preserve"
343
+ ]
344
+ }
345
+ },
346
+ "required": [
347
+ "option"
348
+ ],
349
+ "additionalProperties": false,
350
+ "description": "Case taken from an output option"
351
+ }
352
+ ]
353
+ },
354
+ "fallbackCase": {
355
+ "type": "string",
356
+ "enum": [
357
+ "pascal",
358
+ "camel",
359
+ "snake",
360
+ "upper_snake",
361
+ "kebab",
362
+ "preserve"
363
+ ]
364
+ },
365
+ "empty": {
366
+ "type": "string"
367
+ },
368
+ "identifier": {
369
+ "type": [
370
+ "string",
371
+ "boolean"
372
+ ]
373
+ },
374
+ "invalid": {
375
+ "type": "string"
376
+ },
377
+ "reserved": {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string"
381
+ }
382
+ },
383
+ "escape": {
384
+ "type": "string"
385
+ },
386
+ "after": {
387
+ "type": "string"
388
+ },
389
+ "avoid": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "unique": {
396
+ "type": "boolean"
397
+ },
398
+ "qualify": {
399
+ "type": "string",
400
+ "const": "namespace"
401
+ },
402
+ "numeric": {
403
+ "type": "string"
404
+ },
405
+ "null": {
406
+ "type": "string"
407
+ }
408
+ },
409
+ "additionalProperties": false
410
+ }
411
+ ]
412
+ },
413
+ "operation": {
414
+ "anyOf": [
415
+ {
416
+ "type": "string"
417
+ },
418
+ {
419
+ "type": "object",
420
+ "properties": {
421
+ "case": {
422
+ "anyOf": [
423
+ {
424
+ "type": "string",
425
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
426
+ },
427
+ {
428
+ "type": "object",
429
+ "properties": {
430
+ "option": {
431
+ "type": "string"
432
+ },
433
+ "default": {
434
+ "type": "string",
435
+ "enum": [
436
+ "pascal",
437
+ "camel",
438
+ "snake",
439
+ "upper_snake",
440
+ "kebab",
441
+ "preserve"
442
+ ]
443
+ }
444
+ },
445
+ "required": [
446
+ "option"
447
+ ],
448
+ "additionalProperties": false,
449
+ "description": "Case taken from an output option"
450
+ }
451
+ ]
452
+ },
453
+ "fallbackCase": {
454
+ "type": "string",
455
+ "enum": [
456
+ "pascal",
457
+ "camel",
458
+ "snake",
459
+ "upper_snake",
460
+ "kebab",
461
+ "preserve"
462
+ ]
463
+ },
464
+ "empty": {
465
+ "type": "string"
466
+ },
467
+ "identifier": {
468
+ "type": [
469
+ "string",
470
+ "boolean"
471
+ ]
472
+ },
473
+ "invalid": {
474
+ "type": "string"
475
+ },
476
+ "reserved": {
477
+ "type": "array",
478
+ "items": {
479
+ "type": "string"
480
+ }
481
+ },
482
+ "escape": {
483
+ "type": "string"
484
+ },
485
+ "after": {
486
+ "type": "string"
487
+ },
488
+ "avoid": {
489
+ "type": "array",
490
+ "items": {
491
+ "type": "string"
492
+ }
493
+ },
494
+ "unique": {
495
+ "type": "boolean"
496
+ },
497
+ "qualify": {
498
+ "type": "string",
499
+ "const": "namespace"
500
+ },
501
+ "numeric": {
502
+ "type": "string"
503
+ },
504
+ "null": {
505
+ "type": "string"
506
+ }
507
+ },
508
+ "additionalProperties": false
509
+ }
510
+ ]
511
+ },
512
+ "param": {
513
+ "anyOf": [
514
+ {
515
+ "type": "string"
516
+ },
517
+ {
518
+ "type": "object",
519
+ "properties": {
520
+ "case": {
521
+ "anyOf": [
522
+ {
523
+ "type": "string",
524
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
525
+ },
526
+ {
527
+ "type": "object",
528
+ "properties": {
529
+ "option": {
530
+ "type": "string"
531
+ },
532
+ "default": {
533
+ "type": "string",
534
+ "enum": [
535
+ "pascal",
536
+ "camel",
537
+ "snake",
538
+ "upper_snake",
539
+ "kebab",
540
+ "preserve"
541
+ ]
542
+ }
543
+ },
544
+ "required": [
545
+ "option"
546
+ ],
547
+ "additionalProperties": false,
548
+ "description": "Case taken from an output option"
549
+ }
550
+ ]
551
+ },
552
+ "fallbackCase": {
553
+ "type": "string",
554
+ "enum": [
555
+ "pascal",
556
+ "camel",
557
+ "snake",
558
+ "upper_snake",
559
+ "kebab",
560
+ "preserve"
561
+ ]
562
+ },
563
+ "empty": {
564
+ "type": "string"
565
+ },
566
+ "identifier": {
567
+ "type": [
568
+ "string",
569
+ "boolean"
570
+ ]
571
+ },
572
+ "invalid": {
573
+ "type": "string"
574
+ },
575
+ "reserved": {
576
+ "type": "array",
577
+ "items": {
578
+ "type": "string"
579
+ }
580
+ },
581
+ "escape": {
582
+ "type": "string"
583
+ },
584
+ "after": {
585
+ "type": "string"
586
+ },
587
+ "avoid": {
588
+ "type": "array",
589
+ "items": {
590
+ "type": "string"
591
+ }
592
+ },
593
+ "unique": {
594
+ "type": "boolean"
595
+ },
596
+ "qualify": {
597
+ "type": "string",
598
+ "const": "namespace"
599
+ },
600
+ "numeric": {
601
+ "type": "string"
602
+ },
603
+ "null": {
604
+ "type": "string"
605
+ }
606
+ },
607
+ "additionalProperties": false
608
+ }
609
+ ]
610
+ },
611
+ "resource": {
612
+ "anyOf": [
613
+ {
614
+ "type": "string"
615
+ },
616
+ {
617
+ "type": "object",
618
+ "properties": {
619
+ "case": {
620
+ "anyOf": [
621
+ {
622
+ "type": "string",
623
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
624
+ },
625
+ {
626
+ "type": "object",
627
+ "properties": {
628
+ "option": {
629
+ "type": "string"
630
+ },
631
+ "default": {
632
+ "type": "string",
633
+ "enum": [
634
+ "pascal",
635
+ "camel",
636
+ "snake",
637
+ "upper_snake",
638
+ "kebab",
639
+ "preserve"
640
+ ]
641
+ }
642
+ },
643
+ "required": [
644
+ "option"
645
+ ],
646
+ "additionalProperties": false,
647
+ "description": "Case taken from an output option"
648
+ }
649
+ ]
650
+ },
651
+ "fallbackCase": {
652
+ "type": "string",
653
+ "enum": [
654
+ "pascal",
655
+ "camel",
656
+ "snake",
657
+ "upper_snake",
658
+ "kebab",
659
+ "preserve"
660
+ ]
661
+ },
662
+ "empty": {
663
+ "type": "string"
664
+ },
665
+ "identifier": {
666
+ "type": [
667
+ "string",
668
+ "boolean"
669
+ ]
670
+ },
671
+ "invalid": {
672
+ "type": "string"
673
+ },
674
+ "reserved": {
675
+ "type": "array",
676
+ "items": {
677
+ "type": "string"
678
+ }
679
+ },
680
+ "escape": {
681
+ "type": "string"
682
+ },
683
+ "after": {
684
+ "type": "string"
685
+ },
686
+ "avoid": {
687
+ "type": "array",
688
+ "items": {
689
+ "type": "string"
690
+ }
691
+ },
692
+ "unique": {
693
+ "type": "boolean"
694
+ },
695
+ "qualify": {
696
+ "type": "string",
697
+ "const": "namespace"
698
+ },
699
+ "numeric": {
700
+ "type": "string"
701
+ },
702
+ "null": {
703
+ "type": "string"
704
+ }
705
+ },
706
+ "additionalProperties": false
707
+ }
708
+ ]
709
+ },
710
+ "namespace": {
711
+ "anyOf": [
712
+ {
713
+ "type": "string"
714
+ },
715
+ {
716
+ "type": "object",
717
+ "properties": {
718
+ "case": {
719
+ "anyOf": [
720
+ {
721
+ "type": "string",
722
+ "description": "A case name (pascal | camel | snake | upper_snake | kebab | preserve) or a liquid template over `name`"
723
+ },
724
+ {
725
+ "type": "object",
726
+ "properties": {
727
+ "option": {
728
+ "type": "string"
729
+ },
730
+ "default": {
731
+ "type": "string",
732
+ "enum": [
733
+ "pascal",
734
+ "camel",
735
+ "snake",
736
+ "upper_snake",
737
+ "kebab",
738
+ "preserve"
739
+ ]
740
+ }
741
+ },
742
+ "required": [
743
+ "option"
744
+ ],
745
+ "additionalProperties": false,
746
+ "description": "Case taken from an output option"
747
+ }
748
+ ]
749
+ },
750
+ "fallbackCase": {
751
+ "type": "string",
752
+ "enum": [
753
+ "pascal",
754
+ "camel",
755
+ "snake",
756
+ "upper_snake",
757
+ "kebab",
758
+ "preserve"
759
+ ]
760
+ },
761
+ "empty": {
762
+ "type": "string"
763
+ },
764
+ "identifier": {
765
+ "type": [
766
+ "string",
767
+ "boolean"
768
+ ]
769
+ },
770
+ "invalid": {
771
+ "type": "string"
772
+ },
773
+ "reserved": {
774
+ "type": "array",
775
+ "items": {
776
+ "type": "string"
777
+ }
778
+ },
779
+ "escape": {
780
+ "type": "string"
781
+ },
782
+ "after": {
783
+ "type": "string"
784
+ },
785
+ "avoid": {
786
+ "type": "array",
787
+ "items": {
788
+ "type": "string"
789
+ }
790
+ },
791
+ "unique": {
792
+ "type": "boolean"
793
+ },
794
+ "qualify": {
795
+ "type": "string",
796
+ "const": "namespace"
797
+ },
798
+ "numeric": {
799
+ "type": "string"
800
+ },
801
+ "null": {
802
+ "type": "string"
803
+ }
804
+ },
805
+ "additionalProperties": false
806
+ }
807
+ ]
808
+ },
809
+ "reserved": {
810
+ "type": "array",
811
+ "items": {
812
+ "type": "string"
813
+ }
814
+ },
815
+ "escape": {
816
+ "type": "string"
817
+ },
818
+ "identifier": {
819
+ "type": "string"
820
+ },
821
+ "invalid": {
822
+ "type": "string"
823
+ }
824
+ },
825
+ "additionalProperties": false
826
+ },
827
+ "types": {
828
+ "type": "object",
829
+ "propertyNames": {
830
+ "type": "string"
831
+ },
832
+ "additionalProperties": {
833
+ "anyOf": [
834
+ {
835
+ "type": "string"
836
+ },
837
+ {
838
+ "type": "object",
839
+ "properties": {
840
+ "type": {
841
+ "type": "string"
842
+ },
843
+ "imports": {
844
+ "type": "array",
845
+ "items": {
846
+ "anyOf": [
847
+ {
848
+ "type": "string"
849
+ },
850
+ {
851
+ "type": "object",
852
+ "properties": {
853
+ "module": {
854
+ "type": "string"
855
+ },
856
+ "name": {
857
+ "type": "string"
858
+ }
859
+ },
860
+ "required": [
861
+ "module"
862
+ ],
863
+ "additionalProperties": false
864
+ }
865
+ ]
866
+ }
867
+ },
868
+ "comment": {
869
+ "type": "string"
870
+ },
871
+ "position": {
872
+ "type": "object",
873
+ "propertyNames": {
874
+ "type": "string"
875
+ },
876
+ "additionalProperties": {
877
+ "anyOf": [
878
+ {
879
+ "type": "string"
880
+ },
881
+ {
882
+ "type": "object",
883
+ "properties": {
884
+ "type": {
885
+ "type": "string"
886
+ },
887
+ "imports": {
888
+ "type": "array",
889
+ "items": {
890
+ "anyOf": [
891
+ {
892
+ "type": "string"
893
+ },
894
+ {
895
+ "type": "object",
896
+ "properties": {
897
+ "module": {
898
+ "type": "string"
899
+ },
900
+ "name": {
901
+ "type": "string"
902
+ }
903
+ },
904
+ "required": [
905
+ "module"
906
+ ],
907
+ "additionalProperties": false
908
+ }
909
+ ]
910
+ }
911
+ },
912
+ "comment": {
913
+ "type": "string"
914
+ }
915
+ },
916
+ "required": [
917
+ "type"
918
+ ],
919
+ "additionalProperties": false
920
+ }
921
+ ]
922
+ }
923
+ }
924
+ },
925
+ "required": [
926
+ "type"
927
+ ],
928
+ "additionalProperties": false
929
+ }
930
+ ]
931
+ }
932
+ },
933
+ "positions": {
934
+ "type": "object",
935
+ "propertyNames": {
936
+ "type": "string"
937
+ },
938
+ "additionalProperties": {
939
+ "type": "object",
940
+ "properties": {
941
+ "inherits": {
942
+ "type": "string"
943
+ },
944
+ "spells": {
945
+ "type": "array",
946
+ "items": {
947
+ "type": "string",
948
+ "enum": [
949
+ "property",
950
+ "alias",
951
+ "param",
952
+ "body",
953
+ "response"
954
+ ]
955
+ }
956
+ }
957
+ },
958
+ "additionalProperties": false
959
+ }
960
+ },
961
+ "aliases": {
962
+ "type": "string",
963
+ "enum": [
964
+ "reference",
965
+ "inline"
966
+ ]
967
+ },
968
+ "literals": {
969
+ "type": "object",
970
+ "properties": {
971
+ "null": {
972
+ "type": "string"
973
+ },
974
+ "true": {
975
+ "type": "string"
976
+ },
977
+ "false": {
978
+ "type": "string"
979
+ },
980
+ "string": {
981
+ "anyOf": [
982
+ {
983
+ "type": "string"
984
+ },
985
+ {
986
+ "type": "object",
987
+ "properties": {
988
+ "quote": {
989
+ "type": "string"
990
+ },
991
+ "close": {
992
+ "type": "string"
993
+ },
994
+ "escapes": {
995
+ "type": "object",
996
+ "propertyNames": {
997
+ "type": "string"
998
+ },
999
+ "additionalProperties": {
1000
+ "type": "string"
1001
+ }
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "quote"
1006
+ ],
1007
+ "additionalProperties": false
1008
+ }
1009
+ ]
1010
+ },
1011
+ "number": {
1012
+ "type": "string"
1013
+ }
1014
+ },
1015
+ "additionalProperties": false
1016
+ },
1017
+ "imports": {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "ref": {
1021
+ "anyOf": [
1022
+ {
1023
+ "type": "string"
1024
+ },
1025
+ {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "module": {
1029
+ "type": "string"
1030
+ },
1031
+ "name": {
1032
+ "type": "string"
1033
+ }
1034
+ },
1035
+ "required": [
1036
+ "module"
1037
+ ],
1038
+ "additionalProperties": false
1039
+ }
1040
+ ]
1041
+ },
1042
+ "skip": {
1043
+ "type": "array",
1044
+ "items": {
1045
+ "type": "string",
1046
+ "enum": [
1047
+ "declared",
1048
+ "sameNamespace",
1049
+ "inlined"
1050
+ ]
1051
+ }
1052
+ },
1053
+ "order": {
1054
+ "anyOf": [
1055
+ {
1056
+ "type": "string",
1057
+ "enum": [
1058
+ "insertion",
1059
+ "alphabetical"
1060
+ ]
1061
+ },
1062
+ {
1063
+ "type": "array",
1064
+ "items": {
1065
+ "type": "string"
1066
+ }
1067
+ }
1068
+ ]
1069
+ },
1070
+ "names": {
1071
+ "type": "string",
1072
+ "enum": [
1073
+ "insertion",
1074
+ "alphabetical"
1075
+ ]
1076
+ },
1077
+ "group": {
1078
+ "type": "string"
1079
+ }
1080
+ },
1081
+ "additionalProperties": false
1082
+ },
1083
+ "files": {
1084
+ "type": "array",
1085
+ "items": {
1086
+ "type": "object",
1087
+ "properties": {
1088
+ "each": {
1089
+ "type": "string",
1090
+ "enum": [
1091
+ "model",
1092
+ "resource"
1093
+ ]
1094
+ },
1095
+ "once": {
1096
+ "type": "boolean"
1097
+ },
1098
+ "where": {
1099
+ "type": "object",
1100
+ "propertyNames": {
1101
+ "type": "string"
1102
+ },
1103
+ "additionalProperties": {
1104
+ "anyOf": [
1105
+ {
1106
+ "type": [
1107
+ "string",
1108
+ "number",
1109
+ "boolean",
1110
+ "null"
1111
+ ]
1112
+ },
1113
+ {
1114
+ "type": "array",
1115
+ "items": {
1116
+ "type": [
1117
+ "string",
1118
+ "number",
1119
+ "boolean",
1120
+ "null"
1121
+ ]
1122
+ }
1123
+ }
1124
+ ]
1125
+ }
1126
+ },
1127
+ "template": {
1128
+ "type": "string"
1129
+ },
1130
+ "path": {
1131
+ "type": "string"
1132
+ },
1133
+ "order": {
1134
+ "type": "string",
1135
+ "enum": [
1136
+ "declaration",
1137
+ "dependencies"
1138
+ ]
1139
+ },
1140
+ "contents": {
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "string",
1144
+ "enum": [
1145
+ "models",
1146
+ "resources"
1147
+ ]
1148
+ }
1149
+ },
1150
+ "format": {
1151
+ "type": "boolean"
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "template",
1156
+ "path"
1157
+ ],
1158
+ "additionalProperties": false
1159
+ }
1160
+ },
1161
+ "outputs": {
1162
+ "type": "object",
1163
+ "propertyNames": {
1164
+ "type": "string"
1165
+ },
1166
+ "additionalProperties": {
1167
+ "type": "object",
1168
+ "properties": {
1169
+ "description": {
1170
+ "type": "string"
1171
+ },
1172
+ "files": {
1173
+ "type": "array",
1174
+ "items": {
1175
+ "anyOf": [
1176
+ {
1177
+ "type": "integer",
1178
+ "minimum": 0,
1179
+ "maximum": 9007199254740991
1180
+ },
1181
+ {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "each": {
1185
+ "type": "string",
1186
+ "enum": [
1187
+ "model",
1188
+ "resource"
1189
+ ]
1190
+ },
1191
+ "once": {
1192
+ "type": "boolean"
1193
+ },
1194
+ "where": {
1195
+ "type": "object",
1196
+ "propertyNames": {
1197
+ "type": "string"
1198
+ },
1199
+ "additionalProperties": {
1200
+ "anyOf": [
1201
+ {
1202
+ "type": [
1203
+ "string",
1204
+ "number",
1205
+ "boolean",
1206
+ "null"
1207
+ ]
1208
+ },
1209
+ {
1210
+ "type": "array",
1211
+ "items": {
1212
+ "type": [
1213
+ "string",
1214
+ "number",
1215
+ "boolean",
1216
+ "null"
1217
+ ]
1218
+ }
1219
+ }
1220
+ ]
1221
+ }
1222
+ },
1223
+ "template": {
1224
+ "type": "string"
1225
+ },
1226
+ "path": {
1227
+ "type": "string"
1228
+ },
1229
+ "order": {
1230
+ "type": "string",
1231
+ "enum": [
1232
+ "declaration",
1233
+ "dependencies"
1234
+ ]
1235
+ },
1236
+ "contents": {
1237
+ "type": "array",
1238
+ "items": {
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "models",
1242
+ "resources"
1243
+ ]
1244
+ }
1245
+ },
1246
+ "format": {
1247
+ "type": "boolean"
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "template",
1252
+ "path"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ }
1256
+ ]
1257
+ }
1258
+ },
1259
+ "options": {
1260
+ "type": "object",
1261
+ "propertyNames": {
1262
+ "type": "string"
1263
+ },
1264
+ "additionalProperties": {
1265
+ "type": "object",
1266
+ "properties": {
1267
+ "type": {
1268
+ "type": "string",
1269
+ "enum": [
1270
+ "string",
1271
+ "number",
1272
+ "boolean",
1273
+ "array",
1274
+ "object"
1275
+ ]
1276
+ },
1277
+ "default": {},
1278
+ "enum": {
1279
+ "type": "array",
1280
+ "items": {
1281
+ "type": [
1282
+ "string",
1283
+ "number",
1284
+ "boolean",
1285
+ "null"
1286
+ ]
1287
+ }
1288
+ },
1289
+ "description": {
1290
+ "type": "string"
1291
+ }
1292
+ },
1293
+ "required": [
1294
+ "type"
1295
+ ],
1296
+ "additionalProperties": false
1297
+ }
1298
+ }
1299
+ },
1300
+ "additionalProperties": false
1301
+ }
1302
+ },
1303
+ "resources": {
1304
+ "type": "object",
1305
+ "properties": {
1306
+ "by": {
1307
+ "type": "string",
1308
+ "enum": [
1309
+ "path",
1310
+ "tag",
1311
+ "operationId"
1312
+ ]
1313
+ },
1314
+ "stripPrefixes": {
1315
+ "type": "array",
1316
+ "items": {
1317
+ "type": "string"
1318
+ }
1319
+ },
1320
+ "folders": {
1321
+ "type": "boolean"
1322
+ },
1323
+ "naming": {
1324
+ "type": "string",
1325
+ "enum": [
1326
+ "path",
1327
+ "path-last-param",
1328
+ "operation-id"
1329
+ ]
1330
+ }
1331
+ },
1332
+ "additionalProperties": false
1333
+ },
1334
+ "format": {
1335
+ "type": "object",
1336
+ "properties": {
1337
+ "command": {
1338
+ "type": "string"
1339
+ },
1340
+ "stdin": {
1341
+ "type": "boolean"
1342
+ },
1343
+ "enabled": {
1344
+ "type": "boolean"
1345
+ },
1346
+ "maxBlankLines": {
1347
+ "type": "integer",
1348
+ "minimum": 0,
1349
+ "maximum": 9007199254740991
1350
+ }
1351
+ },
1352
+ "additionalProperties": false
1353
+ },
1354
+ "transforms": {
1355
+ "type": "object",
1356
+ "propertyNames": {
1357
+ "type": "string"
1358
+ },
1359
+ "additionalProperties": {
1360
+ "anyOf": [
1361
+ {
1362
+ "type": "boolean"
1363
+ },
1364
+ {
1365
+ "type": "object",
1366
+ "propertyNames": {
1367
+ "type": "string"
1368
+ },
1369
+ "additionalProperties": {}
1370
+ }
1371
+ ]
1372
+ }
1373
+ },
1374
+ "extensions": {
1375
+ "type": "string"
1376
+ }
1377
+ },
1378
+ "required": [
1379
+ "name",
1380
+ "outputs"
1381
+ ],
1382
+ "additionalProperties": false,
1383
+ "title": "SdkGenTarget"
1384
+ }