William Cheng
9d86d1db5e
fix typo in java feign client ( #11751 )
2022-03-01 11:22:19 +08:00
William Cheng
683984896e
update maven-javadoc-plugin to newer version ( #11737 )
2022-02-27 16:57:16 +08:00
William Cheng
b0877a112d
fix oneOf discriminator lookup in java okhttp-gson client ( #11735 )
2022-02-27 15:42:54 +08:00
Reda
33b89148e5
[JavaSpring] Multipart causing HttpMediaTypeNotSupportedException when parameter is different than File or String ( #11449 )
...
* Generate @RequestParam when parameter is not a File
* Fix tests to use @RequestParam
* Enhance testMultipartBoot test case
* Update the Petstore sample
* Add MultipartMixedStatus files
* Use @RequestPart for spring-cloud when param is File
* Generate samples
* Delete spring-cloud formParams.mustache file
* Regenerate samples
2022-02-27 15:07:35 +08:00
sullis
f1d0724f2a
[java] junit 4.13.2 ( #11733 )
2022-02-27 13:18:19 +08:00
William Cheng
33ec0540b2
fix typo in the comments ( #11729 )
2022-02-26 15:45:30 +08:00
William Cheng
c3c82513fe
update samples for cpp-qt client
2022-02-26 15:26:10 +08:00
Dominik Schmidt
e35a1270a3
Simplify forward declaration detection ( #11490 )
...
This makes sure all model classes are added to the forward declarations
which makes it possible to create templates without any model includes
which helps to resolve circular inclusion issues.
2022-02-26 14:56:41 +08:00
William Cheng
5c673d89c4
[typescript-angular] only support Angular v9+ ( #11726 )
...
* only angular 9+ is supported in typescript-angular
* clean up typescript-angular samples
* clean up samples
* fix test, update doc
2022-02-26 07:49:21 +01:00
William Cheng
0e14afc952
fix maven-wrapper.properties filename typo ( #11727 )
2022-02-26 14:36:33 +08:00
William Cheng
1cd4f3b46f
update ruby samples
2022-02-26 14:20:09 +08:00
koudenpa
aa63ea09f8
Fix Perl client header params ( #11713 )
...
* Fixed perl client header construction
* update perl-petstore sample
2022-02-25 20:43:36 +08:00
William Cheng
2daa7391e0
update polly to newer version 7.2.3 ( #11714 )
2022-02-25 19:13:37 +08:00
Sergii Baitala
237706df64
[cpp-restsdk] Change build folder structure to match include folder structure in installed client ( #11487 )
...
* change source folder structure
* fix importMapping
2022-02-24 14:35:59 +08:00
William Cheng
ae86945653
Add test for RFC3999DateFormat clone method ( #11706 )
...
* add test for RFC3999DateFormat clone method
* better comment
2022-02-24 13:15:07 +08:00
Chris White
d153134dec
Fixed RFC3999DateFormat clone NPE ( #11705 )
2022-02-24 12:29:23 +08:00
Kuan-Yin Chen
ab63786610
[Python] remove default content-type in the request ( #10782 )
...
* remove default content-type in the request
* add remove default content-type test
* fix duplicate content type
* update sample
* add missing params
* update sample
* only assign content type if exist
* update sample
* update sample
* format code
* update sample
2022-02-24 12:08:49 +08:00
Bruno Coelho
266cd5de0d
[swift5][client] remove apiResponseQueue in the clients that don't have any impact ( #11698 )
2022-02-24 01:37:33 +08:00
William Cheng
df39875502
fix buils warning in java native client ( #11688 )
2022-02-22 17:04:14 +08:00
Gustavo De Micheli
f59c07b24a
Add Model Docs to scala-akka generator as defined in its README ( #11684 )
...
Co-authored-by: Gustavo De Micheli <gustavo.de.micheli@lunatech.com>
2022-02-22 16:38:36 +08:00
방진영
79970228e6
rollback curl_list_free keyword ( #11677 )
2022-02-22 16:27:34 +08:00
William Cheng
df05e6f4bc
Update parser to 2.0.29 ( #11388 )
...
* update parser to 2.0.29
* better handling of null in dereferencing
* update parser to 2.0.30
* update core to newer version
* add new files
* rollback to previous stable version
* remove files
* Fixes for python-experimental NullableShape component
Co-authored-by: Justin Black <justin.a.black@gmail.com>
2022-02-21 18:37:52 +08:00
sullis
3c8f249c6c
[java] logback 1.2.10 ( #11659 )
...
Latest version of logback
https://logback.qos.ch/news.html
2022-02-19 18:52:39 +08:00
William Cheng
d530e1baec
minor enhancement to code format in go client ( #11657 )
2022-02-19 13:11:28 +08:00
Paul-Etienne François
d45cb6511f
[Java][Native] Fix an issue leading to an altered String parameter when consuming formatted strings like XML ( #11640 )
...
* Fix the generated request builder when using a string body parameter
* Update the samples according to the fix for #11638
2022-02-18 11:50:15 +08:00
moznion
d6a97b0c39
Remove dummy variable declaration for context.Context from generated go code ( #11641 )
...
Originally, this dummy declaration was needed because there was the
possibility of the generated code doesn't use `context.Context` and then
if it imported that package, go compiler complains that and makes an error.
ref: 3ed1aa8e79/modules/swagger-codegen/src/main/resources/go/api.mustache (L30)
However, now this dummy placement is no longer needed because the
generated code always uses `context.Context`.
Signed-off-by: moznion <moznion@mail.moznion.net>
2022-02-18 11:34:05 +08:00
William Cheng
d00a5c304f
update samples
2022-02-18 00:53:42 +08:00
William Cheng
b979eccf68
Add Github action file to test Java clients ( #11633 )
...
* add github action file to test java clients
* update tests
2022-02-17 15:49:34 +08:00
Laurens-W
52e3265c34
[Java][RestTemplate] Use class level RestTemplate for uri encoding ( #11606 )
...
* Move static logic to initialization method when no RestTemplate is provided.
Otherwise, use the settings from the RestTemplate that was provided.
* Move code outside of withXml
Run required scripts
Co-authored-by: Westerlaken, H.L. (Laurens) <laurens.westerlaken@devolksbank.nl>
2022-02-15 16:31:51 +08:00
devhl-labs
d7b812ad42
[charp-netcore] Constructor Improvements ( #11502 )
...
* refactor nrt annotation
* enable nrt by default in .net6.0+
* use shorter nrt annotation
* build samples
* removed debugging lines
* fixed model and operatoin constructors
* reverted a commented line for comparison
* created library modelGeneric, removed debugging lines
* build samples
* build all samples
* avoid breaking changes
* publish and build samples
* added line break
2022-02-15 10:44:23 +08:00
Lennart Schwahn
ba04720898
fix #6134 by considering the type List<File> ( #11361 )
...
The method buildRequestBodyMultipart in ApiClient.java now recognizes if
an input parameter is an instance of List.
2022-02-15 10:35:46 +08:00
Juan Treminio
905e59c238
[PHP] Allows passing filename to deserialize ( #11582 )
...
* Allows passing filename to deserialize
* Code review changes
2022-02-14 17:38:16 +08:00
William Cheng
5346d0b6b7
update samples
2022-02-14 11:45:12 +08:00
jiangyuan
dce8b80af7
[Python] fix api file name & api var name ( #11051 )
...
* fix api filename
* fix PythonCodeGen toApiVarName
* add samples change
2022-02-14 11:27:13 +08:00
Marek Hudik
c937bae888
fixes #11579 : Java RestTemplate Mustache template doesn't use reserved words for local variables ( #11583 )
...
* fixes #11579 : Java RestTemplate Mustache template doesn't use reserved words for local variables
* fixes #11579 : Java RestTemplate samples
Co-authored-by: Marek Hudik <marek.hudik@broadcom.com>
2022-02-14 10:59:11 +08:00
cachescrubber
0ed147e7a4
Implement Source DocumentationProvider, spring-mvc
decommission ( #11531 )
...
* - Upgrade swagger-ui to 4.4.1
- Bring homeController.mustache up-to-date
- Main class is now OpenApiGeneratorApplication
- Introduce SpringBootTest.mustache
- Remove option swaggerDocketConfig/openapiDocketConfig in favor of documentationProvider.
* Generate Samples
* Restore generator-online classes
Fix spring-mvc builds
* Generate Samples
* Do not generate SpringFoxConfiguration.java when reactive ist set.
* Fix generation of SpringFoxConfiguration
* Generate Documentation
* Reactive support: add dependency management for springdoc-openapi-webflux-ui
* Generate Samples
* Change SpringBootApplication to OpenApiGeneratorApplication
* Generate Samples
* Implement SwaggerUIFeatures in SpringCodegen
* Generate Samples
* Add useSwaggerUI: true to some test configs
* Generate Samples
* Update Documentation
* Update Documentation
* Update README.mustache
* Generate Samples
* useSwaggerUI is true by default
* Generate Samples
* Update Documentation
* Add deprecation warnings to cli opts; Log a deprecation warning
* Update Documentation
* Generate Samples
* Remove spring-mvc library
* Remove spring-mvc from project and CI configs
* Check whether the selected documentation provider requires us to boostrap swagger-ui.
* Generate Samples
* Generate samples
* Generate samples
* Generate samples
2022-02-12 17:25:21 +08:00
cachescrubber
9dfe8c63ee
[Bug][Java] defaultValues for date and date-time params ( #11536 )
...
* Add default value support to cookie and header params
* Generate Samples
* Replace "OffsetDateTime.parse(..)" with toString();
* Generate Samples
* Revert "Replace "OffsetDateTime.parse(..)" with toString();"
This reverts commit 2e37411b305343e99542c094a691e1419a67b1b5.
* Format java.util.Date to ISO Date in AbstractJavaCodegen.toDefaultParameterValue
* Generate Samples
* Generate Samples
* Use toParameterDefault()
* Generate Samples
* Implement testDateTimeFormParameterHasDefaultValue unit test
* Add more test coverage.
* Remove postProcessParameter() since is has no effect after using toDefaultParameterValue()
* Use LocalDate.parse() in toDefaultValue()
* Generate Samples
* Return a defaultValue only if dateTimeLibrary is java8.
2022-02-12 15:14:26 +08:00
Sergio del Amo
fbf4e56281
update micronaut to 3.3.1 ( #11569 )
2022-02-12 14:51:20 +08:00
Tal Kirshboim
01a8572f63
Upgrade Kotlin to version 1.6.0 ( #11022 )
2022-02-11 09:35:19 +00:00
Juan Treminio
15501f10c4
[PHP] Fix checking value of Configuration::getAccessToken()
( #11486 )
...
* Prevents empty access token from overriding basic auth
2022-02-10 11:01:16 +03:00
William Cheng
376bf6cd34
update samples
2022-02-10 14:46:51 +08:00
William Cheng
3cb4b7d08e
[Java] remove tabs from java templates ( #11557 )
...
* remove tabs from java templates
* replaces tabs with spaces in java templates
2022-02-10 10:47:08 +08:00
William Cheng
8455c1cd23
Remove the option to support JDK7 from Java generator and templates ( #11547 )
...
* remove java8 from java client generator and templates
* update tests
* remove threetenbp
* update spring templates to remove java8
* remove java8 from jaxrs template
* fix jaxrs spec
* fix feign
* remove CustomInstantDeserializer.java
* fix jersey1
* fix undertow
* various update
* fix jaxrs jersey1
* fix java inflector
* fix jaxrs cxf
* add new files
* update doc
2022-02-10 10:35:29 +08:00
Bruno Coelho
441c069177
[Swift5][client] try to fix JsonEncondable ( #11541 )
2022-02-09 08:50:16 +00:00
Boris Smidt
ff30df92f8
Upgrade sttp generator to sttp3 ( #11260 )
...
Remove CIRCE_VERSION from generator because it is taken in as a transitive dependency of ` "com.softwaremill.sttp.client3" %% "json4s" % "3.3.18"`
Co-authored-by: boris <borissmidt@hotmail.com>
2022-02-08 13:46:42 +08:00
William Cheng
b6c445cdc3
update swagger core, jackson to newer version ( #11545 )
2022-02-08 13:31:20 +08:00
William Cheng
7c1f6c5d6a
update build.gradle, build.sbt in java okhttp-gson client ( #11543 )
2022-02-08 10:57:58 +08:00
William Cheng
51800471fa
[java][Okhttp] replace okhttp-gson with okhttp-gson-nextgen ( #11538 )
...
* replace okhttp-gson with okhttp-gson-nextgen
* add new files
* update doc
* clean up pom
* update test
* restore error handling in doc
* add back changes
* uncomment tests
* update samples
2022-02-08 00:05:44 +08:00
Jason Finch
dbb63dc077
tidy [csharp-netcore]: Remove unused UrlEncode method. Possible breaking change: Method is public so upstream consumer *may* of used it, but library does not. ( #11453 )
2022-02-07 15:18:24 +08:00
Ethan Keller
9f5422d688
Add cycle detection ( #7532 ) ( #11500 )
...
* Add cycle detection (#7532 )
* Review feedback
* Including ContextAwareNodes to detect cycles more accurately.
* Add test
* Add forest to test.
* No longer need ContextAwareNode
* Review feedback
* Update samples
2022-02-06 13:21:17 -05:00