William Cheng
91daca36ef
Better Go code format ( #3819 )
...
* better varible naming
* better comments
* better code format for go experimental client
* better comment, update samples
2019-09-04 14:22:06 +08:00
Quim Muntal
8f13b88ed9
Support custom git repository ( #3757 )
...
* add gitHost param to GeneratorSettings and related
* parameterize gitHost in READMEs
* parameterize gitHost in go.mod
* parameterize gitHost in git_push
* update petstore samples
* run ./bin/utils/export_docs_generators.sh
* run meta-codehen.sh
* Revert "run meta-codehen.sh"
This reverts commit d6d579f6159186531257cdfdd73b9caf9e9ffeba.
* Revert "run ./bin/utils/export_docs_generators.sh"
This reverts commit 1b81538198d4319fd1b4e97447303e3cc0e8dc99.
* Revert "update petstore samples"
This reverts commit f513add88396707f6991ae2e4920359583ec88f1.
* run ensure-up-to-date
2019-09-03 21:35:49 +08:00
Nick Meinhold
3be1196264
[Dart] Fix README template and update testing doco ( #3809 )
...
* [Dart] Fix README template and update testing doco
- deleted redundant shell script
- fixed and updated README template
- updated test package and moved to a dev_dependency
- removed old unused dev_dependency packages
- updated testing documentation in petstore sample
* Remove references to dart-flutter-petstore.sh
* Fix typos
* Fix typo
2019-09-03 08:51:43 +08:00
Prateek Malhotra
1b12b89fd8
typescript-fetch: add option for TypeScript 3.6+ compatible generation ( #3801 )
2019-08-30 21:59:54 +02:00
Jérémie Bresson
d21b3390fe
[java] add jackson-databind-nullable dependency to the gradle.build file ( #3793 )
...
* Add jackson-databind-nullable
* Update samples
2019-08-30 13:51:50 +08:00
Marcin A. Nowak
e39b420fa8
no need to use regex for this replacement - regexp fails on windows becuase of backslashes in the path ( #3802 )
2019-08-30 12:26:53 +08:00
Jérémie Bresson
b0549fe6da
[java-client][rest-assured] add jackson support in addition to gson ( #3795 )
2019-08-29 17:34:37 +02:00
Jérémie Bresson
87727de079
[java-client][java-jaxrs-server][jackson] Add @JsonPropertyOrder to models ( #3778 )
2019-08-29 10:40:34 +02:00
William Cheng
8236424aff
Fix Dart2 default template ( #3790 )
...
* fix dart2 default template
* update dart samples
2019-08-29 15:10:19 +08:00
William Cheng
a8fe5d355c
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-08-29 14:48:00 +08:00
Jérémie Bresson
026612fed7
[core] do not always cast to ArraySchema ( #3780 )
...
* [core] do not always cast to ArraySchema
* Change ModelUtil.isArraySchema()
2019-08-29 11:40:44 +08:00
prisoneroftech
8f7e43b500
[Kotlin][client] Support gson and moshi as serialization libraries ( #3734 )
2019-08-29 05:37:13 +02:00
Alexander Navratil
1443f01709
Fix dart2 custom templates ( #3656 )
...
* don't overwrite a custom set templateDir when using dart 2.x
* remove old dartson code which lead to compile time errors
* * fix decoding JSON to dart enums
* fix decoding a map with a list of some objects as value since the complexType is a List and List.mapFromJson doesn't exist.
* * add explanation for mapListFromJson
* fix file permissions
2019-08-29 11:12:21 +08:00
Jaumard
c2f786b8ad
add flutter web support on jaguar dart ( #3786 )
2019-08-29 10:30:09 +08:00
Jaumard
f4d3df762a
manage enum properly on jaguar generator ( #3654 )
2019-08-28 23:41:34 +08:00
Michael Nahkies
34ec98d17b
[core] [regression] set parentName when a single possible parent exists ( #3771 )
...
Whilst the spec states that the 'allOf' relationship does not imply a hierarchy:
> While composition offers model extensibility, it does not imply a hierarchy between the models.
> To support polymorphism, the OpenAPI Specification adds the discriminator field.
Unfortunately this does not make sense for many existing use cases, that were supported by older
versions of the generator. Therefore, I've restored the older behavior, specifically
in the case that only a single possible parent schema is present.
I think a more complete solution would generate interfaces for the composed schemas,
and mark the generated class as implementing these.
fixes issue 2845, and fixes issue #3523
2019-08-28 20:31:38 +08:00
Eirik André Eidså
2016bc086f
Set Content-Type to application/json when multipart param isModel typescript-angular ( #3776 ) ( #3779 )
2019-08-28 13:11:22 +02:00
stephanpelikan
28cf0b279d
[typescript-fetch] fix serialization/deserialization with inheritance ( #3767 )
...
* #3646 - fix inheritence
* #3646 : Fix imports
* Update modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache
Co-Authored-By: Esteban Gehring <esteban.gehring@gmail.com>
* generate typeescript-fetch samples
2019-08-28 13:10:45 +02:00
Martin Hátaš
d36dd47b12
[maven-plugin] Allow to set User-Agent ( #3777 )
2019-08-28 10:17:41 +02:00
Jérémie Bresson
5a54aa5726
Add test with 'type' and '$_type' properties ( #3774 )
2019-08-28 15:06:59 +08:00
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +08:00
Jérémie Bresson
60e4c923dd
[java][client] Add a "serializationLibrary" option ( #3759 )
...
* [java][client] Add a "serializationLibrary" option
* Update docs
2019-08-28 09:54:24 +08:00
Jérémie Bresson
dc7bcbdb85
[java] fix ClassCastException in toDefaultValue() ( #3765 )
...
Fixes #3761
2019-08-28 09:52:58 +08:00
Jon Schoning
45d70e1bf3
[haskell-http-client] bump deps to LTS 14.3 ( #3762 )
2019-08-28 01:37:04 +08:00
Jérémie Bresson
e1116814c4
[core] change JSON serialisation to be deterministic ( #3763 )
2019-08-27 15:25:06 +02:00
Bernd Hacker
5bd63074c4
[typescript-rxjs] support HEAD method, improve formatting ( #3766 )
...
* feat(typescript-rxjs): add support for HEAD method
* feat(typescript-rxjs): improve formatting
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): generate samples
* feat(typescript-rxjs): use better white space, regnerate samples
2019-08-27 11:17:41 +02:00
William Cheng
d0d545bbdd
Prepare 4.1.2 snapshot ( #3758 )
...
* update pom
* update samples
* update ts axios samples
2019-08-26 22:13:12 +08:00
Silas Davis
c290555e5e
typescript-axios: @ts-ignore possible unused imports ( #3742 )
...
Depending on the template parameters some imports may not get used -
this causes a typescript compiler error that must be manually fixed.
Signed-off-by: Silas Davis <silas@monax.io>
2019-08-26 12:40:34 +02:00
William Cheng
197294a167
Prepare 4.1.1 release ( #3756 )
...
* 4.1.1 release
* update doc
2019-08-26 15:59:33 +08:00
William Cheng
7afd350616
[WIP] Escape import with underscore in go-experimental client ( #3659 )
...
* escape import with underscore in go client
* update ioutil
* Fix collectionFormat=multi request bug in go experimental
2019-08-26 10:38:24 +08:00
Jim Schubert
ee7c8a82e8
[BUG][CLI][GENERATOR] NullPointer when not setting outputDir (updated) ( #3752 )
...
* Fixes NPE when no outputDir is set
* Fix behaviors of default values for values not provided by user
* Easier handling of default behavior in settings.
* Fixes for dynamic config deserialization (specifically, ruby client sample fix)
* Tests for WorkflowSettings (defaults, modified defaults, nulls)
* Test modification of WorkflowSettings defaults for both class constructor and builder
2019-08-25 19:19:52 -04:00
FlorianBruckner
16ac05dcdf
Two tiny fixes for Java Vertx client ( #3683 )
...
* two tiny fixes:
1.) ApiClient already defines and configures an objectMapper to not fail on unknown properties, but it is not used when parsing the response. The fix uses the pre-configured object mapper instead of the vertx default one
2.) When an operation has no response (or just ones without content), the accept array passed to ApiClient is emtpy. This makes the null check in ApiClient useless, as it still tries to set a null Accept header, which is refused with an NPE. Amend the check with .length > 0 to catch this case.
* update generated client as required by contributor guidelines
2019-08-25 18:02:36 +08:00
Andreas Kägi
859df23428
Exclude "test" from packages so that it is not installed as top-level package when "pip installing" the generated sdk ( #3731 )
2019-08-25 17:59:38 +08:00
sullis
e12459f3bd
[java-client] add unit test for JDK 11 HttpClient ( #3735 )
2019-08-25 17:15:46 +08:00
Ramanth Addala
8cd5a4187b
[R] feat(r): handling error response for 3xx cases ( #3571 )
...
* feat(r): handling error response for 3xx cases
* fix(r) : changed the message for 3XX case
* fix(r) : fixing the status code 3xx
2019-08-25 01:21:03 +08:00
Nick Meinhold
a05f68431a
[Dart] Avoid redundant null checking in fromJson ( #3632 )
...
* Move dart null checks inside mustache type checks
- removed surrounding null check
- added a conditional expression to each case except the redundant one
* Run shell scripts so CIs can verify the change
2019-08-25 01:16:32 +08:00
Jim Schubert
15f680e1eb
[core] Set isMultipart=true for multipart operations, fix possible NPE ( #3750 )
2019-08-25 01:02:12 +08:00
Armand Mégrot
1f5aa22f5c
Fix null assignation to header/query param map ( #3749 )
...
Also regenerates the clients
2019-08-24 23:09:57 +08:00
sullis
dfb4c133d8
Mockito 3.0.0 ( #3732 )
2019-08-24 21:40:24 +08:00
Jake Moening
a390676cc6
Simple spelling error in dotnet core comments ( #3746 )
...
* Simple spelling error in dotnet core comments
Dictioary -> Dictionary
* Updated the sample files as well.
2019-08-24 11:35:11 +08:00
William Cheng
b8f9e995ce
better support for multipart ( #3736 )
2019-08-24 11:24:51 +08:00
Josh Giles
158cdfeb3c
[typescript-fetch] fix #1998 : prefix req ifaces. ( #3740 )
...
Prefix generated request interface names with API classname rather than
using namespaces, because namespaces are not well-supported by some
tooling (in particular, Babel).
2019-08-23 16:58:51 +02:00
Daniel Schreiber
d64ec14ab4
[typescript-angular] Encode objects for multipart/form-data with json - fixes #2733 ( #3738 )
2019-08-23 13:54:14 +02:00
thecrazzymouse
73eae09738
[BUG] Https protocol schema is not handled correctly in java 11 native code #3729 ( #3730 )
...
* added getter for schema
2019-08-23 13:52:48 +02:00
Armand Mégrot
4898ffa4e9
[Kotlin-client] Authentication support ( #3722 )
...
* Handle and document authorization for kotlin client
* Regenerate clients and tests
* Remove testing files
2019-08-22 21:32:07 +08:00
James Russo
62ca0c78ff
[csharp] Update UserAgent in the async version of ClientAPI execute method. ( #3723 )
...
* move UserAgent up to the constructor
* userAgent on both constructors.
* update location of UserAgent
* re-ran the petstore generation
2019-08-22 20:24:32 +08:00
Shogoki
a748e1ff9a
[BUG][Python-Flask] Primitive type bytearray deserialization missing in util.py. #2724 ( #3642 )
...
* added bytearray to list of types
* adding regenerated sample files for python-flask
2019-08-22 17:15:10 +08:00
William Cheng
8741a8ca35
Minor enhancements to the Avro schema generator ( #3728 )
...
* minor enhancements to the avro generator
* add option to customize package name
* update doc
2019-08-22 16:06:04 +08:00
Jérémie Bresson
870bb1c858
[java-client][resteasy][jersey2][google-api-client][okhttp-json] several fixes to make sent requests more accurate ( #3703 )
2019-08-22 09:50:47 +02:00
sullis
f6ead7b877
[java][JAX-RS] enhance JavaJAXRSSpecServerCodegenTest ( #3727 )
2019-08-22 09:45:31 +02:00