William Cheng
fd12bb3508
[python] Fix data type ( #16291 )
...
* fix data type in python client codegen
* add model mapping feature
2023-08-10 23:05:35 +08:00
Marc Miltenberger
7a7309edb8
Fix Java GSON client not accepting optional null arrays ( #16213 )
...
* Add check for null JSON array in GSON Java api client
* Update samples
2023-08-10 22:58:23 +08:00
William Cheng
36cb3ce6b9
add tests, workflow for haskell samples ( #16290 )
2023-08-10 10:42:57 +08:00
Masahiro Sakai
9f051ec640
[haskell-servant][haskell-yesod] fix specialCharReplacements ( #16289 )
...
HaskellServantCodegen and HaskellYesodServerCodegen modify
specialCharReplacements by replacing its keys: backslash ("\\") with
"\\\\" and "\"" with "\\\"".
It seems that those replacements were for using the keys in string
literals in the specialChars table in the generated code. However,
modifying the keys causes the substitution of those characters in
field names not to work, making generated code syntactically invalid.
Since the specialChars table has already been removed, we can safely
stop modifying the specialCharReplacements.
2023-08-10 09:43:02 +08:00
Rodrigo de Almeida - RMA3
d955ff6988
Add annotations to the operation - case permission validation - Fix 12219 15822 ( #16259 )
...
* fix #12219 #15822
* add test with array
* update samples
---------
Co-authored-by: Rodrigo Maciel de Almeida <rodrigo.almeida@wefin.com.br>
2023-08-09 17:21:57 +03:00
William Cheng
84d619b883
fix travis build ( #16288 )
2023-08-09 16:28:59 +08:00
André Roaldseth
75b04bb965
Ensure enum classes toString() returns kotlin.String ( #16247 )
...
When creating an enum where a valid value is `String`, the override of toString() will be the wrong type.
Simply using `*kotlin*.String` will allow using `String` as a value in an enum.
2023-08-09 15:09:21 +08:00
William Cheng
6a8039c672
update doc
2023-08-09 14:38:56 +08:00
Jonathan Wenger
d9001b8a6f
Add additional reserved words for java and csharp ( #16276 )
...
Co-authored-by: Jonathan Wenger <jonathan.wenger@avalara.com>
2023-08-09 14:30:22 +08:00
ふぁ
a3d14c87c4
[Dart/CSharp/Python] replace File.separator with slash ( #16282 )
...
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-08-09 14:28:31 +08:00
William Cheng
3f8bce6695
update samples
2023-08-09 14:27:57 +08:00
martin-mfg
3ed59cd593
[spring] reactive: fix Content-Type ( #16228 )
...
* don't set content-type to client's value
* revert manual sample change
* better fix
* generate samples
* cover 3rd case
* add new test endpoint
2023-08-08 15:52:18 +03:00
William Cheng
3d064c6115
[Python] refactor pydantic model methods into abstract python codegen ( #16279 )
...
* refactor methods from python client to abstract python codegen
* refactor regular expression methods
* more refactoring
* more refactoring
2023-08-08 20:42:43 +08:00
ふぁ
f3b930c48c
[python-nextgen] Fix noqa: E501
position ( #16280 )
...
* Fix `noqa: E501` position
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python-nextgen] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
---------
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-08-08 20:42:12 +08:00
KaiNative
7703560e73
Updating Maven-Plugin Dependencies ( #16274 )
...
* bugfix-15672 updated mavenplugin dependencies
* bugfix-15672 re-added maven-compat since needed by maven-plugin-testing-harness
* bugfix-15672 explicit dependency of plexus archiver in a new version due to CVEs in version included from maven-plugin-testing-harness (2.2)
---------
Co-authored-by: Kai Neuhaus <kneuhaus@communicode.de>
2023-08-08 15:06:50 +08:00
William Cheng
c377a11c57
update samples
2023-08-08 14:57:53 +08:00
devhl-labs
de8f846666
[csharp] Improved regex support ( #16269 )
...
* improved regex support
* better parsing of options
* better handling of options
* spacing change
* typo
* rename the x-modifier- extension
* trivial change
* added to the sample
2023-08-08 11:40:20 +08:00
William Cheng
362b596fce
update kotlin client dependencies ( #16273 )
2023-08-08 10:06:08 +08:00
William Cheng
29c5d6109a
mark java-okhttp3 option as deprecated in kotlin client ( #16272 )
2023-08-08 10:05:52 +08:00
William Cheng
a9cfa1f391
[kotlin-spring] minor bug fixes ( #16270 )
...
* kotlin-spring: minor bug fixes
* comment out tests
2023-08-08 10:05:34 +08:00
William Cheng
50ee574d1f
[kotlin] Escape dollar sign in baseName ( #16266 )
...
* escape dollar sign in baseName (kotlin)
* escape dollar sign in kotlin server jaxrs-spec template
* add new files
* update samples
2023-08-08 10:05:15 +08:00
Ween Jiann
2b44d4ed93
[go-server] Partially reverts and fix #15185 ( #16258 )
...
* Partitally reverts #15185
* Remove unused import
* Set zero value if param is empty
* Refactor samples, add test config
* Add tests
* Clean up
* Fix test
2023-08-07 20:43:30 +08:00
William Cheng
4e5bd8a30a
add martin-mfg to java, spring ( #16271 )
2023-08-07 15:02:55 +08:00
martin-mfg
6a3f0ffb37
[spring] fix void return type for useResponseEntity: false ( #16230 )
...
* fix return type
* add new sample config as test for the fix
* update samples
2023-08-07 14:53:05 +08:00
William Cheng
097385bde6
[bug][kotlin] sanitize model names according to convention ( #16267 )
...
* [bug][kotlin] sanitize model names according to convention
* [bug][kotlin] revert to english word sanitization except minus
---------
Co-authored-by: Theo Meneau <tmeneau@clearcover.com>
2023-08-07 14:38:29 +08:00
Martin Visser
f6ac603e15
[kotlin] Add fix for wrongly encoded backticks for reserved words when generating kotlin-spring server code ( #14027 )
2023-08-07 09:32:00 +08:00
William Cheng
9322c2fc29
fix default value, add nullable support ( #16265 )
2023-08-06 20:08:22 +08:00
Patrick Del Conte
350ec2a763
[kotlin-server][jaxrs-spec] treat parameters with a default value as non-null ( #14413 )
2023-08-06 15:55:27 +08:00
Sebastian Ziegler
17194f3ff0
Fix enum headers values while using Kotlin jvm-okhttp ( #16133 )
2023-08-06 15:37:33 +08:00
William Cheng
5b2ceac93d
fix anyOf in handling primitive types in java client ( #16264 )
2023-08-06 13:48:13 +08:00
Noor Dawod
1d4a6d713f
Dart deep-equals ( #16251 )
...
* Add support for deep equality for complex types.
* Use version of collection used by the SDK.
* Use a const instead of final.
* Use deep equality only for arrays and maps.
* Generate pet store sources.
* Downgrade version of dependency.
* Expose `DeepCollectionEquality` instance.
* Revert last change.
2023-08-06 13:12:45 +08:00
William Cheng
f0b100a9ad
Add a test for BigDecimal parameter in java client ( #16263 )
...
* add a test for BigDecimal parameter in java client
* update tests
2023-08-06 12:14:21 +08:00
karzang
e299382a42
[Java][Client] Fix handling of 'number' types in oneOf ( #16202 )
2023-08-06 11:16:50 +08:00
William Cheng
d9e32a79a5
Support library option via additionalProperties ( #16242 )
...
* set library option obtain from additionalProperties
* test library
* update samples
* remove old files
2023-08-05 13:41:04 +08:00
William Cheng
6f05655101
Add mapping features to R client generator ( #16252 )
...
* add mapping features to r client generator
* update samples
2023-08-05 13:34:57 +08:00
William Cheng
d1f23ef663
add mapping features to crystal client generator ( #16253 )
2023-08-05 13:34:34 +08:00
William Cheng
f6fb83878b
[Default] update isAdditionalPropertiesTrue tag to cover more types ( #16227 )
...
* enhance additional properties support
* update samples
* update tests
* add more tests
* update samples
* fix samples
2023-08-05 13:32:43 +08:00
Ken Kaizu
c080660cc1
[Scala] scala-akka-http-server support pekko-http using useApachePekko flag ( #16255 )
...
* introduce useApachePekko flag into scala-akka-http-server
* useApachePekko flag in scala-akka-http-server templates
* introduce scala-pekko-http-server samples
2023-08-05 13:32:02 +08:00
William Cheng
82516c75d2
Fix implements in oneof, anyof templates in java okhttp client generator ( #16241 )
...
* fix implements in oneof, anyof templates in java okhttp
* add tests
* update samples
2023-08-03 21:09:00 +08:00
hai22yu23
cb56e50e0c
support 32bit in postdata ( #16238 )
2023-08-03 18:13:42 +08:00
Masahiro Sakai
45d8027bb4
[haskell-servant][haskell-yesod] Use table-based conversion for field name conversion ( #16232 )
...
* [haskell-servant][haskell-yesod] use table-based conversion for field name conversion
Current fieldLabelModifier implementation always produces uncapitalize
name, but it is inappropriate if the original JSON field name begins
with a capital letter.
* [haskell-servant][haskell-yesod] regenerate samples
2023-08-03 13:29:33 +08:00
William Cheng
81c398e530
add model name mappings support to the elixir client generator ( #16233 )
2023-08-02 17:26:52 +08:00
William Cheng
1d39902930
Add name mappings support to JS client ( #16234 )
...
* add name mappings support to JS client
* update doc
* udpate doc
* update doc
2023-08-02 17:26:23 +08:00
William Cheng
d67f5ddeff
Fix circleci node 4 failure ( #16236 )
...
* fix circleci failure
* remove debug
* fix
2023-08-02 15:13:13 +08:00
martin-mfg
0ce1fef016
fix 2 sonar-reported bugs ( #16229 )
2023-08-02 14:27:27 +08:00
William Cheng
4602f18ca8
Add model name mapping feature to C# codegen ( #16209 )
...
* add model name mapping feature to C# codegen
* rename file
* update samples
* update doc
2023-08-02 10:06:11 +08:00
William Cheng
3278eea9a4
Add tests for #16217 ( #16221 )
...
* add tests for #16217
* add new files
2023-07-31 11:03:36 +08:00
ふぁ
77311c3d76
[python-nextgen] Fix allOf missing imports ( #16217 )
...
* [python-nextgen] fix allOf missing imports
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python-nextgen] update samples
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python-nextgen] remove circular import
Signed-off-by: ふぁ <yuki@yuki0311.com>
* [python-nextgen] Fix circular refs
Signed-off-by: ふぁ <yuki@yuki0311.com>
---------
Signed-off-by: ふぁ <yuki@yuki0311.com>
2023-07-31 10:04:53 +08:00
Antti Leppä
c6a100cce2
Added support for using mutiny instead of coroutines for asynchronous kotlin server APIs ( #15262 )
2023-07-31 09:50:44 +08:00
William Cheng
bf181906e0
[Swift] property, parameter name mapping support ( #16207 )
...
* add property, parameter naming support to swift5 generator
* revert change
* remove files
* update samples
2023-07-30 22:44:19 +08:00