moonflower 0.9.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 (268) hide show
  1. package/.eslintrc.js +26 -0
  2. package/.prettierrc.js +7 -0
  3. package/README.md +383 -0
  4. package/cli/cli.ts +59 -0
  5. package/cli/entry.cjs +3 -0
  6. package/cli/prettyprint.ts +16 -0
  7. package/dist/cli/cli.d.ts +2 -0
  8. package/dist/cli/cli.d.ts.map +1 -0
  9. package/dist/cli/cli.js +79 -0
  10. package/dist/cli/prettyprint.d.ts +4 -0
  11. package/dist/cli/prettyprint.d.ts.map +1 -0
  12. package/dist/cli/prettyprint.js +18 -0
  13. package/dist/src/errors/BaseHttpError.d.ts +13 -0
  14. package/dist/src/errors/BaseHttpError.d.ts.map +1 -0
  15. package/dist/src/errors/BaseHttpError.js +13 -0
  16. package/dist/src/errors/HttpErrorHandler.d.ts +3 -0
  17. package/dist/src/errors/HttpErrorHandler.d.ts.map +1 -0
  18. package/dist/src/errors/HttpErrorHandler.js +23 -0
  19. package/dist/src/errors/UserFacingErrors.d.ts +11 -0
  20. package/dist/src/errors/UserFacingErrors.d.ts.map +1 -0
  21. package/dist/src/errors/UserFacingErrors.js +23 -0
  22. package/dist/src/hooks/authentication/useAuth.d.ts +3 -0
  23. package/dist/src/hooks/authentication/useAuth.d.ts.map +1 -0
  24. package/dist/src/hooks/authentication/useAuth.js +7 -0
  25. package/dist/src/hooks/authentication/useOptionalAuth.d.ts +3 -0
  26. package/dist/src/hooks/authentication/useOptionalAuth.d.ts.map +1 -0
  27. package/dist/src/hooks/authentication/useOptionalAuth.js +16 -0
  28. package/dist/src/hooks/useApiEndpoint.d.ts +8 -0
  29. package/dist/src/hooks/useApiEndpoint.d.ts.map +1 -0
  30. package/dist/src/hooks/useApiEndpoint.js +7 -0
  31. package/dist/src/hooks/useApiHeader/index.d.ts +2 -0
  32. package/dist/src/hooks/useApiHeader/index.d.ts.map +1 -0
  33. package/dist/src/hooks/useApiHeader/index.js +17 -0
  34. package/dist/src/hooks/useApiHeader/useApiHeader.d.ts +3 -0
  35. package/dist/src/hooks/useApiHeader/useApiHeader.d.ts.map +1 -0
  36. package/dist/src/hooks/useApiHeader/useApiHeader.js +6 -0
  37. package/dist/src/hooks/useApiHeader/useApiHeader.spec.data.d.ts +2 -0
  38. package/dist/src/hooks/useApiHeader/useApiHeader.spec.data.d.ts.map +1 -0
  39. package/dist/src/hooks/useApiHeader/useApiHeader.spec.data.js +22 -0
  40. package/dist/src/hooks/useCookieParams.d.ts +9 -0
  41. package/dist/src/hooks/useCookieParams.d.ts.map +1 -0
  42. package/dist/src/hooks/useCookieParams.js +50 -0
  43. package/dist/src/hooks/useExposeApiModel/index.d.ts +2 -0
  44. package/dist/src/hooks/useExposeApiModel/index.d.ts.map +1 -0
  45. package/dist/src/hooks/useExposeApiModel/index.js +17 -0
  46. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.d.ts +3 -0
  47. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.d.ts.map +1 -0
  48. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.js +9 -0
  49. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.spec.data.d.ts +2 -0
  50. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.spec.data.d.ts.map +1 -0
  51. package/dist/src/hooks/useExposeApiModel/useExposeApiModel.spec.data.js +16 -0
  52. package/dist/src/hooks/useHeaderParams.d.ts +12 -0
  53. package/dist/src/hooks/useHeaderParams.d.ts.map +1 -0
  54. package/dist/src/hooks/useHeaderParams.js +52 -0
  55. package/dist/src/hooks/usePathParams.d.ts +22 -0
  56. package/dist/src/hooks/usePathParams.d.ts.map +1 -0
  57. package/dist/src/hooks/usePathParams.js +46 -0
  58. package/dist/src/hooks/useQueryParams.d.ts +9 -0
  59. package/dist/src/hooks/useQueryParams.d.ts.map +1 -0
  60. package/dist/src/hooks/useQueryParams.js +50 -0
  61. package/dist/src/hooks/useRequestBody.d.ts +9 -0
  62. package/dist/src/hooks/useRequestBody.d.ts.map +1 -0
  63. package/dist/src/hooks/useRequestBody.js +59 -0
  64. package/dist/src/hooks/useRequestRawBody.d.ts +7 -0
  65. package/dist/src/hooks/useRequestRawBody.d.ts.map +1 -0
  66. package/dist/src/hooks/useRequestRawBody.js +34 -0
  67. package/dist/src/index.d.ts +18 -0
  68. package/dist/src/index.d.ts.map +1 -0
  69. package/dist/src/index.js +33 -0
  70. package/dist/src/openapi/analyzerModule/analyzerModule.d.ts +18 -0
  71. package/dist/src/openapi/analyzerModule/analyzerModule.d.ts.map +1 -0
  72. package/dist/src/openapi/analyzerModule/analyzerModule.js +192 -0
  73. package/dist/src/openapi/analyzerModule/nodeParsers.d.ts +19 -0
  74. package/dist/src/openapi/analyzerModule/nodeParsers.d.ts.map +1 -0
  75. package/dist/src/openapi/analyzerModule/nodeParsers.js +521 -0
  76. package/dist/src/openapi/analyzerModule/parseEndpoint.d.ts +4 -0
  77. package/dist/src/openapi/analyzerModule/parseEndpoint.d.ts.map +1 -0
  78. package/dist/src/openapi/analyzerModule/parseEndpoint.js +246 -0
  79. package/dist/src/openapi/analyzerModule/parseExposedModels.d.ts +5 -0
  80. package/dist/src/openapi/analyzerModule/parseExposedModels.d.ts.map +1 -0
  81. package/dist/src/openapi/analyzerModule/parseExposedModels.js +32 -0
  82. package/dist/src/openapi/analyzerModule/test/openApiAnalyzer.spec.data.d.ts +2 -0
  83. package/dist/src/openapi/analyzerModule/test/openApiAnalyzer.spec.data.d.ts.map +1 -0
  84. package/dist/src/openapi/analyzerModule/test/openApiAnalyzer.spec.data.js +400 -0
  85. package/dist/src/openapi/analyzerModule/types.d.ts +53 -0
  86. package/dist/src/openapi/analyzerModule/types.d.ts.map +1 -0
  87. package/dist/src/openapi/analyzerModule/types.js +2 -0
  88. package/dist/src/openapi/discoveryModule/discoverImports/discoverImports.d.ts +8 -0
  89. package/dist/src/openapi/discoveryModule/discoverImports/discoverImports.d.ts.map +1 -0
  90. package/dist/src/openapi/discoveryModule/discoverImports/discoverImports.js +33 -0
  91. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterA.spec.data.d.ts +4 -0
  92. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterA.spec.data.d.ts.map +1 -0
  93. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterA.spec.data.js +8 -0
  94. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterB.spec.data.d.ts +4 -0
  95. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterB.spec.data.d.ts.map +1 -0
  96. package/dist/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterB.spec.data.js +8 -0
  97. package/dist/src/openapi/discoveryModule/discoverRouterFiles/discoverRouterFiles.d.ts +17 -0
  98. package/dist/src/openapi/discoveryModule/discoverRouterFiles/discoverRouterFiles.d.ts.map +1 -0
  99. package/dist/src/openapi/discoveryModule/discoverRouterFiles/discoverRouterFiles.js +80 -0
  100. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.d.ts +6 -0
  101. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.d.ts.map +1 -0
  102. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.js +31 -0
  103. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.spec.data.d.ts +5 -0
  104. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.spec.data.d.ts.map +1 -0
  105. package/dist/src/openapi/discoveryModule/discoverRouters/discoverRouters.spec.data.js +38 -0
  106. package/dist/src/openapi/discoveryModule/index.d.ts +3 -0
  107. package/dist/src/openapi/discoveryModule/index.d.ts.map +1 -0
  108. package/dist/src/openapi/discoveryModule/index.js +18 -0
  109. package/dist/src/openapi/generatorModule/generateComponentSchemas.d.ts +4 -0
  110. package/dist/src/openapi/generatorModule/generateComponentSchemas.d.ts.map +1 -0
  111. package/dist/src/openapi/generatorModule/generateComponentSchemas.js +12 -0
  112. package/dist/src/openapi/generatorModule/generatePaths.d.ts +10 -0
  113. package/dist/src/openapi/generatorModule/generatePaths.d.ts.map +1 -0
  114. package/dist/src/openapi/generatorModule/generatePaths.js +116 -0
  115. package/dist/src/openapi/generatorModule/generatorModule.d.ts +16 -0
  116. package/dist/src/openapi/generatorModule/generatorModule.d.ts.map +1 -0
  117. package/dist/src/openapi/generatorModule/generatorModule.js +18 -0
  118. package/dist/src/openapi/generatorModule/getSchema.d.ts +36 -0
  119. package/dist/src/openapi/generatorModule/getSchema.d.ts.map +1 -0
  120. package/dist/src/openapi/generatorModule/getSchema.js +133 -0
  121. package/dist/src/openapi/generatorModule/index.d.ts +5 -0
  122. package/dist/src/openapi/generatorModule/index.d.ts.map +1 -0
  123. package/dist/src/openapi/generatorModule/index.js +20 -0
  124. package/dist/src/openapi/generatorModule/test/openApiGenerator.spec.data.d.ts +515 -0
  125. package/dist/src/openapi/generatorModule/test/openApiGenerator.spec.data.d.ts.map +1 -0
  126. package/dist/src/openapi/generatorModule/test/openApiGenerator.spec.data.js +1119 -0
  127. package/dist/src/openapi/initOpenApiEngine.d.ts +4 -0
  128. package/dist/src/openapi/initOpenApiEngine.d.ts.map +1 -0
  129. package/dist/src/openapi/initOpenApiEngine.js +14 -0
  130. package/dist/src/openapi/manager/OpenApiManager.d.ts +67 -0
  131. package/dist/src/openapi/manager/OpenApiManager.d.ts.map +1 -0
  132. package/dist/src/openapi/manager/OpenApiManager.js +86 -0
  133. package/dist/src/openapi/router/OpenApiRouter.d.ts +4 -0
  134. package/dist/src/openapi/router/OpenApiRouter.d.ts.map +1 -0
  135. package/dist/src/openapi/router/OpenApiRouter.js +11 -0
  136. package/dist/src/openapi/types.d.ts +81 -0
  137. package/dist/src/openapi/types.d.ts.map +1 -0
  138. package/dist/src/openapi/types.js +2 -0
  139. package/dist/src/router/Router.d.ts +23 -0
  140. package/dist/src/router/Router.d.ts.map +1 -0
  141. package/dist/src/router/Router.js +81 -0
  142. package/dist/src/router/responseValueToJson.d.ts +2 -0
  143. package/dist/src/router/responseValueToJson.d.ts.map +1 -0
  144. package/dist/src/router/responseValueToJson.js +10 -0
  145. package/dist/src/setupTests.d.ts +1 -0
  146. package/dist/src/setupTests.d.ts.map +1 -0
  147. package/dist/src/setupTests.js +3 -0
  148. package/dist/src/test/TestAppRouter.d.ts +8 -0
  149. package/dist/src/test/TestAppRouter.d.ts.map +1 -0
  150. package/dist/src/test/TestAppRouter.js +58 -0
  151. package/dist/src/test/app.d.ts +3 -0
  152. package/dist/src/test/app.d.ts.map +1 -0
  153. package/dist/src/test/app.js +41 -0
  154. package/dist/src/utils/TypeUtils.d.ts +22 -0
  155. package/dist/src/utils/TypeUtils.d.ts.map +1 -0
  156. package/dist/src/utils/TypeUtils.js +2 -0
  157. package/dist/src/utils/fromZodSchema.d.ts +2 -0
  158. package/dist/src/utils/fromZodSchema.d.ts.map +1 -0
  159. package/dist/src/utils/fromZodSchema.js +6 -0
  160. package/dist/src/utils/loadTestData.d.ts +2 -0
  161. package/dist/src/utils/loadTestData.d.ts.map +1 -0
  162. package/dist/src/utils/loadTestData.js +39 -0
  163. package/dist/src/utils/mockContext.d.ts +20 -0
  164. package/dist/src/utils/mockContext.d.ts.map +1 -0
  165. package/dist/src/utils/mockContext.js +85 -0
  166. package/dist/src/utils/nameOf.d.ts +5 -0
  167. package/dist/src/utils/nameOf.d.ts.map +1 -0
  168. package/dist/src/utils/nameOf.js +7 -0
  169. package/dist/src/utils/object.d.ts +7 -0
  170. package/dist/src/utils/object.d.ts.map +1 -0
  171. package/dist/src/utils/object.js +21 -0
  172. package/dist/src/utils/printers.d.ts +6 -0
  173. package/dist/src/utils/printers.d.ts.map +1 -0
  174. package/dist/src/utils/printers.js +76 -0
  175. package/dist/src/utils/validationMessages.d.ts +18 -0
  176. package/dist/src/utils/validationMessages.d.ts.map +1 -0
  177. package/dist/src/utils/validationMessages.js +43 -0
  178. package/dist/src/validators/BuiltInValidators.d.ts +61 -0
  179. package/dist/src/validators/BuiltInValidators.d.ts.map +1 -0
  180. package/dist/src/validators/BuiltInValidators.js +66 -0
  181. package/dist/src/validators/InternalParamWrappers.d.ts +5 -0
  182. package/dist/src/validators/InternalParamWrappers.d.ts.map +1 -0
  183. package/dist/src/validators/InternalParamWrappers.js +5 -0
  184. package/dist/src/validators/ParamWrappers.d.ts +11 -0
  185. package/dist/src/validators/ParamWrappers.d.ts.map +1 -0
  186. package/dist/src/validators/ParamWrappers.js +9 -0
  187. package/dist/src/validators/types.d.ts +18 -0
  188. package/dist/src/validators/types.d.ts.map +1 -0
  189. package/dist/src/validators/types.js +2 -0
  190. package/dist/tsconfig.build.tsbuildinfo +1 -0
  191. package/package.json +59 -0
  192. package/src/errors/BaseHttpError.ts +16 -0
  193. package/src/errors/HttpErrorHandler.ts +20 -0
  194. package/src/errors/UserFacingErrors.ts +39 -0
  195. package/src/hooks/authentication/useAuth.ts +8 -0
  196. package/src/hooks/authentication/useOptionalAuth.ts +17 -0
  197. package/src/hooks/useApiEndpoint.spec.ts +11 -0
  198. package/src/hooks/useApiEndpoint.ts +10 -0
  199. package/src/hooks/useApiHeader/index.ts +1 -0
  200. package/src/hooks/useApiHeader/useApiHeader.spec.data.ts +22 -0
  201. package/src/hooks/useApiHeader/useApiHeader.spec.ts +34 -0
  202. package/src/hooks/useApiHeader/useApiHeader.ts +6 -0
  203. package/src/hooks/useCookieParams.spec.ts +174 -0
  204. package/src/hooks/useCookieParams.ts +73 -0
  205. package/src/hooks/useExposeApiModel/index.ts +1 -0
  206. package/src/hooks/useExposeApiModel/useExposeApiModel.spec.data.ts +48 -0
  207. package/src/hooks/useExposeApiModel/useExposeApiModel.spec.ts +388 -0
  208. package/src/hooks/useExposeApiModel/useExposeApiModel.ts +9 -0
  209. package/src/hooks/useHeaderParams.spec.ts +186 -0
  210. package/src/hooks/useHeaderParams.ts +83 -0
  211. package/src/hooks/usePathParams.spec.ts +161 -0
  212. package/src/hooks/usePathParams.ts +89 -0
  213. package/src/hooks/useQueryParams.spec.ts +224 -0
  214. package/src/hooks/useQueryParams.ts +73 -0
  215. package/src/hooks/useRequestBody.spec.ts +215 -0
  216. package/src/hooks/useRequestBody.ts +94 -0
  217. package/src/hooks/useRequestRawBody.spec.ts +154 -0
  218. package/src/hooks/useRequestRawBody.ts +56 -0
  219. package/src/index.ts +17 -0
  220. package/src/openapi/analyzerModule/analyzerModule.ts +228 -0
  221. package/src/openapi/analyzerModule/nodeParsers.ts +648 -0
  222. package/src/openapi/analyzerModule/parseEndpoint.ts +305 -0
  223. package/src/openapi/analyzerModule/parseExposedModels.ts +34 -0
  224. package/src/openapi/analyzerModule/test/openApiAnalyzer.spec.data.ts +521 -0
  225. package/src/openapi/analyzerModule/test/openApiAnalyzer.spec.ts +1043 -0
  226. package/src/openapi/analyzerModule/types.ts +72 -0
  227. package/src/openapi/discoveryModule/discoverImports/discoverImports.ts +43 -0
  228. package/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterA.spec.data.ts +7 -0
  229. package/src/openapi/discoveryModule/discoverRouterFiles/data/testRouterB.spec.data.ts +7 -0
  230. package/src/openapi/discoveryModule/discoverRouterFiles/discoverRouterFiles.spec.ts +36 -0
  231. package/src/openapi/discoveryModule/discoverRouterFiles/discoverRouterFiles.ts +80 -0
  232. package/src/openapi/discoveryModule/discoverRouters/discoverRouters.spec.data.ts +42 -0
  233. package/src/openapi/discoveryModule/discoverRouters/discoverRouters.spec.ts +18 -0
  234. package/src/openapi/discoveryModule/discoverRouters/discoverRouters.ts +39 -0
  235. package/src/openapi/discoveryModule/index.ts +2 -0
  236. package/src/openapi/generatorModule/generateComponentSchemas.ts +12 -0
  237. package/src/openapi/generatorModule/generatePaths.ts +138 -0
  238. package/src/openapi/generatorModule/generatorModule.ts +17 -0
  239. package/src/openapi/generatorModule/getSchema.ts +169 -0
  240. package/src/openapi/generatorModule/index.ts +4 -0
  241. package/src/openapi/generatorModule/test/openApiGenerator.spec.data.ts +1119 -0
  242. package/src/openapi/generatorModule/test/openApiGenerator.spec.ts +783 -0
  243. package/src/openapi/initOpenApiEngine.ts +20 -0
  244. package/src/openapi/manager/OpenApiManager.ts +153 -0
  245. package/src/openapi/router/OpenApiRouter.ts +11 -0
  246. package/src/openapi/types.ts +86 -0
  247. package/src/router/Router.ts +123 -0
  248. package/src/router/responseValueToJson.ts +6 -0
  249. package/src/setupTests.ts +3 -0
  250. package/src/test/TestAppRouter.ts +76 -0
  251. package/src/test/app.spec.ts +130 -0
  252. package/src/test/app.ts +43 -0
  253. package/src/utils/TypeUtils.ts +51 -0
  254. package/src/utils/loadTestData.ts +15 -0
  255. package/src/utils/mockContext.ts +86 -0
  256. package/src/utils/nameOf.ts +7 -0
  257. package/src/utils/object.spec.ts +27 -0
  258. package/src/utils/object.ts +17 -0
  259. package/src/utils/printers.spec.ts +103 -0
  260. package/src/utils/printers.ts +49 -0
  261. package/src/utils/validationMessages.ts +65 -0
  262. package/src/validators/BuiltInValidators.ts +64 -0
  263. package/src/validators/InternalParamWrappers.ts +14 -0
  264. package/src/validators/ParamWrappers.ts +22 -0
  265. package/src/validators/types.ts +35 -0
  266. package/tsconfig.build.json +15 -0
  267. package/tsconfig.json +29 -0
  268. package/vite.config.ts +16 -0
@@ -0,0 +1,1119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.manyEndpointsResults = exports.manyEndpointsData = void 0;
4
+ exports.manyEndpointsData = [
5
+ {
6
+ method: 'GET',
7
+ path: '/test/908c3e74-cf67-4ec7-a281-66a79f95d44d',
8
+ sourceFilePath: '/root/test',
9
+ requestPathParams: [],
10
+ requestQuery: [],
11
+ requestHeaders: [],
12
+ rawBody: undefined,
13
+ objectBody: [],
14
+ responses: [{ status: 200, signature: 'void' }],
15
+ name: 'Test endpoint name',
16
+ summary: 'Test endpoint summary',
17
+ description: 'Test endpoint description',
18
+ },
19
+ {
20
+ method: 'GET',
21
+ path: '/test/bf6147f2-a1dc-4cc2-8327-e6f041f828bf/:firstParam/:secondParam/:optionalParam?',
22
+ sourceFilePath: '/root/test',
23
+ requestPathParams: [
24
+ {
25
+ identifier: 'firstParam',
26
+ signature: 'string',
27
+ optional: false,
28
+ },
29
+ {
30
+ identifier: 'secondParam',
31
+ signature: 'boolean',
32
+ optional: false,
33
+ },
34
+ {
35
+ identifier: 'optionalParam',
36
+ signature: 'number',
37
+ optional: true,
38
+ },
39
+ ],
40
+ requestQuery: [],
41
+ requestHeaders: [],
42
+ rawBody: undefined,
43
+ objectBody: [],
44
+ responses: [{ status: 200, signature: 'void' }],
45
+ name: undefined,
46
+ summary: undefined,
47
+ description: undefined,
48
+ },
49
+ {
50
+ method: 'GET',
51
+ path: '/test/ef25ef5e-0f8f-4732-bf59-8825f94a5287/:firstParam/:secondParam/:optionalParam?',
52
+ sourceFilePath: '/root/test',
53
+ requestPathParams: [
54
+ {
55
+ identifier: 'firstParam',
56
+ signature: 'string',
57
+ optional: false,
58
+ },
59
+ {
60
+ identifier: 'secondParam',
61
+ signature: 'boolean',
62
+ optional: false,
63
+ },
64
+ {
65
+ identifier: 'optionalParam',
66
+ signature: 'number',
67
+ optional: true,
68
+ },
69
+ ],
70
+ requestQuery: [],
71
+ requestHeaders: [],
72
+ rawBody: undefined,
73
+ objectBody: [],
74
+ responses: [{ status: 200, signature: 'void' }],
75
+ name: undefined,
76
+ summary: undefined,
77
+ description: undefined,
78
+ },
79
+ {
80
+ method: 'GET',
81
+ path: '/test/5ab5dd0d-b241-4378-bea1-a2dd696d699a/:firstParam/:secondParam',
82
+ sourceFilePath: '/root/test',
83
+ requestPathParams: [
84
+ {
85
+ identifier: 'firstParam',
86
+ signature: [
87
+ {
88
+ role: 'property',
89
+ identifier: 'foo',
90
+ shape: 'string',
91
+ optional: false,
92
+ },
93
+ {
94
+ role: 'property',
95
+ identifier: 'bar',
96
+ shape: 'string',
97
+ optional: false,
98
+ },
99
+ ],
100
+ optional: false,
101
+ },
102
+ {
103
+ identifier: 'secondParam',
104
+ signature: [
105
+ {
106
+ role: 'property',
107
+ identifier: 'foo',
108
+ shape: 'string',
109
+ optional: false,
110
+ },
111
+ {
112
+ role: 'property',
113
+ identifier: 'bar',
114
+ shape: 'string',
115
+ optional: false,
116
+ },
117
+ ],
118
+ optional: false,
119
+ },
120
+ ],
121
+ requestQuery: [],
122
+ requestHeaders: [],
123
+ rawBody: undefined,
124
+ objectBody: [],
125
+ responses: [{ status: 200, signature: 'void' }],
126
+ name: undefined,
127
+ summary: undefined,
128
+ description: undefined,
129
+ },
130
+ {
131
+ method: 'GET',
132
+ path: '/test/209df2a1-55f9-4859-bc31-3277547c7d88/:firstParam/:secondParam',
133
+ sourceFilePath: '/root/test',
134
+ requestPathParams: [
135
+ {
136
+ identifier: 'firstParam',
137
+ signature: [
138
+ {
139
+ role: 'property',
140
+ identifier: 'foo',
141
+ shape: 'string',
142
+ optional: true,
143
+ },
144
+ ],
145
+ optional: false,
146
+ },
147
+ {
148
+ identifier: 'secondParam',
149
+ signature: [
150
+ {
151
+ role: 'property',
152
+ identifier: 'foo',
153
+ shape: 'string',
154
+ optional: true,
155
+ },
156
+ ],
157
+ optional: false,
158
+ },
159
+ ],
160
+ requestQuery: [],
161
+ requestHeaders: [],
162
+ rawBody: undefined,
163
+ objectBody: [],
164
+ responses: [{ status: 200, signature: 'void' }],
165
+ name: undefined,
166
+ summary: undefined,
167
+ description: undefined,
168
+ },
169
+ {
170
+ method: 'GET',
171
+ path: '/test/89d961f1-7d36-4271-8bd3-665ee0992590/:firstParam/:secondParam',
172
+ sourceFilePath: '/root/test',
173
+ requestPathParams: [
174
+ {
175
+ identifier: 'firstParam',
176
+ signature: [
177
+ {
178
+ role: 'property',
179
+ identifier: 'foo',
180
+ shape: [
181
+ {
182
+ role: 'union',
183
+ shape: [
184
+ {
185
+ role: 'union_entry',
186
+ shape: 'string',
187
+ optional: false,
188
+ },
189
+ {
190
+ role: 'union_entry',
191
+ shape: 'number',
192
+ optional: false,
193
+ },
194
+ ],
195
+ optional: false,
196
+ },
197
+ ],
198
+ optional: false,
199
+ },
200
+ ],
201
+ optional: false,
202
+ },
203
+ {
204
+ identifier: 'secondParam',
205
+ signature: [
206
+ {
207
+ role: 'property',
208
+ identifier: 'foo',
209
+ shape: [
210
+ {
211
+ role: 'union',
212
+ shape: [
213
+ {
214
+ role: 'union_entry',
215
+ shape: 'string',
216
+ optional: false,
217
+ },
218
+ {
219
+ role: 'union_entry',
220
+ shape: 'number',
221
+ optional: false,
222
+ },
223
+ ],
224
+ optional: false,
225
+ },
226
+ ],
227
+ optional: false,
228
+ },
229
+ ],
230
+ optional: false,
231
+ },
232
+ ],
233
+ requestQuery: [],
234
+ requestHeaders: [],
235
+ rawBody: undefined,
236
+ objectBody: [],
237
+ responses: [{ status: 200, signature: 'void' }],
238
+ name: undefined,
239
+ summary: undefined,
240
+ description: undefined,
241
+ },
242
+ {
243
+ method: 'GET',
244
+ path: '/test/f89310d9-25ac-4005-93e4-614179d3bbd4',
245
+ sourceFilePath: '/root/test',
246
+ requestPathParams: [],
247
+ requestQuery: [
248
+ {
249
+ identifier: 'firstParam',
250
+ signature: 'string',
251
+ optional: false,
252
+ },
253
+ {
254
+ identifier: 'secondParam',
255
+ signature: 'boolean',
256
+ optional: true,
257
+ },
258
+ { identifier: 'thirdParam', signature: 'number', optional: true },
259
+ ],
260
+ requestHeaders: [],
261
+ rawBody: undefined,
262
+ objectBody: [],
263
+ responses: [{ status: 200, signature: 'void' }],
264
+ name: undefined,
265
+ summary: undefined,
266
+ description: undefined,
267
+ },
268
+ {
269
+ method: 'GET',
270
+ path: '/test/6040cd01-a0c6-4b70-9901-b647f19b19a7',
271
+ sourceFilePath: '/root/test',
272
+ requestPathParams: [],
273
+ requestQuery: [],
274
+ requestHeaders: [],
275
+ rawBody: {
276
+ signature: [
277
+ {
278
+ role: 'property',
279
+ identifier: 'foo',
280
+ shape: 'string',
281
+ optional: false,
282
+ },
283
+ {
284
+ role: 'property',
285
+ identifier: 'bar',
286
+ shape: 'number',
287
+ optional: true,
288
+ },
289
+ ],
290
+ optional: false,
291
+ },
292
+ objectBody: [],
293
+ responses: [{ status: 200, signature: 'void' }],
294
+ name: undefined,
295
+ summary: undefined,
296
+ description: undefined,
297
+ },
298
+ {
299
+ method: 'GET',
300
+ path: '/test/f3754325-6d9c-42b6-becf-4a9e72bd2c4e',
301
+ sourceFilePath: '/root/test',
302
+ requestPathParams: [],
303
+ requestQuery: [],
304
+ requestHeaders: [],
305
+ rawBody: {
306
+ signature: [
307
+ {
308
+ role: 'property',
309
+ identifier: 'foo',
310
+ shape: 'string',
311
+ optional: false,
312
+ },
313
+ {
314
+ role: 'property',
315
+ identifier: 'bar',
316
+ shape: 'number',
317
+ optional: true,
318
+ },
319
+ ],
320
+ optional: false,
321
+ },
322
+ objectBody: [],
323
+ responses: [{ status: 200, signature: 'void' }],
324
+ name: undefined,
325
+ summary: undefined,
326
+ description: undefined,
327
+ },
328
+ {
329
+ method: 'GET',
330
+ path: '/test/1ab973ff-9937-4e2d-b432-ff43a9df42cb',
331
+ sourceFilePath: '/root/test',
332
+ requestPathParams: [],
333
+ requestQuery: [],
334
+ requestHeaders: [],
335
+ rawBody: {
336
+ signature: [
337
+ {
338
+ role: 'property',
339
+ identifier: 'foo',
340
+ shape: 'string',
341
+ optional: false,
342
+ },
343
+ {
344
+ role: 'property',
345
+ identifier: 'bar',
346
+ shape: 'number',
347
+ optional: true,
348
+ },
349
+ ],
350
+ optional: true,
351
+ },
352
+ objectBody: [],
353
+ responses: [{ status: 200, signature: 'void' }],
354
+ name: undefined,
355
+ summary: undefined,
356
+ description: undefined,
357
+ },
358
+ {
359
+ method: 'GET',
360
+ path: '/test/f74f6003-2aba-4f8c-855e-c0149f4217b7',
361
+ sourceFilePath: '/root/test',
362
+ requestPathParams: [],
363
+ requestQuery: [],
364
+ requestHeaders: [],
365
+ rawBody: { signature: 'boolean', optional: true },
366
+ objectBody: [],
367
+ responses: [{ status: 200, signature: 'void' }],
368
+ name: undefined,
369
+ summary: undefined,
370
+ description: undefined,
371
+ },
372
+ {
373
+ method: 'GET',
374
+ path: '/test/e8e5496b-11a0-41e3-a68d-f03d524e413c',
375
+ sourceFilePath: '/root/test',
376
+ requestPathParams: [],
377
+ requestQuery: [],
378
+ requestHeaders: [],
379
+ rawBody: undefined,
380
+ objectBody: [
381
+ {
382
+ identifier: 'firstParam',
383
+ signature: 'string',
384
+ optional: false,
385
+ },
386
+ {
387
+ identifier: 'secondParam',
388
+ signature: 'boolean',
389
+ optional: true,
390
+ },
391
+ { identifier: 'thirdParam', signature: 'number', optional: true },
392
+ ],
393
+ responses: [{ status: 200, signature: 'void' }],
394
+ name: undefined,
395
+ summary: undefined,
396
+ description: undefined,
397
+ },
398
+ {
399
+ method: 'GET',
400
+ path: '/test/7268be93-ce90-44b1-9a2f-8b286d7aae67',
401
+ sourceFilePath: '/root/test',
402
+ requestPathParams: [],
403
+ requestQuery: [],
404
+ requestHeaders: [],
405
+ rawBody: undefined,
406
+ objectBody: [
407
+ {
408
+ identifier: 'firstParam',
409
+ signature: 'string',
410
+ optional: false,
411
+ },
412
+ {
413
+ identifier: 'secondParam',
414
+ signature: 'boolean',
415
+ optional: true,
416
+ },
417
+ { identifier: 'thirdParam', signature: 'number', optional: true },
418
+ ],
419
+ responses: [{ status: 200, signature: 'void' }],
420
+ name: undefined,
421
+ summary: undefined,
422
+ description: undefined,
423
+ },
424
+ {
425
+ method: 'GET',
426
+ path: '/test/185c6075-a0f4-4607-af81-b51923f5866f',
427
+ sourceFilePath: '/root/test',
428
+ requestPathParams: [],
429
+ requestQuery: [],
430
+ requestHeaders: [],
431
+ rawBody: undefined,
432
+ objectBody: [
433
+ {
434
+ identifier: 'firstParam',
435
+ signature: 'string',
436
+ optional: false,
437
+ },
438
+ {
439
+ identifier: 'secondParam',
440
+ signature: 'boolean',
441
+ optional: true,
442
+ },
443
+ { identifier: 'thirdParam', signature: 'number', optional: true },
444
+ ],
445
+ responses: [{ status: 200, signature: 'void' }],
446
+ name: undefined,
447
+ summary: undefined,
448
+ description: undefined,
449
+ },
450
+ {
451
+ method: 'GET',
452
+ path: '/test/e1bedf55-6d3a-4c01-9c66-6ec74cc66c3b',
453
+ sourceFilePath: '/root/test',
454
+ requestPathParams: [],
455
+ requestQuery: [],
456
+ requestHeaders: [],
457
+ rawBody: undefined,
458
+ objectBody: [],
459
+ responses: [{ status: 200, signature: 'string' }],
460
+ name: undefined,
461
+ summary: undefined,
462
+ description: undefined,
463
+ },
464
+ {
465
+ method: 'GET',
466
+ path: '/test/78ad5fba-f4e2-4924-b28a-23e39dd146f7',
467
+ sourceFilePath: '/root/test',
468
+ requestPathParams: [],
469
+ requestQuery: [],
470
+ requestHeaders: [],
471
+ rawBody: undefined,
472
+ objectBody: [],
473
+ responses: [
474
+ { status: 200, signature: 'boolean' },
475
+ { status: 200, signature: 'string' },
476
+ { status: 200, signature: 'number' },
477
+ ],
478
+ name: undefined,
479
+ summary: undefined,
480
+ description: undefined,
481
+ },
482
+ {
483
+ method: 'GET',
484
+ path: '/test/c542cb10-538c-44eb-8d13-5111e273ead0',
485
+ sourceFilePath: '/root/test',
486
+ requestPathParams: [],
487
+ requestQuery: [],
488
+ requestHeaders: [],
489
+ rawBody: undefined,
490
+ objectBody: [],
491
+ responses: [
492
+ {
493
+ status: 200,
494
+ signature: [
495
+ {
496
+ role: 'property',
497
+ identifier: 'foo',
498
+ shape: 'string',
499
+ optional: false,
500
+ },
501
+ {
502
+ role: 'property',
503
+ identifier: 'bar',
504
+ shape: 'number',
505
+ optional: false,
506
+ },
507
+ ],
508
+ },
509
+ ],
510
+ name: undefined,
511
+ summary: undefined,
512
+ description: undefined,
513
+ },
514
+ {
515
+ method: 'GET',
516
+ path: '/test/03888127-6b97-42df-b429-87a6588ab2a4',
517
+ sourceFilePath: '/root/test',
518
+ requestPathParams: [],
519
+ requestQuery: [],
520
+ requestHeaders: [],
521
+ rawBody: undefined,
522
+ objectBody: [],
523
+ responses: [
524
+ {
525
+ status: 200,
526
+ signature: [
527
+ {
528
+ role: 'property',
529
+ identifier: 'foo',
530
+ shape: 'string',
531
+ optional: true,
532
+ },
533
+ {
534
+ role: 'property',
535
+ identifier: 'bar',
536
+ shape: 'number',
537
+ optional: true,
538
+ },
539
+ ],
540
+ },
541
+ ],
542
+ name: undefined,
543
+ summary: undefined,
544
+ description: undefined,
545
+ },
546
+ {
547
+ method: 'GET',
548
+ path: '/test/b73347dc-c16f-4272-95b4-bf1716bf9c14',
549
+ sourceFilePath: '/root/test',
550
+ requestPathParams: [],
551
+ requestQuery: [],
552
+ requestHeaders: [],
553
+ rawBody: undefined,
554
+ objectBody: [],
555
+ responses: [
556
+ {
557
+ status: 200,
558
+ signature: [
559
+ {
560
+ role: 'property',
561
+ identifier: 'foo',
562
+ shape: [
563
+ {
564
+ role: 'union',
565
+ shape: [
566
+ {
567
+ role: 'union_entry',
568
+ shape: 'string',
569
+ optional: false,
570
+ },
571
+ {
572
+ role: 'union_entry',
573
+ shape: 'number',
574
+ optional: false,
575
+ },
576
+ {
577
+ role: 'union_entry',
578
+ shape: 'boolean',
579
+ optional: false,
580
+ },
581
+ ],
582
+ optional: false,
583
+ },
584
+ ],
585
+ optional: false,
586
+ },
587
+ ],
588
+ },
589
+ ],
590
+ name: undefined,
591
+ summary: undefined,
592
+ description: undefined,
593
+ },
594
+ {
595
+ method: 'GET',
596
+ path: '/test/666b9ed1-62db-447a-80a7-8f35ec50ab02',
597
+ sourceFilePath: '/root/test',
598
+ requestPathParams: [],
599
+ requestQuery: [],
600
+ requestHeaders: [],
601
+ rawBody: undefined,
602
+ objectBody: [],
603
+ responses: [
604
+ {
605
+ status: 200,
606
+ signature: [
607
+ {
608
+ role: 'property',
609
+ identifier: 'foo',
610
+ shape: 'number',
611
+ optional: false,
612
+ },
613
+ ],
614
+ },
615
+ ],
616
+ name: undefined,
617
+ summary: undefined,
618
+ description: undefined,
619
+ },
620
+ {
621
+ method: 'GET',
622
+ path: '/test/97bb5db8-1871-4c1d-998e-a724c04c5741',
623
+ sourceFilePath: '/root/test',
624
+ requestPathParams: [],
625
+ requestQuery: [
626
+ {
627
+ identifier: 'firstParam',
628
+ signature: 'string',
629
+ optional: false,
630
+ },
631
+ {
632
+ identifier: 'secondParam',
633
+ signature: 'boolean',
634
+ optional: true,
635
+ },
636
+ { identifier: 'thirdParam', signature: 'number', optional: true },
637
+ ],
638
+ requestHeaders: [],
639
+ rawBody: undefined,
640
+ objectBody: [],
641
+ responses: [
642
+ {
643
+ status: 200,
644
+ signature: [
645
+ {
646
+ role: 'property',
647
+ identifier: 'foo',
648
+ shape: 'string',
649
+ optional: false,
650
+ },
651
+ {
652
+ role: 'property',
653
+ identifier: 'bar',
654
+ shape: 'boolean',
655
+ optional: true,
656
+ },
657
+ {
658
+ role: 'property',
659
+ identifier: 'baz',
660
+ shape: 'number',
661
+ optional: true,
662
+ },
663
+ ],
664
+ },
665
+ ],
666
+ name: undefined,
667
+ summary: undefined,
668
+ description: undefined,
669
+ },
670
+ {
671
+ method: 'GET',
672
+ path: '/test/4188ebf2-eae6-4994-8732-c7f43d4da861',
673
+ sourceFilePath: '/root/test',
674
+ requestPathParams: [],
675
+ requestQuery: [
676
+ {
677
+ identifier: 'firstParam',
678
+ signature: 'string',
679
+ optional: false,
680
+ },
681
+ {
682
+ identifier: 'secondParam',
683
+ signature: 'boolean',
684
+ optional: true,
685
+ },
686
+ { identifier: 'thirdParam', signature: 'number', optional: true },
687
+ ],
688
+ requestHeaders: [],
689
+ rawBody: undefined,
690
+ objectBody: [],
691
+ responses: [
692
+ {
693
+ status: 200,
694
+ signature: [
695
+ {
696
+ role: 'property',
697
+ identifier: 'test',
698
+ shape: 'string',
699
+ optional: false,
700
+ },
701
+ ],
702
+ },
703
+ {
704
+ status: 200,
705
+ signature: [
706
+ {
707
+ role: 'property',
708
+ identifier: 'foo',
709
+ shape: 'string',
710
+ optional: false,
711
+ },
712
+ {
713
+ role: 'property',
714
+ identifier: 'bar',
715
+ shape: 'boolean',
716
+ optional: true,
717
+ },
718
+ {
719
+ role: 'property',
720
+ identifier: 'baz',
721
+ shape: 'number',
722
+ optional: true,
723
+ },
724
+ ],
725
+ },
726
+ ],
727
+ name: undefined,
728
+ summary: undefined,
729
+ description: undefined,
730
+ },
731
+ {
732
+ method: 'GET',
733
+ path: '/test/32f18a25-2408-46cf-9519-f9a8d855bf84',
734
+ sourceFilePath: '/root/test',
735
+ requestPathParams: [],
736
+ requestQuery: [],
737
+ requestHeaders: [],
738
+ rawBody: undefined,
739
+ objectBody: [],
740
+ responses: [{ status: 200, signature: 'object' }],
741
+ name: undefined,
742
+ summary: undefined,
743
+ description: undefined,
744
+ },
745
+ {
746
+ method: 'GET',
747
+ path: '/test/196f2937-e369-435f-b239-62eaacaa6fbd',
748
+ sourceFilePath: '/root/test',
749
+ requestPathParams: [],
750
+ requestQuery: [],
751
+ requestHeaders: [],
752
+ rawBody: undefined,
753
+ objectBody: [],
754
+ responses: [{ status: 204, signature: 'void' }],
755
+ name: undefined,
756
+ summary: undefined,
757
+ description: undefined,
758
+ },
759
+ ];
760
+ exports.manyEndpointsResults = {
761
+ openapi: '3.1.0',
762
+ info: { title: 'Default title', version: '1.0.0' },
763
+ paths: {
764
+ '/test/908c3e74-cf67-4ec7-a281-66a79f95d44d': {
765
+ get: {
766
+ operationId: 'Test endpoint name',
767
+ summary: 'Test endpoint summary',
768
+ description: 'Test endpoint description',
769
+ parameters: [],
770
+ responses: { '200': { description: '' } },
771
+ },
772
+ },
773
+ '/test/bf6147f2-a1dc-4cc2-8327-e6f041f828bf/{firstParam}/{secondParam}/{optionalParam}': {
774
+ get: {
775
+ description: '',
776
+ parameters: [
777
+ { name: 'firstParam', in: 'path', description: '', required: true, schema: { type: 'string' } },
778
+ { name: 'secondParam', in: 'path', description: '', required: true, schema: { type: 'boolean' } },
779
+ {
780
+ name: 'optionalParam',
781
+ in: 'path',
782
+ description: '(Optional parameter) undefined',
783
+ required: true,
784
+ schema: { type: 'number' },
785
+ },
786
+ ],
787
+ responses: { '200': { description: '' } },
788
+ },
789
+ },
790
+ '/test/ef25ef5e-0f8f-4732-bf59-8825f94a5287/{firstParam}/{secondParam}/{optionalParam}': {
791
+ get: {
792
+ description: '',
793
+ parameters: [
794
+ { name: 'firstParam', in: 'path', description: '', required: true, schema: { type: 'string' } },
795
+ { name: 'secondParam', in: 'path', description: '', required: true, schema: { type: 'boolean' } },
796
+ {
797
+ name: 'optionalParam',
798
+ in: 'path',
799
+ description: '(Optional parameter) undefined',
800
+ required: true,
801
+ schema: { type: 'number' },
802
+ },
803
+ ],
804
+ responses: { '200': { description: '' } },
805
+ },
806
+ },
807
+ '/test/5ab5dd0d-b241-4378-bea1-a2dd696d699a/{firstParam}/{secondParam}': {
808
+ get: {
809
+ description: '',
810
+ parameters: [
811
+ {
812
+ name: 'firstParam',
813
+ in: 'path',
814
+ description: '',
815
+ required: true,
816
+ schema: {
817
+ type: 'object',
818
+ properties: { foo: { type: 'string' }, bar: { type: 'string' } },
819
+ required: ['foo', 'bar'],
820
+ },
821
+ },
822
+ {
823
+ name: 'secondParam',
824
+ in: 'path',
825
+ description: '',
826
+ required: true,
827
+ schema: {
828
+ type: 'object',
829
+ properties: { foo: { type: 'string' }, bar: { type: 'string' } },
830
+ required: ['foo', 'bar'],
831
+ },
832
+ },
833
+ ],
834
+ responses: { '200': { description: '' } },
835
+ },
836
+ },
837
+ '/test/209df2a1-55f9-4859-bc31-3277547c7d88/{firstParam}/{secondParam}': {
838
+ get: {
839
+ description: '',
840
+ parameters: [
841
+ {
842
+ name: 'firstParam',
843
+ in: 'path',
844
+ description: '',
845
+ required: true,
846
+ schema: { type: 'object', properties: { foo: { type: 'string' } } },
847
+ },
848
+ {
849
+ name: 'secondParam',
850
+ in: 'path',
851
+ description: '',
852
+ required: true,
853
+ schema: { type: 'object', properties: { foo: { type: 'string' } } },
854
+ },
855
+ ],
856
+ responses: { '200': { description: '' } },
857
+ },
858
+ },
859
+ '/test/89d961f1-7d36-4271-8bd3-665ee0992590/{firstParam}/{secondParam}': {
860
+ get: {
861
+ description: '',
862
+ parameters: [
863
+ {
864
+ name: 'firstParam',
865
+ in: 'path',
866
+ description: '',
867
+ required: true,
868
+ schema: {
869
+ type: 'object',
870
+ properties: { foo: { oneOf: [{ type: 'string' }, { type: 'number' }] } },
871
+ required: ['foo'],
872
+ },
873
+ },
874
+ {
875
+ name: 'secondParam',
876
+ in: 'path',
877
+ description: '',
878
+ required: true,
879
+ schema: {
880
+ type: 'object',
881
+ properties: { foo: { oneOf: [{ type: 'string' }, { type: 'number' }] } },
882
+ required: ['foo'],
883
+ },
884
+ },
885
+ ],
886
+ responses: { '200': { description: '' } },
887
+ },
888
+ },
889
+ '/test/f89310d9-25ac-4005-93e4-614179d3bbd4': {
890
+ get: {
891
+ description: '',
892
+ parameters: [
893
+ { name: 'firstParam', in: 'query', description: '', required: true, schema: { type: 'string' } },
894
+ { name: 'secondParam', in: 'query', description: '', required: false, schema: { type: 'boolean' } },
895
+ { name: 'thirdParam', in: 'query', description: '', required: false, schema: { type: 'number' } },
896
+ ],
897
+ responses: { '200': { description: '' } },
898
+ },
899
+ },
900
+ '/test/6040cd01-a0c6-4b70-9901-b647f19b19a7': {
901
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
902
+ },
903
+ '/test/f3754325-6d9c-42b6-becf-4a9e72bd2c4e': {
904
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
905
+ },
906
+ '/test/1ab973ff-9937-4e2d-b432-ff43a9df42cb': {
907
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
908
+ },
909
+ '/test/f74f6003-2aba-4f8c-855e-c0149f4217b7': {
910
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
911
+ },
912
+ '/test/e8e5496b-11a0-41e3-a68d-f03d524e413c': {
913
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
914
+ },
915
+ '/test/7268be93-ce90-44b1-9a2f-8b286d7aae67': {
916
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
917
+ },
918
+ '/test/185c6075-a0f4-4607-af81-b51923f5866f': {
919
+ get: { description: '', parameters: [], responses: { '200': { description: '' } } },
920
+ },
921
+ '/test/e1bedf55-6d3a-4c01-9c66-6ec74cc66c3b': {
922
+ get: {
923
+ description: '',
924
+ parameters: [],
925
+ responses: {
926
+ '200': {
927
+ description: '',
928
+ content: { 'application/json': { schema: { oneOf: [{ type: 'string' }] } } },
929
+ },
930
+ },
931
+ },
932
+ },
933
+ '/test/78ad5fba-f4e2-4924-b28a-23e39dd146f7': {
934
+ get: {
935
+ description: '',
936
+ parameters: [],
937
+ responses: {
938
+ '200': {
939
+ description: '',
940
+ content: {
941
+ 'application/json': {
942
+ schema: { oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }] },
943
+ },
944
+ },
945
+ },
946
+ },
947
+ },
948
+ },
949
+ '/test/c542cb10-538c-44eb-8d13-5111e273ead0': {
950
+ get: {
951
+ description: '',
952
+ parameters: [],
953
+ responses: {
954
+ '200': {
955
+ description: '',
956
+ content: {
957
+ 'application/json': {
958
+ schema: {
959
+ oneOf: [
960
+ {
961
+ type: 'object',
962
+ properties: { foo: { type: 'string' }, bar: { type: 'number' } },
963
+ required: ['foo', 'bar'],
964
+ },
965
+ ],
966
+ },
967
+ },
968
+ },
969
+ },
970
+ },
971
+ },
972
+ },
973
+ '/test/03888127-6b97-42df-b429-87a6588ab2a4': {
974
+ get: {
975
+ description: '',
976
+ parameters: [],
977
+ responses: {
978
+ '200': {
979
+ description: '',
980
+ content: {
981
+ 'application/json': {
982
+ schema: {
983
+ oneOf: [
984
+ { type: 'object', properties: { foo: { type: 'string' }, bar: { type: 'number' } } },
985
+ ],
986
+ },
987
+ },
988
+ },
989
+ },
990
+ },
991
+ },
992
+ },
993
+ '/test/b73347dc-c16f-4272-95b4-bf1716bf9c14': {
994
+ get: {
995
+ description: '',
996
+ parameters: [],
997
+ responses: {
998
+ '200': {
999
+ description: '',
1000
+ content: {
1001
+ 'application/json': {
1002
+ schema: {
1003
+ oneOf: [
1004
+ {
1005
+ type: 'object',
1006
+ properties: {
1007
+ foo: { oneOf: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
1008
+ },
1009
+ required: ['foo'],
1010
+ },
1011
+ ],
1012
+ },
1013
+ },
1014
+ },
1015
+ },
1016
+ },
1017
+ },
1018
+ },
1019
+ '/test/666b9ed1-62db-447a-80a7-8f35ec50ab02': {
1020
+ get: {
1021
+ description: '',
1022
+ parameters: [],
1023
+ responses: {
1024
+ '200': {
1025
+ description: '',
1026
+ content: {
1027
+ 'application/json': {
1028
+ schema: {
1029
+ oneOf: [{ type: 'object', properties: { foo: { type: 'number' } }, required: ['foo'] }],
1030
+ },
1031
+ },
1032
+ },
1033
+ },
1034
+ },
1035
+ },
1036
+ },
1037
+ '/test/97bb5db8-1871-4c1d-998e-a724c04c5741': {
1038
+ get: {
1039
+ description: '',
1040
+ parameters: [
1041
+ { name: 'firstParam', in: 'query', description: '', required: true, schema: { type: 'string' } },
1042
+ { name: 'secondParam', in: 'query', description: '', required: false, schema: { type: 'boolean' } },
1043
+ { name: 'thirdParam', in: 'query', description: '', required: false, schema: { type: 'number' } },
1044
+ ],
1045
+ responses: {
1046
+ '200': {
1047
+ description: '',
1048
+ content: {
1049
+ 'application/json': {
1050
+ schema: {
1051
+ oneOf: [
1052
+ {
1053
+ type: 'object',
1054
+ properties: {
1055
+ foo: { type: 'string' },
1056
+ bar: { type: 'boolean' },
1057
+ baz: { type: 'number' },
1058
+ },
1059
+ required: ['foo'],
1060
+ },
1061
+ ],
1062
+ },
1063
+ },
1064
+ },
1065
+ },
1066
+ },
1067
+ },
1068
+ },
1069
+ '/test/4188ebf2-eae6-4994-8732-c7f43d4da861': {
1070
+ get: {
1071
+ description: '',
1072
+ parameters: [
1073
+ { name: 'firstParam', in: 'query', description: '', required: true, schema: { type: 'string' } },
1074
+ { name: 'secondParam', in: 'query', description: '', required: false, schema: { type: 'boolean' } },
1075
+ { name: 'thirdParam', in: 'query', description: '', required: false, schema: { type: 'number' } },
1076
+ ],
1077
+ responses: {
1078
+ '200': {
1079
+ description: '',
1080
+ content: {
1081
+ 'application/json': {
1082
+ schema: {
1083
+ oneOf: [
1084
+ { type: 'object', properties: { test: { type: 'string' } }, required: ['test'] },
1085
+ {
1086
+ type: 'object',
1087
+ properties: {
1088
+ foo: { type: 'string' },
1089
+ bar: { type: 'boolean' },
1090
+ baz: { type: 'number' },
1091
+ },
1092
+ required: ['foo'],
1093
+ },
1094
+ ],
1095
+ },
1096
+ },
1097
+ },
1098
+ },
1099
+ },
1100
+ },
1101
+ },
1102
+ '/test/32f18a25-2408-46cf-9519-f9a8d855bf84': {
1103
+ get: {
1104
+ description: '',
1105
+ parameters: [],
1106
+ responses: {
1107
+ '200': {
1108
+ description: '',
1109
+ content: { 'application/json': { schema: { oneOf: [{ type: 'object' }] } } },
1110
+ },
1111
+ },
1112
+ },
1113
+ },
1114
+ '/test/196f2937-e369-435f-b239-62eaacaa6fbd': {
1115
+ get: { description: '', parameters: [], responses: { '204': { description: '' } } },
1116
+ },
1117
+ },
1118
+ components: { schemas: {} },
1119
+ };