@goast/kotlin 0.4.7 → 0.4.9

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 (372) hide show
  1. package/assets/client/okhttp3/ApiClient.kt +2 -0
  2. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  3. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/assertion_error.js +1 -1
  4. package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equal.js +1 -1
  6. package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equals.js +1 -1
  8. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/false.js +1 -1
  10. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/instance_of.js +1 -1
  12. package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/is_error.js +1 -1
  14. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/match.js +1 -1
  16. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_instance_of.js +1 -1
  18. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_match.js +1 -1
  20. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_strict_equals.js +1 -1
  22. package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/rejects.js +1 -1
  24. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/strict_equals.js +1 -1
  26. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_equals.js +2 -2
  28. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +14 -0
  29. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +43 -0
  31. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_not_equals.js +3 -3
  33. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assertions.js +1 -1
  35. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_asymmetric_matchers.js +3 -2
  37. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_build_message.js +5 -5
  39. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_custom_equality_tester.js +1 -1
  41. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_equal.js +1 -1
  43. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_extend.js +1 -1
  45. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_inspect_args.js +1 -1
  47. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
  48. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_matchers.js +206 -60
  49. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_mock_util.js +1 -1
  51. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_serializer.js +1 -1
  53. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_types.d.ts +6 -2
  54. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +3 -0
  56. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_utils.js +1 -1
  58. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/expect.js +4 -4
  60. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.d.ts.map +1 -1
  61. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_test_suite.d.ts +5 -0
  62. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_test_suite.js +35 -5
  64. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.d.ts +7 -5
  65. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.d.ts.map +1 -1
  66. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.js +7 -5
  67. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.d.ts.map +1 -1
  68. package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.js +5 -5
  69. package/esm/src/assets.js +1 -1
  70. package/esm/src/ast/nodes/annotation.test.js +2 -2
  71. package/esm/src/ast/nodes/argument.test.js +2 -2
  72. package/esm/src/ast/nodes/call.test.js +2 -2
  73. package/esm/src/ast/nodes/class.test.js +2 -2
  74. package/esm/src/ast/nodes/constructor.test.js +2 -2
  75. package/esm/src/ast/nodes/doc-tag.test.js +2 -2
  76. package/esm/src/ast/nodes/doc.test.js +2 -2
  77. package/esm/src/ast/nodes/enum-value.test.js +2 -2
  78. package/esm/src/ast/nodes/enum.test.js +2 -2
  79. package/esm/src/ast/nodes/function.test.js +2 -2
  80. package/esm/src/ast/nodes/generic-parameter.test.js +2 -2
  81. package/esm/src/ast/nodes/init-block.test.js +2 -2
  82. package/esm/src/ast/nodes/interface.test.js +2 -2
  83. package/esm/src/ast/nodes/object.test.js +2 -2
  84. package/esm/src/ast/nodes/parameter.test.js +2 -2
  85. package/esm/src/ast/nodes/property.test.js +2 -2
  86. package/esm/src/ast/nodes/reference.test.js +2 -2
  87. package/esm/src/ast/nodes/string.test.js +2 -2
  88. package/esm/src/ast/references/spring.d.ts +1 -0
  89. package/esm/src/ast/references/spring.d.ts.map +1 -1
  90. package/esm/src/ast/references/spring.js +2 -0
  91. package/esm/src/generators/services/spring-controllers/args.d.ts +17 -2
  92. package/esm/src/generators/services/spring-controllers/args.d.ts.map +1 -1
  93. package/esm/src/generators/services/spring-controllers/models.d.ts +2 -0
  94. package/esm/src/generators/services/spring-controllers/models.d.ts.map +1 -1
  95. package/esm/src/generators/services/spring-controllers/models.js +2 -0
  96. package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts +3 -1
  97. package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
  98. package/esm/src/generators/services/spring-controllers/spring-controller-generator.js +74 -6
  99. package/esm/src/import-collection.test.js +2 -2
  100. package/esm/tests/openapi-models.test.js +2 -2
  101. package/package.json +3 -2
  102. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/assertion_error.js +1 -1
  104. package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +1 -0
  105. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equal.js +1 -1
  106. package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +1 -0
  107. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equals.js +1 -1
  108. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/false.js +1 -1
  110. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
  111. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/instance_of.js +1 -1
  112. package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +1 -0
  113. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/is_error.js +1 -1
  114. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
  115. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/match.js +1 -1
  116. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
  117. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_instance_of.js +1 -1
  118. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
  119. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_match.js +1 -1
  120. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
  121. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_strict_equals.js +1 -1
  122. package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +1 -0
  123. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/rejects.js +1 -1
  124. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
  125. package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/strict_equals.js +1 -1
  126. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
  127. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_equals.js +2 -2
  128. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +14 -0
  129. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
  130. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +46 -0
  131. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
  132. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_not_equals.js +3 -3
  133. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
  134. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assertions.js +1 -1
  135. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
  136. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_asymmetric_matchers.js +3 -2
  137. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
  138. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_build_message.js +5 -5
  139. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
  140. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_custom_equality_tester.js +1 -1
  141. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
  142. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_equal.js +1 -1
  143. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
  144. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_extend.js +1 -1
  145. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
  146. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_inspect_args.js +1 -1
  147. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_matchers.js +208 -62
  149. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
  150. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_mock_util.js +1 -1
  151. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
  152. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_serializer.js +1 -1
  153. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_types.d.ts +6 -2
  154. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
  155. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_types.js +1 -1
  156. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
  157. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_utils.js +1 -1
  158. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
  159. package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/expect.js +4 -4
  160. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.d.ts.map +1 -1
  161. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_test_suite.d.ts +5 -0
  162. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
  163. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_test_suite.js +36 -6
  164. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.d.ts +7 -5
  165. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.d.ts.map +1 -1
  166. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.js +6 -4
  167. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.d.ts.map +1 -1
  168. package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.js +5 -5
  169. package/script/src/assets.js +1 -1
  170. package/script/src/ast/nodes/annotation.test.js +2 -2
  171. package/script/src/ast/nodes/argument.test.js +2 -2
  172. package/script/src/ast/nodes/call.test.js +2 -2
  173. package/script/src/ast/nodes/class.test.js +2 -2
  174. package/script/src/ast/nodes/constructor.test.js +2 -2
  175. package/script/src/ast/nodes/doc-tag.test.js +2 -2
  176. package/script/src/ast/nodes/doc.test.js +2 -2
  177. package/script/src/ast/nodes/enum-value.test.js +2 -2
  178. package/script/src/ast/nodes/enum.test.js +2 -2
  179. package/script/src/ast/nodes/function.test.js +2 -2
  180. package/script/src/ast/nodes/generic-parameter.test.js +2 -2
  181. package/script/src/ast/nodes/init-block.test.js +2 -2
  182. package/script/src/ast/nodes/interface.test.js +2 -2
  183. package/script/src/ast/nodes/object.test.js +2 -2
  184. package/script/src/ast/nodes/parameter.test.js +2 -2
  185. package/script/src/ast/nodes/property.test.js +2 -2
  186. package/script/src/ast/nodes/reference.test.js +2 -2
  187. package/script/src/ast/nodes/string.test.js +2 -2
  188. package/script/src/ast/references/spring.d.ts +1 -0
  189. package/script/src/ast/references/spring.d.ts.map +1 -1
  190. package/script/src/ast/references/spring.js +3 -1
  191. package/script/src/generators/services/spring-controllers/args.d.ts +17 -2
  192. package/script/src/generators/services/spring-controllers/args.d.ts.map +1 -1
  193. package/script/src/generators/services/spring-controllers/models.d.ts +2 -0
  194. package/script/src/generators/services/spring-controllers/models.d.ts.map +1 -1
  195. package/script/src/generators/services/spring-controllers/models.js +2 -0
  196. package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts +3 -1
  197. package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
  198. package/script/src/generators/services/spring-controllers/spring-controller-generator.js +74 -6
  199. package/script/src/import-collection.test.js +2 -2
  200. package/script/tests/openapi-models.test.js +2 -2
  201. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/assertion_error.ts +1 -1
  202. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equal.ts +1 -1
  203. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equals.ts +1 -1
  204. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/false.ts +1 -1
  205. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/instance_of.ts +1 -1
  206. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/is_error.ts +1 -1
  207. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/match.ts +1 -1
  208. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_instance_of.ts +1 -1
  209. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_match.ts +1 -1
  210. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_strict_equals.ts +1 -1
  211. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/rejects.ts +1 -1
  212. package/src/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/strict_equals.ts +1 -1
  213. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_equals.ts +2 -2
  214. package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +54 -0
  215. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_not_equals.ts +3 -3
  216. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assertions.ts +1 -1
  217. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_asymmetric_matchers.ts +7 -2
  218. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_build_message.ts +5 -5
  219. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_custom_equality_tester.ts +1 -1
  220. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_equal.ts +1 -1
  221. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_extend.ts +1 -1
  222. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_inspect_args.ts +1 -1
  223. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_matchers.ts +274 -84
  224. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_mock_util.ts +1 -1
  225. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_serializer.ts +1 -1
  226. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_types.ts +7 -3
  227. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_utils.ts +1 -1
  228. package/src/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/expect.ts +4 -4
  229. package/src/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.ts +1 -1
  230. package/src/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_test_suite.ts +47 -9
  231. package/src/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/bdd.ts +13 -10
  232. package/src/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.ts +5 -5
  233. package/src/src/assets.ts +1 -1
  234. package/src/src/ast/nodes/annotation.test.ts +2 -2
  235. package/src/src/ast/nodes/argument.test.ts +2 -2
  236. package/src/src/ast/nodes/call.test.ts +2 -2
  237. package/src/src/ast/nodes/class.test.ts +2 -2
  238. package/src/src/ast/nodes/constructor.test.ts +2 -2
  239. package/src/src/ast/nodes/doc-tag.test.ts +2 -2
  240. package/src/src/ast/nodes/doc.test.ts +2 -2
  241. package/src/src/ast/nodes/enum-value.test.ts +2 -2
  242. package/src/src/ast/nodes/enum.test.ts +2 -2
  243. package/src/src/ast/nodes/function.test.ts +2 -2
  244. package/src/src/ast/nodes/generic-parameter.test.ts +2 -2
  245. package/src/src/ast/nodes/init-block.test.ts +2 -2
  246. package/src/src/ast/nodes/interface.test.ts +2 -2
  247. package/src/src/ast/nodes/object.test.ts +2 -2
  248. package/src/src/ast/nodes/parameter.test.ts +2 -2
  249. package/src/src/ast/nodes/property.test.ts +2 -2
  250. package/src/src/ast/nodes/reference.test.ts +2 -2
  251. package/src/src/ast/nodes/string.test.ts +2 -2
  252. package/src/src/ast/references/spring.ts +6 -0
  253. package/src/src/generators/services/spring-controllers/args.ts +18 -3
  254. package/src/src/generators/services/spring-controllers/models.ts +6 -0
  255. package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +107 -12
  256. package/src/src/import-collection.test.ts +2 -2
  257. package/src/tests/openapi-models.test.ts +2 -2
  258. package/esm/deps/jsr.io/@std/assert/1.0.9/assertion_error.d.ts.map +0 -1
  259. package/esm/deps/jsr.io/@std/assert/1.0.9/equal.d.ts.map +0 -1
  260. package/esm/deps/jsr.io/@std/assert/1.0.9/equals.d.ts.map +0 -1
  261. package/esm/deps/jsr.io/@std/assert/1.0.9/false.d.ts.map +0 -1
  262. package/esm/deps/jsr.io/@std/assert/1.0.9/instance_of.d.ts.map +0 -1
  263. package/esm/deps/jsr.io/@std/assert/1.0.9/is_error.d.ts.map +0 -1
  264. package/esm/deps/jsr.io/@std/assert/1.0.9/match.d.ts.map +0 -1
  265. package/esm/deps/jsr.io/@std/assert/1.0.9/not_instance_of.d.ts.map +0 -1
  266. package/esm/deps/jsr.io/@std/assert/1.0.9/not_match.d.ts.map +0 -1
  267. package/esm/deps/jsr.io/@std/assert/1.0.9/not_strict_equals.d.ts.map +0 -1
  268. package/esm/deps/jsr.io/@std/assert/1.0.9/rejects.d.ts.map +0 -1
  269. package/esm/deps/jsr.io/@std/assert/1.0.9/strict_equals.d.ts.map +0 -1
  270. package/esm/deps/jsr.io/@std/expect/1.0.9/_assert_equals.d.ts.map +0 -1
  271. package/esm/deps/jsr.io/@std/expect/1.0.9/_assert_not_equals.d.ts.map +0 -1
  272. package/esm/deps/jsr.io/@std/expect/1.0.9/_assertions.d.ts.map +0 -1
  273. package/esm/deps/jsr.io/@std/expect/1.0.9/_asymmetric_matchers.d.ts.map +0 -1
  274. package/esm/deps/jsr.io/@std/expect/1.0.9/_build_message.d.ts.map +0 -1
  275. package/esm/deps/jsr.io/@std/expect/1.0.9/_custom_equality_tester.d.ts.map +0 -1
  276. package/esm/deps/jsr.io/@std/expect/1.0.9/_equal.d.ts.map +0 -1
  277. package/esm/deps/jsr.io/@std/expect/1.0.9/_extend.d.ts.map +0 -1
  278. package/esm/deps/jsr.io/@std/expect/1.0.9/_inspect_args.d.ts.map +0 -1
  279. package/esm/deps/jsr.io/@std/expect/1.0.9/_matchers.d.ts.map +0 -1
  280. package/esm/deps/jsr.io/@std/expect/1.0.9/_mock_util.d.ts.map +0 -1
  281. package/esm/deps/jsr.io/@std/expect/1.0.9/_serializer.d.ts.map +0 -1
  282. package/esm/deps/jsr.io/@std/expect/1.0.9/_types.d.ts.map +0 -1
  283. package/esm/deps/jsr.io/@std/expect/1.0.9/_types.js +0 -3
  284. package/esm/deps/jsr.io/@std/expect/1.0.9/_utils.d.ts.map +0 -1
  285. package/esm/deps/jsr.io/@std/expect/1.0.9/expect.d.ts.map +0 -1
  286. package/esm/deps/jsr.io/@std/testing/1.0.6/_test_suite.d.ts.map +0 -1
  287. package/script/deps/jsr.io/@std/assert/1.0.9/assertion_error.d.ts.map +0 -1
  288. package/script/deps/jsr.io/@std/assert/1.0.9/equal.d.ts.map +0 -1
  289. package/script/deps/jsr.io/@std/assert/1.0.9/equals.d.ts.map +0 -1
  290. package/script/deps/jsr.io/@std/assert/1.0.9/false.d.ts.map +0 -1
  291. package/script/deps/jsr.io/@std/assert/1.0.9/instance_of.d.ts.map +0 -1
  292. package/script/deps/jsr.io/@std/assert/1.0.9/is_error.d.ts.map +0 -1
  293. package/script/deps/jsr.io/@std/assert/1.0.9/match.d.ts.map +0 -1
  294. package/script/deps/jsr.io/@std/assert/1.0.9/not_instance_of.d.ts.map +0 -1
  295. package/script/deps/jsr.io/@std/assert/1.0.9/not_match.d.ts.map +0 -1
  296. package/script/deps/jsr.io/@std/assert/1.0.9/not_strict_equals.d.ts.map +0 -1
  297. package/script/deps/jsr.io/@std/assert/1.0.9/rejects.d.ts.map +0 -1
  298. package/script/deps/jsr.io/@std/assert/1.0.9/strict_equals.d.ts.map +0 -1
  299. package/script/deps/jsr.io/@std/expect/1.0.9/_assert_equals.d.ts.map +0 -1
  300. package/script/deps/jsr.io/@std/expect/1.0.9/_assert_not_equals.d.ts.map +0 -1
  301. package/script/deps/jsr.io/@std/expect/1.0.9/_assertions.d.ts.map +0 -1
  302. package/script/deps/jsr.io/@std/expect/1.0.9/_asymmetric_matchers.d.ts.map +0 -1
  303. package/script/deps/jsr.io/@std/expect/1.0.9/_build_message.d.ts.map +0 -1
  304. package/script/deps/jsr.io/@std/expect/1.0.9/_custom_equality_tester.d.ts.map +0 -1
  305. package/script/deps/jsr.io/@std/expect/1.0.9/_equal.d.ts.map +0 -1
  306. package/script/deps/jsr.io/@std/expect/1.0.9/_extend.d.ts.map +0 -1
  307. package/script/deps/jsr.io/@std/expect/1.0.9/_inspect_args.d.ts.map +0 -1
  308. package/script/deps/jsr.io/@std/expect/1.0.9/_matchers.d.ts.map +0 -1
  309. package/script/deps/jsr.io/@std/expect/1.0.9/_mock_util.d.ts.map +0 -1
  310. package/script/deps/jsr.io/@std/expect/1.0.9/_serializer.d.ts.map +0 -1
  311. package/script/deps/jsr.io/@std/expect/1.0.9/_types.d.ts.map +0 -1
  312. package/script/deps/jsr.io/@std/expect/1.0.9/_utils.d.ts.map +0 -1
  313. package/script/deps/jsr.io/@std/expect/1.0.9/expect.d.ts.map +0 -1
  314. package/script/deps/jsr.io/@std/testing/1.0.6/_test_suite.d.ts.map +0 -1
  315. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/assertion_error.d.ts +0 -0
  316. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equal.d.ts +0 -0
  317. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equals.d.ts +0 -0
  318. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/false.d.ts +0 -0
  319. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/instance_of.d.ts +0 -0
  320. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/is_error.d.ts +0 -0
  321. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/match.d.ts +0 -0
  322. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_instance_of.d.ts +0 -0
  323. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_match.d.ts +0 -0
  324. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_strict_equals.d.ts +0 -0
  325. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/rejects.d.ts +0 -0
  326. /package/esm/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/strict_equals.d.ts +0 -0
  327. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_equals.d.ts +0 -0
  328. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_not_equals.d.ts +0 -0
  329. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assertions.d.ts +0 -0
  330. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_asymmetric_matchers.d.ts +0 -0
  331. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_build_message.d.ts +0 -0
  332. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
  333. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_equal.d.ts +0 -0
  334. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_extend.d.ts +0 -0
  335. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_inspect_args.d.ts +0 -0
  336. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_matchers.d.ts +0 -0
  337. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_mock_util.d.ts +0 -0
  338. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_serializer.d.ts +0 -0
  339. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_utils.d.ts +0 -0
  340. /package/esm/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/expect.d.ts +0 -0
  341. /package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.d.ts +0 -0
  342. /package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.js +0 -0
  343. /package/esm/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.d.ts +0 -0
  344. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/assertion_error.d.ts +0 -0
  345. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equal.d.ts +0 -0
  346. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/equals.d.ts +0 -0
  347. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/false.d.ts +0 -0
  348. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/instance_of.d.ts +0 -0
  349. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/is_error.d.ts +0 -0
  350. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/match.d.ts +0 -0
  351. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_instance_of.d.ts +0 -0
  352. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_match.d.ts +0 -0
  353. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/not_strict_equals.d.ts +0 -0
  354. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/rejects.d.ts +0 -0
  355. /package/script/deps/jsr.io/@std/assert/{1.0.9 → 1.0.11}/strict_equals.d.ts +0 -0
  356. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_equals.d.ts +0 -0
  357. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assert_not_equals.d.ts +0 -0
  358. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_assertions.d.ts +0 -0
  359. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_asymmetric_matchers.d.ts +0 -0
  360. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_build_message.d.ts +0 -0
  361. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
  362. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_equal.d.ts +0 -0
  363. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_extend.d.ts +0 -0
  364. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_inspect_args.d.ts +0 -0
  365. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_matchers.d.ts +0 -0
  366. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_mock_util.d.ts +0 -0
  367. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_serializer.d.ts +0 -0
  368. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/_utils.d.ts +0 -0
  369. /package/script/deps/jsr.io/@std/expect/{1.0.9 → 1.0.12}/expect.d.ts +0 -0
  370. /package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.d.ts +0 -0
  371. /package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/_mock_utils.js +0 -0
  372. /package/script/deps/jsr.io/@std/testing/{1.0.6 → 1.0.9}/mock.d.ts +0 -0
@@ -1,11 +1,19 @@
1
- import type { ApiEndpoint, ApiSchema, SourceBuilder } from '@goast/core';
1
+ import type { ApiEndpoint, ApiResponse, ApiSchema, SourceBuilder } from '@goast/core';
2
2
  import type { kt } from '../../../ast/index.js';
3
3
  import type { ApiParameterWithMultipartInfo } from '../../../types.js';
4
+ export type GenerateApiResponseEntitiesFile = {
5
+ dirPath: string;
6
+ packageName: string;
7
+ };
8
+ export type GetApiResponseEntitiesFileContent = {
9
+ packageName: string;
10
+ };
11
+ export type GetApiResponseEntities = object;
4
12
  export type GenerateApiInterfaceFile = {
5
13
  dirPath: string;
6
14
  packageName: string;
7
15
  };
8
- export type GetApiinterfaceFileContent = {
16
+ export type GetApiInterfaceFileContent = {
9
17
  interfaceName: string;
10
18
  };
11
19
  export type GetApiInterface = {
@@ -14,6 +22,9 @@ export type GetApiInterface = {
14
22
  export type GetApiInterfaceEndpointMethod = {
15
23
  endpoint: ApiEndpoint;
16
24
  };
25
+ export type GetApiResponseEntityClass = {
26
+ endpoint: ApiEndpoint;
27
+ };
17
28
  export type GenerateApiControllerFile = {
18
29
  dirPath: string;
19
30
  packageName: string;
@@ -43,6 +54,7 @@ export type GetParameterType = {
43
54
  };
44
55
  export type GetResponseType = {
45
56
  endpoint: ApiEndpoint;
57
+ response?: ApiResponse;
46
58
  };
47
59
  export type GetTypeUsage<TBuilder extends SourceBuilder> = {
48
60
  schema: ApiSchema | undefined;
@@ -66,6 +78,9 @@ export type GetPathConstantName = {
66
78
  endpoint: ApiEndpoint;
67
79
  };
68
80
  export type GetPackageName = object;
81
+ export type GetApiResponseEntityName = {
82
+ endpoint: ApiEndpoint;
83
+ };
69
84
  export type GetApiInterfaceName = object;
70
85
  export type GetApiDelegateInterfaceName = object;
71
86
  export type GetApiControllerName = object;
@@ -1 +1 @@
1
- {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-controllers/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAGvE,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,MAAM,MAAM,6BAA6B,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAItE,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC;AAI1D,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE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mB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEjE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC"}
@@ -10,6 +10,8 @@ export type KotlinServicesGeneratorConfig = KotlinGeneratorConfig & {
10
10
  addSwaggerAnnotations: boolean;
11
11
  addJakartaValidationAnnotations: boolean;
12
12
  arrayType: 'list' | 'flux';
13
+ strictResponseEntities: boolean;
14
+ defaultStatusCodes: number[];
13
15
  };
14
16
  export declare const defaultKotlinServicesGeneratorConfig: DefaultGenerationProviderConfig<KotlinServicesGeneratorConfig>;
15
17
  export type KotlinServicesGeneratorInput = KotlinModelsGeneratorOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-controllers/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAgC,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC,CAA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CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,8BAA8B,GAAG;IAC3E,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC"}
@@ -9,4 +9,6 @@ exports.defaultKotlinServicesGeneratorConfig = {
9
9
  addSwaggerAnnotations: true,
10
10
  addJakartaValidationAnnotations: true,
11
11
  arrayType: 'flux',
12
+ strictResponseEntities: false,
13
+ defaultStatusCodes: [400, 401, 403, 500, 501],
12
14
  };
@@ -15,7 +15,7 @@ export interface KotlinSpringControllerGenerator<TOutput extends Output = Output
15
15
  export declare class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator<Context, Output> implements KotlinSpringControllerGenerator {
16
16
  generate(ctx: KotlinServiceGeneratorContext): MaybePromise<KotlinServiceGeneratorOutput>;
17
17
  protected generateApiInterfaceFile(ctx: Context, args: Args.GenerateApiInterfaceFile): KotlinImport;
18
- protected getApiInterfaceFileContent(ctx: Context, args: Args.GetApiinterfaceFileContent): AppendValueGroup<Builder>;
18
+ protected getApiInterfaceFileContent(ctx: Context, args: Args.GetApiInterfaceFileContent): AppendValueGroup<Builder>;
19
19
  protected getApiInterface(ctx: Context, args: Args.GetApiInterface): kt.Interface<Builder>;
20
20
  private getApiInterfaceAnnotations;
21
21
  private getApiInterfaceMembers;
@@ -23,6 +23,7 @@ export declare class DefaultKotlinSpringControllerGenerator extends KotlinFileGe
23
23
  private getApiInterfaceEndpointMethodAnnnotations;
24
24
  private getApiInterfaceEndpointMethodParameter;
25
25
  private getApiInterfaceEndpointMethodBody;
26
+ private getApiResponseEntityClass;
26
27
  protected generateApiControllerFile(ctx: Context, args: Args.GenerateApiControllerFile): KotlinImport;
27
28
  protected getApiControllerFileContent(ctx: Context, args: Args.GetApiControllerFileContent): AppendValueGroup<Builder>;
28
29
  protected getApiController(ctx: Context, args: Args.GetApiController): kt.Class<Builder>;
@@ -44,6 +45,7 @@ export declare class DefaultKotlinSpringControllerGenerator extends KotlinFileGe
44
45
  protected getDirectoryPath(ctx: Context, args: Args.GetDirectoryPath): string;
45
46
  protected getPathConstantName(ctx: Context, args: Args.GetPathConstantName): string;
46
47
  protected getPackageName(ctx: Context, _args: Args.GetPackageName): string;
48
+ protected getApiResponseEntityName(ctx: Context, args: Args.GetApiResponseEntityName): string;
47
49
  protected getApiInterfaceName(ctx: Context, _args: Args.GetApiInterfaceName): string;
48
50
  protected getApiControllerName(ctx: Context, _args: Args.GetApiControllerName): string;
49
51
  protected getApiDelegateInterfaceName(ctx: Context, _args: Args.GetApiDelegateInterfaceName): string;
@@ -1 +1 @@
1
- {"version":3,"file":"spring-controller-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-controllers/spring-controller-generator.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAGjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,0CAA0C,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AACrF,OAAO,KAAK,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE/F,KAAK,OAAO,GAAG,6BAA6B,CAAC;AAC7C,KAAK,MAAM,GAAG,4BAA4B,CAAC;AAC3C,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAEjC,MAAM,WAAW,+BAA+B,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IAC9E,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED,qBAAa,sCAAuC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AE,KAAK,EAAE,IAAI,CAAC,WAAW,GAAG,MAAM;IAQpE,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,MAAM;IAK3E,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAG,MAAM;IAK7E,SAAS,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM;IAKnF,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,GAAG,MAAM;IAO1E,SAAS,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM;IAIpF,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,oBAAoB,GAAG,MAAM;IAItF,SAAS,CAAC,2BAA2B,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,2BAA2B,GAAG,MAAM;IAIpG,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAG,6BAA6B,EAAE;IAuDtG,OAAO,CAAC,kBAAkB;CAgB3B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAQ1D"}
1
+ {"version":3,"file":"spring-controller-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-controllers/spring-controller-generator.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAGjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,EAAE,EAAE,MAAM,u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,MAAM;IAK7F,SAAS,CAAC,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM;IAIpF,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,oBAAoB,GAAG,MAAM;IAItF,SAAS,CAAC,2BAA2B,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,2BAA2B,GAAG,MAAM;IAIpG,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAG,6BAA6B,EAAE;IAuDtG,OAAO,CAAC,kBAAkB;CAgB3B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAQ1D"}
@@ -5,6 +5,7 @@ exports.adjustListType = adjustListType;
5
5
  const tslib_1 = require("tslib");
6
6
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
7
7
  const core_1 = require("@goast/core");
8
+ const http_status_codes_1 = require("http-status-codes");
8
9
  const index_js_1 = require("../../../ast/index.js");
9
10
  const file_builder_js_1 = require("../../../file-builder.js");
10
11
  const utils_js_1 = require("../../../utils.js");
@@ -70,6 +71,9 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
70
71
  ctx.service.endpoints.forEach((endpoint) => {
71
72
  members.push(this.getApiInterfaceEndpointMethod(ctx, { endpoint }));
72
73
  });
74
+ if (ctx.config.strictResponseEntities) {
75
+ members.push(...ctx.service.endpoints.map((endpoint) => this.getApiResponseEntityClass(ctx, { endpoint })));
76
+ }
73
77
  return members;
74
78
  }
75
79
  getApiInterfaceEndpointMethod(ctx, args) {
@@ -79,7 +83,9 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
79
83
  suspend: true,
80
84
  annotations: this.getApiInterfaceEndpointMethodAnnnotations(ctx, endpoint),
81
85
  parameters: parameters.map((parameter) => this.getApiInterfaceEndpointMethodParameter(ctx, endpoint, parameter)),
82
- returnType: index_js_1.kt.refs.spring.responseEntity([this.getResponseType(ctx, { endpoint })]),
86
+ returnType: ctx.config.strictResponseEntities
87
+ ? index_js_1.kt.reference(this.getApiResponseEntityName(ctx, { endpoint }), null, { generics: ['*'] })
88
+ : index_js_1.kt.refs.spring.responseEntity([this.getResponseType(ctx, { endpoint })]),
83
89
  body: this.getApiInterfaceEndpointMethodBody(ctx, endpoint, parameters),
84
90
  });
85
91
  }
@@ -192,6 +198,53 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
192
198
  (0, core_1.builderTemplate) `return ${index_js_1.kt.call([index_js_1.kt.call(index_js_1.kt.reference('getDelegate'), []), (0, core_1.toCasing)(endpoint.name, ctx.config.functionNameCasing)], parameters.map((x) => (0, core_1.toCasing)(x.name, ctx.config.parameterNameCasing)))}`,
193
199
  ], '\n');
194
200
  }
201
+ getApiResponseEntityClass(ctx, args) {
202
+ const { endpoint } = args;
203
+ const name = this.getApiResponseEntityName(ctx, { endpoint });
204
+ return index_js_1.kt.class(name, {
205
+ doc: index_js_1.kt.doc(`Response entity for ${endpoint.name}.`),
206
+ generics: [index_js_1.kt.genericParameter('T')],
207
+ primaryConstructor: index_js_1.kt.constructor([
208
+ index_js_1.kt.parameter.class('body', index_js_1.kt.reference('T')),
209
+ index_js_1.kt.parameter.class('rawStatus', index_js_1.kt.refs.int()),
210
+ index_js_1.kt.parameter.class('headers', index_js_1.kt.refs.spring.multiValueMap([index_js_1.kt.refs.string(), index_js_1.kt.refs.string()], { nullable: true }), { default: index_js_1.kt.toNode(null) }),
211
+ ], null, {
212
+ accessModifier: endpoint.responses.length > 0 ? 'private' : null,
213
+ delegateTarget: 'super',
214
+ delegateArguments: [index_js_1.kt.argument('body'), index_js_1.kt.argument('headers'), index_js_1.kt.argument('rawStatus')],
215
+ }),
216
+ extends: index_js_1.kt.refs.spring.responseEntity([index_js_1.kt.reference('T')]),
217
+ companionObject: index_js_1.kt.object({
218
+ members: Array.from(new Set([
219
+ ...ctx.config.defaultStatusCodes,
220
+ 501,
221
+ ...endpoint.responses.map((x) => x.statusCode),
222
+ ].filter(core_1.notNullish)))
223
+ .map((code) => {
224
+ const fnName = (0, core_1.toCasing)((0, http_status_codes_1.getReasonPhrase)(code), ctx.config.functionNameCasing);
225
+ const response = endpoint.responses.find((x) => x.statusCode === code);
226
+ const responseType = response ? this.getResponseType(ctx, { endpoint, response }) : undefined;
227
+ const hasResponseBody = responseType && !index_js_1.kt.refs.unit.matches(responseType);
228
+ return index_js_1.kt.function(fnName, {
229
+ parameters: [
230
+ hasResponseBody ? index_js_1.kt.parameter.class('body', responseType) : null,
231
+ index_js_1.kt.parameter.class('headers', index_js_1.kt.refs.spring.multiValueMap([index_js_1.kt.refs.string(), index_js_1.kt.refs.string()], { nullable: true }), { default: index_js_1.kt.toNode(null) }),
232
+ ],
233
+ singleExpression: true,
234
+ body: index_js_1.kt.call([
235
+ index_js_1.kt.reference(this.getApiResponseEntityName(ctx, { endpoint }), null, {
236
+ generics: [hasResponseBody ? responseType : index_js_1.kt.refs.unit({ nullable: true })],
237
+ }),
238
+ ], [
239
+ hasResponseBody ? index_js_1.kt.argument('body') : index_js_1.kt.toNode(null),
240
+ index_js_1.kt.toNode(code),
241
+ index_js_1.kt.argument('headers'),
242
+ ]),
243
+ });
244
+ }),
245
+ }),
246
+ });
247
+ }
195
248
  // #endregion
196
249
  // #region API Controller
197
250
  generateApiControllerFile(ctx, args) {
@@ -298,14 +351,25 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
298
351
  getApiDelegateInterfaceEndpointMethod(ctx, args) {
299
352
  const { endpoint } = args;
300
353
  const parameters = this.getAllParameters(ctx, { endpoint });
301
- return index_js_1.kt.function((0, core_1.toCasing)(endpoint.name, ctx.config.functionNameCasing), {
354
+ const fn = index_js_1.kt.function((0, core_1.toCasing)(endpoint.name, ctx.config.functionNameCasing), {
302
355
  suspend: true,
303
356
  parameters: parameters.map((parameter) => {
304
357
  return index_js_1.kt.parameter((0, core_1.toCasing)(parameter.name, ctx.config.parameterNameCasing), this.getParameterType(ctx, { endpoint, parameter }));
305
358
  }),
306
- returnType: index_js_1.kt.refs.spring.responseEntity([this.getResponseType(ctx, { endpoint })]),
307
- body: (0, core_1.appendValueGroup)([(0, core_1.builderTemplate) `return ${index_js_1.kt.refs.spring.responseEntity.infer()}(${index_js_1.kt.refs.spring.httpStatus()}.NOT_IMPLEMENTED)`], '\n'),
308
359
  });
360
+ if (ctx.config.strictResponseEntities) {
361
+ const responseEntity = index_js_1.kt.reference.genericFactory(this.getApiResponseEntityName(ctx, { endpoint }), `${this.getPackageName(ctx, {})}.${this.getApiInterfaceName(ctx, {})}`);
362
+ fn.returnType = responseEntity(['*']);
363
+ fn.body = (0, core_1.appendValueGroup)([(0, core_1.builderTemplate) `return ${index_js_1.kt.call([
364
+ responseEntity.infer(),
365
+ (0, core_1.toCasing)((0, http_status_codes_1.getReasonPhrase)(501), ctx.config.functionNameCasing),
366
+ ], [])}`], '\n');
367
+ }
368
+ else {
369
+ fn.returnType = index_js_1.kt.refs.spring.responseEntity([this.getResponseType(ctx, { endpoint })]);
370
+ fn.body = (0, core_1.appendValueGroup)([(0, core_1.builderTemplate) `return ${index_js_1.kt.refs.spring.responseEntity.infer()}(${index_js_1.kt.refs.spring.httpStatus()}.NOT_IMPLEMENTED)`], '\n');
371
+ }
372
+ return fn;
309
373
  }
310
374
  // #endregion
311
375
  getParameterType(ctx, args) {
@@ -321,8 +385,8 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
321
385
  return parameter.target === 'body' ? adjustListType(ctx, type) : type;
322
386
  }
323
387
  getResponseType(ctx, args) {
324
- const { endpoint } = args;
325
- const responseSchemas = endpoint.responses
388
+ const { endpoint, response } = args;
389
+ const responseSchemas = (response ? [response] : endpoint.responses)
326
390
  .flatMap((x) => x.contentOptions.flatMap((x) => x.schema))
327
391
  .filter(core_1.notNullish)
328
392
  .filter((x, i, a) => a.findIndex((y) => {
@@ -379,6 +443,10 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
379
443
  : ctx.config.packageSuffix(ctx.service);
380
444
  return ctx.config.packageName + packageSuffix;
381
445
  }
446
+ getApiResponseEntityName(ctx, args) {
447
+ const { endpoint } = args;
448
+ return (0, core_1.toCasing)(`${endpoint.name}_ResponseEntity`, ctx.config.typeNameCasing);
449
+ }
382
450
  getApiInterfaceName(ctx, _args) {
383
451
  return (0, core_1.toCasing)(ctx.service.name + '_Api', ctx.config.typeNameCasing);
384
452
  }
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  require("../_dnt.test_polyfills.js");
4
4
  const node_os_1 = require("node:os");
5
- const expect_js_1 = require("../deps/jsr.io/@std/expect/1.0.9/expect.js");
6
- const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.6/bdd.js");
5
+ const expect_js_1 = require("../deps/jsr.io/@std/expect/1.0.12/expect.js");
6
+ const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.9/bdd.js");
7
7
  const core_1 = require("@goast/core");
8
8
  const import_collection_js_1 = require("./import-collection.js");
9
9
  (0, bdd_js_1.describe)('ImportCollection', () => {
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  require("../_dnt.test_polyfills.js");
5
5
  const node_path_1 = require("node:path");
6
- const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.6/bdd.js");
7
- const mock_js_1 = require("../deps/jsr.io/@std/testing/1.0.6/mock.js");
6
+ const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.9/bdd.js");
7
+ const mock_js_1 = require("../deps/jsr.io/@std/testing/1.0.9/mock.js");
8
8
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
9
  const core_1 = require("@goast/core");
10
10
  const test_utils_1 = require("@goast/test-utils");
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import * as dntShim from "../../../../../_dnt.test_shims.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { equal } from "./equal.js";
4
4
  import { buildMessage } from "../../internal/1.0.5/build_message.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
  import { stripAnsiCode } from "../../internal/1.0.5/styles.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { assertFalse } from "./false.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
  import { format } from "../../internal/1.0.5/format.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { AssertionError } from "./assertion_error.js";
4
4
  import { assertIsError } from "./is_error.js";
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { buildMessage } from "../../internal/1.0.5/build_message.js";
4
4
  import { diff } from "../../internal/1.0.5/diff.js";
@@ -1,8 +1,8 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  // This file is copied from `std/assert`.
4
4
 
5
- import { AssertionError } from "../../assert/1.0.9/assertion_error.js";
5
+ import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
6
6
  import { buildEqualErrorMessage } from "./_build_message.js";
7
7
  import { equal } from "./_equal.js";
8
8
  import type { EqualOptions } from "./_types.js";
@@ -0,0 +1,54 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
4
+ import { stripAnsiCode } from "../../internal/1.0.5/styles.js";
5
+
6
+ /**
7
+ * Make an assertion that `error` is an `Error`.
8
+ * If not then an error will be thrown.
9
+ * An error class and a string that should be included in the
10
+ * error message can also be asserted.
11
+ *
12
+ * @typeParam E The type of the error to assert.
13
+ * @param error The error to assert.
14
+ * @param ErrorClass The optional error class to assert.
15
+ * @param msgMatches The optional string or RegExp to assert in the error message.
16
+ * @param msg The optional message to display if the assertion fails.
17
+ */
18
+ export function assertIsError<E extends Error = Error>(
19
+ error: unknown,
20
+ // deno-lint-ignore no-explicit-any
21
+ ErrorClass?: abstract new (...args: any[]) => E,
22
+ msgMatches?: string | RegExp,
23
+ msg?: string,
24
+ ): asserts error is E {
25
+ const msgPrefix = msg ? `${msg}: ` : "";
26
+ if (!(error instanceof Error)) {
27
+ throw new AssertionError(
28
+ `${msgPrefix}Expected "error" to be an Error object.`,
29
+ );
30
+ }
31
+ if (ErrorClass && !(error instanceof ErrorClass)) {
32
+ msg =
33
+ `${msgPrefix}Expected error to be instance of "${ErrorClass.name}", but was "${error?.constructor?.name}".`;
34
+ throw new AssertionError(msg);
35
+ }
36
+ let msgCheck;
37
+ if (typeof msgMatches === "string") {
38
+ msgCheck = stripAnsiCode(error.message).includes(
39
+ stripAnsiCode(msgMatches),
40
+ );
41
+ }
42
+ if (msgMatches instanceof RegExp) {
43
+ msgCheck = msgMatches.test(stripAnsiCode(error.message));
44
+ }
45
+
46
+ if (msgMatches && !msgCheck) {
47
+ msg = `${msgPrefix}Expected error message to include ${
48
+ msgMatches instanceof RegExp
49
+ ? msgMatches.toString()
50
+ : JSON.stringify(msgMatches)
51
+ }, but got ${JSON.stringify(error?.message)}.`;
52
+ throw new AssertionError(msg);
53
+ }
54
+ }
@@ -1,8 +1,8 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  // This file is copied from `std/assert`.
4
4
 
5
- import { AssertionError } from "../../assert/1.0.9/assertion_error.js";
5
+ import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
6
6
  import { buildNotEqualErrorMessage } from "./_build_message.js";
7
7
  import { equal } from "./_equal.js";
8
8
  import type { EqualOptions } from "./_types.js";
@@ -30,6 +30,6 @@ export function assertNotEquals<T>(
30
30
  return;
31
31
  }
32
32
 
33
- const message = buildNotEqualErrorMessage(actual, expected, options);
33
+ const message = buildNotEqualErrorMessage(actual, expected, options ?? {});
34
34
  throw new AssertionError(message);
35
35
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
4
4
 
@@ -1,6 +1,7 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // deno-lint-ignore-file no-explicit-any
3
3
 
4
+ import { getCustomEqualityTesters } from "./_custom_equality_tester.js";
4
5
  import { equal } from "./_equal.js";
5
6
 
6
7
  export abstract class AsymmetricMatcher<T> {
@@ -76,7 +77,11 @@ export class ArrayContaining extends AsymmetricMatcher<any[]> {
76
77
 
77
78
  equals(other: any[]): boolean {
78
79
  const res = Array.isArray(other) &&
79
- this.value.every((e) => other.includes(e));
80
+ this.value.every((e) =>
81
+ other.some((another) =>
82
+ equal(e, another, { customTesters: getCustomEqualityTesters() })
83
+ )
84
+ );
80
85
  return this.inverse ? !res : res;
81
86
  }
82
87
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  import { buildMessage } from "../../internal/1.0.5/build_message.js";
4
4
  import { diff } from "../../internal/1.0.5/diff.js";
@@ -21,11 +21,11 @@ export function buildEqualErrorMessage<T>(
21
21
  options: EqualErrorMessageOptions,
22
22
  ): string {
23
23
  const { formatter = format, msg } = options ?? {};
24
- const msgSuffix = msg ? `: ${msg}` : ".";
24
+ const msgPrefix = msg ? `${msg}: ` : "";
25
25
  const actualString = formatter(actual);
26
26
  const expectedString = formatter(expected);
27
27
 
28
- let message = `Values are not equal${msgSuffix}`;
28
+ let message = `${msgPrefix}Values are not equal.`;
29
29
 
30
30
  const stringDiff = isString(actual) && isString(expected);
31
31
  const diffResult = stringDiff
@@ -46,6 +46,6 @@ export function buildNotEqualErrorMessage<T>(
46
46
  const actualString = String(actual);
47
47
  const expectedString = String(expected);
48
48
 
49
- const msgSuffix = msg ? `: ${msg}` : ".";
50
- return `Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`;
49
+ const msgPrefix = msg ? `${msg}: ` : "";
50
+ return `${msgPrefix}Expected actual: ${actualString} not to be: ${expectedString}.`;
51
51
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  import type { Tester } from "./_types.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  // This file is copied from `std/assert`.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
 
3
3
  import type { Matchers } from "./_types.js";
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // deno-lint-ignore-file
3
3
  import * as dntShim from "../../../../../_dnt.test_shims.js";
4
4