sunn
1dee3e227c
[cpp-pistache] add the option to fetch dependencies ( #495 )
...
* Add the Possibility to fetch dependencies needed by the generated code
* Fix typo
* Make External Libraries default to false
* Add parameter string to the javadoc comment
2018-07-22 10:46:38 +08:00
sunn
97d6b71460
[cpp-pistache] Fix compilation of petstore for Pistache ( #497 )
...
* Fix compilation of petstore for Pistache
Add Map support
* Add support for ByteArray
* Add Support for ByteArray in cpprest
* Implement TODOs
2018-07-20 22:04:25 +08:00
William Cheng
71ef6a0a2b
update petstore samples
2018-07-19 19:28:31 +08:00
William Cheng
d2db799a93
update petstore samples
2018-07-19 19:06:48 +08:00
William Cheng
07b8040122
Merge remote-tracking branch 'origin/3.2.x' into 4.0.x
2018-07-19 18:56:13 +08:00
William Cheng
888da52181
Merge remote-tracking branch 'origin/master' into 3.2.x
2018-07-19 18:46:18 +08:00
Benjamin Gill
bd33a333af
Ensure rust-server sample is kept up to date ( #600 )
2018-07-19 18:16:36 +08:00
Benjamin Gill
c5e170961f
[rust-server] enhance support for middlewares ( #552 )
...
* Generate RequestParser trait to allow retrieving operation ID in middlewares
* Update function name
* Fix incomplete comment
* Add comment poitning out auotgenerated duplication
* Final generation of sample scripts
* MMORCH-913 - Allow passing wrapped hyper clients to codegen
* Deprecate old API for back-compatibility rather than removing it
* Actually test Rust-server example integrations
2018-07-19 18:03:02 +08:00
Dimtiriy Remerov
76160b53c7
[php-symfony] Fixed a bug with access of non-existing property in generated code ( #578 )
...
* [php-symfony] Fixed a bug where Controller accessed non-existent property
* [php-symfony] Regenerated petstore sample
2018-07-19 15:32:15 +08:00
Jeremie Bresson
eb09731a65
Merge remote-tracking branch 'origin/3.2.x' into 4.0.x
2018-07-18 12:32:55 +02:00
Jeremie Bresson
45ed374b62
Merge remote-tracking branch 'origin/master' into 3.2.x
2018-07-18 12:19:41 +02:00
Jérémie Bresson
1e596496a5
Prepare 3.1.2-SNAPSHOT ( #589 )
2018-07-18 11:44:23 +02:00
Daonomic
0a52f56ba4
Support for discriminator.mapping ( #536 )
2018-07-18 06:14:42 +02:00
William Cheng
7c9d40016f
update petstore samples
2018-07-18 01:52:58 +08:00
Akihito Nakano
6d6ef0f120
[PHP] Refactor php client generator ( #504 )
...
* Extends AbstractPhpCodegen instead of DefaultCodegen
* Remove fully duplicated methods with AbstractPhpCodegen
* Remove duplicated properties with AbstractPhpCodegen
* Remove duplicated codes in constructor with AbstractPhpCodegen
* Add typeMapping "date". Moved from PhpClientCodegen
refs: 3c34c0b377 (diff-f1801ef05a7926bf394c90f44ae4ab3dL132)
* Remove duplicated codes in processOpts()
* Remove unnecessary 'implements'
* Remove unnecessary method override
* Use setter
* Merge getTypeDeclaration() into AbstractPhpCodegen
* Merge processOpts() into AbstractPhpCodegen
refs:
* 296e6d3db4 (diff-f1801ef05a7926bf394c90f44ae4ab3dL139)
* 296e6d3db4 (diff-f1801ef05a7926bf394c90f44ae4ab3dL147)
* 296e6d3db4 (diff-f1801ef05a7926bf394c90f44ae4ab3dL153)
* tweak
* Optimize IF statement
* Remove duplicated methods
* Merge setParameterExampleValue() into AbstractPhpCodegen
* Merge toEnumVarName() into AbstractPhpCodegen
* Merge toEnumName() into AbstractPhpCodegen
* Merge escapeUnsafeCharacters() into AbstractPhpCodegen
* Merge postProcessOperationsWithModels() into AbstractPhpCodegen
* tweak
* Recover missing method
refs: 2ad0f6f7d4 (diff-f1801ef05a7926bf394c90f44ae4ab3dL91)
* Tweak test case
refs: 4e7b7afc1a
* Remove unnecessary 'import'
* Update lumen and ze-ph samples
- ./bin/php-lumen-petstore-server.sh > /dev/null 2>&1
- ./bin/php-ze-ph-petstore-server.sh > /dev/null 2>&1
* Update slim samples
* Fix script name
* Update silex samples
* Update kotlin-server
2018-07-17 09:27:02 +08:00
Akihito Nakano
afb238814d
[Ruby] Abstract Ruby Codegen ( #562 )
...
* Add AbstractRubyCodegen
* Refactor constructor
* Move escapeReservedWord() to AbstractRubyCodegen
* Move getTypeDeclaration() to AbstractRubyCodegen
* Move toDefaultValue() to AbstractRubyCodegen
* Move toVarName() to AbstractRubyCodegen
* Move toParamName() to AbstractRubyCodegen
* Move toOperationId() to AbstractRubyCodegen
* Move escapeQuotationMark() to AbstractRubyCodegen
* Move escapeUnsafeCharacters() to AbstractRubyCodegen
* Use super.escapeReservedWord()
* RubyClientCodegen extends AbstractRubyCodegen
* Add the differences with AbstractRubyCodegen to "reservedWords"
* cliOptions.clear() is not a language specific matter
- Rails, Sinatra requires cliOptions.clear()
- Ruby client doesn't requires that
* Remove duplicated statements with AbstractRubyCodegen
* Remove duplicated methods with AbstractRubyCodegen
* Merge toVarName() into AbstractRubyCodegen
* Merge getTypeDeclaration() into AbstractRubyCodegen
* Merge toDefaultValue() into AbstractRubyCodegen
* Update Ruby related samples
- bin/ruby-client-petstore.sh
- bin/ruby-on-rails-server-petstore.sh
- bin/ruby-sinatra-server-petstore.sh
* Remove unnecessary 'import'
* Avoid unnecessary HTML escaping
2018-07-17 09:08:42 +08:00
William Cheng
f98000753d
update petstore samples
2018-07-16 16:59:45 +08:00
Yuriy Belenko
925ae68167
[Slim] Generation of UnitTest stubs ( #566 )
...
* [Slim] Add PHPUnit4 to Composer
* [Slim] Configure PHPUnit
* [Slim] Add Model and Api test templates
* [Slim] Refresh Slim samples
2018-07-16 14:25:48 +09:00
William Cheng
deb5dcaad1
Merge remote-tracking branch 'origin/3.2.x' into 4.0.x
2018-07-14 01:42:02 +08:00
William Cheng
478d6ced4e
Merge remote-tracking branch 'origin/master' into 3.2.x
2018-07-14 01:35:54 +08:00
Akihito Nakano
26e70fe642
[Ruby] Rename files/folders ( #534 )
...
* Rename templateDir: rails5 -> ruby-on-rails-server
* Rename script: rails5-petstore-server.sh -> ruby-on-rails-server-petstore.sh
* Rename sample folder: rails5 -> ruby-on-rails
* Rename script(openapi3): rails5-petstore-server.sh -> ruby-on-rails-server-petstore.sh
* Update ruby-on-rails-server-petstore.sh
* Rename templateDir: sinatra -> ruby-sinatra-server
* Rename script: sinatra-petstore-server.sh -> ruby-sinatra-server-petstore.sh
* Rename sample folder: sinatra -> ruby-sinatra
* Update script
* Rename templateDir: ruby -> ruby-client
* Rename script: ruby-petstore.sh -> ruby-client-petstore.sh
* Update scripts
* Update samples
- bin/ruby-sinatra-server-petstore.sh
- bin/ruby-on-rails-server-petstore.sh
- bin/ruby-client-petstore.sh
- bin/security/ruby-client-petstore.sh
2018-07-13 22:28:17 +08:00
Jeremie Bresson
0cc60d39d2
Merge remote-tracking branch 'origin/master' into 3.2.x
2018-07-13 07:25:49 +02:00
Benjamin Gill
6c14b4271f
Handle headers correctly ( #549 )
...
We were previously relying on some incorrect behaviour of the old
swagger-codegen mustache engine.
2018-07-13 01:55:56 +08:00
John Wang
19fd48e33b
[Golang][client] fix formData
file
parameter name use ( #506 )
...
* support form-data file MIME `name` parameter
* update test spec and Go client for form-data file name
* update samples for ensure-up-to-date
* update mustache template
* update samples for Go client
* improve assignment location
* update samples
2018-07-13 00:53:38 +08:00
William Cheng
0d952b79db
Improve logging in Python client ( #480 )
...
* improve logging in python client
* update samples
2018-07-10 22:12:09 +08:00
Dennis Kieselhorst
0a2131d2d3
update CXF and Jackson to latest version ( #496 )
2018-07-10 18:23:18 +08:00
Jeremie Bresson
7f4fc4de93
Merge remote-tracking branch 'origin/3.2.x' into 4.0.x
2018-07-07 15:29:36 +02:00
Jeremie Bresson
23c04e2e66
Prepare version 3.2.0-SNAPSHOT
2018-07-07 06:14:58 +02:00
Jérémie Bresson
4b6fb504a2
Prepare version 3.1.1-SNAPSHOT ( #487 )
2018-07-07 06:05:19 +02:00
Yuriy Belenko
9eeedede49
[Slim] Improve codebase decouple ( #438 )
...
* [Slim] Decouple Api files into separated PHP Classes
This enhancement required for modular testing and code coverage generating.
* [Slim] Define all app routes in SlimRouter PHP Class. Generate new samples
2018-07-06 14:37:14 +08:00
John Wang
0bffdf2463
[Golang][client] fix for schema definition name file
( #433 )
...
* fix schema/definition name as 'file'
* update samples
* Trigger CI due to previous Shippable race condition
* add fix with toModelName(openAPIType)
* update tests for file schema/definition name
* Update 3.0 test spec
* update samples
* update samples for jaxrs-cxf
* Trigger CI due to previous Shippable race condition
* add back explode
2018-07-05 20:32:24 +08:00
Akihito Nakano
ef2b372dd3
[Node.js] Add a message which notify that the generated server doesn't work ( #456 )
...
* Add message which notify that the server doesn't work
* Update samples
2018-07-05 12:25:17 +08:00
John Wang
00354d3264
[jaxrs-cfx][server] delete output dir before building sample files ( #452 )
...
bin/jaxrs-cxf-petstore-server.sh:
* delete output dir before building sample
* add comment before deleting files
2018-07-05 05:45:03 +02:00
Jérémie Bresson
7a7e221210
[Java] option for the prefix of boolean getters ( #432 )
...
* Add "booleanGetterPrefix" option
* Create `docs/migration-guide.adoc`
2018-07-03 17:00:15 +02:00
Jérémie Bresson
3d64bd0c49
[java-jaxrs] Fix paths when useTags=true is used ( #437 )
...
* Add test case for the existing implementation
* Introduce {{commonPath}}
* Update samples
2018-07-03 15:31:26 +02:00
Günther Grill
c1eda61874
Fix some Kotlin formatting issues and make source more Kotlin like ( #427 )
2018-07-03 08:25:48 +02:00
sunn
bece8d2a39
[aspnetcore] Add processing of Port defined in spec ( #368 )
2018-07-03 08:23:43 +02:00
William Cheng
862fe79f32
Minor improvement to Go client generator, move test case ( #430 )
...
* move test cases to under fake endpoint
* remove trailing spaces in the template
* update samples
* add new file
* minor fix to OAS3 spec
2018-07-02 10:23:12 +08:00
Yuriy Belenko
412923ab5f
[Slim] Refactoring ( #402 )
...
* [Slim] Cleanup samples. composer.lock excluded from .gitignore
composer.lcok should be commited to SVN. Official recommendation https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
* [Slim] Refactor. Extend AbstractPhpCodegen class
* [Slim] Adjust the names (script, sample folder, generator) to lang option
2018-07-02 00:16:55 +08:00
Jeremie Bresson
e172379f04
Update jersey samples
2018-07-01 17:43:19 +02:00
John Wang
e960fe9512
[Golang][client] fix undefined: localVarFile ( #382 )
...
* fix undefined: localVarFile
* add required formData file endpoints to 2.0 and 3.0 specs
* streamline api.mustache update
* update sampels
* update samples
* update samples
* update samples bin/jaxrs-cxf-client-petstore.sh
* update samples
* update samples
* update samples run-all-petstore
* update samples
* update samples
* Trigger CI due to race condition
* update samples
* update samples
* Trigger CI due to previous timeout
* Trigger CI due to previous Shippable timeout
* Trigger CI due to previous Shippable race condition
2018-07-01 16:58:45 +08:00
Thomas Townsend
79856abae9
Fix subResourcePath when using tags in java-jersey ( #215 )
2018-06-30 10:23:04 +02:00
akihito.nakano
23571046fb
Merge remote-tracking branch 'upstream/master' into prepare-310
2018-06-28 00:53:58 +09:00
Jean-François Côté
9990ddbe52
Merge pull request #385 from etherealjoy/fix_new_keyword_collection
...
[aspnetcore] Fix new keyword collection
2018-06-27 08:07:38 -04:00
Jeremie Bresson
b0c02d8ea6
Merge remote-tracking branch 'origin/3.1.x' into 4.0.x
...
# Conflicts:
# samples/server/petstore/kotlin-server/ktor/.openapi-generator/VERSION
# samples/server/petstore/kotlin-server/ktor/README.md
# samples/server/petstore/php-silex/.openapi-generator/VERSION
2018-06-25 19:09:41 +02:00
Jeremie Bresson
66b73e906e
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-25 18:58:54 +02:00
Benjamin Gill
d3b1721da0
[rust-server] Update to error-chain 0.12 ( #395 )
...
* Update to error-chain 0.12: 0.11 doesn't work with Rust 1.27.0 (new warnings)
* Revert commit 845df89e9511e8b972042a4376230d3d9f974659
2018-06-25 18:17:47 +02:00
etherealjoy
dd4b1aff2e
Update samples
2018-06-24 00:46:23 +02:00
Yuriy Belenko
36f4452351
[Slim] Upgrade API server integration tests to use Fake Petstore spec ( #354 )
...
* [Slim] Shell script points to petstore-with-fake-endpoints-models-for-testing.yaml. Slim init and new models has been generated.
* [Slim] Bugfix. Special value */* in opperation produces escaped to avoid PHP syntax errors.
* [Slim] Add own private static final LOGGER
* [Slim] Bugfix. toModelName method copied from PHPClient codegen which handles Fake Petstore spec much better.
* [Slim] Sort operations in supporting files data to avoid shadowing static routes.
* [Slim] Mustache index.php update. Params parsing enhanced.
* [Slim] Tiny cleanup. Unnecessary empty space removed.
* [Slim] Security fix. toOperationId method copied from PhpClientCodegen.
* [Slim] Bugfix. formData params parsing restored.
* [Slim] Proper .gitignore added to PhpSlimServerCodegen. Vendor folder with all dependencies removed to keep repo more clean.
* [Slim] Slim dependency update to 3.10.0. Few test fake endpoints fixed by this upgrade.
2018-06-23 12:10:38 +09:00
stkrwork
23ab5177b3
[C++][Pistache] Fix optional error and wrong function signatures ( #264 )
...
* Added missing includes for optional
* Removed shared pointer from pistache generator
* Changed Net namespace to Pistache Namespace
* Clean up code and removed unnecessary lines in mustache files
* Removed remaining shared pointer syntax
* Code review fixes + updated samples
* Added const to all model setter functions, and reference to all params in setters that are not primitives
* Refactored modelbase
* Removed const
* Updated samples
2018-06-22 09:12:35 +08:00