@goast/kotlin 0.4.10 → 0.4.12-beta1
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.
- package/LICENSE +21 -21
- package/README.md +45 -45
- package/assets/client/okhttp3/ApiClient.kt +252 -252
- package/esm/src/ast/references/jakarta.d.ts +4 -0
- package/esm/src/ast/references/jakarta.d.ts.map +1 -1
- package/esm/src/ast/references/jakarta.js +4 -0
- package/esm/src/ast/references/spring.d.ts +1 -0
- package/esm/src/ast/references/spring.d.ts.map +1 -1
- package/esm/src/ast/references/spring.js +1 -0
- package/esm/src/generators/models/args.d.ts +1 -5
- package/esm/src/generators/models/args.d.ts.map +1 -1
- package/esm/src/generators/models/model-generator.d.ts +1 -2
- package/esm/src/generators/models/model-generator.d.ts.map +1 -1
- package/esm/src/generators/models/model-generator.js +46 -15
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +36 -28
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/esm/src/generators/services/spring-controllers/spring-controller-generator.js +10 -6
- package/package.json +2 -2
- package/script/src/ast/references/jakarta.d.ts +4 -0
- package/script/src/ast/references/jakarta.d.ts.map +1 -1
- package/script/src/ast/references/jakarta.js +5 -1
- package/script/src/ast/references/spring.d.ts +1 -0
- package/script/src/ast/references/spring.d.ts.map +1 -1
- package/script/src/ast/references/spring.js +2 -1
- package/script/src/generators/models/args.d.ts +1 -5
- package/script/src/generators/models/args.d.ts.map +1 -1
- package/script/src/generators/models/model-generator.d.ts +1 -2
- package/script/src/generators/models/model-generator.d.ts.map +1 -1
- package/script/src/generators/models/model-generator.js +46 -15
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
- package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +36 -28
- package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
- package/script/src/generators/services/spring-controllers/spring-controller-generator.js +10 -6
- package/esm/_dnt.test_polyfills.d.ts +0 -29
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -31
- package/esm/_dnt.test_shims.d.ts +0 -6
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -61
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.js +0 -183
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +0 -35
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.js +0 -58
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts +0 -42
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.d.ts +0 -14
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.js +0 -43
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assertions.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assertions.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_assertions.js +0 -13
- package/esm/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.d.ts +0 -46
- package/esm/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.js +0 -161
- package/esm/deps/jsr.io/@std/expect/1.0.13/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.13/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.13/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.13/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.13/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.13/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.13/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.13/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.13/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.13/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_matchers.js +0 -714
- package/esm/deps/jsr.io/@std/expect/1.0.13/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.13/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.13/_serializer.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.13/_serializer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_serializer.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.13/_types.d.ts +0 -843
- package/esm/deps/jsr.io/@std/expect/1.0.13/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.13/_utils.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.13/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/_utils.js +0 -218
- package/esm/deps/jsr.io/@std/expect/1.0.13/expect.d.ts +0 -60
- package/esm/deps/jsr.io/@std/expect/1.0.13/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.13/expect.js +0 -523
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts +0 -15
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +0 -35
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +0 -674
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.js +0 -1083
- package/esm/src/ast/nodes/annotation.test.d.ts +0 -2
- package/esm/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/annotation.test.js +0 -56
- package/esm/src/ast/nodes/argument.test.d.ts +0 -2
- package/esm/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/argument.test.js +0 -33
- package/esm/src/ast/nodes/call.test.d.ts +0 -2
- package/esm/src/ast/nodes/call.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/call.test.js +0 -35
- package/esm/src/ast/nodes/class.test.d.ts +0 -2
- package/esm/src/ast/nodes/class.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/class.test.js +0 -219
- package/esm/src/ast/nodes/constructor.test.d.ts +0 -2
- package/esm/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/constructor.test.js +0 -139
- package/esm/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc-tag.test.js +0 -67
- package/esm/src/ast/nodes/doc.test.d.ts +0 -2
- package/esm/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/doc.test.js +0 -33
- package/esm/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum-value.test.js +0 -115
- package/esm/src/ast/nodes/enum.test.d.ts +0 -2
- package/esm/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/enum.test.js +0 -129
- package/esm/src/ast/nodes/function.test.d.ts +0 -2
- package/esm/src/ast/nodes/function.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/function.test.js +0 -160
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/generic-parameter.test.js +0 -49
- package/esm/src/ast/nodes/init-block.test.d.ts +0 -2
- package/esm/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/init-block.test.js +0 -28
- package/esm/src/ast/nodes/interface.test.d.ts +0 -2
- package/esm/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/interface.test.js +0 -121
- package/esm/src/ast/nodes/object.test.d.ts +0 -2
- package/esm/src/ast/nodes/object.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/object.test.js +0 -78
- package/esm/src/ast/nodes/parameter.test.d.ts +0 -2
- package/esm/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/parameter.test.js +0 -152
- package/esm/src/ast/nodes/property.test.d.ts +0 -2
- package/esm/src/ast/nodes/property.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/property.test.js +0 -206
- package/esm/src/ast/nodes/reference.test.d.ts +0 -2
- package/esm/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/reference.test.js +0 -36
- package/esm/src/ast/nodes/string.test.d.ts +0 -2
- package/esm/src/ast/nodes/string.test.d.ts.map +0 -1
- package/esm/src/ast/nodes/string.test.js +0 -48
- package/esm/src/import-collection.test.d.ts +0 -2
- package/esm/src/import-collection.test.d.ts.map +0 -1
- package/esm/src/import-collection.test.js +0 -99
- package/esm/tests/openapi-models.test.d.ts +0 -2
- package/esm/tests/openapi-models.test.d.ts.map +0 -1
- package/esm/tests/openapi-models.test.js +0 -45
- package/script/_dnt.test_polyfills.d.ts +0 -29
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -32
- package/script/_dnt.test_shims.d.ts +0 -6
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -65
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.js +0 -187
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.js +0 -61
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.js +0 -57
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts +0 -42
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.d.ts +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.js +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.13/_assertions.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.13/_assertions.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_assertions.js +0 -18
- package/script/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.d.ts +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.js +0 -183
- package/script/deps/jsr.io/@std/expect/1.0.13/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.13/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.13/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.13/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.13/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.13/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.13/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.13/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.13/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.13/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_matchers.js +0 -748
- package/script/deps/jsr.io/@std/expect/1.0.13/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.13/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.13/_serializer.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.13/_serializer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_serializer.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.13/_types.d.ts +0 -843
- package/script/deps/jsr.io/@std/expect/1.0.13/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.13/_utils.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.13/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/_utils.js +0 -226
- package/script/deps/jsr.io/@std/expect/1.0.13/expect.d.ts +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.13/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.13/expect.js +0 -527
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts +0 -15
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +0 -41
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +0 -674
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.js +0 -1102
- package/script/src/ast/nodes/annotation.test.d.ts +0 -2
- package/script/src/ast/nodes/annotation.test.d.ts.map +0 -1
- package/script/src/ast/nodes/annotation.test.js +0 -58
- package/script/src/ast/nodes/argument.test.d.ts +0 -2
- package/script/src/ast/nodes/argument.test.d.ts.map +0 -1
- package/script/src/ast/nodes/argument.test.js +0 -35
- package/script/src/ast/nodes/call.test.d.ts +0 -2
- package/script/src/ast/nodes/call.test.d.ts.map +0 -1
- package/script/src/ast/nodes/call.test.js +0 -37
- package/script/src/ast/nodes/class.test.d.ts +0 -2
- package/script/src/ast/nodes/class.test.d.ts.map +0 -1
- package/script/src/ast/nodes/class.test.js +0 -221
- package/script/src/ast/nodes/constructor.test.d.ts +0 -2
- package/script/src/ast/nodes/constructor.test.d.ts.map +0 -1
- package/script/src/ast/nodes/constructor.test.js +0 -141
- package/script/src/ast/nodes/doc-tag.test.d.ts +0 -2
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc-tag.test.js +0 -69
- package/script/src/ast/nodes/doc.test.d.ts +0 -2
- package/script/src/ast/nodes/doc.test.d.ts.map +0 -1
- package/script/src/ast/nodes/doc.test.js +0 -35
- package/script/src/ast/nodes/enum-value.test.d.ts +0 -2
- package/script/src/ast/nodes/enum-value.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum-value.test.js +0 -117
- package/script/src/ast/nodes/enum.test.d.ts +0 -2
- package/script/src/ast/nodes/enum.test.d.ts.map +0 -1
- package/script/src/ast/nodes/enum.test.js +0 -131
- package/script/src/ast/nodes/function.test.d.ts +0 -2
- package/script/src/ast/nodes/function.test.d.ts.map +0 -1
- package/script/src/ast/nodes/function.test.js +0 -162
- package/script/src/ast/nodes/generic-parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/generic-parameter.test.js +0 -51
- package/script/src/ast/nodes/init-block.test.d.ts +0 -2
- package/script/src/ast/nodes/init-block.test.d.ts.map +0 -1
- package/script/src/ast/nodes/init-block.test.js +0 -30
- package/script/src/ast/nodes/interface.test.d.ts +0 -2
- package/script/src/ast/nodes/interface.test.d.ts.map +0 -1
- package/script/src/ast/nodes/interface.test.js +0 -123
- package/script/src/ast/nodes/object.test.d.ts +0 -2
- package/script/src/ast/nodes/object.test.d.ts.map +0 -1
- package/script/src/ast/nodes/object.test.js +0 -80
- package/script/src/ast/nodes/parameter.test.d.ts +0 -2
- package/script/src/ast/nodes/parameter.test.d.ts.map +0 -1
- package/script/src/ast/nodes/parameter.test.js +0 -154
- package/script/src/ast/nodes/property.test.d.ts +0 -2
- package/script/src/ast/nodes/property.test.d.ts.map +0 -1
- package/script/src/ast/nodes/property.test.js +0 -208
- package/script/src/ast/nodes/reference.test.d.ts +0 -2
- package/script/src/ast/nodes/reference.test.d.ts.map +0 -1
- package/script/src/ast/nodes/reference.test.js +0 -38
- package/script/src/ast/nodes/string.test.d.ts +0 -2
- package/script/src/ast/nodes/string.test.d.ts.map +0 -1
- package/script/src/ast/nodes/string.test.js +0 -50
- package/script/src/import-collection.test.d.ts +0 -2
- package/script/src/import-collection.test.d.ts.map +0 -1
- package/script/src/import-collection.test.js +0 -101
- package/script/tests/openapi-models.test.d.ts +0 -2
- package/script/tests/openapi-models.test.d.ts.map +0 -1
- package/script/tests/openapi-models.test.js +0 -48
- package/src/_dnt.test_polyfills.ts +0 -70
- package/src/_dnt.test_shims.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.11/equal.ts +0 -210
- package/src/deps/jsr.io/@std/assert/1.0.11/equals.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.11/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.11/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.13/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.13/_assert_is_error.ts +0 -54
- package/src/deps/jsr.io/@std/expect/1.0.13/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.13/_assertions.ts +0 -18
- package/src/deps/jsr.io/@std/expect/1.0.13/_asymmetric_matchers.ts +0 -198
- package/src/deps/jsr.io/@std/expect/1.0.13/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.13/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.13/_equal.ts +0 -230
- package/src/deps/jsr.io/@std/expect/1.0.13/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.13/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.13/_matchers.ts +0 -1028
- package/src/deps/jsr.io/@std/expect/1.0.13/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.13/_serializer.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.13/_types.ts +0 -923
- package/src/deps/jsr.io/@std/expect/1.0.13/_utils.ts +0 -283
- package/src/deps/jsr.io/@std/expect/1.0.13/expect.ts +0 -620
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.9/_mock_utils.ts +0 -43
- package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
- package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
- package/src/deps/jsr.io/@std/testing/1.0.9/mock.ts +0 -1807
- package/src/mod.ts +0 -8
- package/src/src/assets.ts +0 -9
- package/src/src/ast/_index.ts +0 -66
- package/src/src/ast/common.ts +0 -1
- package/src/src/ast/index.ts +0 -1
- package/src/src/ast/node.ts +0 -10
- package/src/src/ast/nodes/annotation.test.ts +0 -69
- package/src/src/ast/nodes/annotation.ts +0 -79
- package/src/src/ast/nodes/argument.test.ts +0 -41
- package/src/src/ast/nodes/argument.ts +0 -62
- package/src/src/ast/nodes/call.test.ts +0 -44
- package/src/src/ast/nodes/call.ts +0 -66
- package/src/src/ast/nodes/class.test.ts +0 -274
- package/src/src/ast/nodes/class.ts +0 -178
- package/src/src/ast/nodes/collection-literal.ts +0 -49
- package/src/src/ast/nodes/constructor.test.ts +0 -178
- package/src/src/ast/nodes/constructor.ts +0 -126
- package/src/src/ast/nodes/doc-tag.test.ts +0 -84
- package/src/src/ast/nodes/doc-tag.ts +0 -138
- package/src/src/ast/nodes/doc.test.ts +0 -42
- package/src/src/ast/nodes/doc.ts +0 -111
- package/src/src/ast/nodes/enum-value.test.ts +0 -146
- package/src/src/ast/nodes/enum-value.ts +0 -100
- package/src/src/ast/nodes/enum.test.ts +0 -167
- package/src/src/ast/nodes/enum.ts +0 -163
- package/src/src/ast/nodes/function.test.ts +0 -194
- package/src/src/ast/nodes/function.ts +0 -176
- package/src/src/ast/nodes/generic-parameter.test.ts +0 -60
- package/src/src/ast/nodes/generic-parameter.ts +0 -54
- package/src/src/ast/nodes/init-block.test.ts +0 -36
- package/src/src/ast/nodes/init-block.ts +0 -38
- package/src/src/ast/nodes/interface.test.ts +0 -151
- package/src/src/ast/nodes/interface.ts +0 -133
- package/src/src/ast/nodes/lambda-type.ts +0 -68
- package/src/src/ast/nodes/lambda.ts +0 -68
- package/src/src/ast/nodes/object.test.ts +0 -101
- package/src/src/ast/nodes/object.ts +0 -102
- package/src/src/ast/nodes/parameter.test.ts +0 -191
- package/src/src/ast/nodes/parameter.ts +0 -118
- package/src/src/ast/nodes/property.test.ts +0 -253
- package/src/src/ast/nodes/property.ts +0 -225
- package/src/src/ast/nodes/reference.test.ts +0 -47
- package/src/src/ast/nodes/reference.ts +0 -178
- package/src/src/ast/nodes/string.test.ts +0 -61
- package/src/src/ast/nodes/string.ts +0 -114
- package/src/src/ast/nodes/types.ts +0 -23
- package/src/src/ast/references/index.ts +0 -8
- package/src/src/ast/references/jackson.ts +0 -16
- package/src/src/ast/references/jakarta.ts +0 -10
- package/src/src/ast/references/java.ts +0 -19
- package/src/src/ast/references/kotlin.ts +0 -40
- package/src/src/ast/references/okhttp3.ts +0 -5
- package/src/src/ast/references/reactor.ts +0 -5
- package/src/src/ast/references/spring.ts +0 -68
- package/src/src/ast/references/swagger.ts +0 -23
- package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
- package/src/src/ast/utils/to-kt-node.ts +0 -31
- package/src/src/ast/utils/write-kt-annotations.ts +0 -15
- package/src/src/ast/utils/write-kt-arguments.ts +0 -45
- package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
- package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
- package/src/src/ast/utils/write-kt-members.ts +0 -25
- package/src/src/ast/utils/write-kt-node.ts +0 -37
- package/src/src/ast/utils/write-kt-parameters.ts +0 -25
- package/src/src/common-results.ts +0 -4
- package/src/src/config.ts +0 -41
- package/src/src/file-builder.ts +0 -108
- package/src/src/generators/file-generator.ts +0 -29
- package/src/src/generators/index.ts +0 -4
- package/src/src/generators/models/args.ts +0 -128
- package/src/src/generators/models/index.ts +0 -4
- package/src/src/generators/models/model-generator.ts +0 -602
- package/src/src/generators/models/models-generator.ts +0 -65
- package/src/src/generators/models/models.ts +0 -95
- package/src/src/generators/services/okhttp3-clients/args.ts +0 -78
- package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
- package/src/src/generators/services/okhttp3-clients/models.ts +0 -62
- package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -557
- package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -130
- package/src/src/generators/services/okhttp3-clients/refs.ts +0 -55
- package/src/src/generators/services/spring-controllers/args.ts +0 -88
- package/src/src/generators/services/spring-controllers/index.ts +0 -4
- package/src/src/generators/services/spring-controllers/models.ts +0 -66
- package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -763
- package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -70
- package/src/src/import-collection.test.ts +0 -116
- package/src/src/import-collection.ts +0 -98
- package/src/src/types.ts +0 -3
- package/src/src/utils.ts +0 -39
- package/src/tests/openapi-models.test.ts +0 -63
- package/test_runner.js +0 -227
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jakarta.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/jakarta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,eAAO,MAAM,SAAS,EAAE,kBAA2E,CAAC;AAGpG,eAAO,MAAM,KAAK,EAAE,kBAAuE,CAAC;AAG5F,eAAO,MAAM,OAAO,EAAE,kBAAqF,CAAC"}
|
|
1
|
+
{"version":3,"file":"jakarta.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/jakarta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,eAAO,MAAM,SAAS,EAAE,kBAA2E,CAAC;AAGpG,eAAO,MAAM,KAAK,EAAE,kBAAuE,CAAC;AAG5F,eAAO,MAAM,OAAO,EAAE,kBAAqF,CAAC;AAC5G,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,eAAO,MAAM,QAAQ,EAAE,kBAAsF,CAAC;AAC9G,eAAO,MAAM,IAAI,EAAE,kBAAkF,CAAC"}
|
|
@@ -5,3 +5,7 @@ export const generated = ktReference.factory('Generated', 'jakarta.annotation');
|
|
|
5
5
|
export const valid = ktReference.factory('Valid', 'jakarta.validation');
|
|
6
6
|
// jakarta.validation.constraints
|
|
7
7
|
export const pattern = ktReference.factory('Pattern', 'jakarta.validation.constraints');
|
|
8
|
+
export const min = ktReference.factory('Min', 'jakarta.validation.constraints');
|
|
9
|
+
export const max = ktReference.factory('Max', 'jakarta.validation.constraints');
|
|
10
|
+
export const notEmpty = ktReference.factory('NotEmpty', 'jakarta.validation.constraints');
|
|
11
|
+
export const size = ktReference.factory('Size', 'jakarta.validation.constraints');
|
|
@@ -13,5 +13,6 @@ export declare const requestMapping: KtReferenceFactory;
|
|
|
13
13
|
export declare const requestMethod: KtReferenceFactory;
|
|
14
14
|
export declare const requestParam: KtReferenceFactory;
|
|
15
15
|
export declare const requestPart: KtReferenceFactory;
|
|
16
|
+
export declare const requestHeader: KtReferenceFactory;
|
|
16
17
|
export declare const nativeWebRequest: KtReferenceFactory;
|
|
17
18
|
//# sourceMappingURL=spring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,kBAAkF,CAAC;AAC5G,eAAO,MAAM,cAAc,EAAE,yBAAyB,CAAC,CAAC,CAGvD,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,kBAAgG,CAAC;AAGxH,eAAO,MAAM,UAAU,EAAE,kBAAwF,CAAC;AAGlH,eAAO,MAAM,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAGtD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,CAAC,CAG5D,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,kBAAkF,CAAC;AAC5G,eAAO,MAAM,cAAc,EAAE,yBAAyB,CAAC,CAAC,CAGvD,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,kBAAgG,CAAC;AAGxH,eAAO,MAAM,UAAU,EAAE,kBAAwF,CAAC;AAGlH,eAAO,MAAM,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAGtD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,CAAC,CAG5D,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC"}
|
|
@@ -20,5 +20,6 @@ export const requestMapping = ktReference.factory('RequestMapping', 'org.springf
|
|
|
20
20
|
export const requestMethod = ktReference.factory('RequestMethod', 'org.springframework.web.bind.annotation');
|
|
21
21
|
export const requestParam = ktReference.factory('RequestParam', 'org.springframework.web.bind.annotation');
|
|
22
22
|
export const requestPart = ktReference.factory('RequestPart', 'org.springframework.web.bind.annotation');
|
|
23
|
+
export const requestHeader = ktReference.factory('RequestHeader', 'org.springframework.web.bind.annotation');
|
|
23
24
|
// org.springframework.web.context.request
|
|
24
25
|
export const nativeWebRequest = ktReference.factory('NativeWebRequest', 'org.springframework.web.context.request');
|
|
@@ -59,11 +59,7 @@ export type GetJacksonJsonIncludeAnnotation = {
|
|
|
59
59
|
schema: ApiSchema;
|
|
60
60
|
property: ApiSchemaProperty;
|
|
61
61
|
};
|
|
62
|
-
export type
|
|
63
|
-
schema: ApiSchema;
|
|
64
|
-
property: ApiSchemaProperty;
|
|
65
|
-
};
|
|
66
|
-
export type GetJakartaValidAnnotation = {
|
|
62
|
+
export type GetJakartaValidationAnnotations = {
|
|
67
63
|
schema: ApiSchema;
|
|
68
64
|
property: ApiSchemaProperty;
|
|
69
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../src/src/generators/models/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MA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QAAQ,CAAC,iBAAiB,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -30,8 +30,7 @@ export declare class DefaultKotlinModelGenerator extends KotlinFileGenerator<Con
|
|
|
30
30
|
protected getJacksonJsonSubTypesAnnotation(ctx: Context, args: Args.GetJacksonJsonSubTypesAnnotation): kt.Annotation<Builder> | null;
|
|
31
31
|
protected getJacksonJsonPropertyAnnotation(ctx: Context, args: Args.GetJacksonJsonPropertyAnnotation): kt.Annotation<Builder> | null;
|
|
32
32
|
protected getJacksonJsonIncludeAnnotation(ctx: Context, args: Args.GetJacksonJsonIncludeAnnotation): kt.Annotation<Builder> | null;
|
|
33
|
-
protected
|
|
34
|
-
protected getJakartaValidAnnotation(ctx: Context, args: Args.GetJakartaValidAnnotation): kt.Annotation<Builder> | null;
|
|
33
|
+
protected getJakartaValidationAnnotations(ctx: Context, args: Args.GetJakartaValidationAnnotations): kt.Annotation<Builder>[];
|
|
35
34
|
protected getSwaggerSchemaAnnotation(ctx: Context, args: Args.GetSwaggerSchemaAnnotation): kt.Annotation<Builder> | null;
|
|
36
35
|
protected getPackageName(ctx: Context, args: Args.GetPackageName): string;
|
|
37
36
|
protected shouldGenerateTypeDeclaration(ctx: Context, args: Args.ShouldGenerateTypeDeclaration): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-generator.d.ts","sourceRoot":"","sources":["../../../../src/src/generators/models/model-generator.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAKjB,KAAK,aAAa,EAEnB,MAAM,aA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C,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;KAAE,CAAC,EAAE;IAM5F,SAAS,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,EAAE;IA4B9F,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,GAAG,iBAAiB,EAAE;IAUvF,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,SAAS;IAqB9E,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,GAAG,OAAO;CASrE"}
|
|
@@ -179,8 +179,7 @@ export class DefaultKotlinModelGenerator extends KotlinFileGenerator {
|
|
|
179
179
|
return kt.parameter.class(toCasing(property.name, ctx.config.propertyNameCasing), this.getType(ctx, { schema: property.schema, nullable: schema.required.has(property.name) ? undefined : true }), {
|
|
180
180
|
description: (_a = property.schema.description) === null || _a === void 0 ? void 0 : _a.trim(),
|
|
181
181
|
annotations: [
|
|
182
|
-
this.
|
|
183
|
-
this.getJakartaValidAnnotation(ctx, { schema, property }),
|
|
182
|
+
...this.getJakartaValidationAnnotations(ctx, { schema, property }),
|
|
184
183
|
this.getSwaggerSchemaAnnotation(ctx, { schema, property }),
|
|
185
184
|
this.getJacksonJsonPropertyAnnotation(ctx, { schema, property }),
|
|
186
185
|
modify(this.getJacksonJsonIncludeAnnotation(ctx, { schema, property }), (x) => (x.target = 'get')),
|
|
@@ -282,20 +281,52 @@ export class DefaultKotlinModelGenerator extends KotlinFileGenerator {
|
|
|
282
281
|
])
|
|
283
282
|
: null;
|
|
284
283
|
}
|
|
285
|
-
|
|
284
|
+
getJakartaValidationAnnotations(ctx, args) {
|
|
286
285
|
const { property } = args;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
286
|
+
const annotations = [];
|
|
287
|
+
if (!ctx.config.addJakartaValidationAnnotations) {
|
|
288
|
+
return annotations;
|
|
289
|
+
}
|
|
290
|
+
if (property.schema.kind === 'string') {
|
|
291
|
+
if (property.schema.pattern) {
|
|
292
|
+
annotations.push(kt.annotation(kt.refs.jakarta.pattern(), [kt.argument.named('regexp', kt.string(property.schema.pattern))], {
|
|
293
|
+
target: 'get',
|
|
294
|
+
}));
|
|
295
|
+
}
|
|
296
|
+
if (property.schema.minLength === 1 && property.schema.maxLength === undefined) {
|
|
297
|
+
annotations.push(kt.annotation(kt.refs.jakarta.notEmpty(), [], { target: 'get' }));
|
|
298
|
+
}
|
|
299
|
+
else if (property.schema.minLength !== undefined || property.schema.maxLength !== undefined) {
|
|
300
|
+
annotations.push(kt.annotation(kt.refs.jakarta.size(), [
|
|
301
|
+
property.schema.minLength !== undefined ? kt.argument.named('min', property.schema.minLength) : null,
|
|
302
|
+
property.schema.maxLength !== undefined ? kt.argument.named('max', property.schema.maxLength) : null,
|
|
303
|
+
], { target: 'get' }));
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
else if (property.schema.kind === 'number' || property.schema.kind === 'integer') {
|
|
307
|
+
if (property.schema.minimum !== undefined) {
|
|
308
|
+
annotations.push(kt.annotation(kt.refs.jakarta.min(), [kt.argument.named('value', property.schema.minimum)], {
|
|
309
|
+
target: 'get',
|
|
310
|
+
}));
|
|
311
|
+
}
|
|
312
|
+
if (property.schema.maximum !== undefined) {
|
|
313
|
+
annotations.push(kt.annotation(kt.refs.jakarta.max(), [kt.argument.named('value', property.schema.maximum)], {
|
|
314
|
+
target: 'get',
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
else if (property.schema.kind === 'array') {
|
|
319
|
+
if (property.schema.minItems !== undefined || property.schema.maxItems !== undefined) {
|
|
320
|
+
annotations.push(kt.annotation(kt.refs.jakarta.size(), [
|
|
321
|
+
property.schema.minItems !== undefined ? kt.argument.named('min', property.schema.minItems) : null,
|
|
322
|
+
property.schema.maxItems !== undefined ? kt.argument.named('max', property.schema.maxItems) : null,
|
|
323
|
+
], { target: 'get' }));
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (this.shouldGenerateTypeDeclaration(ctx, { schema: property.schema })) {
|
|
327
|
+
annotations.push(kt.annotation(kt.refs.jakarta.valid(), [], { target: 'field' }));
|
|
328
|
+
}
|
|
329
|
+
return annotations;
|
|
299
330
|
}
|
|
300
331
|
getSwaggerSchemaAnnotation(ctx, args) {
|
|
301
332
|
const { schema, property } = args;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"okhttp3-client-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAEjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAE3C,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,iCAAiC,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,KAAK,EAAE,mCAAmC,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAE3G,KAAK,OAAO,GAAG,mCAAmC,CAAC;AACnD,KAAK,MAAM,GAAG,kCAAkC,CAAC;AACjD,KAAK,OAAO,GAAG,iBAA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AAS,CAAC,mCAAmC,CAC3C,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,mCAAmC,GAC7C,gBAAgB,CAAC,OAAO,CAAC;IA6B5B,SAAS,CAAC,oCAAoC,CAC5C,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,oCAAoC,GAC9C,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IAuBvB,SAAS,CAAC,wCAAwC,CAChD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,wCAAwC,GAClD,gBAAgB,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"okhttp3-client-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAEjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAE3C,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,iCAAiC,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,KAAK,EAAE,mCAAmC,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAE3G,KAAK,OAAO,GAAG,mCAAmC,CAAC;AACnD,KAAK,MAAM,GAAG,kCAAkC,CAAC;AACjD,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAEjC,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrE,QAAQ,CAAC,GAAG,EAAE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AE,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,SAAS;IAKxG,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAG,6BAA6B,EAAE;IAmDtG,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,uBAAuB,GAAG,MAAM;IAU3F,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,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,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,GAAG,MAAM;IAKnE,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,gBAAgB,GAAG,MAAM;IAI9E,OAAO,CAAC,kBAAkB;CAgB3B"}
|
|
@@ -101,31 +101,31 @@ export class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator {
|
|
|
101
101
|
return appendValueGroup([
|
|
102
102
|
s `val localVarResponse = ${kt.call([toCasing(endpoint.name + '_WithHttpInfo', ctx.config.functionNameCasing)], parameters.map((x) => x.name))}`,
|
|
103
103
|
'',
|
|
104
|
-
s `return when (localVarResponse.responseType) {${s.indent `
|
|
104
|
+
s `return when (localVarResponse.responseType) {${s.indent `
|
|
105
105
|
${ctx.refs.responseType()}.Success -> ${responseSchema === undefined
|
|
106
106
|
? kt.refs.unit()
|
|
107
107
|
: s `(localVarResponse as ${ctx.refs.success(['*'])}).data as ${this.getTypeUsage(ctx, {
|
|
108
108
|
schema: responseSchema,
|
|
109
|
-
})}`}
|
|
110
|
-
${ctx.refs.responseType()}.Informational -> throw ${kt.refs.java.unsupportedOperationException()}("Client does not support Informational responses.")
|
|
111
|
-
${ctx.refs.responseType()}.Redirection -> throw ${kt.refs.java.unsupportedOperationException()}("Client does not support Redirection responses.")
|
|
112
|
-
${ctx.refs.responseType()}.ClientError -> {${s.indent `
|
|
113
|
-
val localVarError = localVarResponse as ${ctx.refs.clientError(['*'])}
|
|
114
|
-
throw ${ctx.refs.clientException()}(${s.indent `
|
|
115
|
-
"Client error : \${localVarError.statusCode} \${localVarError.message.orEmpty()}",
|
|
116
|
-
localVarError.statusCode,
|
|
117
|
-
localVarResponse`}
|
|
118
|
-
)`}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
${ctx.refs.responseType()}.ServerError -> {${s.indent `
|
|
122
|
-
val localVarError = localVarResponse as ${ctx.refs.serverError(['*'])}
|
|
123
|
-
throw ${ctx.refs.serverException()}(${s.indent `
|
|
124
|
-
"Server error : \${localVarError.statusCode} \${localVarError.message.orEmpty()}",
|
|
125
|
-
localVarError.statusCode,
|
|
126
|
-
localVarResponse`}
|
|
127
|
-
)`}
|
|
128
|
-
}`}
|
|
109
|
+
})}`}
|
|
110
|
+
${ctx.refs.responseType()}.Informational -> throw ${kt.refs.java.unsupportedOperationException()}("Client does not support Informational responses.")
|
|
111
|
+
${ctx.refs.responseType()}.Redirection -> throw ${kt.refs.java.unsupportedOperationException()}("Client does not support Redirection responses.")
|
|
112
|
+
${ctx.refs.responseType()}.ClientError -> {${s.indent `
|
|
113
|
+
val localVarError = localVarResponse as ${ctx.refs.clientError(['*'])}
|
|
114
|
+
throw ${ctx.refs.clientException()}(${s.indent `
|
|
115
|
+
"Client error : \${localVarError.statusCode} \${localVarError.message.orEmpty()}",
|
|
116
|
+
localVarError.statusCode,
|
|
117
|
+
localVarResponse`}
|
|
118
|
+
)`}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
${ctx.refs.responseType()}.ServerError -> {${s.indent `
|
|
122
|
+
val localVarError = localVarResponse as ${ctx.refs.serverError(['*'])}
|
|
123
|
+
throw ${ctx.refs.serverException()}(${s.indent `
|
|
124
|
+
"Server error : \${localVarError.statusCode} \${localVarError.message.orEmpty()}",
|
|
125
|
+
localVarError.statusCode,
|
|
126
|
+
localVarResponse`}
|
|
127
|
+
)`}
|
|
128
|
+
}`}
|
|
129
129
|
}`,
|
|
130
130
|
], '\n');
|
|
131
131
|
}
|
|
@@ -189,9 +189,10 @@ export class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
getEndpointClientRequestConfigMethodBody(ctx, args) {
|
|
192
|
-
var _a, _b, _c;
|
|
192
|
+
var _a, _b, _c, _d;
|
|
193
193
|
const { endpoint, parameters } = args;
|
|
194
194
|
const queryParameters = parameters.filter((x) => x.target === 'query');
|
|
195
|
+
const headerParameters = parameters.filter((x) => x.target === 'header');
|
|
195
196
|
const result = appendValueGroup([], '\n');
|
|
196
197
|
if (endpoint.requestBody) {
|
|
197
198
|
if (((_a = endpoint.requestBody.content[0]) === null || _a === void 0 ? void 0 : _a.type) === 'multipart/form-data') {
|
|
@@ -209,22 +210,29 @@ export class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator {
|
|
|
209
210
|
result.values.push(`val localVariableBody = ${bodyParamName}`);
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
|
-
result.values.push(s `val localVariableQuery: ${ctx.refs.multiValueMap()} = ${kt.call([kt.refs.mutableMapOf([kt.refs.string(), kt.refs.list([kt.refs.string()])])], [])}${queryParameters.length === 0 ? '' : s.indent `
|
|
213
|
-
.apply {${s.indent `
|
|
213
|
+
result.values.push(s `val localVariableQuery: ${ctx.refs.multiValueMap()} = ${kt.call([kt.refs.mutableMapOf([kt.refs.string(), kt.refs.list([kt.refs.string()])])], [])}${queryParameters.length === 0 ? '' : s.indent `
|
|
214
|
+
.apply {${s.indent `
|
|
214
215
|
${appendValueGroup(queryParameters.map((param) => {
|
|
215
216
|
var _a;
|
|
216
217
|
const paramName = toCasing(param.name, ctx.config.parameterNameCasing);
|
|
217
218
|
const toString = ((_a = param.schema) === null || _a === void 0 ? void 0 : _a.kind) === 'array' ? '.joinToString()' : '.toString()';
|
|
218
219
|
const put = s `put(${kt.string(paramName)}, listOf(${paramName}${toString}))`;
|
|
219
|
-
return param.required ? put : s `if (${paramName} != null) {${s.indent `
|
|
220
|
-
${put}`}
|
|
220
|
+
return param.required ? put : s `if (${paramName} != null) {${s.indent `
|
|
221
|
+
${put}`}
|
|
221
222
|
}`;
|
|
222
|
-
}), '\n')}`}
|
|
223
|
+
}), '\n')}`}
|
|
223
224
|
}`}`);
|
|
224
225
|
result.values.push('val localVariableHeaders: MutableMap<String, String> = mutableMapOf()');
|
|
225
226
|
if (((_b = endpoint.requestBody) === null || _b === void 0 ? void 0 : _b.content[0]) !== undefined) {
|
|
226
227
|
result.values.push(`localVariableHeaders["Content-Type"] = "${(_c = endpoint.requestBody) === null || _c === void 0 ? void 0 : _c.content[0].type}"`);
|
|
227
228
|
}
|
|
229
|
+
for (const header of headerParameters) {
|
|
230
|
+
const paramName = toCasing(header.name, ctx.config.parameterNameCasing);
|
|
231
|
+
const toString = ((_d = header.schema) === null || _d === void 0 ? void 0 : _d.kind) === 'array' ? '.joinToString()' : '.toString()';
|
|
232
|
+
result.values.push(s `if (${paramName} != null) {${s.indent `
|
|
233
|
+
localVariableHeaders["${header.name}"] = ${paramName}${toString}`}
|
|
234
|
+
}`);
|
|
235
|
+
}
|
|
228
236
|
result.values.push(s `return ${kt.call([ctx.refs.requestConfig.infer()], [
|
|
229
237
|
kt.argument.named('method', kt.call([ctx.refs.requestMethod(), endpoint.method.toUpperCase()])),
|
|
230
238
|
kt.argument.named('path', kt.string(this.getPathWithInterpolation(ctx, { endpoint }), { template: true })),
|
|
@@ -300,7 +308,7 @@ export class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator {
|
|
|
300
308
|
getAllParameters(ctx, args) {
|
|
301
309
|
var _a, _b;
|
|
302
310
|
const { endpoint } = args;
|
|
303
|
-
const parameters = endpoint.parameters.filter((parameter) => parameter.target === 'query' || parameter.target === 'path');
|
|
311
|
+
const parameters = endpoint.parameters.filter((parameter) => parameter.target === 'query' || parameter.target === 'path' || parameter.target === 'header');
|
|
304
312
|
if (endpoint.requestBody) {
|
|
305
313
|
const content = endpoint.requestBody.content[0];
|
|
306
314
|
let schema = content.schema;
|
|
@@ -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;AAGrB,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,SAAQ,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAC7F,YAAW,+BAA+B;IACnC,QAAQ,CAAC,GAAG,EAAE,6BAA6B,GAAG,YAAY,CAAC,4BAA4B,CAAC;IAc/F,SAAS,CAAC,wBAAwB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,wBAAwB,GAAG,YAAY;IAcnG,SAAS,CAAC,0BAA0B,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,0BAA0B,GAAG,gBAAgB,CAAC,OAAO,CAAC;IAKpH,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;IAiB1F,OAAO,CAAC,0BAA0B;IAQlC,OAAO,CAAC,sBAAsB;IA2B9B,SAAS,CAAC,6BAA6B,CACrC,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,6BAA6B,GACvC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IAevB,OAAO,CAAC,yCAAyC;IAqFjD,OAAO,CAAC,sCAAsC;
|
|
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,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,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E,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"}
|
|
@@ -154,6 +154,7 @@ export class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator
|
|
|
154
154
|
parameter.multipart ? kt.argument.named('name', kt.string(parameter.multipart.name)) : null,
|
|
155
155
|
parameter.description ? kt.argument.named('description', kt.string((_c = parameter.description) === null || _c === void 0 ? void 0 : _c.trim())) : null,
|
|
156
156
|
kt.argument.named('required', parameter.required),
|
|
157
|
+
parameter.target === 'header' ? kt.argument.named('hidden', kt.toNode(true)) : null,
|
|
157
158
|
]);
|
|
158
159
|
if (((_d = parameter.schema) === null || _d === void 0 ? void 0 : _d.default) !== undefined) {
|
|
159
160
|
annotation.arguments.push(kt.argument.named('schema', kt.call([kt.refs.swagger.schema()], [kt.argument.named('defaultValue', kt.string(String((_e = parameter.schema) === null || _e === void 0 ? void 0 : _e.default)))])));
|
|
@@ -180,6 +181,9 @@ export class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator
|
|
|
180
181
|
if (parameter.target === 'path') {
|
|
181
182
|
result.annotations.push(kt.annotation(kt.refs.spring.pathVariable(), [kt.string(parameter.name)]));
|
|
182
183
|
}
|
|
184
|
+
if (parameter.target === 'header') {
|
|
185
|
+
result.annotations.push(kt.annotation(kt.refs.spring.requestHeader(), [kt.string(parameter.name)]));
|
|
186
|
+
}
|
|
183
187
|
if (parameter.multipart) {
|
|
184
188
|
result.annotations.push(kt.annotation(kt.refs.spring.requestPart(), [
|
|
185
189
|
kt.argument.named('value', kt.string(parameter.multipart.name)),
|
|
@@ -236,11 +240,11 @@ export class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator
|
|
|
236
240
|
hasResponseBody ? kt.argument('body') : kt.toNode(null),
|
|
237
241
|
kt.toNode(code),
|
|
238
242
|
contentType
|
|
239
|
-
? s `${kt.refs.spring.linkedMultiValueMap([kt.refs.string(), kt.refs.string()])}().also {
|
|
240
|
-
if (headers != null) {
|
|
241
|
-
it.putAll(headers)
|
|
242
|
-
}
|
|
243
|
-
it.addIfAbsent("Content-Type", ${kt.string(contentType)})
|
|
243
|
+
? s `${kt.refs.spring.linkedMultiValueMap([kt.refs.string(), kt.refs.string()])}().also {
|
|
244
|
+
if (headers != null) {
|
|
245
|
+
it.putAll(headers)
|
|
246
|
+
}
|
|
247
|
+
it.addIfAbsent("Content-Type", ${kt.string(contentType)})
|
|
244
248
|
}`
|
|
245
249
|
: kt.argument('headers'),
|
|
246
250
|
]),
|
|
@@ -463,7 +467,7 @@ export class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator
|
|
|
463
467
|
getAllParameters(ctx, args) {
|
|
464
468
|
var _a, _b;
|
|
465
469
|
const { endpoint } = args;
|
|
466
|
-
const parameters = endpoint.parameters.filter((parameter) => parameter.target === 'query' || parameter.target === 'path');
|
|
470
|
+
const parameters = endpoint.parameters.filter((parameter) => parameter.target === 'query' || parameter.target === 'path' || parameter.target === 'header');
|
|
467
471
|
if (endpoint.requestBody) {
|
|
468
472
|
const content = endpoint.requestBody.content[0];
|
|
469
473
|
let schema = content.schema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goast/kotlin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12-beta1",
|
|
4
4
|
"description": "Provides gOAst generators for generating Kotlin code from OpenAPI specifications.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Marc Schmidt (MaSch0212)",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"tslib": "^2.6.2",
|
|
30
30
|
"fs-extra": "^11.2.0",
|
|
31
31
|
"http-status-codes": "^2.3.0",
|
|
32
|
-
"@goast/core": "0.4.
|
|
32
|
+
"@goast/core": "0.4.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^20.9.0",
|
|
@@ -2,4 +2,8 @@ import { type KtReferenceFactory } from '../nodes/reference.js';
|
|
|
2
2
|
export declare const generated: KtReferenceFactory;
|
|
3
3
|
export declare const valid: KtReferenceFactory;
|
|
4
4
|
export declare const pattern: KtReferenceFactory;
|
|
5
|
+
export declare const min: KtReferenceFactory;
|
|
6
|
+
export declare const max: KtReferenceFactory;
|
|
7
|
+
export declare const notEmpty: KtReferenceFactory;
|
|
8
|
+
export declare const size: KtReferenceFactory;
|
|
5
9
|
//# sourceMappingURL=jakarta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jakarta.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/jakarta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,eAAO,MAAM,SAAS,EAAE,kBAA2E,CAAC;AAGpG,eAAO,MAAM,KAAK,EAAE,kBAAuE,CAAC;AAG5F,eAAO,MAAM,OAAO,EAAE,kBAAqF,CAAC"}
|
|
1
|
+
{"version":3,"file":"jakarta.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/jakarta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,eAAO,MAAM,SAAS,EAAE,kBAA2E,CAAC;AAGpG,eAAO,MAAM,KAAK,EAAE,kBAAuE,CAAC;AAG5F,eAAO,MAAM,OAAO,EAAE,kBAAqF,CAAC;AAC5G,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,eAAO,MAAM,QAAQ,EAAE,kBAAsF,CAAC;AAC9G,eAAO,MAAM,IAAI,EAAE,kBAAkF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pattern = exports.valid = exports.generated = void 0;
|
|
3
|
+
exports.size = exports.notEmpty = exports.max = exports.min = exports.pattern = exports.valid = exports.generated = void 0;
|
|
4
4
|
const reference_js_1 = require("../nodes/reference.js");
|
|
5
5
|
// jakarta.annotation
|
|
6
6
|
exports.generated = reference_js_1.ktReference.factory('Generated', 'jakarta.annotation');
|
|
@@ -8,3 +8,7 @@ exports.generated = reference_js_1.ktReference.factory('Generated', 'jakarta.ann
|
|
|
8
8
|
exports.valid = reference_js_1.ktReference.factory('Valid', 'jakarta.validation');
|
|
9
9
|
// jakarta.validation.constraints
|
|
10
10
|
exports.pattern = reference_js_1.ktReference.factory('Pattern', 'jakarta.validation.constraints');
|
|
11
|
+
exports.min = reference_js_1.ktReference.factory('Min', 'jakarta.validation.constraints');
|
|
12
|
+
exports.max = reference_js_1.ktReference.factory('Max', 'jakarta.validation.constraints');
|
|
13
|
+
exports.notEmpty = reference_js_1.ktReference.factory('NotEmpty', 'jakarta.validation.constraints');
|
|
14
|
+
exports.size = reference_js_1.ktReference.factory('Size', 'jakarta.validation.constraints');
|
|
@@ -13,5 +13,6 @@ export declare const requestMapping: KtReferenceFactory;
|
|
|
13
13
|
export declare const requestMethod: KtReferenceFactory;
|
|
14
14
|
export declare const requestParam: KtReferenceFactory;
|
|
15
15
|
export declare const requestPart: KtReferenceFactory;
|
|
16
|
+
export declare const requestHeader: KtReferenceFactory;
|
|
16
17
|
export declare const nativeWebRequest: KtReferenceFactory;
|
|
17
18
|
//# sourceMappingURL=spring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,SA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,CAAC,CAG5D,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nativeWebRequest = exports.requestPart = exports.requestParam = exports.requestMethod = exports.requestMapping = exports.requestBody = exports.pathVariable = exports.validated = exports.linkedMultiValueMap = exports.multiValueMap = exports.controller = exports.filePart = exports.responseEntity = exports.httpStatus = exports.autowired = void 0;
|
|
3
|
+
exports.nativeWebRequest = exports.requestHeader = exports.requestPart = exports.requestParam = exports.requestMethod = exports.requestMapping = exports.requestBody = exports.pathVariable = exports.validated = exports.linkedMultiValueMap = exports.multiValueMap = exports.controller = exports.filePart = exports.responseEntity = exports.httpStatus = exports.autowired = void 0;
|
|
4
4
|
const reference_js_1 = require("../nodes/reference.js");
|
|
5
5
|
// org.springframework.beans.factory.annotation
|
|
6
6
|
exports.autowired = reference_js_1.ktReference.factory('Autowired', 'org.springframework.beans.factory.annotation');
|
|
@@ -23,5 +23,6 @@ exports.requestMapping = reference_js_1.ktReference.factory('RequestMapping', 'o
|
|
|
23
23
|
exports.requestMethod = reference_js_1.ktReference.factory('RequestMethod', 'org.springframework.web.bind.annotation');
|
|
24
24
|
exports.requestParam = reference_js_1.ktReference.factory('RequestParam', 'org.springframework.web.bind.annotation');
|
|
25
25
|
exports.requestPart = reference_js_1.ktReference.factory('RequestPart', 'org.springframework.web.bind.annotation');
|
|
26
|
+
exports.requestHeader = reference_js_1.ktReference.factory('RequestHeader', 'org.springframework.web.bind.annotation');
|
|
26
27
|
// org.springframework.web.context.request
|
|
27
28
|
exports.nativeWebRequest = reference_js_1.ktReference.factory('NativeWebRequest', 'org.springframework.web.context.request');
|
|
@@ -59,11 +59,7 @@ export type GetJacksonJsonIncludeAnnotation = {
|
|
|
59
59
|
schema: ApiSchema;
|
|
60
60
|
property: ApiSchemaProperty;
|
|
61
61
|
};
|
|
62
|
-
export type
|
|
63
|
-
schema: ApiSchema;
|
|
64
|
-
property: ApiSchemaProperty;
|
|
65
|
-
};
|
|
66
|
-
export type GetJakartaValidAnnotation = {
|
|
62
|
+
export type GetJakartaValidationAnnotations = {
|
|
67
63
|
schema: ApiSchema;
|
|
68
64
|
property: ApiSchemaProperty;
|
|
69
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../src/src/generators/models/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAE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;IAChC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -30,8 +30,7 @@ export declare class DefaultKotlinModelGenerator extends KotlinFileGenerator<Con
|
|
|
30
30
|
protected getJacksonJsonSubTypesAnnotation(ctx: Context, args: Args.GetJacksonJsonSubTypesAnnotation): kt.Annotation<Builder> | null;
|
|
31
31
|
protected getJacksonJsonPropertyAnnotation(ctx: Context, args: Args.GetJacksonJsonPropertyAnnotation): kt.Annotation<Builder> | null;
|
|
32
32
|
protected getJacksonJsonIncludeAnnotation(ctx: Context, args: Args.GetJacksonJsonIncludeAnnotation): kt.Annotation<Builder> | null;
|
|
33
|
-
protected
|
|
34
|
-
protected getJakartaValidAnnotation(ctx: Context, args: Args.GetJakartaValidAnnotation): kt.Annotation<Builder> | null;
|
|
33
|
+
protected getJakartaValidationAnnotations(ctx: Context, args: Args.GetJakartaValidationAnnotations): kt.Annotation<Builder>[];
|
|
35
34
|
protected getSwaggerSchemaAnnotation(ctx: Context, args: Args.GetSwaggerSchemaAnnotation): kt.Annotation<Builder> | null;
|
|
36
35
|
protected getPackageName(ctx: Context, args: Args.GetPackageName): string;
|
|
37
36
|
protected shouldGenerateTypeDeclaration(ctx: Context, args: Args.ShouldGenerateTypeDeclaration): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-generator.d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OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,sBAAsB,GAAG,MAAM;IAIzF,SAAS,CAAC,mBAAmB,CAC3B,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,mBAAmB,GAC7B,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG;QAAE,aAAa,EAAE,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;KAAE,CAAC,EAAE;IAM5F,SAAS,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,EAAE;IA4B9F,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,cAAc,GAAG,iBAAiB,EAAE;IAUvF,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,SAAS;IAqB9E,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,GAAG,OAAO;CASrE"}
|
|
@@ -183,8 +183,7 @@ class DefaultKotlinModelGenerator extends file_generator_js_1.KotlinFileGenerato
|
|
|
183
183
|
return index_js_1.kt.parameter.class((0, core_1.toCasing)(property.name, ctx.config.propertyNameCasing), this.getType(ctx, { schema: property.schema, nullable: schema.required.has(property.name) ? undefined : true }), {
|
|
184
184
|
description: (_a = property.schema.description) === null || _a === void 0 ? void 0 : _a.trim(),
|
|
185
185
|
annotations: [
|
|
186
|
-
this.
|
|
187
|
-
this.getJakartaValidAnnotation(ctx, { schema, property }),
|
|
186
|
+
...this.getJakartaValidationAnnotations(ctx, { schema, property }),
|
|
188
187
|
this.getSwaggerSchemaAnnotation(ctx, { schema, property }),
|
|
189
188
|
this.getJacksonJsonPropertyAnnotation(ctx, { schema, property }),
|
|
190
189
|
(0, core_1.modify)(this.getJacksonJsonIncludeAnnotation(ctx, { schema, property }), (x) => (x.target = 'get')),
|
|
@@ -286,20 +285,52 @@ class DefaultKotlinModelGenerator extends file_generator_js_1.KotlinFileGenerato
|
|
|
286
285
|
])
|
|
287
286
|
: null;
|
|
288
287
|
}
|
|
289
|
-
|
|
288
|
+
getJakartaValidationAnnotations(ctx, args) {
|
|
290
289
|
const { property } = args;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
290
|
+
const annotations = [];
|
|
291
|
+
if (!ctx.config.addJakartaValidationAnnotations) {
|
|
292
|
+
return annotations;
|
|
293
|
+
}
|
|
294
|
+
if (property.schema.kind === 'string') {
|
|
295
|
+
if (property.schema.pattern) {
|
|
296
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.pattern(), [index_js_1.kt.argument.named('regexp', index_js_1.kt.string(property.schema.pattern))], {
|
|
297
|
+
target: 'get',
|
|
298
|
+
}));
|
|
299
|
+
}
|
|
300
|
+
if (property.schema.minLength === 1 && property.schema.maxLength === undefined) {
|
|
301
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.notEmpty(), [], { target: 'get' }));
|
|
302
|
+
}
|
|
303
|
+
else if (property.schema.minLength !== undefined || property.schema.maxLength !== undefined) {
|
|
304
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.size(), [
|
|
305
|
+
property.schema.minLength !== undefined ? index_js_1.kt.argument.named('min', property.schema.minLength) : null,
|
|
306
|
+
property.schema.maxLength !== undefined ? index_js_1.kt.argument.named('max', property.schema.maxLength) : null,
|
|
307
|
+
], { target: 'get' }));
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
else if (property.schema.kind === 'number' || property.schema.kind === 'integer') {
|
|
311
|
+
if (property.schema.minimum !== undefined) {
|
|
312
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.min(), [index_js_1.kt.argument.named('value', property.schema.minimum)], {
|
|
313
|
+
target: 'get',
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
if (property.schema.maximum !== undefined) {
|
|
317
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.max(), [index_js_1.kt.argument.named('value', property.schema.maximum)], {
|
|
318
|
+
target: 'get',
|
|
319
|
+
}));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
else if (property.schema.kind === 'array') {
|
|
323
|
+
if (property.schema.minItems !== undefined || property.schema.maxItems !== undefined) {
|
|
324
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.size(), [
|
|
325
|
+
property.schema.minItems !== undefined ? index_js_1.kt.argument.named('min', property.schema.minItems) : null,
|
|
326
|
+
property.schema.maxItems !== undefined ? index_js_1.kt.argument.named('max', property.schema.maxItems) : null,
|
|
327
|
+
], { target: 'get' }));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
if (this.shouldGenerateTypeDeclaration(ctx, { schema: property.schema })) {
|
|
331
|
+
annotations.push(index_js_1.kt.annotation(index_js_1.kt.refs.jakarta.valid(), [], { target: 'field' }));
|
|
332
|
+
}
|
|
333
|
+
return annotations;
|
|
303
334
|
}
|
|
304
335
|
getSwaggerSchemaAnnotation(ctx, args) {
|
|
305
336
|
const { schema, property } = args;
|