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
+ import { EndpointData } from '../../types'
2
+
3
+ export const manyEndpointsData: EndpointData[] = [
4
+ {
5
+ method: 'GET',
6
+ path: '/test/908c3e74-cf67-4ec7-a281-66a79f95d44d',
7
+ sourceFilePath: '/root/test',
8
+ requestPathParams: [],
9
+ requestQuery: [],
10
+ requestHeaders: [],
11
+ rawBody: undefined,
12
+ objectBody: [],
13
+ responses: [{ status: 200, signature: 'void' }],
14
+ name: 'Test endpoint name',
15
+ summary: 'Test endpoint summary',
16
+ description: 'Test endpoint description',
17
+ },
18
+ {
19
+ method: 'GET',
20
+ path: '/test/bf6147f2-a1dc-4cc2-8327-e6f041f828bf/:firstParam/:secondParam/:optionalParam?',
21
+ sourceFilePath: '/root/test',
22
+ requestPathParams: [
23
+ {
24
+ identifier: 'firstParam',
25
+ signature: 'string',
26
+ optional: false,
27
+ },
28
+ {
29
+ identifier: 'secondParam',
30
+ signature: 'boolean',
31
+ optional: false,
32
+ },
33
+ {
34
+ identifier: 'optionalParam',
35
+ signature: 'number',
36
+ optional: true,
37
+ },
38
+ ],
39
+ requestQuery: [],
40
+ requestHeaders: [],
41
+ rawBody: undefined,
42
+ objectBody: [],
43
+ responses: [{ status: 200, signature: 'void' }],
44
+ name: undefined,
45
+ summary: undefined,
46
+ description: undefined,
47
+ },
48
+ {
49
+ method: 'GET',
50
+ path: '/test/ef25ef5e-0f8f-4732-bf59-8825f94a5287/:firstParam/:secondParam/:optionalParam?',
51
+ sourceFilePath: '/root/test',
52
+ requestPathParams: [
53
+ {
54
+ identifier: 'firstParam',
55
+ signature: 'string',
56
+ optional: false,
57
+ },
58
+ {
59
+ identifier: 'secondParam',
60
+ signature: 'boolean',
61
+ optional: false,
62
+ },
63
+ {
64
+ identifier: 'optionalParam',
65
+ signature: 'number',
66
+ optional: true,
67
+ },
68
+ ],
69
+ requestQuery: [],
70
+ requestHeaders: [],
71
+ rawBody: undefined,
72
+ objectBody: [],
73
+ responses: [{ status: 200, signature: 'void' }],
74
+ name: undefined,
75
+ summary: undefined,
76
+ description: undefined,
77
+ },
78
+ {
79
+ method: 'GET',
80
+ path: '/test/5ab5dd0d-b241-4378-bea1-a2dd696d699a/:firstParam/:secondParam',
81
+ sourceFilePath: '/root/test',
82
+ requestPathParams: [
83
+ {
84
+ identifier: 'firstParam',
85
+ signature: [
86
+ {
87
+ role: 'property',
88
+ identifier: 'foo',
89
+ shape: 'string',
90
+ optional: false,
91
+ },
92
+ {
93
+ role: 'property',
94
+ identifier: 'bar',
95
+ shape: 'string',
96
+ optional: false,
97
+ },
98
+ ],
99
+ optional: false,
100
+ },
101
+ {
102
+ identifier: 'secondParam',
103
+ signature: [
104
+ {
105
+ role: 'property',
106
+ identifier: 'foo',
107
+ shape: 'string',
108
+ optional: false,
109
+ },
110
+ {
111
+ role: 'property',
112
+ identifier: 'bar',
113
+ shape: 'string',
114
+ optional: false,
115
+ },
116
+ ],
117
+ optional: false,
118
+ },
119
+ ],
120
+ requestQuery: [],
121
+ requestHeaders: [],
122
+ rawBody: undefined,
123
+ objectBody: [],
124
+ responses: [{ status: 200, signature: 'void' }],
125
+ name: undefined,
126
+ summary: undefined,
127
+ description: undefined,
128
+ },
129
+ {
130
+ method: 'GET',
131
+ path: '/test/209df2a1-55f9-4859-bc31-3277547c7d88/:firstParam/:secondParam',
132
+ sourceFilePath: '/root/test',
133
+ requestPathParams: [
134
+ {
135
+ identifier: 'firstParam',
136
+ signature: [
137
+ {
138
+ role: 'property',
139
+ identifier: 'foo',
140
+ shape: 'string',
141
+ optional: true,
142
+ },
143
+ ],
144
+ optional: false,
145
+ },
146
+ {
147
+ identifier: 'secondParam',
148
+ signature: [
149
+ {
150
+ role: 'property',
151
+ identifier: 'foo',
152
+ shape: 'string',
153
+ optional: true,
154
+ },
155
+ ],
156
+ optional: false,
157
+ },
158
+ ],
159
+ requestQuery: [],
160
+ requestHeaders: [],
161
+ rawBody: undefined,
162
+ objectBody: [],
163
+ responses: [{ status: 200, signature: 'void' }],
164
+ name: undefined,
165
+ summary: undefined,
166
+ description: undefined,
167
+ },
168
+ {
169
+ method: 'GET',
170
+ path: '/test/89d961f1-7d36-4271-8bd3-665ee0992590/:firstParam/:secondParam',
171
+ sourceFilePath: '/root/test',
172
+ requestPathParams: [
173
+ {
174
+ identifier: 'firstParam',
175
+ signature: [
176
+ {
177
+ role: 'property',
178
+ identifier: 'foo',
179
+ shape: [
180
+ {
181
+ role: 'union',
182
+ shape: [
183
+ {
184
+ role: 'union_entry',
185
+ shape: 'string',
186
+ optional: false,
187
+ },
188
+ {
189
+ role: 'union_entry',
190
+ shape: 'number',
191
+ optional: false,
192
+ },
193
+ ],
194
+ optional: false,
195
+ },
196
+ ],
197
+ optional: false,
198
+ },
199
+ ],
200
+ optional: false,
201
+ },
202
+ {
203
+ identifier: 'secondParam',
204
+ signature: [
205
+ {
206
+ role: 'property',
207
+ identifier: 'foo',
208
+ shape: [
209
+ {
210
+ role: 'union',
211
+ shape: [
212
+ {
213
+ role: 'union_entry',
214
+ shape: 'string',
215
+ optional: false,
216
+ },
217
+ {
218
+ role: 'union_entry',
219
+ shape: 'number',
220
+ optional: false,
221
+ },
222
+ ],
223
+ optional: false,
224
+ },
225
+ ],
226
+ optional: false,
227
+ },
228
+ ],
229
+ optional: false,
230
+ },
231
+ ],
232
+ requestQuery: [],
233
+ requestHeaders: [],
234
+ rawBody: undefined,
235
+ objectBody: [],
236
+ responses: [{ status: 200, signature: 'void' }],
237
+ name: undefined,
238
+ summary: undefined,
239
+ description: undefined,
240
+ },
241
+ {
242
+ method: 'GET',
243
+ path: '/test/f89310d9-25ac-4005-93e4-614179d3bbd4',
244
+ sourceFilePath: '/root/test',
245
+ requestPathParams: [],
246
+ requestQuery: [
247
+ {
248
+ identifier: 'firstParam',
249
+ signature: 'string',
250
+ optional: false,
251
+ },
252
+ {
253
+ identifier: 'secondParam',
254
+ signature: 'boolean',
255
+ optional: true,
256
+ },
257
+ { identifier: 'thirdParam', signature: 'number', optional: true },
258
+ ],
259
+ requestHeaders: [],
260
+ rawBody: undefined,
261
+ objectBody: [],
262
+ responses: [{ status: 200, signature: 'void' }],
263
+ name: undefined,
264
+ summary: undefined,
265
+ description: undefined,
266
+ },
267
+ {
268
+ method: 'GET',
269
+ path: '/test/6040cd01-a0c6-4b70-9901-b647f19b19a7',
270
+ sourceFilePath: '/root/test',
271
+ requestPathParams: [],
272
+ requestQuery: [],
273
+ requestHeaders: [],
274
+ rawBody: {
275
+ signature: [
276
+ {
277
+ role: 'property',
278
+ identifier: 'foo',
279
+ shape: 'string',
280
+ optional: false,
281
+ },
282
+ {
283
+ role: 'property',
284
+ identifier: 'bar',
285
+ shape: 'number',
286
+ optional: true,
287
+ },
288
+ ],
289
+ optional: false,
290
+ },
291
+ objectBody: [],
292
+ responses: [{ status: 200, signature: 'void' }],
293
+ name: undefined,
294
+ summary: undefined,
295
+ description: undefined,
296
+ },
297
+ {
298
+ method: 'GET',
299
+ path: '/test/f3754325-6d9c-42b6-becf-4a9e72bd2c4e',
300
+ sourceFilePath: '/root/test',
301
+ requestPathParams: [],
302
+ requestQuery: [],
303
+ requestHeaders: [],
304
+ rawBody: {
305
+ signature: [
306
+ {
307
+ role: 'property',
308
+ identifier: 'foo',
309
+ shape: 'string',
310
+ optional: false,
311
+ },
312
+ {
313
+ role: 'property',
314
+ identifier: 'bar',
315
+ shape: 'number',
316
+ optional: true,
317
+ },
318
+ ],
319
+ optional: false,
320
+ },
321
+ objectBody: [],
322
+ responses: [{ status: 200, signature: 'void' }],
323
+ name: undefined,
324
+ summary: undefined,
325
+ description: undefined,
326
+ },
327
+ {
328
+ method: 'GET',
329
+ path: '/test/1ab973ff-9937-4e2d-b432-ff43a9df42cb',
330
+ sourceFilePath: '/root/test',
331
+ requestPathParams: [],
332
+ requestQuery: [],
333
+ requestHeaders: [],
334
+ rawBody: {
335
+ signature: [
336
+ {
337
+ role: 'property',
338
+ identifier: 'foo',
339
+ shape: 'string',
340
+ optional: false,
341
+ },
342
+ {
343
+ role: 'property',
344
+ identifier: 'bar',
345
+ shape: 'number',
346
+ optional: true,
347
+ },
348
+ ],
349
+ optional: true,
350
+ },
351
+ objectBody: [],
352
+ responses: [{ status: 200, signature: 'void' }],
353
+ name: undefined,
354
+ summary: undefined,
355
+ description: undefined,
356
+ },
357
+ {
358
+ method: 'GET',
359
+ path: '/test/f74f6003-2aba-4f8c-855e-c0149f4217b7',
360
+ sourceFilePath: '/root/test',
361
+ requestPathParams: [],
362
+ requestQuery: [],
363
+ requestHeaders: [],
364
+ rawBody: { signature: 'boolean', optional: true },
365
+ objectBody: [],
366
+ responses: [{ status: 200, signature: 'void' }],
367
+ name: undefined,
368
+ summary: undefined,
369
+ description: undefined,
370
+ },
371
+ {
372
+ method: 'GET',
373
+ path: '/test/e8e5496b-11a0-41e3-a68d-f03d524e413c',
374
+ sourceFilePath: '/root/test',
375
+ requestPathParams: [],
376
+ requestQuery: [],
377
+ requestHeaders: [],
378
+ rawBody: undefined,
379
+ objectBody: [
380
+ {
381
+ identifier: 'firstParam',
382
+ signature: 'string',
383
+ optional: false,
384
+ },
385
+ {
386
+ identifier: 'secondParam',
387
+ signature: 'boolean',
388
+ optional: true,
389
+ },
390
+ { identifier: 'thirdParam', signature: 'number', optional: true },
391
+ ],
392
+ responses: [{ status: 200, signature: 'void' }],
393
+ name: undefined,
394
+ summary: undefined,
395
+ description: undefined,
396
+ },
397
+ {
398
+ method: 'GET',
399
+ path: '/test/7268be93-ce90-44b1-9a2f-8b286d7aae67',
400
+ sourceFilePath: '/root/test',
401
+ requestPathParams: [],
402
+ requestQuery: [],
403
+ requestHeaders: [],
404
+ rawBody: undefined,
405
+ objectBody: [
406
+ {
407
+ identifier: 'firstParam',
408
+ signature: 'string',
409
+ optional: false,
410
+ },
411
+ {
412
+ identifier: 'secondParam',
413
+ signature: 'boolean',
414
+ optional: true,
415
+ },
416
+ { identifier: 'thirdParam', signature: 'number', optional: true },
417
+ ],
418
+ responses: [{ status: 200, signature: 'void' }],
419
+ name: undefined,
420
+ summary: undefined,
421
+ description: undefined,
422
+ },
423
+ {
424
+ method: 'GET',
425
+ path: '/test/185c6075-a0f4-4607-af81-b51923f5866f',
426
+ sourceFilePath: '/root/test',
427
+ requestPathParams: [],
428
+ requestQuery: [],
429
+ requestHeaders: [],
430
+ rawBody: undefined,
431
+ objectBody: [
432
+ {
433
+ identifier: 'firstParam',
434
+ signature: 'string',
435
+ optional: false,
436
+ },
437
+ {
438
+ identifier: 'secondParam',
439
+ signature: 'boolean',
440
+ optional: true,
441
+ },
442
+ { identifier: 'thirdParam', signature: 'number', optional: true },
443
+ ],
444
+ responses: [{ status: 200, signature: 'void' }],
445
+ name: undefined,
446
+ summary: undefined,
447
+ description: undefined,
448
+ },
449
+ {
450
+ method: 'GET',
451
+ path: '/test/e1bedf55-6d3a-4c01-9c66-6ec74cc66c3b',
452
+ sourceFilePath: '/root/test',
453
+ requestPathParams: [],
454
+ requestQuery: [],
455
+ requestHeaders: [],
456
+ rawBody: undefined,
457
+ objectBody: [],
458
+ responses: [{ status: 200, signature: 'string' }],
459
+ name: undefined,
460
+ summary: undefined,
461
+ description: undefined,
462
+ },
463
+ {
464
+ method: 'GET',
465
+ path: '/test/78ad5fba-f4e2-4924-b28a-23e39dd146f7',
466
+ sourceFilePath: '/root/test',
467
+ requestPathParams: [],
468
+ requestQuery: [],
469
+ requestHeaders: [],
470
+ rawBody: undefined,
471
+ objectBody: [],
472
+ responses: [
473
+ { status: 200, signature: 'boolean' },
474
+ { status: 200, signature: 'string' },
475
+ { status: 200, signature: 'number' },
476
+ ],
477
+ name: undefined,
478
+ summary: undefined,
479
+ description: undefined,
480
+ },
481
+ {
482
+ method: 'GET',
483
+ path: '/test/c542cb10-538c-44eb-8d13-5111e273ead0',
484
+ sourceFilePath: '/root/test',
485
+ requestPathParams: [],
486
+ requestQuery: [],
487
+ requestHeaders: [],
488
+ rawBody: undefined,
489
+ objectBody: [],
490
+ responses: [
491
+ {
492
+ status: 200,
493
+ signature: [
494
+ {
495
+ role: 'property',
496
+ identifier: 'foo',
497
+ shape: 'string',
498
+ optional: false,
499
+ },
500
+ {
501
+ role: 'property',
502
+ identifier: 'bar',
503
+ shape: 'number',
504
+ optional: false,
505
+ },
506
+ ],
507
+ },
508
+ ],
509
+ name: undefined,
510
+ summary: undefined,
511
+ description: undefined,
512
+ },
513
+ {
514
+ method: 'GET',
515
+ path: '/test/03888127-6b97-42df-b429-87a6588ab2a4',
516
+ sourceFilePath: '/root/test',
517
+ requestPathParams: [],
518
+ requestQuery: [],
519
+ requestHeaders: [],
520
+ rawBody: undefined,
521
+ objectBody: [],
522
+ responses: [
523
+ {
524
+ status: 200,
525
+ signature: [
526
+ {
527
+ role: 'property',
528
+ identifier: 'foo',
529
+ shape: 'string',
530
+ optional: true,
531
+ },
532
+ {
533
+ role: 'property',
534
+ identifier: 'bar',
535
+ shape: 'number',
536
+ optional: true,
537
+ },
538
+ ],
539
+ },
540
+ ],
541
+ name: undefined,
542
+ summary: undefined,
543
+ description: undefined,
544
+ },
545
+ {
546
+ method: 'GET',
547
+ path: '/test/b73347dc-c16f-4272-95b4-bf1716bf9c14',
548
+ sourceFilePath: '/root/test',
549
+ requestPathParams: [],
550
+ requestQuery: [],
551
+ requestHeaders: [],
552
+ rawBody: undefined,
553
+ objectBody: [],
554
+ responses: [
555
+ {
556
+ status: 200,
557
+ signature: [
558
+ {
559
+ role: 'property',
560
+ identifier: 'foo',
561
+ shape: [
562
+ {
563
+ role: 'union',
564
+ shape: [
565
+ {
566
+ role: 'union_entry',
567
+ shape: 'string',
568
+ optional: false,
569
+ },
570
+ {
571
+ role: 'union_entry',
572
+ shape: 'number',
573
+ optional: false,
574
+ },
575
+ {
576
+ role: 'union_entry',
577
+ shape: 'boolean',
578
+ optional: false,
579
+ },
580
+ ],
581
+ optional: false,
582
+ },
583
+ ],
584
+ optional: false,
585
+ },
586
+ ],
587
+ },
588
+ ],
589
+ name: undefined,
590
+ summary: undefined,
591
+ description: undefined,
592
+ },
593
+ {
594
+ method: 'GET',
595
+ path: '/test/666b9ed1-62db-447a-80a7-8f35ec50ab02',
596
+ sourceFilePath: '/root/test',
597
+ requestPathParams: [],
598
+ requestQuery: [],
599
+ requestHeaders: [],
600
+ rawBody: undefined,
601
+ objectBody: [],
602
+ responses: [
603
+ {
604
+ status: 200,
605
+ signature: [
606
+ {
607
+ role: 'property',
608
+ identifier: 'foo',
609
+ shape: 'number',
610
+ optional: false,
611
+ },
612
+ ],
613
+ },
614
+ ],
615
+ name: undefined,
616
+ summary: undefined,
617
+ description: undefined,
618
+ },
619
+ {
620
+ method: 'GET',
621
+ path: '/test/97bb5db8-1871-4c1d-998e-a724c04c5741',
622
+ sourceFilePath: '/root/test',
623
+ requestPathParams: [],
624
+ requestQuery: [
625
+ {
626
+ identifier: 'firstParam',
627
+ signature: 'string',
628
+ optional: false,
629
+ },
630
+ {
631
+ identifier: 'secondParam',
632
+ signature: 'boolean',
633
+ optional: true,
634
+ },
635
+ { identifier: 'thirdParam', signature: 'number', optional: true },
636
+ ],
637
+ requestHeaders: [],
638
+ rawBody: undefined,
639
+ objectBody: [],
640
+ responses: [
641
+ {
642
+ status: 200,
643
+ signature: [
644
+ {
645
+ role: 'property',
646
+ identifier: 'foo',
647
+ shape: 'string',
648
+ optional: false,
649
+ },
650
+ {
651
+ role: 'property',
652
+ identifier: 'bar',
653
+ shape: 'boolean',
654
+ optional: true,
655
+ },
656
+ {
657
+ role: 'property',
658
+ identifier: 'baz',
659
+ shape: 'number',
660
+ optional: true,
661
+ },
662
+ ],
663
+ },
664
+ ],
665
+ name: undefined,
666
+ summary: undefined,
667
+ description: undefined,
668
+ },
669
+ {
670
+ method: 'GET',
671
+ path: '/test/4188ebf2-eae6-4994-8732-c7f43d4da861',
672
+ sourceFilePath: '/root/test',
673
+ requestPathParams: [],
674
+ requestQuery: [
675
+ {
676
+ identifier: 'firstParam',
677
+ signature: 'string',
678
+ optional: false,
679
+ },
680
+ {
681
+ identifier: 'secondParam',
682
+ signature: 'boolean',
683
+ optional: true,
684
+ },
685
+ { identifier: 'thirdParam', signature: 'number', optional: true },
686
+ ],
687
+ requestHeaders: [],
688
+ rawBody: undefined,
689
+ objectBody: [],
690
+ responses: [
691
+ {
692
+ status: 200,
693
+ signature: [
694
+ {
695
+ role: 'property',
696
+ identifier: 'test',
697
+ shape: 'string',
698
+ optional: false,
699
+ },
700
+ ],
701
+ },
702
+ {
703
+ status: 200,
704
+ signature: [
705
+ {
706
+ role: 'property',
707
+ identifier: 'foo',
708
+ shape: 'string',
709
+ optional: false,
710
+ },
711
+ {
712
+ role: 'property',
713
+ identifier: 'bar',
714
+ shape: 'boolean',
715
+ optional: true,
716
+ },
717
+ {
718
+ role: 'property',
719
+ identifier: 'baz',
720
+ shape: 'number',
721
+ optional: true,
722
+ },
723
+ ],
724
+ },
725
+ ],
726
+ name: undefined,
727
+ summary: undefined,
728
+ description: undefined,
729
+ },
730
+ {
731
+ method: 'GET',
732
+ path: '/test/32f18a25-2408-46cf-9519-f9a8d855bf84',
733
+ sourceFilePath: '/root/test',
734
+ requestPathParams: [],
735
+ requestQuery: [],
736
+ requestHeaders: [],
737
+ rawBody: undefined,
738
+ objectBody: [],
739
+ responses: [{ status: 200, signature: 'object' }],
740
+ name: undefined,
741
+ summary: undefined,
742
+ description: undefined,
743
+ },
744
+ {
745
+ method: 'GET',
746
+ path: '/test/196f2937-e369-435f-b239-62eaacaa6fbd',
747
+ sourceFilePath: '/root/test',
748
+ requestPathParams: [],
749
+ requestQuery: [],
750
+ requestHeaders: [],
751
+ rawBody: undefined,
752
+ objectBody: [],
753
+ responses: [{ status: 204, signature: 'void' }],
754
+ name: undefined,
755
+ summary: undefined,
756
+ description: undefined,
757
+ },
758
+ ]
759
+
760
+ export const 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
+ }