Jacob Burroughs
23bc2aaf6b
Enable useOneOfInterfaces for the ruby generator ( #8061 )
...
Tested against https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json
Used to generate un-runnable code, now it works
2021-03-27 13:42:48 +08:00
tomred-net
38b49e77af
fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled ( #8756 )
...
* fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled
* fix #8755 updating samples
2021-03-27 10:01:39 +08:00
avbenavides
2525639875
Update client.mustache ( #8970 )
...
Bash Client Escapes parameters with a 't' to %09 and leaves tabs unescaped
Fixes https://github.com/OpenAPITools/openapi-generator/issues/7303
2021-03-27 09:59:53 +08:00
leonluc-dev
7e6ce69c64
[ASPNETCORE 3.x] Microsoft.AspNetCore.Authorization directive no longer requires useSwashbuckle condition ( #8368 )
...
* Update controller.mustache
Moved using directive for Microsoft.AspNetCore.Authorization outside of useSwashbuckle tag to prevent compilation errors with Authorize tag if Swashbuckle is disabled.
* Updated aspnetcore-3.x samples
2021-03-27 09:56:37 +08:00
William Cheng
5abf020be3
use interrupted exception instead of just exception ( #9092 )
2021-03-26 21:41:24 +08:00
William Cheng
854296634a
better logging ( #9090 )
2021-03-26 18:21:59 +08:00
William Cheng
16b141e402
Merge remote-tracking branch 'origin/master' into 5.2.x
2021-03-26 10:20:36 +08:00
William Cheng
e71ae12e14
Restore interrupted state ( #9084 )
2021-03-26 09:42:27 +08:00
William Cheng
402cf9a3a2
Fix integer enum in csharp generators ( #9035 )
...
* fix integer enum in csharp generators
* add comment
2021-03-25 21:30:42 +08:00
cal
6a26ac8e20
[cleanup] erefactor/EclipseJdt - Remove trailing whitespace - All lines ( #9077 )
...
EclipseJdt cleanup 'RemoveAllTrailingWhitespace' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 21:24:24 +08:00
cal
97e27f2b36
[cleanup] erefactor/EclipseJdt - Remove trailing whitespace - All lines ( #9076 )
...
EclipseJdt cleanup 'RemoveAllTrailingWhitespace' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 21:23:29 +08:00
cal
9419de573e
[cleanup] erefactor/EclipseJdt - Remove unused imports ( #9075 )
...
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 21:21:21 +08:00
cal
6e0ca448dd
[cleanup] erefactor/EclipseJdt - Remove unused imports ( #9068 )
...
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 16:42:41 +08:00
William Cheng
fea1377603
Use InterruptedException, IOException instead of just Exception ( #9063 )
...
* use InterruptedException, IOException instead of just Exception
* undo changes to the license
2021-03-25 13:30:30 +08:00
cal
7813398e7e
[cleanup] erefactor/EclipseJdt - Remove unused imports ( #9067 )
...
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 10:52:22 +08:00
cal
862e9cb79a
[cleanup] erefactor/EclipseJdt - Remove unused imports ( #9066 )
...
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-25 10:51:53 +08:00
cal
ee2f585f37
[cleanup] erefactor/EclipseJdt - Remove unused imports ( #9058 )
...
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-24 20:48:14 +08:00
cal
8043a8b9f4
[cleanup] erefactor/EclipseJdt - Remove trailing whitespace - All lines ( #9057 )
...
EclipseJdt cleanup 'RemoveAllTrailingWhitespace' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-24 20:47:39 +08:00
cal
b7c5d38011
[cleanup] erefactor/EclipseJdt - Remove redundant semicolons ( #9056 )
...
EclipseJdt cleanup 'RemoveRedundantSemicolons' applied by erefactor.
For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-03-24 20:46:31 +08:00
vnq
74e5c3ccd3
[php-symfony] remove nested Valid constraint ( #8994 )
...
* Fix constraint Valid cannot be nested
* Update PetController.php
* Update UserController.php
2021-03-24 13:30:42 +08:00
Kam
f137f3331a
Add possibility to generate only files needed for sources compilation ( #9012 )
2021-03-24 13:27:25 +08:00
Blackclaws
650aaa2bee
Fix FromForm for complex parameters ( #9040 )
2021-03-24 12:33:17 +08:00
Blackclaws
b69fb79573
[csharp][aspnetcore] Enable Consumes Tag for Specs where not every operation consumes ( #9039 )
...
* Change break to consumes so that all operations will be processed
* Update Samples
2021-03-24 12:30:23 +08:00
Ze Wang
7e0382b08d
[Java][Jaxrs-Resteasy] Fixes generator devaultValues for int64/float/… ( #8988 )
...
* [Java][Jaxrs-Resteasy] Fixes generator devaultValues for int64/float/double
* add test
* fix tests
* trigger rerun of timeout tests
* remove SmartBear line from comments for new files
* trigger rerun of validations
* trigger rerun of validations
* trigger rerun of validations
* trigger rerun of validations
* trigger rerun of validations
* move postProcessParameter to AbstractJavaCodegen
* move postProcessParameter to AbstractJavaCodegen
Co-authored-by: zewang <zewang@deepmap.ai>
2021-03-24 12:23:34 +08:00
Florian Kamella
03be3c612d
Fix default value generation for composed schemas in AbstractJavaCodegen ( #8918 )
2021-03-24 00:36:54 +08:00
Blackclaws
0f981fffc3
[csharp][httpclient] Fix accidental use of c# 8 language feature ( #9037 )
...
* Fix c# 8 language feature being present
* Change config to refer to netstandard 2.0
* Update samples
2021-03-24 00:33:13 +08:00
William Cheng
d438d797da
[C#][netcore] Fix model, property name check ( #9049 )
...
* fix model, property name check in c# generator
* remove file
* remove file
* specify name
2021-03-23 20:00:26 +08:00
William Cheng
97a3fc4b8e
[C#][netcore] Set EmitDefaultValue to true for boolean property ( #9042 )
...
* set EmitDefaultValue to true for boolean property
* update samples
2021-03-23 10:43:35 +08:00
William Cheng
39f0177ede
[Java] Update WebClient dependencies ( #8972 )
...
* update webclient dependencies
* update build.gradle
2021-03-22 13:58:04 +08:00
Blackclaws
46a7d972b9
[csharp][aspnetcore] Fix FileUpload Parameter Generation for aspnetcore ( #9000 )
...
* Aspnetcore fix file parameters
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/1183#issuecomment-612022568
* Update Samples
* Add Consumes to Controller. Needed for correct swashbuckle
* Add bodyParam annotation again
* Add InputFormatterStream
* Selective Use of IFormFIle
* Update samples
* Add missing List
* Fix duplicate consumes
* Update samples
* Remove executable bit
* Add missing files
* Add Comments
2021-03-22 12:35:45 +08:00
Justin Black
113d38eb71
Sets model.additionalProperties for composed schemas ( #9033 )
...
* Turns on setting model.additionalProperties for composed schemas when supportsAdditionalPropertiesWithComposedSchema is true, tests updated for v2 and v3 specs
* Comment change
* Samples updated
* Turns on supportsAdditionalPropertiesWithComposedSchema for CsharpNetCoreClient, samples regenerated
* Changes commented out, samples regnerated
* Refactors the update in setAddProps to not impact the charp client
2021-03-21 19:22:18 -07:00
William Cheng
95d356ab6b
Merge remote-tracking branch 'origin/5.2.x' into 6.0.x
2021-03-21 01:10:46 +08:00
William Cheng
47483e60cb
update version to 5.2.0-SNAPSHOT, update samples
2021-03-21 00:10:10 +08:00
William Cheng
0dc62e8b79
Prepare v5.1.1 in the master ( #9027 )
...
* Prepare v5.1.1 in the master
* move dart dio next to configs/other
2021-03-20 23:05:11 +08:00
William Cheng
e023eaa821
Prepare v5.1.0 release ( #9017 )
...
* prepare v5.1.0 release
* update samples (dart-dio-next)
2021-03-20 16:45:05 +08:00
Peter Leibiger
3d038b74fd
[dart][dart-dio] Next-gen dart-dio generator ( #8869 )
...
* [dart-dio] Remove old Dart 1.x templates
* [dart-dio] Initial version of a next-gen Dart Dio generator
* Fix a couple readme links and examples
* Fix import in testcase
* Add integration tests to master POM
* Run initial dart format and improve some base formatting
* Generate docs
* Use integer matchers in test for content-length
* Separate more built_value specific files
* Fix mustache partial path
* Update pubspec template
* Fix tests after mock lib updates
* Generate with new built_value pre-release
This solves the problem of not being able to serialize null.
* Update built_value dependency
* Regenerate after merge
* Regenerate tests
* Fix missing byte response cast
* Update dio to 4.0.0-prev1
* Run format
* Ignore unused imports in inheritance classes
* Update mock test library
* Update docs
* Make a couple variables final
* Update and freeze dio dependency
* Update generator doc
* Add a new option to post processes all dart output at once
This is much faster than individual files. The committed samples should be formatted since Dart is very opinionated and it makes diffs in PRs much easier to read.
Due to this, we also need to format in CI, otherwise there is a git diff.
* Test some CI stuff
2021-03-20 12:26:56 +08:00
Blackclaws
88fa5d70d7
[csharp][csharp-netcore] Fix Fileupload for Request Bodies for RestSharp and HttpClient libraries ( #9010 )
...
* Fix Request Body File Upload for RestSharp and csharp-netcore
* Update Samples
* Fix missing using and update samples
* Enable upload test
* Fix form data and file upload handling for httpclient, update samples
2021-03-20 01:01:21 +08:00
William Cheng
46326249d2
mark httpclient support as experimental ( #9016 )
2021-03-19 23:14:58 +08:00
Blackclaws
061b00e990
[csharp][aspnetcore] Update aspnetcore nuspec and csproj with authors and description ( #8995 )
...
* Update aspnetcore nuspec and csproj with authors and description
* Removed unneccesary include
2021-03-19 21:25:32 +08:00
Peter Leibiger
de8b344a34
[dart] Generic docs update and fixes ( #8999 )
...
* [dart] Generic docs update and fixes
* none of the dart generators supports XML
* jaguar is no longer maintained
* dart and dart-dio support bearer token
* none of the dart generators supports composition atm.
* [dart-dio] Supports customization of authorizations and userAgent
* Remove deprecation of dart-jaguar for now
2021-03-19 21:15:13 +08:00
agilob
c920d08b69
[dart] mark json_serializable as experimental ( #8979 )
...
* Hide json_serializable from public users
* Make json_serializable as experimental
* Update wording marking json_serializable as experimental
2021-03-19 21:11:22 +08:00
William Cheng
f8bc4a1c4c
remove unnecessary dependencies in android volley ( #8991 )
2021-03-19 20:44:42 +08:00
Nikita Karnaukh
d657e95021
[Kotlin][Client] Added Kotlinx Serialization for JVM/Retrofit2/OkHttp3&4 ( #6916 )
...
* Added supporting kotlin.serialization for jvm
* Added Serializable annotations for java types(date,time,url,uri etc.)
* Added SafeEnumSerializer
* Added StringBuilderAdapter for kotlin.serialization
Fix adapter naming
Fix Retrofit ApiClient.kt for kotlin.serialization
* Added StringBuilderAdapter for kotlin.serialization
* Switch sample to retrofit2-kotlin-serialization
* Add sample for retrofit2-kotlin.serialization
* update sample
* update sample
* update sample #3
* Fix enum quotes for kotlin.serialization
* update samples
* update pom.xml
* add pom.xml to child module
* fix kotlin-multiplatform freeCompilerArgs
* refactoring, add useSafeEnum option, remove safeEnum for kotlin.multiplatform
* update kotlin samples
* fix import kotlinx.serialization.Required
* Update kotlinx.serialization 1.0.0-rc-2, kotlin 1.4.10, retrofit-kotlinx-converter 0.7.0
* Update gradle wrapper 6.7-rc-3
* fix SafeEnum import
* fix Json initialization,
fix SafeEnumSerializer
* update samples
* update kotlinx.serialization to 1.0.0
* Update gradle to 6.7 in kotlin samples
* fixed adding @Contextual for collections with non-primitive type elements
* remove unused SafeEnum imports, refactored
* update kotlin readme
* update kotlin project template Readme.md
* update samples for kotlin
* simplify template for class properties
* remove @Contextual from kotlin-multiplatform
* update kotlin multiplatform dependencies
* refactoring templates
* revert all changes for multiplatform
* fix tests
* revert multiplatform #2
* update samples after merge, fix missed isListContainer->isArray
* fixed redundant space before @Contextual
* Fixed enum template, Class were missed in generated samples
* fix enum template toString value->serialName
* fixed isEnum case for collections
* update samples
* removed useSafeEnum option, kotlinx serialization has out of box approach with coerceInputValues option for same behavior
* generate samples
* update kotlinx.serialization 1.0.1
* update samples
* Added pom.mustache template for kotlin-client samples with fixed execution of gradle wrapper instead standalone installed gradle on CI
* update samples with new pom.xml
* reverted enum value property name
* fixed kotlin-multiplatform pom.xml
* update kotlin-threetenbp sample
* update kotlin-string sample
* update kotlin-string sample
* fix adding kotlinx.serialization classpath to build.gradle
* generate samples
* add supporting kotlinx_serialization kotlinx.serialization.Serializable with java.io.Serializable at the same time
* update retrofit2-kotlinx-serialization-converter:0.8.0
* update kotlinx_serialization sample with retrofit2-kotlinx-serialization-converter:0.8.0
* apply suggest from @blendthink
* added proguard-rules.pro file for kotlinx.serialization on Android projects
* fix pom.mustache
* update gradle wrapper to 6.8.3
* update kotlin samples
* fix kotlin readme template, update kotlin samples
* update kotlin samples
* update kotlin sample
delete petstore/kotlin unit tests
* revert deletion kotlin client tests
remove adding pom.xml to kotlin client samples
* add support kotlinx serialization for okhttp3/4
* update kotlin client samples
2021-03-19 18:12:23 +08:00
William Cheng
349445ab01
update perl sponsorship message ( #9004 )
2021-03-19 12:20:30 +08:00
Justin Black
a925c76561
Adds hasRequired to all Java schema classes ( #8962 )
...
* Adds getHasRequiredVars + setHasRequiredVars to IJsonSchemaValidationProperties
* CHanges to getHasRequired and setHasRequired and implements in CodegenModel
* Updates CodegenProperty
* Updates codegenparameter
* Updates codegenresponse
* Uses setHasRequired in model/prop/parameter/response
* Adds issue spec 8906
* Adds testHasRequiredInModel
* Adds testHasRequiredInProperties
* Fixes issue spec errors
* Adds sample endpoint with schemas in patch parameter
* Adds testHasRequiredInParameters
* Adds response schemas in issue spec
* Samples and docs regenerated
2021-03-18 20:42:42 -07:00
William Cheng
2367460fef
update sponsorship message in r generator ( #8997 )
2021-03-18 22:25:43 +08:00
Ajith Kumar
9ea852d4df
[JAVA] [Spring] Conditionally importing spring pageable ( #8915 )
...
* [JAVA][SPRING] Making spring pageable import optional
* [JAVA][SPRING] Regenerating samples
* [JAVA][SPRING] Regenerating samples again
2021-03-18 00:03:31 +08:00
Peter Leibiger
d29d898774
[dart] Ensure tests compile with Dart 2.12+ ( #8984 )
2021-03-17 21:53:48 +08:00
sbu
e9f3b09d05
[DART] Add standard generated classes as reserved ( #8975 )
...
* [DART] Add standard generated classes as reserved
* Move StreamedRequest into dart client
2021-03-17 21:53:06 +08:00
Peter Leibiger
45a3764180
[dart][dart-dio] Fix missing byte response cast ( #8985 )
...
There doesn't seem to be an example.
2021-03-17 21:33:54 +08:00