@goast/core 0.4.0 → 0.4.1-springwebclient1

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 (443) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +67 -67
  3. package/esm/src/transform/helpers.d.ts.map +1 -1
  4. package/esm/src/transform/helpers.js +5 -1
  5. package/esm/src/utils/asset-manager.d.ts +1 -0
  6. package/esm/src/utils/asset-manager.d.ts.map +1 -1
  7. package/esm/src/utils/asset-manager.js +1 -1
  8. package/esm/src/utils/source-builder.d.ts +2 -0
  9. package/esm/src/utils/source-builder.d.ts.map +1 -1
  10. package/esm/src/utils/source-builder.js +7 -1
  11. package/package.json +2 -5
  12. package/script/src/transform/helpers.d.ts.map +1 -1
  13. package/script/src/transform/helpers.js +5 -1
  14. package/script/src/utils/asset-manager.d.ts +1 -0
  15. package/script/src/utils/asset-manager.d.ts.map +1 -1
  16. package/script/src/utils/asset-manager.js +1 -1
  17. package/script/src/utils/source-builder.d.ts +2 -0
  18. package/script/src/utils/source-builder.d.ts.map +1 -1
  19. package/script/src/utils/source-builder.js +8 -1
  20. package/esm/_dnt.test_polyfills.d.ts +0 -18
  21. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  22. package/esm/_dnt.test_polyfills.js +0 -17
  23. package/esm/_dnt.test_shims.d.ts +0 -14
  24. package/esm/_dnt.test_shims.d.ts.map +0 -1
  25. package/esm/_dnt.test_shims.js +0 -69
  26. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
  27. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  28. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -30
  29. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  30. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  31. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
  32. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  33. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  34. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
  35. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
  36. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  37. package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +0 -22
  38. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
  39. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  40. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -53
  41. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
  42. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  43. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -54
  44. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
  45. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  46. package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +0 -26
  47. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
  48. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  49. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -29
  50. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
  51. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  52. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -26
  53. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
  54. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  55. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -32
  56. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  57. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  58. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
  59. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
  60. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  61. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -57
  62. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
  63. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
  64. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -29
  65. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
  66. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
  67. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -26
  68. package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
  69. package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
  70. package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
  71. package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
  72. package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
  73. package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -124
  74. package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
  75. package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
  76. package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -29
  77. package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
  78. package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
  79. package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -11
  80. package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
  81. package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
  82. package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -191
  83. package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
  84. package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
  85. package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -11
  86. package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
  87. package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
  88. package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -12
  89. package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
  90. package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
  91. package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
  92. package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
  93. package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
  94. package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -10
  95. package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
  96. package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
  97. package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
  98. package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
  99. package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
  100. package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -159
  101. package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
  102. package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
  103. package/esm/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -425
  104. package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts +0 -29
  105. package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
  106. package/esm/deps/jsr.io/@std/expect/1.0.5/fn.js +0 -85
  107. package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts +0 -85
  108. package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
  109. package/esm/deps/jsr.io/@std/expect/1.0.5/mod.js +0 -87
  110. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  111. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  112. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
  113. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
  114. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
  115. package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -111
  116. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
  117. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
  118. package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -277
  119. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
  120. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
  121. package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -180
  122. package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
  123. package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
  124. package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +0 -37
  125. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
  126. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
  127. package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -207
  128. package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
  129. package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
  130. package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +0 -2
  131. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
  132. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  133. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -340
  134. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
  135. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
  136. package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -576
  137. package/esm/src/collect/helpers.test.d.ts +0 -2
  138. package/esm/src/collect/helpers.test.d.ts.map +0 -1
  139. package/esm/src/collect/helpers.test.js +0 -77
  140. package/esm/src/transform/helpers.test.d.ts +0 -2
  141. package/esm/src/transform/helpers.test.d.ts.map +0 -1
  142. package/esm/src/transform/helpers.test.js +0 -265
  143. package/esm/src/utils/action-provider.test.d.ts +0 -2
  144. package/esm/src/utils/action-provider.test.d.ts.map +0 -1
  145. package/esm/src/utils/action-provider.test.js +0 -28
  146. package/esm/src/utils/common.utils.test.d.ts +0 -2
  147. package/esm/src/utils/common.utils.test.d.ts.map +0 -1
  148. package/esm/src/utils/common.utils.test.js +0 -18
  149. package/esm/src/utils/condition.test.d.ts +0 -2
  150. package/esm/src/utils/condition.test.d.ts.map +0 -1
  151. package/esm/src/utils/condition.test.js +0 -31
  152. package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
  153. package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
  154. package/esm/src/utils/endpoint.utils.test.js +0 -31
  155. package/esm/src/utils/factory.test.d.ts +0 -2
  156. package/esm/src/utils/factory.test.d.ts.map +0 -1
  157. package/esm/src/utils/factory.test.js +0 -34
  158. package/esm/src/utils/generator.utils.test.d.ts +0 -2
  159. package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
  160. package/esm/src/utils/generator.utils.test.js +0 -13
  161. package/esm/src/utils/object.utils.test.d.ts +0 -2
  162. package/esm/src/utils/object.utils.test.d.ts.map +0 -1
  163. package/esm/src/utils/object.utils.test.js +0 -29
  164. package/esm/src/utils/schema.utils.test.d.ts +0 -2
  165. package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
  166. package/esm/src/utils/schema.utils.test.js +0 -78
  167. package/esm/src/utils/source-builder.test.d.ts +0 -2
  168. package/esm/src/utils/source-builder.test.d.ts.map +0 -1
  169. package/esm/src/utils/source-builder.test.js +0 -506
  170. package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
  171. package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  172. package/esm/src/utils/string-builder/string-builder.test.js +0 -164
  173. package/esm/src/utils/string.utils.test.d.ts +0 -2
  174. package/esm/src/utils/string.utils.test.d.ts.map +0 -1
  175. package/esm/src/utils/string.utils.test.js +0 -528
  176. package/esm/tests/openapi.test.d.ts +0 -2
  177. package/esm/tests/openapi.test.d.ts.map +0 -1
  178. package/esm/tests/openapi.test.js +0 -33
  179. package/esm/tests/schema-factory.d.ts +0 -42
  180. package/esm/tests/schema-factory.d.ts.map +0 -1
  181. package/esm/tests/schema-factory.js +0 -138
  182. package/script/_dnt.test_polyfills.d.ts +0 -18
  183. package/script/_dnt.test_polyfills.d.ts.map +0 -1
  184. package/script/_dnt.test_polyfills.js +0 -18
  185. package/script/_dnt.test_shims.d.ts +0 -14
  186. package/script/_dnt.test_shims.d.ts.map +0 -1
  187. package/script/_dnt.test_shims.js +0 -79
  188. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +0 -26
  189. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  190. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -34
  191. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  192. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  193. package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
  194. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  195. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  196. package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
  197. package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
  198. package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  199. package/script/deps/jsr.io/@std/assert/1.0.6/false.js +0 -25
  200. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
  201. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  202. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -56
  203. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
  204. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  205. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -57
  206. package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
  207. package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  208. package/script/deps/jsr.io/@std/assert/1.0.6/match.js +0 -29
  209. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
  210. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  211. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -32
  212. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
  213. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  214. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -29
  215. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
  216. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  217. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -35
  218. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  219. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  220. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
  221. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
  222. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  223. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -60
  224. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
  225. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
  226. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -32
  227. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
  228. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
  229. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -29
  230. package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
  231. package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
  232. package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -13
  233. package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
  234. package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
  235. package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -140
  236. package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
  237. package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
  238. package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -33
  239. package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
  240. package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
  241. package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -15
  242. package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
  243. package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
  244. package/script/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -194
  245. package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
  246. package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
  247. package/script/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -15
  248. package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
  249. package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
  250. package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -17
  251. package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
  252. package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
  253. package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
  254. package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
  255. package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
  256. package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -14
  257. package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
  258. package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
  259. package/script/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -4
  260. package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
  261. package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
  262. package/script/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -166
  263. package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
  264. package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
  265. package/script/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -429
  266. package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts +0 -29
  267. package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
  268. package/script/deps/jsr.io/@std/expect/1.0.5/fn.js +0 -88
  269. package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts +0 -85
  270. package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
  271. package/script/deps/jsr.io/@std/expect/1.0.5/mod.js +0 -90
  272. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  273. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  274. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
  275. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
  276. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
  277. package/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -116
  278. package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
  279. package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
  280. package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -284
  281. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
  282. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
  283. package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -186
  284. package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
  285. package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
  286. package/script/deps/jsr.io/@std/internal/1.0.4/format.js +0 -41
  287. package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
  288. package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
  289. package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -220
  290. package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
  291. package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
  292. package/script/deps/jsr.io/@std/internal/1.0.4/types.js +0 -3
  293. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
  294. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  295. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -345
  296. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
  297. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
  298. package/script/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -587
  299. package/script/src/collect/helpers.test.d.ts +0 -2
  300. package/script/src/collect/helpers.test.d.ts.map +0 -1
  301. package/script/src/collect/helpers.test.js +0 -79
  302. package/script/src/transform/helpers.test.d.ts +0 -2
  303. package/script/src/transform/helpers.test.d.ts.map +0 -1
  304. package/script/src/transform/helpers.test.js +0 -267
  305. package/script/src/utils/action-provider.test.d.ts +0 -2
  306. package/script/src/utils/action-provider.test.d.ts.map +0 -1
  307. package/script/src/utils/action-provider.test.js +0 -30
  308. package/script/src/utils/common.utils.test.d.ts +0 -2
  309. package/script/src/utils/common.utils.test.d.ts.map +0 -1
  310. package/script/src/utils/common.utils.test.js +0 -20
  311. package/script/src/utils/condition.test.d.ts +0 -2
  312. package/script/src/utils/condition.test.d.ts.map +0 -1
  313. package/script/src/utils/condition.test.js +0 -33
  314. package/script/src/utils/endpoint.utils.test.d.ts +0 -2
  315. package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
  316. package/script/src/utils/endpoint.utils.test.js +0 -33
  317. package/script/src/utils/factory.test.d.ts +0 -2
  318. package/script/src/utils/factory.test.d.ts.map +0 -1
  319. package/script/src/utils/factory.test.js +0 -36
  320. package/script/src/utils/generator.utils.test.d.ts +0 -2
  321. package/script/src/utils/generator.utils.test.d.ts.map +0 -1
  322. package/script/src/utils/generator.utils.test.js +0 -15
  323. package/script/src/utils/object.utils.test.d.ts +0 -2
  324. package/script/src/utils/object.utils.test.d.ts.map +0 -1
  325. package/script/src/utils/object.utils.test.js +0 -31
  326. package/script/src/utils/schema.utils.test.d.ts +0 -2
  327. package/script/src/utils/schema.utils.test.d.ts.map +0 -1
  328. package/script/src/utils/schema.utils.test.js +0 -80
  329. package/script/src/utils/source-builder.test.d.ts +0 -2
  330. package/script/src/utils/source-builder.test.d.ts.map +0 -1
  331. package/script/src/utils/source-builder.test.js +0 -508
  332. package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
  333. package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  334. package/script/src/utils/string-builder/string-builder.test.js +0 -166
  335. package/script/src/utils/string.utils.test.d.ts +0 -2
  336. package/script/src/utils/string.utils.test.d.ts.map +0 -1
  337. package/script/src/utils/string.utils.test.js +0 -530
  338. package/script/tests/openapi.test.d.ts +0 -2
  339. package/script/tests/openapi.test.d.ts.map +0 -1
  340. package/script/tests/openapi.test.js +0 -35
  341. package/script/tests/schema-factory.d.ts +0 -42
  342. package/script/tests/schema-factory.d.ts.map +0 -1
  343. package/script/tests/schema-factory.js +0 -162
  344. package/src/_dnt.shims.ts +0 -69
  345. package/src/_dnt.test_polyfills.ts +0 -43
  346. package/src/_dnt.test_shims.ts +0 -72
  347. package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +0 -31
  348. package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
  349. package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
  350. package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +0 -26
  351. package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +0 -64
  352. package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +0 -65
  353. package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +0 -30
  354. package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +0 -33
  355. package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +0 -30
  356. package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +0 -42
  357. package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
  358. package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +0 -67
  359. package/src/deps/jsr.io/@std/expect/1.0.5/_assert_equals.ts +0 -38
  360. package/src/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.ts +0 -35
  361. package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
  362. package/src/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.ts +0 -147
  363. package/src/deps/jsr.io/@std/expect/1.0.5/_build_message.ts +0 -51
  364. package/src/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.ts +0 -19
  365. package/src/deps/jsr.io/@std/expect/1.0.5/_equal.ts +0 -229
  366. package/src/deps/jsr.io/@std/expect/1.0.5/_extend.ts +0 -16
  367. package/src/deps/jsr.io/@std/expect/1.0.5/_inspect_args.ts +0 -15
  368. package/src/deps/jsr.io/@std/expect/1.0.5/_matchers.ts +0 -828
  369. package/src/deps/jsr.io/@std/expect/1.0.5/_mock_util.ts +0 -22
  370. package/src/deps/jsr.io/@std/expect/1.0.5/_types.ts +0 -917
  371. package/src/deps/jsr.io/@std/expect/1.0.5/_utils.ts +0 -201
  372. package/src/deps/jsr.io/@std/expect/1.0.5/expect.ts +0 -511
  373. package/src/deps/jsr.io/@std/expect/1.0.5/fn.ts +0 -91
  374. package/src/deps/jsr.io/@std/expect/1.0.5/mod.ts +0 -88
  375. package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
  376. package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +0 -134
  377. package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +0 -317
  378. package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +0 -204
  379. package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +0 -39
  380. package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +0 -233
  381. package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +0 -18
  382. package/src/deps/jsr.io/@std/testing/1.0.3/_test_suite.ts +0 -389
  383. package/src/deps/jsr.io/@std/testing/1.0.3/bdd.ts +0 -1202
  384. package/src/mod.ts +0 -33
  385. package/src/src/ast/node.ts +0 -46
  386. package/src/src/codegen/config.ts +0 -28
  387. package/src/src/codegen/endpoints-generator.ts +0 -72
  388. package/src/src/codegen/generator.ts +0 -181
  389. package/src/src/codegen/internal-utils.ts +0 -6
  390. package/src/src/codegen/schemas-generator.ts +0 -87
  391. package/src/src/codegen/services-generator.ts +0 -77
  392. package/src/src/codegen/types.ts +0 -37
  393. package/src/src/collect/collector.ts +0 -142
  394. package/src/src/collect/helpers.test.ts +0 -91
  395. package/src/src/collect/helpers.ts +0 -36
  396. package/src/src/collect/types.ts +0 -21
  397. package/src/src/internal-utils.ts +0 -5
  398. package/src/src/parse/deref-proxy.ts +0 -64
  399. package/src/src/parse/openapi-types.ts +0 -949
  400. package/src/src/parse/parser.ts +0 -220
  401. package/src/src/parse/types.ts +0 -27
  402. package/src/src/transform/api-types.ts +0 -243
  403. package/src/src/transform/helpers.test.ts +0 -316
  404. package/src/src/transform/helpers.ts +0 -211
  405. package/src/src/transform/transform-document.ts +0 -35
  406. package/src/src/transform/transform-endpoint.ts +0 -331
  407. package/src/src/transform/transform-schema.ts +0 -217
  408. package/src/src/transform/transformer.ts +0 -52
  409. package/src/src/transform/types.ts +0 -52
  410. package/src/src/utils/action-provider.test.ts +0 -32
  411. package/src/src/utils/action-provider.ts +0 -58
  412. package/src/src/utils/array.utils.ts +0 -7
  413. package/src/src/utils/asset-manager.ts +0 -51
  414. package/src/src/utils/class.utils.ts +0 -40
  415. package/src/src/utils/common.utils.test.ts +0 -22
  416. package/src/src/utils/common.utils.ts +0 -86
  417. package/src/src/utils/condition.test.ts +0 -36
  418. package/src/src/utils/condition.ts +0 -7
  419. package/src/src/utils/endpoint.utils.test.ts +0 -36
  420. package/src/src/utils/endpoint.utils.ts +0 -10
  421. package/src/src/utils/error.utils.ts +0 -3
  422. package/src/src/utils/factory.test.ts +0 -31
  423. package/src/src/utils/factory.ts +0 -42
  424. package/src/src/utils/file-system.utils.ts +0 -48
  425. package/src/src/utils/generator.utils.test.ts +0 -16
  426. package/src/src/utils/generator.utils.ts +0 -6
  427. package/src/src/utils/object.utils.test.ts +0 -33
  428. package/src/src/utils/object.utils.ts +0 -32
  429. package/src/src/utils/schema.utils.test.ts +0 -87
  430. package/src/src/utils/schema.utils.ts +0 -142
  431. package/src/src/utils/source-builder.test.ts +0 -658
  432. package/src/src/utils/source-builder.ts +0 -589
  433. package/src/src/utils/string-builder/options.ts +0 -19
  434. package/src/src/utils/string-builder/string-builder.test.ts +0 -189
  435. package/src/src/utils/string-builder/string-builder.ts +0 -165
  436. package/src/src/utils/string-builder/utils.ts +0 -69
  437. package/src/src/utils/string.utils.test.ts +0 -691
  438. package/src/src/utils/string.utils.ts +0 -369
  439. package/src/src/utils/string.utils.types.ts +0 -179
  440. package/src/src/utils/type.utils.ts +0 -93
  441. package/src/tests/openapi.test.ts +0 -50
  442. package/src/tests/schema-factory.ts +0 -185
  443. package/test_runner.js +0 -221
@@ -1,530 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../../_dnt.test_polyfills.js");
4
- const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.5/mod.js");
5
- const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.3/bdd.js");
6
- const string_utils_js_1 = require("./string.utils.js");
7
- (0, bdd_js_1.describe)('getWords', () => {
8
- (0, bdd_js_1.it)('should return an empty array for a nullish string', () => {
9
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(null)).toEqual([]);
10
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(undefined)).toEqual([]);
11
- });
12
- (0, bdd_js_1.it)('should return an empty array for an empty string', () => {
13
- const inputStr = '';
14
- const expectedOutput = [];
15
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
16
- });
17
- (0, bdd_js_1.it)('should split camelCase strings into words', () => {
18
- const inputStr = 'camelCaseString';
19
- const expectedOutput = ['camel', 'Case', 'String'];
20
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
21
- });
22
- (0, bdd_js_1.it)('should split PascalCase strings into words', () => {
23
- const inputStr = 'PascalCaseString';
24
- const expectedOutput = ['Pascal', 'Case', 'String'];
25
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
26
- });
27
- (0, bdd_js_1.it)('should split snake_case strings into words', () => {
28
- const inputStr = 'snake_case_string';
29
- const expectedOutput = ['snake', 'case', 'string'];
30
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
31
- });
32
- (0, bdd_js_1.it)('should split kebab-case strings into words', () => {
33
- const inputStr = 'kebab-case-string';
34
- const expectedOutput = ['kebab', 'case', 'string'];
35
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
36
- });
37
- (0, bdd_js_1.it)('should remove non-alphanumerical characters and split into words', () => {
38
- const inputStr = 'some!@#weird?%case';
39
- const expectedOutput = ['some', 'weird', 'case'];
40
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
41
- });
42
- (0, bdd_js_1.it)('should remove leading numbers and non-alphanumeric characters', () => {
43
- const inputStr = '123-someWords';
44
- const expectedOutput = ['some', 'Words'];
45
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
46
- });
47
- (0, bdd_js_1.it)('should treat numbers following a word as a separate word', () => {
48
- const inputStr = 'someWords123';
49
- const expectedOutput = ['some', 'Words', '123'];
50
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
51
- });
52
- (0, bdd_js_1.it)('should handle strings containing only numbers and/or non-alphanumeric characters', () => {
53
- const inputStr = '123456@!$#';
54
- const expectedOutput = [];
55
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
56
- });
57
- (0, bdd_js_1.it)('should handle words entirely in uppercase', () => {
58
- const inputStr = 'UPPERCASE';
59
- const expectedOutput = ['UPPERCASE'];
60
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
61
- });
62
- (0, bdd_js_1.it)('should handle string with words in uppercase and lowercase', () => {
63
- const inputStr = 'lowercaseUPPERCASELowercase';
64
- const expectedOutput = ['lowercase', 'UPPERCASE', 'Lowercase'];
65
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
66
- });
67
- (0, bdd_js_1.it)('should handle string with words in uppercase and lowercase seperated by some other characters', () => {
68
- const inputStr = 'lowercaseUPPERCASE!@#$%^&*()lowercase';
69
- const expectedOutput = ['lowercase', 'UPPERCASE', 'lowercase'];
70
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
71
- });
72
- (0, bdd_js_1.it)('should handle string with words in uppercase and lowercase seperated by numbers', () => {
73
- const inputStr = 'lowercaseUPPERCASE123lowercase';
74
- const expectedOutput = ['lowercase', 'UPPERCASE', '123', 'lowercase'];
75
- (0, mod_js_1.expect)((0, string_utils_js_1.getWords)(inputStr)).toEqual(expectedOutput);
76
- });
77
- });
78
- (0, bdd_js_1.describe)('wordToCasing', () => {
79
- const testCases = [
80
- ['helloWorld', 'unchanged', 'helloWorld'],
81
- ['helloWorld', 'all-lower', 'helloworld'],
82
- ['helloWorld', 'all-upper', 'HELLOWORLD'],
83
- ['helloWorld', 'first-upper', 'HelloWorld'],
84
- ['helloWorld', 'first-lower', 'helloWorld'],
85
- ['helloWorld', 'first-upper-then-lower', 'Helloworld'],
86
- ['helloWorld', 'first-lower-then-upper', 'hELLOWORLD'],
87
- ['helloWorld', 'first-upper-alternating', 'HeLlOwOrLd'],
88
- ['helloWorld', 'first-lower-alternating', 'hElLoWoRlD'],
89
- ];
90
- for (const [inputStr, casing, expectedOutput] of testCases) {
91
- (0, bdd_js_1.it)(`should convert string to the specified casing: ${casing}`, () => {
92
- (0, mod_js_1.expect)((0, string_utils_js_1.wordToCasing)(inputStr, casing)).toBe(expectedOutput);
93
- });
94
- }
95
- (0, bdd_js_1.it)('should handle nullish string input', () => {
96
- (0, mod_js_1.expect)((0, string_utils_js_1.wordToCasing)(null, 'all-lower')).toBe('');
97
- (0, mod_js_1.expect)((0, string_utils_js_1.wordToCasing)(undefined, 'all-lower')).toBe('');
98
- });
99
- (0, bdd_js_1.it)('should handle empty string input', () => {
100
- const inputStr = '';
101
- const casing = 'all-lower';
102
- const expectedOutput = '';
103
- (0, mod_js_1.expect)((0, string_utils_js_1.wordToCasing)(inputStr, casing)).toBe(expectedOutput);
104
- });
105
- });
106
- (0, bdd_js_1.describe)('toCamelCase', () => {
107
- (0, bdd_js_1.it)('should convert string to camelCase', () => {
108
- const inputStr = 'some_string-toCamel_case';
109
- const expectedOutput = 'someStringToCamelCase';
110
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr)).toBe(expectedOutput);
111
- });
112
- (0, bdd_js_1.it)('should convert string to camelCase with all characters except the first one in lowercase for each word', () => {
113
- const inputStr = 'Another_STRING-toCAMEL_case';
114
- const expectedOutput = 'anotherStringToCamelCase';
115
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr)).toBe(expectedOutput);
116
- });
117
- (0, bdd_js_1.it)('should convert string to camelCase with all characters except the first one in lowercase for each word when providing the lowerCase option', () => {
118
- const inputStr = 'Another_STRING-toCAMEL_case';
119
- const options = { keepOriginalCase: false };
120
- const expectedOutput = 'anotherStringToCamelCase';
121
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr, options)).toBe(expectedOutput);
122
- });
123
- (0, bdd_js_1.it)('should convert string to camelCase with the original casing for characters except the first one for each word when providing the lowerCase option', () => {
124
- const inputStr = 'yetAnother_STRING-toCAMEL_case';
125
- const options = { keepOriginalCase: true };
126
- const expectedOutput = 'yetAnotherSTRINGToCAMELCase';
127
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr, options)).toBe(expectedOutput);
128
- });
129
- (0, bdd_js_1.it)('should add prefix and suffix to the camelCase string', () => {
130
- const inputStr = 'example_string-forCamel_case';
131
- const options = {
132
- prefix: 'pre-',
133
- suffix: '-post',
134
- };
135
- const expectedOutput = 'pre-exampleStringForCamelCase-post';
136
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr, options)).toBe(expectedOutput);
137
- });
138
- (0, bdd_js_1.it)('should handle nullish string input', () => {
139
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(null)).toBe('');
140
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(undefined)).toBe('');
141
- });
142
- (0, bdd_js_1.it)('should handle empty string input', () => {
143
- const inputStr = '';
144
- const expectedOutput = '';
145
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr)).toBe(expectedOutput);
146
- });
147
- (0, bdd_js_1.it)('should handle nullish string input with prefix and suffix', () => {
148
- const options = {
149
- prefix: 'start-',
150
- suffix: '-end',
151
- };
152
- const expectedOutput = 'start--end';
153
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(null, options)).toBe(expectedOutput);
154
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(undefined, options)).toBe(expectedOutput);
155
- });
156
- (0, bdd_js_1.it)('should handle empty string input with prefix and suffix', () => {
157
- const inputStr = '';
158
- const options = {
159
- prefix: 'start-',
160
- suffix: '-end',
161
- };
162
- const expectedOutput = 'start--end';
163
- (0, mod_js_1.expect)((0, string_utils_js_1.toCamelCase)(inputStr, options)).toBe(expectedOutput);
164
- });
165
- });
166
- (0, bdd_js_1.describe)('toPascalCase', () => {
167
- (0, bdd_js_1.it)('should convert string to PascalCase', () => {
168
- const inputStr = 'some_string-toPascal_case';
169
- const expectedOutput = 'SomeStringToPascalCase';
170
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr)).toBe(expectedOutput);
171
- });
172
- (0, bdd_js_1.it)('should convert string to PascalCase with all characters except the first one in lowercase for each word', () => {
173
- const inputStr = 'Another_STRING-toPASCAL_case';
174
- const expectedOutput = 'AnotherStringToPascalCase';
175
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr)).toBe(expectedOutput);
176
- });
177
- (0, bdd_js_1.it)('should convert string to PascalCase with all characters except the first one in lowercase for each word when providing the lowerCase option', () => {
178
- const inputStr = 'Another_STRING-toPASCAL_case';
179
- const options = { keepOriginalCase: false };
180
- const expectedOutput = 'AnotherStringToPascalCase';
181
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr, options)).toBe(expectedOutput);
182
- });
183
- (0, bdd_js_1.it)('should convert string to PascalCase with the original casing for characters except the first one for each word when providing the lowerCase option', () => {
184
- const inputStr = 'YetAnother_STRING-toPASCAL_case';
185
- const options = { keepOriginalCase: true };
186
- const expectedOutput = 'YetAnotherSTRINGToPASCALCase';
187
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr, options)).toBe(expectedOutput);
188
- });
189
- (0, bdd_js_1.it)('should add prefix and suffix to the PascalCase string', () => {
190
- const inputStr = 'example_STRING-forPASCAL_case';
191
- const options = {
192
- prefix: 'pre-',
193
- suffix: '-post',
194
- };
195
- const expectedOutput = 'pre-ExampleStringForPascalCase-post';
196
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr, options)).toBe(expectedOutput);
197
- });
198
- (0, bdd_js_1.it)('should handle nullish string input', () => {
199
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(null)).toBe('');
200
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(undefined)).toBe('');
201
- });
202
- (0, bdd_js_1.it)('should handle empty string input', () => {
203
- const inputStr = '';
204
- const expectedOutput = '';
205
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr)).toBe(expectedOutput);
206
- });
207
- (0, bdd_js_1.it)('should handle nullish string input with prefix and suffix', () => {
208
- const options = {
209
- prefix: 'start-',
210
- suffix: '-end',
211
- };
212
- const expectedOutput = 'start--end';
213
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(null, options)).toBe(expectedOutput);
214
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(undefined, options)).toBe(expectedOutput);
215
- });
216
- (0, bdd_js_1.it)('should handle empty string input with prefix and suffix', () => {
217
- const inputStr = '';
218
- const options = {
219
- prefix: 'start-',
220
- suffix: '-end',
221
- };
222
- const expectedOutput = 'start--end';
223
- (0, mod_js_1.expect)((0, string_utils_js_1.toPascalCase)(inputStr, options)).toBe(expectedOutput);
224
- });
225
- });
226
- (0, bdd_js_1.describe)('toKebabCase', () => {
227
- (0, bdd_js_1.it)('should convert string to kebab-case', () => {
228
- const inputStr = 'someString_toKebabCase';
229
- const expectedOutput = 'some-string-to-kebab-case';
230
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr)).toBe(expectedOutput);
231
- });
232
- (0, bdd_js_1.it)('should convert string to kebab-case with specific casing for the first word', () => {
233
- const inputStr = 'anotherString_toKebabCase';
234
- const options = { firstWordCasing: 'all-upper' };
235
- const expectedOutput = 'ANOTHER-string-to-kebab-case';
236
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr, options)).toBe(expectedOutput);
237
- });
238
- (0, bdd_js_1.it)('should convert string to kebab-case with specific casing for all words', () => {
239
- const inputStr = 'yetAnotherString_toKebabCase';
240
- const options = { wordCasing: 'all-upper' };
241
- const expectedOutput = 'YET-ANOTHER-STRING-TO-KEBAB-CASE';
242
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr, options)).toBe(expectedOutput);
243
- });
244
- (0, bdd_js_1.it)('should convert string to kebab-case with specific casing for the first word and different casing for the rest of the words', () => {
245
- const inputStr = 'mixedCasing_string-toKebabCase';
246
- const options = {
247
- wordCasing: 'first-upper-alternating',
248
- firstWordCasing: 'all-upper',
249
- };
250
- const expectedOutput = 'MIXED-CaSiNg-StRiNg-To-KeBaB-CaSe';
251
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr, options)).toBe(expectedOutput);
252
- });
253
- (0, bdd_js_1.it)('should add prefix and suffix to the kebab-case string', () => {
254
- const inputStr = 'exampleString_forKebabCase';
255
- const options = {
256
- wordCasing: 'all-lower',
257
- prefix: 'pre-',
258
- suffix: '-post',
259
- };
260
- const expectedOutput = 'pre-example-string-for-kebab-case-post';
261
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr, options)).toBe(expectedOutput);
262
- });
263
- (0, bdd_js_1.it)('should handle nullish string input', () => {
264
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(null)).toBe('');
265
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(undefined)).toBe('');
266
- });
267
- (0, bdd_js_1.it)('should handle empty string input', () => {
268
- const inputStr = '';
269
- const expectedOutput = '';
270
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr)).toBe(expectedOutput);
271
- });
272
- (0, bdd_js_1.it)('should handle nullish string input with prefix and suffix', () => {
273
- const options = {
274
- wordCasing: 'all-lower',
275
- prefix: 'start-',
276
- suffix: '-end',
277
- };
278
- const expectedOutput = 'start--end';
279
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(null, options)).toBe(expectedOutput);
280
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(undefined, options)).toBe(expectedOutput);
281
- });
282
- (0, bdd_js_1.it)('should handle empty string input with prefix and suffix', () => {
283
- const inputStr = '';
284
- const options = {
285
- wordCasing: 'all-lower',
286
- prefix: 'start-',
287
- suffix: '-end',
288
- };
289
- const expectedOutput = 'start--end';
290
- (0, mod_js_1.expect)((0, string_utils_js_1.toKebabCase)(inputStr, options)).toBe(expectedOutput);
291
- });
292
- });
293
- (0, bdd_js_1.describe)('toSnakeCase', () => {
294
- (0, bdd_js_1.it)('should convert string to snake_case', () => {
295
- const inputStr = 'someString_toSnakeCase';
296
- const expectedOutput = 'SOME_STRING_TO_SNAKE_CASE';
297
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr)).toBe(expectedOutput);
298
- });
299
- (0, bdd_js_1.it)('should convert string to snake_case with specific casing for the first word', () => {
300
- const inputStr = 'anotherString_toSnakeCase';
301
- const options = { firstWordCasing: 'all-lower' };
302
- const expectedOutput = 'another_STRING_TO_SNAKE_CASE';
303
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr, options)).toBe(expectedOutput);
304
- });
305
- (0, bdd_js_1.it)('should convert string to snake_case with specific casing for all words', () => {
306
- const inputStr = 'yetAnotherString_toSnakeCase';
307
- const options = { wordCasing: 'all-lower' };
308
- const expectedOutput = 'yet_another_string_to_snake_case';
309
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr, options)).toBe(expectedOutput);
310
- });
311
- (0, bdd_js_1.it)('should add prefix and suffix to the snake_case string', () => {
312
- const inputStr = 'exampleString_forSnakeCase';
313
- const options = {
314
- wordCasing: 'all-upper',
315
- prefix: 'pre_',
316
- suffix: '_post',
317
- };
318
- const expectedOutput = 'pre_EXAMPLE_STRING_FOR_SNAKE_CASE_post';
319
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr, options)).toBe(expectedOutput);
320
- });
321
- (0, bdd_js_1.it)('should handle nullish string input', () => {
322
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(null)).toBe('');
323
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(undefined)).toBe('');
324
- });
325
- (0, bdd_js_1.it)('should handle empty string input', () => {
326
- const inputStr = '';
327
- const expectedOutput = '';
328
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr)).toBe(expectedOutput);
329
- });
330
- (0, bdd_js_1.it)('should handle nullish string input with prefix and suffix', () => {
331
- const options = {
332
- wordCasing: 'all-upper',
333
- prefix: 'start_',
334
- suffix: '_end',
335
- };
336
- const expectedOutput = 'start__end';
337
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(null, options)).toBe(expectedOutput);
338
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(undefined, options)).toBe(expectedOutput);
339
- });
340
- (0, bdd_js_1.it)('should handle empty string input with prefix and suffix', () => {
341
- const inputStr = '';
342
- const options = {
343
- wordCasing: 'all-upper',
344
- prefix: 'start_',
345
- suffix: '_end',
346
- };
347
- const expectedOutput = 'start__end';
348
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr, options)).toBe(expectedOutput);
349
- });
350
- (0, bdd_js_1.it)('should convert string to snake_case with specific casing for the first word and different casing for the rest of the words', () => {
351
- const inputStr = 'mixedCasing_string-toSnakeCase';
352
- const options = {
353
- wordCasing: 'first-lower-alternating',
354
- firstWordCasing: 'all-lower',
355
- };
356
- const expectedOutput = 'mixed_cAsInG_sTrInG_tO_sNaKe_cAsE';
357
- (0, mod_js_1.expect)((0, string_utils_js_1.toSnakeCase)(inputStr, options)).toBe(expectedOutput);
358
- });
359
- });
360
- (0, bdd_js_1.describe)('toCustomCase', () => {
361
- (0, bdd_js_1.it)('should convert string to custom case with a custom separator', () => {
362
- const inputStr = 'someString_toCustomCase';
363
- const options = {
364
- wordCasing: 'first-upper-then-lower',
365
- wordSeparator: '+',
366
- };
367
- const expectedOutput = 'Some+String+To+Custom+Case';
368
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
369
- });
370
- (0, bdd_js_1.it)('should convert string to custom case with specific casing for the first word', () => {
371
- const inputStr = 'anotherString_toCustomCase';
372
- const options = {
373
- wordCasing: 'all-upper',
374
- firstWordCasing: 'all-lower',
375
- wordSeparator: '*',
376
- };
377
- const expectedOutput = 'another*STRING*TO*CUSTOM*CASE';
378
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
379
- });
380
- (0, bdd_js_1.it)('should convert string to custom case with a custom casing function', () => {
381
- const inputStr = 'customCasingFunction_example';
382
- const options = {
383
- wordCasing: (index) => (index % 2 === 0 ? 'all-lower' : 'all-upper'),
384
- wordSeparator: '-',
385
- };
386
- const expectedOutput = 'custom-CASING-function-EXAMPLE';
387
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
388
- });
389
- (0, bdd_js_1.it)('should add prefix and suffix to the custom case string', () => {
390
- const inputStr = 'exampleString_forCustomCase';
391
- const options = {
392
- wordCasing: 'first-upper-alternating',
393
- wordSeparator: '/',
394
- prefix: '<',
395
- suffix: '>',
396
- };
397
- const expectedOutput = '<ExAmPlE/StRiNg/FoR/CuStOm/CaSe>';
398
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
399
- });
400
- (0, bdd_js_1.it)('should handle nullish string input', () => {
401
- const options = {
402
- wordCasing: 'all-lower',
403
- wordSeparator: '-',
404
- };
405
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(null, options)).toBe('');
406
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(undefined, options)).toBe('');
407
- });
408
- (0, bdd_js_1.it)('should handle empty string input', () => {
409
- const inputStr = '';
410
- const options = {
411
- wordCasing: 'all-lower',
412
- wordSeparator: '-',
413
- };
414
- const expectedOutput = '';
415
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
416
- });
417
- (0, bdd_js_1.it)('should handle nullish string input with prefix and suffix', () => {
418
- const options = {
419
- wordCasing: 'all-lower',
420
- wordSeparator: '-',
421
- prefix: 'start-',
422
- suffix: '-end',
423
- };
424
- const expectedOutput = 'start--end';
425
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(null, options)).toBe(expectedOutput);
426
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(undefined, options)).toBe(expectedOutput);
427
- });
428
- (0, bdd_js_1.it)('should handle empty string input with prefix and suffix', () => {
429
- const inputStr = '';
430
- const options = {
431
- wordCasing: 'all-lower',
432
- wordSeparator: '-',
433
- prefix: 'start-',
434
- suffix: '-end',
435
- };
436
- const expectedOutput = 'start--end';
437
- (0, mod_js_1.expect)((0, string_utils_js_1.toCustomCase)(inputStr, options)).toBe(expectedOutput);
438
- });
439
- });
440
- (0, bdd_js_1.describe)('toCasing', () => {
441
- (0, bdd_js_1.it)('converts to camel case', () => {
442
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'camel')).toBe('helloWorld');
443
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('Hello-world_test', 'camel')).toBe('helloWorldTest');
444
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('Hello-WORLD', { casing: 'camel', keepOriginalCase: true })).toBe('helloWORLD');
445
- });
446
- (0, bdd_js_1.it)('converts to pascal case', () => {
447
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'pascal')).toBe('HelloWorld');
448
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('Hello-world_test', 'pascal')).toBe('HelloWorldTest');
449
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello-WORLD', { casing: 'pascal', keepOriginalCase: true })).toBe('HelloWORLD');
450
- });
451
- (0, bdd_js_1.it)('converts to kebab case', () => {
452
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'kebab')).toBe('hello-world');
453
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('HelloWorldTest', 'kebab')).toBe('hello-world-test');
454
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('HELLO_WORLD', { casing: 'kebab', wordCasing: 'all-upper' })).toBe('HELLO-WORLD');
455
- });
456
- (0, bdd_js_1.it)('converts to snake case', () => {
457
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'snake')).toBe('HELLO_WORLD');
458
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('HelloWorldTest', 'snake')).toBe('HELLO_WORLD_TEST');
459
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello-world', { casing: 'snake', wordCasing: 'all-lower' })).toBe('hello_world');
460
- });
461
- (0, bdd_js_1.it)('converts to custom case', () => {
462
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', { casing: 'custom', wordSeparator: '.', wordCasing: 'first-upper' })).toBe('Hello.World');
463
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('HelloWorldTest', {
464
- casing: 'custom',
465
- wordSeparator: '#',
466
- wordCasing: 'first-lower',
467
- })).toBe('hello#world#test');
468
- });
469
- (0, bdd_js_1.it)('converts to word casings', () => {
470
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'all-lower')).toBe('helloworld');
471
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('Hello world', 'all-upper')).toBe('HELLOWORLD');
472
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'first-upper')).toBe('Helloworld');
473
- (0, mod_js_1.expect)((0, string_utils_js_1.toCasing)('hello world', 'first-lower-alternating')).toBe('hElLoWoRlD');
474
- });
475
- });
476
- (0, bdd_js_1.describe)('trimIndent', () => {
477
- (0, bdd_js_1.it)('should not change string if it has only one line', () => {
478
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)('some string')).toBe('some string');
479
- });
480
- (0, bdd_js_1.it)('should not change string if las line is not indented', () => {
481
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)('line 1\n line 2\nline 3')).toBe('line 1\n line 2\nline 3');
482
- });
483
- (0, bdd_js_1.it)('should trim the same amount of whitespace from the beginning of each line', () => {
484
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)(' line 1\n line 2\n line 3')).toBe('line 1\n line 2\nline 3');
485
- });
486
- (0, bdd_js_1.it)('should trim as many whitespaces as possible', () => {
487
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)(' line 1\n line 2\n line 3')).toBe('line 1\nline 2\nline 3');
488
- });
489
- (0, bdd_js_1.it)('should not change kind of new line characters', () => {
490
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)(' line 1\r\n line 2\n line 3')).toBe('line 1\r\n line 2\nline 3');
491
- });
492
- (0, bdd_js_1.it)('should remove the first line if it is empty', () => {
493
- (0, mod_js_1.expect)((0, string_utils_js_1.trimIndent)('\n line 1\n line 2\n line 3')).toBe('line 1\n line 2\nline 3');
494
- });
495
- });
496
- (0, bdd_js_1.describe)('trimEnd', () => {
497
- (0, bdd_js_1.it)('should remove trailing whitespace', () => {
498
- (0, mod_js_1.expect)((0, string_utils_js_1.trimEnd)(' hello \r\n\t ')).toBe(' hello');
499
- });
500
- (0, bdd_js_1.it)('should not remove trailing new line characters if includeNewLine is false', () => {
501
- (0, mod_js_1.expect)((0, string_utils_js_1.trimEnd)(' hello \n\t ', false)).toBe(' hello \n');
502
- (0, mod_js_1.expect)((0, string_utils_js_1.trimEnd)(' hello \r\t ', false)).toBe(' hello \r');
503
- });
504
- });
505
- (0, bdd_js_1.describe)('trimStart', () => {
506
- (0, bdd_js_1.it)('should remove leading whitespace', () => {
507
- (0, mod_js_1.expect)((0, string_utils_js_1.trimStart)(' \r\n\t hello ')).toBe('hello ');
508
- });
509
- (0, bdd_js_1.it)('should not remove leading new line characters if includeNewLine is false', () => {
510
- (0, mod_js_1.expect)((0, string_utils_js_1.trimStart)(' \t\n hello ', false)).toBe('\n hello ');
511
- (0, mod_js_1.expect)((0, string_utils_js_1.trimStart)(' \t\r hello ', false)).toBe('\r hello ');
512
- });
513
- });
514
- (0, bdd_js_1.describe)('trim', () => {
515
- (0, bdd_js_1.it)('should remove leading and trailing whitespace', () => {
516
- (0, mod_js_1.expect)((0, string_utils_js_1.trim)(' \r\n\t hello \r\n\t ')).toBe('hello');
517
- });
518
- (0, bdd_js_1.it)('should not remove leading and trailing new line characters if includeNewLine is false', () => {
519
- (0, mod_js_1.expect)((0, string_utils_js_1.trim)(' \t\n hello \n\t ', false)).toBe('\n hello \n');
520
- (0, mod_js_1.expect)((0, string_utils_js_1.trim)(' \t\r hello \r\t ', false)).toBe('\r hello \r');
521
- });
522
- });
523
- (0, bdd_js_1.describe)('removeStr', () => {
524
- (0, bdd_js_1.it)('should remove the first occurrence of a string', () => {
525
- (0, mod_js_1.expect)((0, string_utils_js_1.removeStr)('hello world', 'world')).toBe('hello ');
526
- });
527
- (0, bdd_js_1.it)('should remove all occurrences of a string', () => {
528
- (0, mod_js_1.expect)((0, string_utils_js_1.removeStr)('hello world world!', 'world')).toBe('hello !');
529
- });
530
- });
@@ -1,2 +0,0 @@
1
- import "../_dnt.test_polyfills.js";
2
- //# sourceMappingURL=openapi.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openapi.test.d.ts","sourceRoot":"","sources":["../../src/tests/openapi.test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../_dnt.test_polyfills.js");
4
- const node_path_1 = require("node:path");
5
- const test_utils_1 = require("@goast/test-utils");
6
- const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.3/bdd.js");
7
- const mod_js_1 = require("../mod.js");
8
- const filePaths = {
9
- '2.0': test_utils_1.openApiV2FilesDir,
10
- '3.0': test_utils_1.openApiV3FilesDir,
11
- '3.1': test_utils_1.openApiV3_1FilesDir,
12
- };
13
- const testFilesAllVersions = ['simple-schemas.yml', 'detailed-schemas.yml', 'object-schemas.yml'];
14
- const testFilesV3x = ['oneof-schemas.yml', 'discriminated-schemas.yml'];
15
- for (const [version, path] of Object.entries(filePaths)) {
16
- (0, bdd_js_1.describe)(`OpenAPI V${version}`, () => {
17
- const testFiles = version.startsWith('3') ? testFilesAllVersions.concat(testFilesV3x) : testFilesAllVersions;
18
- for (const file of testFiles) {
19
- const fileWithoutExt = file.replace(/\.[^/.]+$/, '');
20
- (0, bdd_js_1.it)((0, mod_js_1.toCustomCase)(fileWithoutExt, {
21
- wordCasing: 'all-lower',
22
- wordSeparator: ' ',
23
- }), async (t) => {
24
- const filePath = (0, node_path_1.join)(path, file);
25
- const data = await new mod_js_1.OpenApiParser().parseApisAndTransform(filePath);
26
- // Remove properties that do not need to be verified
27
- for (const schema of Object.values(data.schemas)) {
28
- delete schema.$src.document;
29
- }
30
- (0, test_utils_1.declutterApiData)(data);
31
- await (0, test_utils_1.verify)(t, data);
32
- });
33
- }
34
- });
35
- }
@@ -1,42 +0,0 @@
1
- import type { ApiSchema, ApiSchemaBase, ApiSchemaComponent, ApiSchemaExtensions, ApiSchemaProperty } from '../mod.js';
2
- export type TestSchema = Partial<Omit<ApiSchemaBase, 'required'>> & Partial<ApiSchemaComponent> & {
3
- required?: string[];
4
- };
5
- export type TestOneofSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'oneOf'>, 'kind'>>;
6
- export type TestMultiTypeSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'multi-type'>, 'kind' | 'properties'>> & {
7
- properties?: ApiSchemaProperty[];
8
- };
9
- export type TestStringSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'string'>, 'kind' | 'type'>>;
10
- export type TestBooleanSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'boolean'>, 'kind' | 'type'>>;
11
- export type TestNullSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'null'>, 'kind' | 'type'>>;
12
- export type TestNumberSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'number'>, 'kind' | 'type'>>;
13
- export type TestIntegerSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'integer'>, 'kind' | 'type'>>;
14
- export type TestArraySchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'array'>, 'kind' | 'type'>>;
15
- export type TestObjectSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'object'>, 'kind' | 'type' | 'properties'>> & {
16
- properties?: ApiSchemaProperty[];
17
- };
18
- export type TestCombinedSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'combined'>, 'kind'>>;
19
- export type TestUnknownSchema = TestSchema & Partial<Omit<ApiSchemaExtensions<'unknown'>, 'kind'>>;
20
- export declare function createOneOfSchema(schema?: TestOneofSchema): ApiSchema<"oneOf">;
21
- export declare function createMultiTypeSchema(schema?: TestMultiTypeSchema): ApiSchema<"multi-type">;
22
- export declare function createStringSchema(schema?: TestStringSchema): ApiSchema<"string">;
23
- export declare function createBooleanSchema(schema?: TestBooleanSchema): ApiSchema<"boolean">;
24
- export declare function createNullSchema(schema?: TestNullSchema): ApiSchema<"null">;
25
- export declare function createNumberSchema(schema?: TestNumberSchema): ApiSchema<"number">;
26
- export declare function createIntegerSchema(schema?: TestIntegerSchema): ApiSchema<"integer">;
27
- export declare function createArraySchema(schema?: TestArraySchema): ApiSchema<"array">;
28
- export declare function createObjectSchema(schema?: TestObjectSchema): ApiSchema<"object">;
29
- export declare function createCombinedSchema(schema?: TestCombinedSchema): ApiSchema<"combined">;
30
- export declare function createUnknownSchema(schema?: TestUnknownSchema): ApiSchema<"unknown">;
31
- export declare function createOneOfProperty(name: string, schema?: TestOneofSchema): ApiSchemaProperty;
32
- export declare function createMultiTypeProperty(name: string, schema?: TestMultiTypeSchema): ApiSchemaProperty;
33
- export declare function createStringProperty(name: string, schema?: TestStringSchema): ApiSchemaProperty;
34
- export declare function createBooleanProperty(name: string, schema?: TestBooleanSchema): ApiSchemaProperty;
35
- export declare function createNullProperty(name: string, schema?: TestNullSchema): ApiSchemaProperty;
36
- export declare function createNumberProperty(name: string, schema?: TestNumberSchema): ApiSchemaProperty;
37
- export declare function createIntegerProperty(name: string, schema?: TestIntegerSchema): ApiSchemaProperty;
38
- export declare function createArrayProperty(name: string, schema?: TestArraySchema): ApiSchemaProperty;
39
- export declare function createObjectProperty(name: string, schema?: TestObjectSchema): ApiSchemaProperty;
40
- export declare function createCombinedProperty(name: string, schema?: TestCombinedSchema): ApiSchemaProperty;
41
- export declare function createUnknownProperty(name: string, schema?: TestUnknownSchema): ApiSchemaProperty;
42
- //# sourceMappingURL=schema-factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-factory.d.ts","sourceRoot":"","sources":["../../src/tests/schema-factory.ts"],"names":[],"mappings":"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"}