13408 Commits

Author SHA1 Message Date
devhl-labs
780d1fb3e2
use latest framework as default (#15969) 2023-07-02 10:06:37 +08:00
devhl-labs
a89fe4ab28
fixed support for DateTimeOffset (#15967) 2023-07-02 10:05:51 +08:00
devhl-labs
ebcd1d7a32
[csharp][generichost] Exposed internals to test project (#15920)
* exposed internals to test project

* exposed internals to test project
2023-07-02 00:28:59 +08:00
devhl-labs
4dc7ffd2f3
[csharp][generichost] Fix model accessor (#15918)
* removed redundant properties

* removed commneted code

* fixed oneof anyof serialization

* restored discriminator as a model property

* added manual sample, removed need for new discriminator property

* minor pipeline change

* renamed manual test solution

* fixed model accessor

* used visibility option

* resolved conflicts

* build samples

* resolved conflicts

* resolved conflicts

* resolved conflicts

* resolved conflicts

* added a comment
2023-07-02 00:06:42 +08:00
devhl-labs
4eaa358476
[csharp][generichost] Fix oneof anyof serialization (#15873)
* removed redundant properties

* removed commneted code

* fixed oneof anyof serialization

* restored discriminator as a model property

* added manual sample, removed need for new discriminator property

* minor pipeline change

* renamed manual test solution

* resolved conflicts

* build samples

* bug fix

* fixed pipeline

* added a comment
2023-07-01 22:37:58 +08:00
Tatsuro Shibamura
42b496c003
Fixed typescript-axios not setting enum ref correctly for multipart/form-data (#15885) 2023-07-01 13:27:20 +02:00
Vladimir Svoboda
71528f69e8
Add support for Angular 16 (#15925)
* Add support for Angular 16

* Fix dependencies specifications

* Fix minimum angular supported version in readme

* Update integration tests

Even if they are currently not run.

* Update sample due to rebase
2023-07-01 13:13:58 +02:00
Dennis Melzer
d6538e3327
Fix import for spring boot 3 (#15949)
* Fix import for spring boot 3 and add a test for optional generation

* Remove timestamp

* Add sample to github workflow
2023-07-01 14:31:44 +08:00
William Cheng
30c685ea67
use openjdk official docker image (#15964) 2023-06-30 19:31:25 +08:00
Jules Bertholet
cdac1366d4
[Rust] Don't unnecessarily process enum names (#15710) 2023-06-30 14:25:04 +08:00
William Cheng
9a968c3104
add supportUrlQuery as an option (#15958) 2023-06-30 14:20:27 +08:00
Søren Hansen
9ee5fcc5c6
feat(rust,client): remove Default derives for structs as per #10845 (#15856)
* feat(rust,client): remove Default derives as per #10845

* update samples

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-30 14:09:21 +08:00
William Cheng
f43111b46a
remove addSchemaImportsFromV3SpecLocations (#15956) 2023-06-30 13:21:52 +08:00
William Cheng
63b2c79565
Fix NPE in StringUtils.camelize (#15957)
* fix NPE in StringUtils.camelize

* add comment

* add test file
2023-06-30 13:19:11 +08:00
William Cheng
8add9119df
Add containerTypeMapped (#15881)
* add containerTypeMapped

* update samples

* update java inflector sample
2023-06-30 09:38:39 +08:00
William Cheng
15b3addd40
fix NPE in R construct example (#15953) 2023-06-30 09:29:33 +08:00
Noor Dawod
d5c53b9812
Fix epoch deserialization and parsing numbers (#15948)
* Fix 2 bugs with epoch deserialization and parsing numbers.

* Generate samples.
2023-06-30 00:06:12 +08:00
karzang
e9d98666a1
[Java][Client] Fix #12556 Support primitives and arrays in oneOf (#13897)
* [Java][Client] Fix #12556 Support primitives and arrays in oneOf

* Regenerate petstore samples

* Regenerate petstore test samples

* Treat 'BigDecimal' as primtive datatype

* Fix integration tests
2023-06-29 16:46:55 +08:00
Corné
b2280e23f7
[Kotlin][Spring]ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-c… (#15898)
* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* Undo formatting code

* Undo formatting code

* Undo formatting code

* ctbarnev_bugfix-13488-remove-request-mapping-from-for-Kotlin-spring-cloud

* Undo formatting code

* Undo formatting code

* Cleanup

---------

Co-authored-by: c.t.vanbarneveld <corne.van.barneveld@rws.nl>
2023-06-29 16:25:18 +08:00
William Cheng
b1b8acee48
Update openapi-generator-online Dockerfile to use openjdk11 image (#15947)
* test docker

* update

* mvn

* skip run
2023-06-29 15:57:19 +08:00
Per-Olov Jernberg
8fe4d780ed
Use substring instead of substr (#15937) 2023-06-29 14:41:42 +08:00
William Cheng
fac04cfa9d
Various improvements to scala-sttp4 generator (#15931)
* various improvements to scala-sttp4 generator

* test scala with jdk11

* test sttp4 in circleci

* add pom.xml

* update

* update tc
2023-06-27 23:27:38 +08:00
bcalvez
7a73f75f70
[java][okhttp-gson] Remove JAX-RS dependency from generated okhttp-gson java client (#15896)
* Remove JAX-RS dependency from generated okhttp-gson java client

* update samples

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-27 16:53:10 +08:00
martin-mfg
dcc53c0d53
[Typescript][Scala][Postman][Java] fix errors with missing models, missing description, BigDecimal (#15809)
* various fixes

* generate samples
2023-06-27 16:20:21 +08:00
Frederic Jones
3627e57a4c
Add validation.constraints package import to delegates when using bean validation (#15921) 2023-06-26 23:52:38 -07:00
Adam Rybicki
faa5da51e5
Sttp4 generator (#15834)
* implementation of sttp4 generator

* rebased with master

* running scripts

---------

Co-authored-by: Adam Fish Rybicki <adamrybicki@adams-macbook-pro.home>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-27 10:50:52 +08:00
martin-mfg
debf92fd7d
author command: replace \ by /, fix #9528 (#15861)
* author command: replace \ by /

* add windows test for author template
2023-06-27 10:28:01 +08:00
Noah Overcash
e8fc4d159e
Remove unused import in Java resttemplate auth templates (#15899)
* Remove unused import in Java resttemplate HttpBasicAuth

* Remove unused import in Java resttemplate HttpBearerAuth

* Update samples
2023-06-27 10:24:03 +08:00
martin-mfg
4bec09f7b9
[PHP] fix error on circular references (#15900)
* fix php generators

* generate samples and docs

* fix samples
2023-06-27 10:23:10 +08:00
martin-mfg
33e120a14d
[Eiffel] fix Eiffel schema lookup, clean up outdated samples (#15901)
* make all unmaintained samples executable

* remove samples not generated by any config (not even unmaintained configs)

* remove deleted samples from github workflows
2023-06-27 10:21:28 +08:00
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
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
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
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