@goast/core 0.4.1 → 0.4.2

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 (378) hide show
  1. package/esm/src/transform/helpers.d.ts.map +1 -1
  2. package/esm/src/transform/helpers.js +5 -1
  3. package/esm/src/utils/source-builder.d.ts +2 -0
  4. package/esm/src/utils/source-builder.d.ts.map +1 -1
  5. package/esm/src/utils/source-builder.js +7 -1
  6. package/package.json +1 -4
  7. package/script/src/transform/helpers.d.ts.map +1 -1
  8. package/script/src/transform/helpers.js +5 -1
  9. package/script/src/utils/source-builder.d.ts +2 -0
  10. package/script/src/utils/source-builder.d.ts.map +1 -1
  11. package/script/src/utils/source-builder.js +8 -1
  12. package/src/src/transform/helpers.ts +6 -1
  13. package/src/src/utils/source-builder.ts +9 -1
  14. package/esm/_dnt.test_polyfills.d.ts +0 -29
  15. package/esm/_dnt.test_polyfills.d.ts.map +0 -1
  16. package/esm/_dnt.test_polyfills.js +0 -31
  17. package/esm/_dnt.test_shims.d.ts +0 -14
  18. package/esm/_dnt.test_shims.d.ts.map +0 -1
  19. package/esm/_dnt.test_shims.js +0 -69
  20. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  21. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  22. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
  23. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  24. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  25. package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
  26. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  27. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  28. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
  29. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  30. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  31. package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
  32. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  33. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  34. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
  35. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  36. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  37. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
  38. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  39. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  40. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
  41. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  42. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  43. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
  44. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  45. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  46. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -29
  47. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  48. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  49. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -43
  50. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  51. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  52. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -26
  53. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  54. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  55. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -13
  56. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  57. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  58. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -161
  59. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  60. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  61. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -29
  62. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  63. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  64. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -11
  65. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  66. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  67. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -191
  68. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  69. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  70. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -11
  71. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  72. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  73. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -12
  74. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  75. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  76. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -714
  77. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  78. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  79. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -10
  80. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  81. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  82. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -10
  83. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  84. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  85. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -3
  86. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  87. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  88. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -218
  89. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  90. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  91. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -523
  92. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  93. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  94. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -85
  95. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  96. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  97. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -88
  98. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  99. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  100. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
  101. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  102. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  103. package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
  104. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  105. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  106. package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
  107. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  108. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  109. package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
  110. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  111. package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  112. package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
  113. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  114. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  115. package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
  116. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  117. package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  118. package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
  119. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  120. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  121. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
  122. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  123. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  124. package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
  125. package/esm/src/collect/helpers.test.d.ts +0 -2
  126. package/esm/src/collect/helpers.test.d.ts.map +0 -1
  127. package/esm/src/collect/helpers.test.js +0 -77
  128. package/esm/src/transform/helpers.test.d.ts +0 -2
  129. package/esm/src/transform/helpers.test.d.ts.map +0 -1
  130. package/esm/src/transform/helpers.test.js +0 -265
  131. package/esm/src/utils/action-provider.test.d.ts +0 -2
  132. package/esm/src/utils/action-provider.test.d.ts.map +0 -1
  133. package/esm/src/utils/action-provider.test.js +0 -28
  134. package/esm/src/utils/common.utils.test.d.ts +0 -2
  135. package/esm/src/utils/common.utils.test.d.ts.map +0 -1
  136. package/esm/src/utils/common.utils.test.js +0 -18
  137. package/esm/src/utils/condition.test.d.ts +0 -2
  138. package/esm/src/utils/condition.test.d.ts.map +0 -1
  139. package/esm/src/utils/condition.test.js +0 -31
  140. package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
  141. package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
  142. package/esm/src/utils/endpoint.utils.test.js +0 -31
  143. package/esm/src/utils/factory.test.d.ts +0 -2
  144. package/esm/src/utils/factory.test.d.ts.map +0 -1
  145. package/esm/src/utils/factory.test.js +0 -34
  146. package/esm/src/utils/generator.utils.test.d.ts +0 -2
  147. package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
  148. package/esm/src/utils/generator.utils.test.js +0 -13
  149. package/esm/src/utils/object.utils.test.d.ts +0 -2
  150. package/esm/src/utils/object.utils.test.d.ts.map +0 -1
  151. package/esm/src/utils/object.utils.test.js +0 -29
  152. package/esm/src/utils/schema.utils.test.d.ts +0 -2
  153. package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
  154. package/esm/src/utils/schema.utils.test.js +0 -70
  155. package/esm/src/utils/source-builder.test.d.ts +0 -2
  156. package/esm/src/utils/source-builder.test.d.ts.map +0 -1
  157. package/esm/src/utils/source-builder.test.js +0 -505
  158. package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
  159. package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  160. package/esm/src/utils/string-builder/string-builder.test.js +0 -163
  161. package/esm/src/utils/string.utils.test.d.ts +0 -2
  162. package/esm/src/utils/string.utils.test.d.ts.map +0 -1
  163. package/esm/src/utils/string.utils.test.js +0 -528
  164. package/esm/tests/openapi.test.d.ts +0 -2
  165. package/esm/tests/openapi.test.d.ts.map +0 -1
  166. package/esm/tests/openapi.test.js +0 -33
  167. package/esm/tests/schema-factory.d.ts +0 -42
  168. package/esm/tests/schema-factory.d.ts.map +0 -1
  169. package/esm/tests/schema-factory.js +0 -138
  170. package/script/_dnt.test_polyfills.d.ts +0 -29
  171. package/script/_dnt.test_polyfills.d.ts.map +0 -1
  172. package/script/_dnt.test_polyfills.js +0 -32
  173. package/script/_dnt.test_shims.d.ts +0 -14
  174. package/script/_dnt.test_shims.d.ts.map +0 -1
  175. package/script/_dnt.test_shims.js +0 -79
  176. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  177. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  178. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
  179. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
  180. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
  181. package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
  182. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
  183. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
  184. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
  185. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
  186. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
  187. package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
  188. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
  189. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
  190. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
  191. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
  192. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
  193. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
  194. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
  195. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
  196. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
  197. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
  198. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
  199. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
  200. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
  201. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
  202. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -32
  203. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
  204. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
  205. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -46
  206. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
  207. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
  208. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -29
  209. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
  210. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
  211. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -18
  212. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
  213. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
  214. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -183
  215. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
  216. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
  217. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -33
  218. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
  219. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
  220. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -15
  221. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
  222. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
  223. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -194
  224. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
  225. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
  226. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -15
  227. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
  228. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
  229. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -17
  230. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
  231. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
  232. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -748
  233. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
  234. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
  235. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -14
  236. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
  237. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
  238. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -14
  239. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
  240. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
  241. package/script/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -4
  242. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
  243. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
  244. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -226
  245. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
  246. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
  247. package/script/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -527
  248. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
  249. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
  250. package/script/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -88
  251. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
  252. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
  253. package/script/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -91
  254. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
  255. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
  256. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
  257. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
  258. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
  259. package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -116
  260. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
  261. package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
  262. package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -284
  263. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
  264. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
  265. package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -186
  266. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
  267. package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
  268. package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -41
  269. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
  270. package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
  271. package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -220
  272. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
  273. package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
  274. package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
  275. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
  276. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
  277. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
  278. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
  279. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
  280. package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
  281. package/script/src/collect/helpers.test.d.ts +0 -2
  282. package/script/src/collect/helpers.test.d.ts.map +0 -1
  283. package/script/src/collect/helpers.test.js +0 -79
  284. package/script/src/transform/helpers.test.d.ts +0 -2
  285. package/script/src/transform/helpers.test.d.ts.map +0 -1
  286. package/script/src/transform/helpers.test.js +0 -267
  287. package/script/src/utils/action-provider.test.d.ts +0 -2
  288. package/script/src/utils/action-provider.test.d.ts.map +0 -1
  289. package/script/src/utils/action-provider.test.js +0 -30
  290. package/script/src/utils/common.utils.test.d.ts +0 -2
  291. package/script/src/utils/common.utils.test.d.ts.map +0 -1
  292. package/script/src/utils/common.utils.test.js +0 -20
  293. package/script/src/utils/condition.test.d.ts +0 -2
  294. package/script/src/utils/condition.test.d.ts.map +0 -1
  295. package/script/src/utils/condition.test.js +0 -33
  296. package/script/src/utils/endpoint.utils.test.d.ts +0 -2
  297. package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
  298. package/script/src/utils/endpoint.utils.test.js +0 -33
  299. package/script/src/utils/factory.test.d.ts +0 -2
  300. package/script/src/utils/factory.test.d.ts.map +0 -1
  301. package/script/src/utils/factory.test.js +0 -36
  302. package/script/src/utils/generator.utils.test.d.ts +0 -2
  303. package/script/src/utils/generator.utils.test.d.ts.map +0 -1
  304. package/script/src/utils/generator.utils.test.js +0 -15
  305. package/script/src/utils/object.utils.test.d.ts +0 -2
  306. package/script/src/utils/object.utils.test.d.ts.map +0 -1
  307. package/script/src/utils/object.utils.test.js +0 -31
  308. package/script/src/utils/schema.utils.test.d.ts +0 -2
  309. package/script/src/utils/schema.utils.test.d.ts.map +0 -1
  310. package/script/src/utils/schema.utils.test.js +0 -72
  311. package/script/src/utils/source-builder.test.d.ts +0 -2
  312. package/script/src/utils/source-builder.test.d.ts.map +0 -1
  313. package/script/src/utils/source-builder.test.js +0 -507
  314. package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
  315. package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
  316. package/script/src/utils/string-builder/string-builder.test.js +0 -165
  317. package/script/src/utils/string.utils.test.d.ts +0 -2
  318. package/script/src/utils/string.utils.test.d.ts.map +0 -1
  319. package/script/src/utils/string.utils.test.js +0 -530
  320. package/script/tests/openapi.test.d.ts +0 -2
  321. package/script/tests/openapi.test.d.ts.map +0 -1
  322. package/script/tests/openapi.test.js +0 -35
  323. package/script/tests/schema-factory.d.ts +0 -42
  324. package/script/tests/schema-factory.d.ts.map +0 -1
  325. package/script/tests/schema-factory.js +0 -162
  326. package/src/_dnt.test_polyfills.ts +0 -70
  327. package/src/_dnt.test_shims.ts +0 -72
  328. package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
  329. package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
  330. package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
  331. package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
  332. package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
  333. package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
  334. package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
  335. package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
  336. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +0 -38
  337. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +0 -54
  338. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +0 -35
  339. package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +0 -18
  340. package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +0 -198
  341. package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +0 -51
  342. package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +0 -19
  343. package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +0 -230
  344. package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +0 -16
  345. package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +0 -15
  346. package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +0 -1028
  347. package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +0 -22
  348. package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +0 -15
  349. package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +0 -923
  350. package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +0 -283
  351. package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +0 -620
  352. package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +0 -91
  353. package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +0 -89
  354. package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
  355. package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
  356. package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
  357. package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
  358. package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
  359. package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
  360. package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
  361. package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
  362. package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
  363. package/src/src/collect/helpers.test.ts +0 -91
  364. package/src/src/transform/helpers.test.ts +0 -316
  365. package/src/src/utils/action-provider.test.ts +0 -32
  366. package/src/src/utils/common.utils.test.ts +0 -22
  367. package/src/src/utils/condition.test.ts +0 -36
  368. package/src/src/utils/endpoint.utils.test.ts +0 -36
  369. package/src/src/utils/factory.test.ts +0 -31
  370. package/src/src/utils/generator.utils.test.ts +0 -16
  371. package/src/src/utils/object.utils.test.ts +0 -33
  372. package/src/src/utils/schema.utils.test.ts +0 -88
  373. package/src/src/utils/source-builder.test.ts +0 -657
  374. package/src/src/utils/string-builder/string-builder.test.ts +0 -188
  375. package/src/src/utils/string.utils.test.ts +0 -691
  376. package/src/tests/openapi.test.ts +0 -50
  377. package/src/tests/schema-factory.ts +0 -185
  378. 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.12/mod.js");
5
- const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/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.9/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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"}