19065 Commits

Author SHA1 Message Date
devhl-labs
ea2c6860d3
[csharp][generichost] Removed redundant properties (#15869)
* removed redundant properties

* removed commneted code

* restored discriminator as a model property

* build samples
2023-06-25 13:01:50 +08:00
devhl-labs
c23560afb9
removed unecessary extension from generichost (#15870) 2023-06-25 11:43:16 +08:00
William Cheng
7c67f731bc
Rename csharp-netcore to csharp (#15903)
* rename csharp-netcore to csharp

* rename file

* renmae modules/openapi-generator/src/main/resources/csharp-netcore

* update samples

* mv dir

* update samples

* rename csharp-netcore to csharp in appveyor.yml

* update doc
2023-06-25 11:08:59 +08:00
William Cheng
af048ec62f update samples 2023-06-24 08:10:14 +08:00
William Cheng
17c2401abd add lombok to pom.xml 2023-06-24 07:57:26 +08:00
GregDThomas
5d6b769b5b
Fix issue #907 by ensuring the parameters is properly "exploded" (#14825) 2023-06-23 20:11:39 +08:00
devhl-labs
b4eb9a40c6
fixed .net6 packages (#15902) 2023-06-23 10:54:29 +08:00
William Cheng
ae8da31772
Minor improvement to swift-combine client generator (#15892)
* minor improvement to swift combine

* update swift tc
2023-06-23 10:50:12 +08:00
Anton Davydov
9f3d9a5e8f
[swift] New 'swift-combine' client generator for swift (#15823)
* swift-alt-gen init

* swift-alt-gen in progress

* swift-alt added runtime

* swift-alt added transport

* swift-alt added example

* swift-alt v0.1.0

* swift-alt implemented form encoded body

* swift-alt fixed array of enums to string

* swift-alt v0.2.0

* swift-alt v0.3.0

* swift-alt v0.4.0

* swift-alt v0.5.0

* swift-alt v0.6.0

* swift-alt v0.7.0

* swift-alt v0.8.0

* swift-alt v0.9.0

* swift-alt v0.12.0

* swift-alt v0.13.0

* swift-alt v0.14.0

* swift-alt v0.15.0

* swift-alt v0.16.0

* swift-alt v0.17.0

* swift-alt v0.18.0

* swift-alt v0.19.0 Support for raw value in header

* swift-alt v0.20.0

* swift-alt v0.21.0

* swift-alt v0.22.0

* swift-combine v0.23.0

* swift-combine PR rules adoption

* swift-combine: updated transport

* Updated bitrise.yml file

* Fixed bitrise pipeline for swift-combine

* Fixed code review comment
2023-06-22 09:25:32 +08:00
William Cheng
d160b827de
Allow better default value in parameters using codegen property (#15882)
* allow better default value in parameters using codegen property

* update
2023-06-21 16:36:45 +08:00
pyckle
33aa5b07f3
[Java][bugfix] hashcode/equals behave incorrectly when inheritance is used in Generated Pojos (#15745)
* Fix Java equals and hashCode methods to work with inheritence (#5756)

* Regenerate code samples with improved hashCode/equals

---------

Co-authored-by: Andrew Pikler <andrew.pikler@earnix.com>
2023-06-21 16:33:01 +08:00
martin-mfg
7e89e1ea81
fix import mapping for return types (#14525) (#15719)
* importContainerType = true

* add unit test

* disable MyImportTest

* build all samples, add import exceptions

* simplify code

* delete myImportTest

* generate docs

* extend comment

* remove inline comment
2023-06-21 15:55:29 +08:00
William Cheng
8b26d81163
use mvnw instead of mvn in workflow (#15880)
* use mvnw instead of mvn in workflow

* fix

* more fix
2023-06-20 17:11:33 +08:00
William Cheng
14fc61a293
[java] fix default value - empty list [] (#15862)
* fix empty default value in java okhttp-gson

* add files
2023-06-20 11:27:56 +08:00
martin-mfg
396c6753b1
[Java][Haskell][Python] fix errors with empty strings, missing basePath (#15866)
* various fixes

* generate samples & docs
2023-06-20 10:05:02 +08:00
pappelt
6b1a9ba602
Update README.md (#15877)
Added Aleri Solutions to list of companies
2023-06-20 09:50:49 +08:00
ferlyloic
09b182572a
Update pubspec.mustache (#15510)
updated intl package to v0.18.0
2023-06-20 09:35:37 +08:00
Noor Dawod
3dd93beac2
Introduce changes necessary for Dart 3.0.0/Flutter 3.10.0 (#15516)
* Expose `deserialize` function.

* Rename `json` argument.

* Generate Petstore code.

* Upgrade minimum version of `intl` dependency.
2023-06-20 09:35:25 +08:00
devhl-labs
e0d89c3846
removed hotfix (#15868) 2023-06-18 14:57:14 +08:00
devhl-labs
5555137b79
[csharp][generichost] Modernizes handling of composed schemas (#15865)
* removed hotfixes, improved composed schema handling

* fix copy paste bug
2023-06-17 15:05:08 +08:00
Erik Wegner
389270334a
Rust validation handling (#15288)
* Prevent JavaScript regex delimiter

* Validation

* validator dependency

* validation with range

* Switch to garde crate for validation

* Update uuid crate

* Examples

* All rust-server samples

* Added rule handling

* Exchange garde for validator crate (rust)

* Version update in samples

---------

Co-authored-by: Erik Wegner <erik.wegner@regiocom.com>
2023-06-16 15:25:27 +08:00
Yohei Kitamura
0a651e1b0a
fix: NullPointerException in DefaultCodegen.mergeProperties when processing models (#15859)
* fix: NullPointerException in DefaultCodegen.mergeProperties when processing models

* Add test
2023-06-16 14:39:54 +08:00
Camille TJHOA
504744a390
[typescript-fetch] fix snakecase discriminator (#15838)
* [typescript-fetch] fix snakecase discriminator (#7080)

* [typescript-fetch] add snakecase discriminator test case
2023-06-16 07:26:30 +02:00
Max Strübing
730b946537
[Bug] fix: use length to check for default return media type (#15833)
* fix: use length to check for default return media type

as `mediaTypes` is an array of strings and an required argument
it will never be undefined when we can rely on the typesystem.
However, it can be zero length(`[]`) and in this case we would
throw.

* Closes #15011

* chore: update examples
2023-06-16 07:23:58 +02:00
devhl-labs
03cef639e4
Added option to opt out of default logging for individual methods (#15850)
* added option

* moved the xml annotation

* build samples
2023-06-16 11:06:23 +08:00
Beppe Catanese
6cb3414611
Fetch request inline (single) example (bis) (#15857)
* Add (single) example

* Fetch single example when available

* Add test
2023-06-16 09:26:03 +08:00
Rexios
95cefaeecd
[Dart] Convert DioError to DioException (#15783)
* Convert `DioError` to `DioException`

* Update samples

* Update dio version in example

* Use proper dio version

* Regenerate dart samples

* Regenerate

* Regenerate samples

* update samples

* remove outdated test files

* update test

* remove outdated test files

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-16 00:16:39 +08:00
William Cheng
747d9d9b51
better way to initialize hashmap (#15855) 2023-06-15 20:22:00 +08:00
Tiffany Marrel
0e212f53f2
[Java] [Kotlin] ignore unsupported schemes instead of throwing exception (#15817) 2023-06-15 16:50:49 +08:00
devhl-labs
882b9a8c50
[abstract-csharp] Process all operation parameter collections (#15841)
* added new vendor extenion

* moved code to methods to enable overriding

* fixed tests

* renamed method to setTypeMapping

* removed commented code

* moved code to make diff easier to understand

* removed commented code

* process all operation parameter collections

* fixed bugs

* fixed bugs
2023-06-15 15:54:04 +08:00
Ventsy
bdeb4ff5a4
Calls validate() for model objects properties (#15784) 2023-06-15 15:32:50 +08:00
Szabolcs Székelyi
bca80c0d3d
[dart-dio] Correctly serialize path parameters (#14666) 2023-06-15 13:45:19 +08:00
William Cheng
8c1f4b1a62
Add containerType to codegen parameter (#15830)
* add containerType to codegen parameter

* add test for map container type
2023-06-15 11:51:39 +08:00
William Cheng
b42234eb3c
[python] Fix map of array in property (#15844)
* fix map of array in property (python)

* update samples
2023-06-15 11:50:56 +08:00
William Cheng
afca85acf5 update scala doc 2023-06-14 17:42:27 +08:00
Adam Rybicki
522368160a
Scala sttp stability change (#15842)
* changed stability in ScalaSttpClientCodegen

* updated files from scripts

---------

Co-authored-by: Adam Fish Rybicki <adamrybicki@adams-macbook-pro.home>
2023-06-14 17:32:11 +08:00
Peter Lamby
7812dd525c
[BUG][typescript] add missing importFileExtension support (#15813) 2023-06-14 08:04:33 +02:00
JanLubenow
175876a105
[BUG][JAVA] Handling default values leads to wrong defaults or not compilable code fixed (#15836)
* (fix): default values for array types will be handled a bit more appropriate

* (fix): remove commented out block
2023-06-14 11:18:11 +08:00
devhl-labs
6a1626c8e7
[abstract-csharp] Make data types overridable (#15814)
* added new vendor extenion

* moved code to methods to enable overriding

* fixed tests

* renamed method to setTypeMapping

* removed commented code

* moved code to make diff easier to understand

* removed commented code
2023-06-14 10:47:46 +08:00
Oleh Kurpiak
3b832c9fd4
[Java][Client] remove model annotations from AbstractOpenApiSchema (#15808) (fix #15684) 2023-06-13 18:40:36 +03:00
Ghufran Zahidi
9fe5cc0b01
[csharp-netcore] Configure the API key in string format for HttpSigningConfiguration (#15818)
* added property in HttpSIgningConfiguration to accept API key in string format.

* remove trailing space, update samples

* updated the sample code.

* Revert "updated the sample code."

This reverts commit 5b945c7a59ef03782dc5f48d97784894d6b41614.

* fix the sample code compilation error for split function.

* updated the sample code after the split function fix.

* Removed the either or check for filePath or KeyString.

---------

Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
Co-authored-by: Vikrant Balyan (vvb) <vvb@cisco.com>
Co-authored-by: Vikrant Balyan <vvb@users.noreply.github.com>
Co-authored-by: Sebastien Rosset <serosset@cisco.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-13 21:49:33 +08:00
William Cheng
37d8a0d3ff
Add java-webclient gradle test (#15837)
* add gradle test for webclient swagger2 annotation

* trigger build
2023-06-13 21:32:40 +08:00
JanLubenow
96b3488a07
[BUG] [Java-Spring] Required-Fields-Constructor has wrong super call when using multiple inheritance layers (#15827)
* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor

* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor - add issue number

* (fix): required-fields constructor uses super-call-parameters in the order of the parent required-field constructor - fix file reference
2023-06-13 21:13:31 +08:00
Dušan Plavák
0504c21209
[spring] Fix invalid swagger2 annotation library version in pom.xml (#15832) 2023-06-13 21:07:30 +08:00
Frederic Jones
43b1ce2c89
Fix typo on swagger2 dependency (#15826) 2023-06-13 21:02:58 +08:00
zbarbuto
e5a9081456
[dart-dio] Use sourceFolder property instead of src (#15620) 2023-06-13 16:09:33 +08:00
devhl-labs
3ea09c2855
added new vendor extenion (#15806) 2023-06-13 15:55:18 +08:00
Jérôme Prinet
89056986b6
Enable Dependabot on Maven extensions (#15820) 2023-06-12 20:29:22 +08:00
Jérôme Prinet
9a3e6c7e38
Add Revved up by Gradle Enterprise badge (#15819) 2023-06-12 20:28:47 +08:00
William Cheng
d2e10a7229
install urllib3 < 2.1.0 (#15810) 2023-06-12 15:58:51 +08:00