Jim Schubert
256a431f03
[gradle] Include engine option for handlebars generation ( #5686 )
2020-03-25 12:27:05 -04:00
Tomasz Prus
625c734cfe
[python/asyncio] explicitly close client session via async context manager ( #5621 )
2020-03-25 07:59:27 -07:00
William Cheng
928d065bbf
use basic parsing ( #5702 )
2020-03-25 15:25:28 +08:00
Slavek Kabrda
bb38bb0626
Fix generation of oneOf interfaces for oneOf usage in properties ( #5400 )
...
* Fix generation of oneOf interfaces for oneOf usage in properties
* Only generate oneOf interface models when oneOf is defined
2020-03-24 20:26:08 -04:00
Richard Whitehouse
cff1f1ce80
[Rust Server] Support operation overriding server path on client ( #5554 )
...
* [Rust Server] Support operation overriding server on the client
* [Rust Server] Test operation overriding sever
* Update samples
2020-03-24 16:41:11 +00:00
Sebastien Rosset
f740379cfa
remove processing of http_signature_test.mustache ( #5696 )
2020-03-24 23:47:55 +08:00
William Cheng
76a2f69dea
comment out powershell petstore in uptodate script
2020-03-24 19:57:25 +08:00
William Cheng
dcd7bed668
[Go][Experimental] Rename extensions from x-basetype to x-go-base-type ( #5691 )
...
* rename go vendor extension
* update go exp petstore samples oas3
2020-03-24 19:56:05 +08:00
William Cheng
b242b4aae6
Add michelealbano to C technical committee ( #5692 )
2020-03-24 18:22:24 +08:00
Bruno Coelho
ae66c335b9
[kotlin][client] make base path globally configurable ( #5450 )
...
* [kotlin][client] make base path configurable
* [kotlin][client] update pet project
* [kotlin][client] set default base path
* [kotlin][client] set default base path
* [kotlin][client] set default base path
2020-03-24 18:18:04 +08:00
Slavek Kabrda
4c5785dc37
[go-experimental] Fix nullable support ( #5414 )
...
* Fix nullable support in go-experimental client
* Fix support for models with parents and container fields
* Make sure that oneOf interfaces serialize properly even if they're required (non-pointers) on other models
* Spaces => tabs
* Regenerate samples
* Make some methods of nullables pointer-receivers, add tests
* Improve the Get/Set logic to make usage more convenient
* Address review
2020-03-24 17:44:12 +08:00
YishTish
9d96ab0983
Nodejs express js packages update ( #5675 )
...
* Updated to new nodejs packages, depending heavily on express-openapi-validator. Requires quite a change in code.
Updated the business-logic in the controllers/Controller.js file.
Logger now records also timestamp of events.
Files are uploaded according to definition in config.js file
* Removed commented-out code; Changed openApi document extensions to suit new express-openapi-validator definition; multipart and file uploading is supported now; Automatic response returns the values the were sent in the request
* fixed README documentation, fixed a mistage in package.json/mustache
* added generated files that were created when running the ./bin/test file
2020-03-24 17:37:18 +08:00
Richard Whitehouse
05ace4f43f
[Rust Server] Preserve path provided in base path ( #5555 )
...
* Preserve path provided in base path
* Update samples
2020-03-24 09:25:48 +00:00
William Cheng
eac18a779d
[PowerShell][Experimental] Better docstring ( #5688 )
...
* add docstring to powershell module
* add doc string
2020-03-24 15:04:36 +08:00
William Cheng
63c8f5f965
[PowerShell] Test powershell petstore client in Appveyor ( #5674 )
...
* remove scala version in parent pom
* test ps petstore in appveyor
* fix command
* build and import
* fix import module
* fix import
* skip module import
* run multiple commands
* move to test script
* test ps exit
* fix exit
* check last status code
* clean tests
* exit last code
* add import
* change dir
* skip build failure
* fix check
* trigger build failure
* fail fast
* restore c# test
* new line comment
* add powershell exp to ensure up to date script
2020-03-24 13:39:15 +08:00
Thomas Enderle
19862f85e3
[jaxrs-reasteasy-eap] Fix invalid Bean Validation annotations for Longs ( #5659 )
...
* fix issue #5658
* update samples
2020-03-24 10:29:07 +08:00
LEZIER-S2
dec57d375e
[asciidoc] Allow the inclusion of additional documentation to t… ( #5260 )
...
* [asccidoc] Allow the inclusion of additional documentation to the asccidoc generated
Resolves #5228
2020-03-23 22:22:40 -04:00
William Cheng
6bf432a1d9
Remove scala version in parent pom ( #5647 )
2020-03-23 22:21:41 -04:00
Matt Traynham
6400ce2330
[kotlin][client] Add Jackson to interface properties and remove extra line feed ( #5459 )
...
* [kotlin][client] Ensure Jackson annotations are consistent with interface vars
* [kotlin][client] Rebuild samples
* [kotlin][client] Some kotlin client enhancements
- Don't use JsonFormat for Date objects, this should be controlled via
a custom serializer/deserializer or a turning on and off serialization
features of Jackson. I've updated the jacksonObjectMapper config to
write the dates as strings, which I think was intended in the original
commit.
https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS
https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat--
- Dont' use @JsonFormat(shape = JsonFormat.Shape.OBJECT) for enums.
This causes Enums to be formatted as objects with an internal "value"
field. In reality, OpenAPI enums are just strings without properties
and should be treated as a string.
https://www.baeldung.com/jackson-serialize-enums#2-enum-as-json-object
- Add's Kotlin use site annotation @get: to JsonProperty for parent interface
properties. Otherwise Kotlin will warn:
"This annotation is not applicable to target 'member property without
backing field or delegate'"
- Add's JsonTypeInfo annotations to interfaces for inheritance. This
was copied verbatim from the kotlin-spring generator.
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-spring/typeInfoAnnotation.mustache
* [kotlin][client] Rebuild kotlin samples
2020-03-24 10:05:46 +08:00
Hui Yu
f7fe93b8d6
[C][Client] Check the pointer before deleting operation to avoid core dump label:"Client C" ( #5626 )
...
* [C-libcurl] Check the pointer before deleting operation to avoid core dump
* [C-libcurl] Check the pointer before deleting operation, update sample
2020-03-24 09:53:01 +08:00
Richard Whitehouse
28ea718004
[Rust Server] Run rustfmt over rust-server output ( #5558 )
...
* Run rustfmt over rust-server output
Automatically run rustfmt over rust-server output if --enable-post-process-file is set
* Update samples
* Add note about configuring post processing
2020-03-24 00:09:40 +00:00
Richard Whitehouse
15a2390fe5
[Rust Server] Flag responses as must use ( #5559 )
...
* [Rust Server] Flag responses as must use if there is more than a single option
* Update samples
2020-03-23 18:47:12 +00:00
Mostafa Moradian
b3b3941d09
[k6] bugfixes to improve the output script ( #5614 )
...
* [k6] Skip appDescription escaping
* [k6] Fix variable identifier in output
* [k6] Fix bug with reserved words handling
2020-03-24 01:17:39 +08:00
Vikrant Balyan
4de97a47e3
Adds configuration option to skip certificate check. Fixes a typo. Fixes an issue which was restricting from cookie to get consumed ( #5657 )
2020-03-24 01:04:09 +08:00
Richard Whitehouse
806562bb05
[Rust Server] Retire mimetypes modules ( #5560 )
...
* Retire mimetypes module to prevent collision in mimetype identifiers
* Update samples
2020-03-23 13:04:29 +00:00
Vikrant Balyan
5549c1dd2d
[powershell-experimental] Protects against stackoverflow when OAS spec has circular references ( #5646 )
...
* protects against stackoverflow when OAS spec has circular references
* protects against stackoverflow when OAS spec has circular references
2020-03-23 15:54:32 +08:00
William Cheng
57eb1a0fcf
[PowerShell] Fix map type ( #5638 )
...
* fix map type
* remove output type, fix appveyor
* test macos
* comment out failing scala test
* fix typo: configuration
* Revert "comment out failing scala test"
This reverts commit 1dcf84ffcbb7ab520938ae7c75d60a8329f71478.
2020-03-23 15:18:17 +08:00
Michele Albano
6ceb3ff6f1
Solving issue #5623 and supporting bools for C client label:"Client: C" ( #5624 )
...
* Removed stray "printf"s in
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CLibcurlClientCodegen.java
* Support for booleans in C client
* Update README.md
* Change to C API mustache files to solve issue #5623
* Debugging of C's modle-body.mustache, as suggested by ityuhui
* Final changes suggested by ityuhui
2020-03-23 15:11:40 +08:00
Vikrant Balyan
9e145f0916
[PowerShell] Fixes typo ( #5648 )
2020-03-23 15:03:36 +08:00
William Cheng
1065595a9a
Fix integration tests (Travis, CircleCI) ( #5672 )
...
* fix php tests
* fix scala tests
* update ts angular v6 rest
* fix user create test
* fix spring cloud test
* comment out user delete
* fix angular v7 tests
* fix user test
* fix tests
* fix go exp tests
* commented out delete user tests
* comment out delete user tests in go openapi 3
* fix clojure tests
2020-03-23 14:01:12 +08:00
Richard Whitehouse
be983b5212
[Rust Server] Build APIs which have no available examples ( #5561 )
...
* [Rust Server] Build APIs which have no examples
* [Rust Server] Add test for APIs with no examples
* Update samples
2020-03-22 19:54:48 +00:00
Richard Whitehouse
b0520a346d
[Rust Server] Support multiple identical MIME types ( #5562 )
...
* Support multiple identical MIME types in a multipart request
* Add test for multiple identical MIME types
* Update samples
2020-03-22 15:30:37 +00:00
Richard Whitehouse
058d1d2aa0
[Rust Server] Return 405 Method Not Allowed ( #5563 )
...
* Return 405 Method Not Allowed if the path matches, but the method doesn't.
* Update samples
2020-03-22 11:57:36 +00:00
sunn
5de9deb6e7
Handle negative response from the server ( #5649 )
2020-03-21 21:31:39 +08:00
William Cheng
96038addd3
update release date
2020-03-21 00:44:29 +08:00
William Cheng
2c1d649d83
Revert "scala-version 2.11.12 ( #5618 )"
...
This reverts commit 6b984a926a0f99120a4ad80cef73bee19f8614cd.
2020-03-21 00:00:20 +08:00
Richard Whitehouse
4aefc9ba33
[Rust Sever] Upgrade to openssl 0.10 ( #5564 )
...
* [Rust Server] Upgrade to openssl 0.10
Use hyper-openssl/openssl instead of hyper-tls/native-tls/openssl on Linux
* Update samples
2020-03-19 21:05:16 +00:00
sunn
8af3d6d9bf
Port client updates to server ( #5634 )
2020-03-19 16:34:59 +01:00
William Cheng
b1efe20a04
[PowerShell] minor improvements and bug fixes ( #5635 )
...
* add output type, minor format fix
* minor test improvement
2020-03-19 22:51:13 +08:00
William Cheng
457aff8496
[Powershell] refactor the client generator ( #5629 )
...
* add api client
* add local variables
* add configuration
* add header/query/form parameter support
* add partial header
* add auth, fix parameters type
* fix accept, content type
* url query string
* fix path, header
* remove dep on C# client
* fix method naming with package name
* fix object
* convert result from json
* better response handling
* remove tostring method
* fix model doc
* fix default module
* generate api test files
* better api, model tests
* fix add pet
* add appveyor
* fix accept, content type
* add petstore tests
* fix form parameters
* test delete
* better file handling (upload)
* better code sample
* add package version, better doc
* delete unused files
* fix header parameters
* clean up api client
* update samples
* support query parameter
* better method and parameter naming
* minor formatting change
* better doc, fix cookie parameter
* better doc
* add api prefix support
* better api nam prefix option
* fix configuration
* throw errors for required parameter
* fix authentication
* add try catch block to sample code
* rename model
* use debug, clean up comment
* revise code
* move bin script
* update doc
* add new file
* better map support
2020-03-19 15:53:11 +08:00
Jim Schubert
dc36d59ba9
micheleISEP->michelealbano ( #5625 )
2020-03-19 13:08:10 +08:00
sullis
6b984a926a
scala-version 2.11.12 ( #5618 )
2020-03-19 00:24:31 +08:00
Jim Schubert
accacfe39a
[scala] Regenerate akka sample ( #5622 )
2020-03-17 21:34:44 -04:00
Lars Hvam
d42f27c9f5
[typescript-fetch] add interfaces, withInterfaces ( #5612 )
...
* typescript-fetch: interfaces, first draft
* fix name in description
2020-03-17 22:04:30 +01:00
Adam
47e24af369
[Kotlin] Remove kotlin-reflect dependency when not needed ( #5502 )
...
* Remove kotlin-reflect dependency when using CodeGen
* Update Kotlin tests
* Regenerated unit test samples
* Remove newline in generated build.gradle files
2020-03-17 21:24:14 +08:00
Mostafa Moradian
32e4361822
[k6] Add blog post about using the k6 generator ( #5608 )
2020-03-17 18:22:13 +08:00
Clemens Angermann
e99b3e038a
Adding Response Interceptor ( #5500 )
...
* added Response interceptor for native clients
* added Response interceptor for native clients
2020-03-17 16:59:36 +08:00
wing328
05cb1f88d1
Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator
2020-03-17 16:03:26 +08:00
wing328
691c46e2f5
update doc
2020-03-17 16:02:31 +08:00
Aleksandr Nekrasov
5beccd12b6
[scala][templates] java 8 dates support ( #5291 )
...
* [scala][akka-http-client] java8 dates support
* scala-akka readme doc updated
* DateSerializers renamed
* rename serializers
* move date-library option to abstractScala
* generators docs updated
* enum defined for date libraries
* Backport to scala-http-client
* fix scala-akka-client date serializers
* fix typo in docs
* switch scala templates to java8 (jsr-310) date library by default
* update scala samples with java8 date library
* update scala generators docs with java8 default date library
* fix scala-play-server generator cli options as only java8 dateLibrary supported
* fix scalaz DateTimeCodecs template to support java8
* scalaz ci test againt java7 removed as it generate scala 2.11.8 client which is java8 based
2020-03-17 15:54:24 +08:00