@goast/core 0.4.1 → 0.5.0-beta.1

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 (446) hide show
  1. package/LICENSE +21 -21
  2. package/esm/mod.d.ts +1 -0
  3. package/esm/mod.d.ts.map +1 -1
  4. package/esm/mod.js +1 -0
  5. package/esm/src/codegen/config.d.ts +11 -0
  6. package/esm/src/codegen/config.d.ts.map +1 -1
  7. package/esm/src/codegen/config.js +1 -0
  8. package/esm/src/transform/helpers.d.ts.map +1 -1
  9. package/esm/src/transform/helpers.js +5 -1
  10. package/esm/src/utils/file-system.utils.d.ts +2 -0
  11. package/esm/src/utils/file-system.utils.d.ts.map +1 -1
  12. package/esm/src/utils/file-system.utils.js +11 -1
  13. package/esm/src/utils/schema.utils.d.ts +1 -0
  14. package/esm/src/utils/schema.utils.d.ts.map +1 -1
  15. package/esm/src/utils/schema.utils.js +5 -0
  16. package/esm/src/utils/source-builder.d.ts +2 -0
  17. package/esm/src/utils/source-builder.d.ts.map +1 -1
  18. package/esm/src/utils/source-builder.js +7 -1
  19. package/package.json +2 -5
  20. package/script/mod.d.ts +1 -0
  21. package/script/mod.d.ts.map +1 -1
  22. package/script/mod.js +1 -0
  23. package/script/src/codegen/config.d.ts +11 -0
  24. package/script/src/codegen/config.d.ts.map +1 -1
  25. package/script/src/codegen/config.js +1 -0
  26. package/script/src/transform/helpers.d.ts.map +1 -1
  27. package/script/src/transform/helpers.js +5 -1
  28. package/script/src/utils/file-system.utils.d.ts +2 -0
  29. package/script/src/utils/file-system.utils.d.ts.map +1 -1
  30. package/script/src/utils/file-system.utils.js +11 -0
  31. package/script/src/utils/schema.utils.d.ts +1 -0
  32. package/script/src/utils/schema.utils.d.ts.map +1 -1
  33. package/script/src/utils/schema.utils.js +6 -0
  34. package/script/src/utils/source-builder.d.ts +2 -0
  35. package/script/src/utils/source-builder.d.ts.map +1 -1
  36. package/script/src/utils/source-builder.js +8 -1
  37. package/esm/_dnt.test_polyfills.d.ts +0 -29
  38. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  39. package/esm/_dnt.test_polyfills.js +0 -31
  40. package/esm/_dnt.test_shims.d.ts +0 -14
  41. package/esm/_dnt.test_shims.d.ts.map +0 -1
  42. package/esm/_dnt.test_shims.js +0 -69
  43. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  44. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  45. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
  46. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  47. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  48. package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
  49. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  50. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  51. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
  52. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  53. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  54. package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
  55. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  56. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  57. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
  58. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  59. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  60. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
  61. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  62. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  63. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
  64. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  65. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  66. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
  67. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  68. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  69. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -29
  70. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  71. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  72. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -43
  73. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  74. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  75. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -26
  76. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  77. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  78. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -13
  79. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  80. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  81. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -161
  82. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  83. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  84. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -29
  85. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  86. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  87. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -11
  88. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  89. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  90. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -191
  91. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  92. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  93. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -11
  94. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  95. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  96. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -12
  97. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  98. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  99. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -714
  100. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  101. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  102. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -10
  103. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  104. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  105. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -10
  106. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  107. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  108. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -3
  109. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  110. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  111. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -218
  112. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  113. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  114. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -523
  115. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  116. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  117. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -85
  118. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  119. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  120. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -88
  121. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  122. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  123. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
  124. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  125. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  126. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
  127. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  128. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  129. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
  130. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  131. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  132. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
  133. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  134. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  135. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
  136. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  137. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  138. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
  139. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  140. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  141. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
  142. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  143. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  144. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
  145. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  146. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  147. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
  148. package/esm/src/collect/helpers.test.d.ts +0 -2
  149. package/esm/src/collect/helpers.test.d.ts.map +0 -1
  150. package/esm/src/collect/helpers.test.js +0 -77
  151. package/esm/src/transform/helpers.test.d.ts +0 -2
  152. package/esm/src/transform/helpers.test.d.ts.map +0 -1
  153. package/esm/src/transform/helpers.test.js +0 -265
  154. package/esm/src/utils/action-provider.test.d.ts +0 -2
  155. package/esm/src/utils/action-provider.test.d.ts.map +0 -1
  156. package/esm/src/utils/action-provider.test.js +0 -28
  157. package/esm/src/utils/common.utils.test.d.ts +0 -2
  158. package/esm/src/utils/common.utils.test.d.ts.map +0 -1
  159. package/esm/src/utils/common.utils.test.js +0 -18
  160. package/esm/src/utils/condition.test.d.ts +0 -2
  161. package/esm/src/utils/condition.test.d.ts.map +0 -1
  162. package/esm/src/utils/condition.test.js +0 -31
  163. package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
  164. package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
  165. package/esm/src/utils/endpoint.utils.test.js +0 -31
  166. package/esm/src/utils/factory.test.d.ts +0 -2
  167. package/esm/src/utils/factory.test.d.ts.map +0 -1
  168. package/esm/src/utils/factory.test.js +0 -34
  169. package/esm/src/utils/generator.utils.test.d.ts +0 -2
  170. package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
  171. package/esm/src/utils/generator.utils.test.js +0 -13
  172. package/esm/src/utils/object.utils.test.d.ts +0 -2
  173. package/esm/src/utils/object.utils.test.d.ts.map +0 -1
  174. package/esm/src/utils/object.utils.test.js +0 -29
  175. package/esm/src/utils/schema.utils.test.d.ts +0 -2
  176. package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
  177. package/esm/src/utils/schema.utils.test.js +0 -70
  178. package/esm/src/utils/source-builder.test.d.ts +0 -2
  179. package/esm/src/utils/source-builder.test.d.ts.map +0 -1
  180. package/esm/src/utils/source-builder.test.js +0 -505
  181. package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
  182. package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  183. package/esm/src/utils/string-builder/string-builder.test.js +0 -163
  184. package/esm/src/utils/string.utils.test.d.ts +0 -2
  185. package/esm/src/utils/string.utils.test.d.ts.map +0 -1
  186. package/esm/src/utils/string.utils.test.js +0 -528
  187. package/esm/tests/openapi.test.d.ts +0 -2
  188. package/esm/tests/openapi.test.d.ts.map +0 -1
  189. package/esm/tests/openapi.test.js +0 -33
  190. package/esm/tests/schema-factory.d.ts +0 -42
  191. package/esm/tests/schema-factory.d.ts.map +0 -1
  192. package/esm/tests/schema-factory.js +0 -138
  193. package/script/_dnt.test_polyfills.d.ts +0 -29
  194. package/script/_dnt.test_polyfills.d.ts.map +0 -1
  195. package/script/_dnt.test_polyfills.js +0 -32
  196. package/script/_dnt.test_shims.d.ts +0 -14
  197. package/script/_dnt.test_shims.d.ts.map +0 -1
  198. package/script/_dnt.test_shims.js +0 -79
  199. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  200. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  201. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
  202. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  203. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  204. package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
  205. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  206. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  207. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
  208. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  209. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  210. package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
  211. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  212. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  213. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
  214. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  215. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  216. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
  217. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  218. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  219. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
  220. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  221. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  222. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
  223. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  224. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  225. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -32
  226. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  227. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  228. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -46
  229. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  230. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  231. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -29
  232. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  233. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  234. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -18
  235. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  236. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  237. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -183
  238. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  239. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  240. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -33
  241. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  242. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  243. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -15
  244. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  245. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  246. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -194
  247. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  248. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  249. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -15
  250. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  251. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  252. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -17
  253. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  254. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  255. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -748
  256. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  257. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  258. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -14
  259. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  260. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  261. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -14
  262. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  263. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  264. package/script/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -4
  265. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  266. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  267. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -226
  268. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  269. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  270. package/script/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -527
  271. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  272. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  273. package/script/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -88
  274. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  275. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  276. package/script/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -91
  277. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  278. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  279. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
  280. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  281. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  282. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -116
  283. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  284. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  285. package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -284
  286. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  287. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  288. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -186
  289. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  290. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  291. package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -41
  292. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  293. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  294. package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -220
  295. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  296. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  297. package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
  298. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  299. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  300. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
  301. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  302. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  303. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
  304. package/script/src/collect/helpers.test.d.ts +0 -2
  305. package/script/src/collect/helpers.test.d.ts.map +0 -1
  306. package/script/src/collect/helpers.test.js +0 -79
  307. package/script/src/transform/helpers.test.d.ts +0 -2
  308. package/script/src/transform/helpers.test.d.ts.map +0 -1
  309. package/script/src/transform/helpers.test.js +0 -267
  310. package/script/src/utils/action-provider.test.d.ts +0 -2
  311. package/script/src/utils/action-provider.test.d.ts.map +0 -1
  312. package/script/src/utils/action-provider.test.js +0 -30
  313. package/script/src/utils/common.utils.test.d.ts +0 -2
  314. package/script/src/utils/common.utils.test.d.ts.map +0 -1
  315. package/script/src/utils/common.utils.test.js +0 -20
  316. package/script/src/utils/condition.test.d.ts +0 -2
  317. package/script/src/utils/condition.test.d.ts.map +0 -1
  318. package/script/src/utils/condition.test.js +0 -33
  319. package/script/src/utils/endpoint.utils.test.d.ts +0 -2
  320. package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
  321. package/script/src/utils/endpoint.utils.test.js +0 -33
  322. package/script/src/utils/factory.test.d.ts +0 -2
  323. package/script/src/utils/factory.test.d.ts.map +0 -1
  324. package/script/src/utils/factory.test.js +0 -36
  325. package/script/src/utils/generator.utils.test.d.ts +0 -2
  326. package/script/src/utils/generator.utils.test.d.ts.map +0 -1
  327. package/script/src/utils/generator.utils.test.js +0 -15
  328. package/script/src/utils/object.utils.test.d.ts +0 -2
  329. package/script/src/utils/object.utils.test.d.ts.map +0 -1
  330. package/script/src/utils/object.utils.test.js +0 -31
  331. package/script/src/utils/schema.utils.test.d.ts +0 -2
  332. package/script/src/utils/schema.utils.test.d.ts.map +0 -1
  333. package/script/src/utils/schema.utils.test.js +0 -72
  334. package/script/src/utils/source-builder.test.d.ts +0 -2
  335. package/script/src/utils/source-builder.test.d.ts.map +0 -1
  336. package/script/src/utils/source-builder.test.js +0 -507
  337. package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
  338. package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  339. package/script/src/utils/string-builder/string-builder.test.js +0 -165
  340. package/script/src/utils/string.utils.test.d.ts +0 -2
  341. package/script/src/utils/string.utils.test.d.ts.map +0 -1
  342. package/script/src/utils/string.utils.test.js +0 -530
  343. package/script/tests/openapi.test.d.ts +0 -2
  344. package/script/tests/openapi.test.d.ts.map +0 -1
  345. package/script/tests/openapi.test.js +0 -35
  346. package/script/tests/schema-factory.d.ts +0 -42
  347. package/script/tests/schema-factory.d.ts.map +0 -1
  348. package/script/tests/schema-factory.js +0 -162
  349. package/src/_dnt.shims.ts +0 -69
  350. package/src/_dnt.test_polyfills.ts +0 -70
  351. package/src/_dnt.test_shims.ts +0 -72
  352. package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
  353. package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
  354. package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
  355. package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
  356. package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
  357. package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
  358. package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
  359. package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
  360. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +0 -38
  361. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +0 -54
  362. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +0 -35
  363. package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +0 -18
  364. package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +0 -198
  365. package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +0 -51
  366. package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +0 -19
  367. package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +0 -230
  368. package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +0 -16
  369. package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +0 -15
  370. package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +0 -1028
  371. package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +0 -22
  372. package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +0 -15
  373. package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +0 -923
  374. package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +0 -283
  375. package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +0 -620
  376. package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +0 -91
  377. package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +0 -89
  378. package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
  379. package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
  380. package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
  381. package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
  382. package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
  383. package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
  384. package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
  385. package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
  386. package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
  387. package/src/mod.ts +0 -33
  388. package/src/src/ast/node.ts +0 -46
  389. package/src/src/codegen/config.ts +0 -28
  390. package/src/src/codegen/endpoints-generator.ts +0 -72
  391. package/src/src/codegen/generator.ts +0 -181
  392. package/src/src/codegen/internal-utils.ts +0 -6
  393. package/src/src/codegen/schemas-generator.ts +0 -87
  394. package/src/src/codegen/services-generator.ts +0 -77
  395. package/src/src/codegen/types.ts +0 -37
  396. package/src/src/collect/collector.ts +0 -142
  397. package/src/src/collect/helpers.test.ts +0 -91
  398. package/src/src/collect/helpers.ts +0 -36
  399. package/src/src/collect/types.ts +0 -21
  400. package/src/src/internal-utils.ts +0 -5
  401. package/src/src/parse/deref-proxy.ts +0 -64
  402. package/src/src/parse/openapi-types.ts +0 -949
  403. package/src/src/parse/parser.ts +0 -220
  404. package/src/src/parse/types.ts +0 -27
  405. package/src/src/transform/api-types.ts +0 -243
  406. package/src/src/transform/helpers.test.ts +0 -316
  407. package/src/src/transform/helpers.ts +0 -211
  408. package/src/src/transform/transform-document.ts +0 -35
  409. package/src/src/transform/transform-endpoint.ts +0 -331
  410. package/src/src/transform/transform-schema.ts +0 -217
  411. package/src/src/transform/transformer.ts +0 -52
  412. package/src/src/transform/types.ts +0 -52
  413. package/src/src/utils/action-provider.test.ts +0 -32
  414. package/src/src/utils/action-provider.ts +0 -58
  415. package/src/src/utils/array.utils.ts +0 -7
  416. package/src/src/utils/asset-manager.ts +0 -51
  417. package/src/src/utils/class.utils.ts +0 -40
  418. package/src/src/utils/common.utils.test.ts +0 -22
  419. package/src/src/utils/common.utils.ts +0 -86
  420. package/src/src/utils/condition.test.ts +0 -36
  421. package/src/src/utils/condition.ts +0 -7
  422. package/src/src/utils/endpoint.utils.test.ts +0 -36
  423. package/src/src/utils/endpoint.utils.ts +0 -10
  424. package/src/src/utils/error.utils.ts +0 -3
  425. package/src/src/utils/factory.test.ts +0 -31
  426. package/src/src/utils/factory.ts +0 -42
  427. package/src/src/utils/file-system.utils.ts +0 -48
  428. package/src/src/utils/generator.utils.test.ts +0 -16
  429. package/src/src/utils/generator.utils.ts +0 -6
  430. package/src/src/utils/object.utils.test.ts +0 -33
  431. package/src/src/utils/object.utils.ts +0 -32
  432. package/src/src/utils/schema.utils.test.ts +0 -88
  433. package/src/src/utils/schema.utils.ts +0 -142
  434. package/src/src/utils/source-builder.test.ts +0 -657
  435. package/src/src/utils/source-builder.ts +0 -589
  436. package/src/src/utils/string-builder/options.ts +0 -19
  437. package/src/src/utils/string-builder/string-builder.test.ts +0 -188
  438. package/src/src/utils/string-builder/string-builder.ts +0 -165
  439. package/src/src/utils/string-builder/utils.ts +0 -69
  440. package/src/src/utils/string.utils.test.ts +0 -691
  441. package/src/src/utils/string.utils.ts +0 -369
  442. package/src/src/utils/string.utils.types.ts +0 -179
  443. package/src/src/utils/type.utils.ts +0 -93
  444. package/src/tests/openapi.test.ts +0 -50
  445. package/src/tests/schema-factory.ts +0 -185
  446. package/test_runner.js +0 -221
@@ -1,949 +0,0 @@
1
- export type OpenApiReference = {
2
- /**
3
- * Allows for an external definition of this object.
4
- */
5
- $ref: string;
6
- };
7
- export type OpenApiObject<TMarker extends string> =
8
- & Record<`x-${string}`, unknown>
9
- & Partial<OpenApiReference>
10
- & {
11
- __marker?: TMarker;
12
- };
13
-
14
- export type OpenApiDocument = OpenApiObject<'document'> & {
15
- /**
16
- * The OpenAPI (v3.x) version.
17
- */
18
- openapi?: string;
19
- /**
20
- * Provides metadata about the API. The metadata MAY be used by tooling as required.
21
- */
22
- info?: OpenApiInfo;
23
- /**
24
- * An array of Server Objects, which provide connectivity information to a target server. If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of /.
25
- */
26
- servers?: OpenApiServer[];
27
- /**
28
- * The available paths and operations for the API.
29
- */
30
- paths?: Record<string, OpenApiPathItem>;
31
- /**
32
- * The available webhooks for the API.
33
- */
34
- webhooks?: Record<string, OpenApiPathItem>;
35
- /**
36
- * An element to hold various schemas for the specification.
37
- */
38
- components?: OpenApiComponents;
39
- /**
40
- * A declaration of which security mechanisms can be used across the API.
41
- */
42
- security?: Record<string, string[]>[];
43
- /**
44
- * A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.
45
- */
46
- tags?: OpenApiTag[];
47
- /**
48
- * Additional external documentation.
49
- */
50
- externalDocs?: OpenApiExternalDocumentation;
51
- /**
52
- * The JSON Schema version used for schemas.
53
- */
54
- jsonSchemaDialect?: string;
55
-
56
- /**
57
- * The OpenAPI (v2.x) version.
58
- */
59
- swagger?: string;
60
- /**
61
- * (OpenAPI v2) The common base URL path for all API endpoints.
62
- */
63
- basePath?: string;
64
- /**
65
- * (OpenAPI v2) A list of MIME types the API can consume.
66
- */
67
- consumes?: string[];
68
- /**
69
- * (OpenAPI v2) A list of MIME types the API can produce.
70
- */
71
- produces?: string[];
72
- /**
73
- * (OpenAPI v2) An object that defines reusable definitions for data models.
74
- */
75
- definitions?: Record<string, OpenApiSchema>;
76
- /**
77
- * (OpenAPI v2) The host (name or IP) serving the API.
78
- */
79
- host?: string;
80
- /**
81
- * (OpenAPI v2) A list of parameters that can be used across all operations.
82
- */
83
- parameters?: Record<string, OpenApiParameter>;
84
- /**
85
- * (OpenAPI v2) A list of responses that can be used across all operations.
86
- */
87
- responses?: Record<string, OpenApiResponse>;
88
- /**
89
- * (OpenAPI v2) A list of transfer protocols the API supports.
90
- */
91
- schemes?: string[];
92
- /**
93
- * (OpenAPI v2) A list of security definitions that can be used across all operations.
94
- */
95
- securityDefinitions?: Record<string, OpenApiSecurityScheme>;
96
- };
97
-
98
- export type OpenApiInfo = OpenApiObject<'info'> & {
99
- /**
100
- * The title of the API.
101
- */
102
- title?: string;
103
- /**
104
- * The version of the API.
105
- */
106
- version?: string;
107
- /**
108
- * A short description of the API.
109
- */
110
- summary?: string;
111
- /**
112
- * A longer description of the API. Should be different from the summary. CommonMark is allowed.
113
- */
114
- description?: string;
115
- /**
116
- * A URL to the Terms of Service for the API. MUST be in the format of a URL.
117
- */
118
- termsOfService?: string;
119
- /**
120
- * The contact information for the exposed API.
121
- */
122
- contact?: OpenApiContact;
123
- /**
124
- * The license information for the exposed API.
125
- */
126
- license?: OpenApiLicense;
127
- };
128
- export type OpenApiContact = OpenApiObject<'contact'> & {
129
- /**
130
- * The identifying name of the contact person/organization.
131
- */
132
- name?: string;
133
- /**
134
- * The URL pointing to the contact information. MUST be in the format of a URL.
135
- */
136
- url?: string;
137
- /**
138
- * The email address of the contact person/organization. MUST be in the format of an email address.
139
- */
140
- email?: string;
141
- };
142
- export type OpenApiLicense = OpenApiObject<'license'> & {
143
- /**
144
- * The license name used for the API.
145
- */
146
- name?: string;
147
- /**
148
- * A URL to the license used for the API. MUST be in the format of a URL.
149
- */
150
- url?: string;
151
- /**
152
- * The license identifier used for the API.
153
- */
154
- identifier?: string;
155
- };
156
-
157
- export type OpenApiServer = OpenApiObject<'server'> & {
158
- /**
159
- * A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions will be made when a variable is named in {brackets}.
160
- */
161
- url?: string;
162
- /**
163
- * An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.
164
- */
165
- description?: string;
166
- /**
167
- * A map between a variable name and its value. The value is used for substitution in the server's URL template.
168
- */
169
- variables?: Record<string, OpenApiServerVariable>;
170
- };
171
- export type OpenApiServerVariable = OpenApiObject<'server-variable'> & {
172
- /**
173
- * An enumeration of string values to be used if the substitution options are from a limited set.
174
- */
175
- enum?: string[];
176
- /**
177
- * The default value to use for substitution, which SHALL be sent if an alternate value is _not_ supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value SHOULD exist in the enum's values.
178
- */
179
- default?: string;
180
- /**
181
- * An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.
182
- */
183
- description?: string;
184
- };
185
-
186
- export type OpenApiParameterBase<TMarker extends string> = OpenApiObject<'param-base'> & {
187
- /**
188
- * A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
189
- */
190
- description?: string;
191
- /**
192
- * Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.
193
- */
194
- required?: boolean;
195
- /**
196
- * Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.
197
- */
198
- deprecated?: boolean;
199
- /**
200
- * Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision.
201
- */
202
- allowEmptyValue?: boolean;
203
- /**
204
- * Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
205
- */
206
- style?: string;
207
- /**
208
- * When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.
209
- */
210
- explode?: boolean;
211
- /**
212
- * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false.
213
- */
214
- allowReserved?: boolean;
215
- /**
216
- * The schema defining the type used for the parameter.
217
- */
218
- schema?: OpenApiSchema;
219
- /**
220
- * Example of the media type. The example SHOULD match the specified schema and encoding properties if present. The example object is mutually exclusive of the examples object. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.
221
- */
222
- example?: unknown;
223
- /**
224
- * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. The examples object is mutually exclusive of the example object. Furthermore, if referencing a schema which contains an example, the examples value SHALL override the example provided by the schema.
225
- */
226
- examples?: Record<string, OpenApiExample>;
227
- /**
228
- * A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.
229
- */
230
- content?: Record<string, OpenApiMediaType>;
231
- } & { __pbMarker: TMarker };
232
- export type OpenApiHeader = OpenApiParameterBase<'header'>;
233
- export type OpenApiExample = OpenApiObject<'example'> & {
234
- /**
235
- * Short description for the example.
236
- */
237
- summary?: string;
238
- /**
239
- * Long description for the example. CommonMark syntax MAY be used for rich text representation.
240
- */
241
- description?: string;
242
- /**
243
- * Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.
244
- */
245
- value?: unknown;
246
- /**
247
- * A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive.
248
- */
249
- externalValue?: string;
250
- };
251
- export type OpenApiMediaType = OpenApiObject<'media-type'> & {
252
- /**
253
- * The schema defining the type used for the component.
254
- */
255
- schema?: OpenApiSchema;
256
- /**
257
- * Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example object is mutually exclusive of the examples object. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.
258
- */
259
- example?: unknown;
260
- /**
261
- * Examples of the media type. Each example object SHOULD match the media type and specified schema if present. The examples object is mutually exclusive of the example object. Furthermore, if referencing a schema which contains an example, the examples value SHALL override the example provided by the schema.
262
- */
263
- examples?: Record<string, OpenApiExample>;
264
- /**
265
- * A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded.
266
- */
267
- encoding?: Record<string, OpenApiEncoding>;
268
- };
269
- export type OpenApiEncoding = OpenApiObject<'encoding'> & {
270
- /**
271
- * The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types.
272
- */
273
- contentType?: string;
274
- /**
275
- * A map allowing additional information to be provided as headers, for example Content-Disposition. Content-Type is described separately and SHALL be ignored in this section. This property SHALL be ignored if the request body media type is not a multipart.
276
- */
277
- headers?: Record<string, OpenApiHeader>;
278
- /**
279
- * Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.
280
- */
281
- style?: string;
282
- /**
283
- * When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.
284
- */
285
- explode?: boolean;
286
- /**
287
- * Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.
288
- */
289
- allowReserved?: boolean;
290
- };
291
-
292
- export type OpenApiHttpMethod = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace';
293
- export type OpenApiPathItem =
294
- & OpenApiObject<'path-item'>
295
- & {
296
- /**
297
- * An optional, string summary, intended to apply to all operations in this path.
298
- */
299
- summary?: string;
300
- /**
301
- * An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.
302
- */
303
- description?: string;
304
- /**
305
- * Servers MAY be referenced here to override the servers defined at the OpenAPI Object's root level.
306
- */
307
- servers?: OpenApiServer[];
308
- /**
309
- * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's components/parameters.
310
- */
311
- parameters?: OpenApiParameter[];
312
- }
313
- & {
314
- /**
315
- * The list of operations available on the path.
316
- */
317
- [method in OpenApiHttpMethod]?: OpenApiOperation;
318
- };
319
- export type KnownOpenApiParameterTarget = 'path' | 'query' | 'header' | 'cookie' | 'body' | 'form';
320
- export type OpenApiParameterTarget = KnownOpenApiParameterTarget | string;
321
- export type OpenApiParameter = OpenApiParameterBase<'parameter'> & {
322
- /**
323
- * The name of the parameter. Parameter names are case sensitive.
324
- */
325
- name?: string;
326
- /**
327
- * The location of the parameter. Possible values are "query", "header", "path" or "cookie".
328
- */
329
- in?: OpenApiParameterTarget;
330
- };
331
- export type OpenApiOperation = OpenApiObject<'operation'> & {
332
- /**
333
- * A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
334
- */
335
- tags?: string[];
336
- /**
337
- * A short summary of what the operation does.
338
- */
339
- summary?: string;
340
- /**
341
- * A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.
342
- */
343
- description?: string;
344
- /**
345
- * Additional external documentation for this operation.
346
- */
347
- externalDocs?: OpenApiExternalDocumentation;
348
- /**
349
- * Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.
350
- */
351
- operationId?: string;
352
- /**
353
- * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's components/parameters.
354
- */
355
- parameters?: OpenApiParameter[];
356
- /**
357
- * The request body applicable for this operation. The requestBody is only supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody SHALL be ignored by consumers.
358
- */
359
- requestBody?: OpenApiRequestBody;
360
- /**
361
- * The list of possible responses as they are returned from executing this operation.
362
- */
363
- responses: Record<string, OpenApiResponse> & {
364
- /**
365
- * The default response object for all HTTP codes that are not covered individually by the specification. The default MAY be used as a default response object for all HTTP codes that are not covered individually by the specification. The Responses Object MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
366
- */
367
- default?: OpenApiResponse;
368
- };
369
- /**
370
- * A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.
371
- */
372
- callbacks?: Record<string, OpenApiReference | Record<string, OpenApiPathItem>>;
373
- /**
374
- * Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false.
375
- */
376
- deprecated?: boolean;
377
- /**
378
- * A declaration of which security mechanisms can be used for this operation. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
379
- */
380
- security?: Record<string, string[]>[];
381
- /**
382
- * An alternative server array to service this operation. If an alternative server object is specified at the Path Item Object or Root level, it will be overridden by this value.
383
- */
384
- servers?: OpenApiServer[];
385
-
386
- /**
387
- * (OpenAPI v2) The MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
388
- */
389
- consumes?: Record<string, string[]>;
390
- /**
391
- * (OpenAPI v2) The MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
392
- */
393
- produces?: Record<string, string[]>;
394
- schemes?: string[];
395
- };
396
- export type OpenApiExternalDocumentation = OpenApiObject<'external-doc'> & {
397
- /**
398
- * A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.
399
- */
400
- description?: string;
401
- /**
402
- * The URL for the target documentation. Value MUST be in the format of a URL.
403
- */
404
- url: string;
405
- };
406
- export type OpenApiRequestBody = OpenApiObject<'request-body'> & {
407
- /**
408
- * A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.
409
- */
410
- description?: string;
411
- /**
412
- * The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*
413
- */
414
- content: Record<string, OpenApiMediaType>;
415
- /**
416
- * Determines if the request body is required in the request. Defaults to false.
417
- */
418
- required?: boolean;
419
- };
420
- export type OpenApiResponse = OpenApiObject<'response'> & {
421
- /**
422
- * A short description of the response. CommonMark syntax MAY be used for rich text representation.
423
- */
424
- description?: string;
425
- /**
426
- * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name "Content-Type", it SHALL be ignored.
427
- */
428
- headers?: Record<string, OpenApiHeader | OpenApiSchema>;
429
- /**
430
- * A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides text/*
431
- */
432
- content?: Record<string, OpenApiMediaType>;
433
- /**
434
- * A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects.
435
- */
436
- links?: Record<string, OpenApiLink>;
437
-
438
- /**
439
- * (OpenAPI v2) A schema defining the type used for the response body.
440
- */
441
- schema?: OpenApiSchema;
442
- /**
443
- * (OpenAPI v2) Examples of the response message.
444
- */
445
- examples?: Record<string, unknown>;
446
- };
447
- export type OpenApiLink = OpenApiObject<'link'> & {
448
- /**
449
- * A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition.
450
- */
451
- operationRef?: string;
452
- /**
453
- * The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.
454
- */
455
- operationId?: string;
456
- /**
457
- * A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used, whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. The parameter name can be qualified using the parameter location [{in}.]{name} for operations that use the same parameter name in different locations (e.g. path.id).
458
- */
459
- parameters?: Record<string, unknown>;
460
- /**
461
- * A literal value or {expression} to use as a request body when calling the target operation.
462
- */
463
- requestBody?: unknown;
464
- /**
465
- * A description of the link. CommonMark syntax MAY be used for rich text representation.
466
- */
467
- description?: string;
468
- /**
469
- * A server object to be used by the target operation.
470
- */
471
- server?: OpenApiServer;
472
- };
473
-
474
- export type OpenApiComponents = OpenApiObject<'components'> & {
475
- /**
476
- * An object to hold reusable OpenAPI objects.
477
- */
478
- schemas?: Record<string, OpenApiSchema>;
479
- /**
480
- * An object to hold reusable Security Scheme Objects.
481
- */
482
- responses?: Record<string, OpenApiResponse>;
483
- /**
484
- * An object to hold reusable Parameter Objects.
485
- */
486
- parameters?: Record<string, OpenApiParameter>;
487
- /**
488
- * An object to hold reusable Example Objects.
489
- */
490
- examples?: Record<string, OpenApiExample>;
491
- /**
492
- * An object to hold reusable Request Body Objects.
493
- */
494
- requestBodies?: Record<string, OpenApiRequestBody>;
495
- /**
496
- * An object to hold reusable Header Objects.
497
- */
498
- headers?: Record<string, OpenApiHeader>;
499
- /**
500
- * An object to hold reusable Security Scheme Objects.
501
- */
502
- securitySchemes?: Record<string, OpenApiSecurityScheme>;
503
- /**
504
- * An object to hold reusable Link Objects.
505
- */
506
- links?: Record<string, OpenApiLink>;
507
- /**
508
- * An object to hold reusable Callback Objects.
509
- */
510
- callbacks?: Record<string, OpenApiReference | Record<string, OpenApiPathItem>>;
511
- /**
512
- * An object to hold reusable Path Item Objects.
513
- */
514
- pathItems?: Record<string, OpenApiPathItem>;
515
- };
516
-
517
- export type OpenApiSecurityScheme =
518
- | OpenApiHttpSecurityScheme
519
- | OpenApiApiKeySecurityScheme
520
- | OpenApiOAuth2SecurityScheme
521
- | OpenApiOpenIdSecurityScheme
522
- | OpenApiObject<'security-scheme'>;
523
- export type OpenApiBasicSecurityScheme = OpenApiObject<'security-scheme'> & {
524
- /**
525
- * The type of the security scheme.
526
- */
527
- type: 'basic';
528
- /**
529
- * A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
530
- */
531
- description?: string;
532
- };
533
- export type OpenApiHttpSecurityScheme = OpenApiObject<'security-scheme'> & {
534
- /**
535
- * The type of the security scheme.
536
- */
537
- type: 'http';
538
- /**
539
- * A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
540
- */
541
- description?: string;
542
- /**
543
- * The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
544
- */
545
- scheme?: string;
546
- /**
547
- * A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.
548
- */
549
- bearerFormat?: string;
550
- };
551
- export type KnownOpenApiApiKeySource = 'query' | 'header' | 'cookie';
552
- export type OpenApiApiKeySource = KnownOpenApiApiKeySource | string;
553
- export type OpenApiApiKeySecurityScheme = OpenApiObject<'security-scheme'> & {
554
- /**
555
- * The type of the security scheme.
556
- */
557
- type: 'apiKey';
558
- /**
559
- * A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
560
- */
561
- description?: string;
562
- /**
563
- * The name of the header, query or cookie parameter to be used.
564
- */
565
- name?: string;
566
- /**
567
- * The location of the API key. Valid values are "query", "header" or "cookie".
568
- */
569
- in?: OpenApiApiKeySource;
570
- };
571
- export type KnownOpenApiOAuth2SecurityFlow = 'implicit' | 'password' | 'application' | 'accessCode';
572
- export type OpenApiOAuth2SecurityFlow = KnownOpenApiOAuth2SecurityFlow | string;
573
- export type OpenApiOAuth2SecurityScheme = OpenApiObject<'security-scheme'> & {
574
- /**
575
- * The type of the security scheme.
576
- */
577
- type: 'oauth2';
578
- /**
579
- * A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
580
- */
581
- description?: string;
582
- /**
583
- * An object containing configuration information for the flow types supported.
584
- */
585
- flows?: {
586
- /**
587
- * Configuration for the OAuth Implicit flow
588
- */
589
- implicit?: {
590
- /**
591
- * The authorization URL to be used for this flow. This MUST be in the form of a URL.
592
- */
593
- authorizationUrl?: string;
594
- /**
595
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
596
- */
597
- refreshUrl?: string;
598
- /**
599
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
600
- */
601
- scopes?: Record<string, string>;
602
- };
603
- /**
604
- * Configuration for the OAuth Resource Owner Password flow
605
- */
606
- password?: {
607
- /**
608
- * The token URL to be used for this flow. This MUST be in the form of a URL.
609
- */
610
- tokenUrl?: string;
611
- /**
612
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
613
- */
614
- refreshUrl?: string;
615
- /**
616
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
617
- */
618
- scopes?: Record<string, string>;
619
- };
620
- /**
621
- * Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.
622
- */
623
- clientCredentials?: {
624
- /**
625
- * The token URL to be used for this flow. This MUST be in the form of a URL.
626
- */
627
- tokenUrl?: string;
628
- /**
629
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
630
- */
631
- refreshUrl?: string;
632
- /**
633
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
634
- */
635
- scopes?: Record<string, string>;
636
- };
637
- /**
638
- * Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
639
- */
640
- authorizationCode?: {
641
- /**
642
- * The authorization URL to be used for this flow. This MUST be in the form of a URL.
643
- */
644
- authorizationUrl?: string;
645
- /**
646
- * The token URL to be used for this flow. This MUST be in the form of a URL.
647
- */
648
- tokenUrl?: string;
649
- /**
650
- * The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
651
- */
652
- refreshUrl?: string;
653
- /**
654
- * The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
655
- */
656
- scopes?: Record<string, string>;
657
- };
658
- };
659
- /**
660
- * (OpenAPI v2) The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".
661
- */
662
- flow?: OpenApiOAuth2SecurityFlow;
663
- /**
664
- * (OpenAPI v2) The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it.
665
- */
666
- scopes?: Record<string, string>;
667
- /**
668
- * (OpenAPI v2: implicit, accessCode) The authorization URL to be used for this flow. This MUST be in the form of a URL.
669
- */
670
- authorizationUrl?: string;
671
- /**
672
- * (OpenAPI v2: accessCode, password, application) The token URL to be used for this flow. This MUST be in the form of a URL.
673
- */
674
- tokenUrl?: string;
675
- };
676
- export type OpenApiOpenIdSecurityScheme = OpenApiObject<'security-scheme'> & {
677
- /**
678
- * The type of the security scheme.
679
- */
680
- type: 'openIdConnect';
681
- /**
682
- * A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
683
- */
684
- description?: string;
685
- /**
686
- * OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL.
687
- */
688
- openIdConnectUrl: string;
689
- };
690
-
691
- export type OpenApiTag = OpenApiObject<'tag'> & {
692
- /**
693
- * The name of the tag.
694
- */
695
- name?: string;
696
- /**
697
- * A short description for the tag. CommonMark syntax MAY be used for rich text representation.
698
- */
699
- description?: string;
700
- /**
701
- * Additional external documentation for this tag.
702
- */
703
- externalDocs?: OpenApiExternalDocumentation;
704
- };
705
-
706
- export type KnownOpenApiSchemaType = 'object' | 'array' | 'string' | 'number' | 'boolean' | 'integer' | 'null';
707
- export type OpenApiSchemaType = KnownOpenApiSchemaType | string;
708
-
709
- export type KnownOpenApiSchemaFormat =
710
- | 'int32'
711
- | 'int64'
712
- | 'float'
713
- | 'double'
714
- | 'byte'
715
- | 'binary'
716
- | 'date'
717
- | 'date-time'
718
- | 'time'
719
- | 'duration'
720
- | 'email'
721
- | 'idn-email'
722
- | 'hostname'
723
- | 'idn-hostname'
724
- | 'ipv4'
725
- | 'ipv6'
726
- | 'uri'
727
- | 'uri-reference'
728
- | 'iri'
729
- | 'iri-reference'
730
- | 'uri-template'
731
- | 'json-pointer'
732
- | 'relative-json-pointer'
733
- | 'regex'
734
- | 'password';
735
- export type OpenApiSchemaFormat = KnownOpenApiSchemaFormat | string;
736
-
737
- export type OpenApiSchema = OpenApiObject<'schema'> & {
738
- /**
739
- * Type of the schema (e.g., object, array, string, number, boolean, integer).
740
- */
741
- type?: OpenApiSchemaType | OpenApiSchemaType[];
742
- /**
743
- * Properties of the schema (for object type).
744
- */
745
- properties?: Record<string, OpenApiSchema>;
746
- /**
747
- * Schema for array items (for array type).
748
- */
749
- items?: OpenApiSchema;
750
- /**
751
- * Required properties for an object schema.
752
- */
753
- required?: string[];
754
- /**
755
- * Possible values for the schema.
756
- */
757
- enum?: unknown[];
758
- /**
759
- * Format of the schema value.
760
- */
761
- format?: OpenApiSchemaFormat;
762
- /**
763
- * Additional properties allowed for an object schema.
764
- */
765
- additionalProperties?: OpenApiSchema | boolean;
766
- /**
767
- * List of schemas that can match (logical OR).
768
- */
769
- anyOf?: OpenApiSchema[];
770
- /**
771
- * List of mutually exclusive schemas (logical XOR).
772
- */
773
- oneOf?: OpenApiSchema[];
774
- /**
775
- * List of schemas that must all match (logical AND).
776
- */
777
- allOf?: OpenApiSchema[];
778
- /**
779
- * Schema that must not match (logical NOT).
780
- */
781
- not?: OpenApiSchema;
782
- /**
783
- * Minimum length for a string schema.
784
- */
785
- minLength?: number;
786
- /**
787
- * Maximum length for a string schema.
788
- */
789
- maxLength?: number;
790
- /**
791
- * Minimum value for a number schema.
792
- */
793
- minimum?: number;
794
- /**
795
- * Maximum value for a number schema.
796
- */
797
- maximum?: number;
798
- /**
799
- * Whether the minimum value is exclusive or the exclusive minimum.
800
- */
801
- exclusiveMinimum?: boolean | number;
802
- /**
803
- * Whether the maximum value is exclusive or the exclusive maximum.
804
- */
805
- exclusiveMaximum?: boolean | number;
806
- /**
807
- * Regular expression pattern for a string schema.
808
- */
809
- pattern?: string;
810
- /**
811
- * Default value for the schema.
812
- */
813
- default?: unknown;
814
- /**
815
- * Title of the schema.
816
- */
817
- title?: string;
818
- /**
819
- * Description of the schema.
820
- */
821
- description?: string;
822
- /**
823
- * Number that the value must be a multiple of.
824
- */
825
- multipleOf?: number;
826
- /**
827
- * Additional items allowed for an array schema.
828
- */
829
- additionalItems?: OpenApiSchema | boolean;
830
- /**
831
- * Maximum number of items for an array schema.
832
- */
833
- maxItems?: number;
834
- /**
835
- * Minimum number of items for an array schema.
836
- */
837
- minItems?: number;
838
- /**
839
- * Whether the items in an array must be unique.
840
- */
841
- uniqueItems?: boolean;
842
- /**
843
- * Maximum number of properties for an object schema.
844
- */
845
- maxProperties?: number;
846
- /**
847
- * Minimum number of properties for an object schema.
848
- */
849
- minProperties?: number;
850
- /**
851
- * JSON schemas for definitions.
852
- */
853
- definitions?: Record<string, OpenApiSchema>;
854
- /**
855
- * JSON schemas for properties that match a pattern.
856
- */
857
- patternProperties?: Record<string, OpenApiSchema>;
858
- /**
859
- * Dependencies between properties.
860
- */
861
- dependencies?: Record<string, OpenApiSchema>;
862
- /**
863
- * Whether the schema is nullable. (Only used in OpenAPI v3; same as type: [type, 'null'])
864
- */
865
- nullable?: boolean;
866
- /**
867
- * Defines the property used for discriminating between different polymorphic schemas.
868
- * This property is specific to OpenAPI v3 and is used for object schemas that involve polymorphism and inheritance.
869
- */
870
- discriminator?: OpenApiDiscriminator | string;
871
- /**
872
- * Whether the schema is read-only. (Only used in OpenAPI v3.x)
873
- */
874
- readOnly?: boolean;
875
- /**
876
- * Whether the schema is write-only. (Only used in OpenAPI v3.x)
877
- */
878
- writeOnly?: boolean;
879
- /**
880
- * Additional external documentation for this schema.
881
- */
882
- externalDocs?: OpenApiExternalDocumentation;
883
- /**
884
- * Example value for the schema.
885
- */
886
- example?: unknown;
887
- /**
888
- * Examples for the schema.
889
- */
890
- examples?: unknown[];
891
- /**
892
- * XML metadata for the schema.
893
- */
894
- xml?: OpenApiXml;
895
- /**
896
- * The content media type for the schema.
897
- */
898
- contentMediaType?: string;
899
- /**
900
- * A constant value for the schema.
901
- */
902
- const?: unknown;
903
- /**
904
- * Whether the schema is deprecated.
905
- */
906
- deprecated?: boolean;
907
- };
908
-
909
- export type OpenApiDiscriminator = OpenApiObject<'discriminator'> & {
910
- /**
911
- * The name of the property in the payload that will hold the discriminator value.
912
- */
913
- propertyName: string;
914
- /**
915
- * An object to hold mappings between payload values and schema names or references.
916
- */
917
- mapping?: {
918
- /**
919
- * The discriminator value to match.
920
- */
921
- [key: string]: string;
922
- };
923
- };
924
- export type OpenApiXml = OpenApiObject<'xml'> & {
925
- /**
926
- * Replaces the name of the element/attribute used for the described schema property.
927
- */
928
- name?: string;
929
- /**
930
- * The URI of the namespace definition. Value MUST be in the form of an absolute URI.
931
- */
932
- namespace?: string;
933
- /**
934
- * The prefix to be used for the name.
935
- */
936
- prefix?: string;
937
- /**
938
- * Declares whether the property definition translates to an attribute instead of an element.
939
- */
940
- attribute?: boolean;
941
- /**
942
- * Specifies whether to wrap the schema object within an additional XML element. Useful when a schema object needs to be contained within another XML element.
943
- */
944
- wrapped?: boolean;
945
- /**
946
- * Specifies the XML element name to be used when `wrapped` is set to `true`.
947
- */
948
- wrappedName?: string;
949
- };