Jérémie Bresson
761799abf5
Release 3.1.1 ( #588 )
2018-07-18 09:31:56 +02:00
William Cheng
7c9d40016f
update petstore samples
2018-07-18 01:52:58 +08:00
William Cheng
1d53ed5095
Mark rust-server as migrated ( #584 )
2018-07-18 01:44:16 +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
Akihito Nakano
a055dc0351
Add ybelenko to PHP technical committee ( #575 )
2018-07-16 22:13:08 +08:00
Matthieu Berthomé
84ef98f067
[Python][Client] pure library client package ( #470 )
...
* Python client pure library package
* check onlyPackage CLI option
* run /bin/python-petstore.sh, update the python samples for CI
* onlyPackage local variable instead of classp property
* fix CI: __future__ absolute_import must be first in file
* update samples
* generateSourceCodeOnly
* updated samples
2018-07-16 15:49:08 +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
d863c3e5f4
Add travis.yml to test java6 option ( #568 )
...
Add travis.yml to test java6 option, update Java (Jersey2) dependencies
2018-07-15 16:00:07 +08:00
Jérémie Bresson
5a0a8f6a87
Java6 support: fix pom and gradle files, avoid diamond notation ( #560 )
2018-07-14 21:13:23 +08:00
William Cheng
df815344d1
fix NPE in body parameter due to incorrect parameter/consume ( #563 )
2018-07-14 20:19:10 +08:00
Daniel Miller
a6e15d7569
Fix handling of UUID types ( #554 )
2018-07-14 16:42:24 +08:00
Jean-François Côté
791f836e3d
This fix the problem of having UNKNOWN_BASE_TYPE and "Object" type ( #383 )
2018-07-14 01:30:07 +08:00
jason-cohen
cd854b2130
Add check for list size before attempting to set last element field value. ( #557 )
2018-07-13 23:42:14 +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
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
John Wang
93832340a5
add RFC-3339 formatting to parameterToString ( #502 )
2018-07-13 00:50:21 +08:00
Tomasz Prus
a0936bec02
feat: use local_var_params to avoid collision with api parameters ( #521 )
2018-07-12 21:30:57 +08:00
William Cheng
a18a50b7a4
Add an entry to clarify the Q&A page ( #544 )
2018-07-12 15:30:45 +02:00
William Cheng
d17bdd2658
Improve CircleCI caching ( #539 )
...
* show ivy2 cache
* fix typo
* list dir before saving cache
* list dir before saving cache
* cache .git
* replace tab with space
* remove ls
* restore tests
2018-07-12 13:16:33 +08:00
Jérémie Bresson
84129a7da1
Remove secondary dependencies ( #529 )
2018-07-11 12:14:46 +02: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
John Wang
86a0445984
Add default http scheme for server URL, Fix #181 ( #498 )
2018-07-09 10:45:28 +08:00
Akihito Nakano
837b10aab5
Fix script names ( #508 )
2018-07-08 23:05:27 +08:00
John Wang
9103ddb7fa
add graceful error for io.airlift.airline.ParseArgumentsUnexpectedException ( #494 )
2018-07-08 23:00:22 +08:00
Tomasz Prus
96e86ac03e
update and fix python samples ( #489 )
...
* fix: update petstore samples for python, fix broken tests
* chore: entries for python-asyncio/tornado in gitignore
2018-07-08 15:29:55 +08:00
William Cheng
950c584485
[WIP] Add release checkout script ( #485 )
...
* add release checkout script
* add check for docker images
2018-07-08 13:07:26 +08:00
sunn
6d05ea5716
Allow generated code to do cleanup of object by preventing premature loop exit ( #270 )
2018-07-08 12:55:27 +08:00
Jon Schoning
79fafda012
[haskell-http-client] regen samples ( #492 )
2018-07-08 12:46:35 +08:00
John Wang
a14e757059
fix cache-expires-ineffassign ( #466 )
2018-07-08 12:38:04 +08:00
John Wang
b380e8f2a9
[CLI] Add --generator-name / -g to config-help ( #491 )
2018-07-07 07:48:47 +02:00
Jérémie Bresson
0d959a254c
Update README.md ( #493 )
...
Mention branch 3.2.x and version 3.2.0
2018-07-07 07:47:35 +02:00
Johannes Hoppe
4797c7b42c
Update README.md ( #488 )
2018-07-07 06:06:30 +02:00
Jérémie Bresson
4b6fb504a2
Prepare version 3.1.1-SNAPSHOT ( #487 )
2018-07-07 06:05:19 +02:00
William Cheng
100ec449fe
3.1.0 release ( #486 )
...
* 3.1.0 release
* Comment ./bin/utils/ensure-up-to-date
2018-07-06 23:37:48 +08:00
William Cheng
790f3d46aa
Fix broken link to openapi generator plugin README ( #484 )
2018-07-06 19:11:34 +08:00
William Cheng
7404ecb11e
show warning message for nodejs server only ( #481 )
2018-07-06 17:29:49 +08:00
William Cheng
a714bf4720
Add grokify to Go technical committee ( #479 )
2018-07-06 14:38:02 +08: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
Esteban Marin
3408866b79
Ensure typescript samples are up to date ( #444 )
...
See #80
2018-07-06 07:56:51 +02:00
William Cheng
804094bf51
Update README.md
2018-07-06 13:45:34 +08:00
John Wang
869b17fe29
[Golang][client] delete sample output dir before rebuild ( #477 )
...
* delete Go client sample output dir before rebuild
* purge go-petstore-withXml samples output dir before build
* update samples
* fix go-petstore-withxml.sh echo path
2018-07-06 12:20:13 +08:00
William Cheng
867aaa4c27
update petstore samples ( #478 )
2018-07-06 12:08:20 +08:00
Jeremie Bresson
d43801a9b7
Revert "Improve Docker Tags ( #390 )"
...
This reverts commits:
* 036570d93d .
* edf24d859c .
2018-07-06 05:28:10 +02:00
John Wang
7eb2acaf71
update go client test dependencies ( #468 )
2018-07-05 20:34:32 +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
Jeremie Bresson
036570d93d
Fix '.travis' file (syntax)
2018-07-05 12:03:47 +02:00
John Wang
60da6fb2e1
make LICENSE GitHub display compatible ( #467 )
2018-07-05 10:08:52 +02:00
Jérémie Bresson
edf24d859c
Improve Docker Tags ( #390 )
2018-07-05 14:40:06 +08:00
John Wang
33fcd28dba
[Golang][client] fix file suffix for _test.go ( #449 )
...
* add file suffix fix for _test.go
* Trigger CI due to previous Shippable race condition
* Trigger CI due to previous Shippable race condition
* Trigger CI due to previous Travis CI stall
* Trigger CI due to previous Travis CI stall
* Trigger CI due to previous Shippable race condition
* add Go client test testFilenames
2018-07-05 14:02:10 +08:00
Jérémie Bresson
8fb413107c
Remove copy section ( #463 )
2018-07-05 13:33:08 +08:00
William Cheng
f976887f23
Add link to presentation ( #465 )
2018-07-05 13:05:07 +08:00
Jérémie Bresson
ab8ec45b50
Use postProcessOperationsWithModels(Map, List) ( #431 )
...
Instead of postProcessOperations(Map)
2018-07-05 12:31:06 +08:00
Niklas Werner
96e0814510
[C] Adding petstore sample written in C ( #306 )
...
* Added a .gitignore to ignore the build folder
* Added a CMakeLists and a basic implementation of a double linked list
* Added the pet model
* changed the behaviour when a list gets freed - the data of each element doesn't get freed anymore
* Added the tool uncrustify in order to make code look better
* Uncrustified code
* added an implementation(constructor and deconstructor) for the category model
* Added a third party JSON library
* The pet struct now uses pointers for its members; the pet struct now has a proper constructor and a basic toJSON method
* The pet model now gets fully serialized into JSON
* Fixed the example url...
* Added third party library libcurl
* Modified category struct and added an unit test
* Added a foreach macro and added two functions
* Added a tag model and an unit test
* the pet struct now uses no double pointer for it's name anymore and no pointer for the enum status anymore; the pet struct can now be fully converted to json and parsed from json
* Added the struct APIClient and an unit test
* Uncrustified the unit test for category
* Added ifdef in pet.h to prevent errors
* Added one API endpoint to get a pet by id
* Added a "== 0" comparison that I forgot
* Added some kind of debug functionality to test-petApi.c
* Removed the DEBUG define
* Moved the c petstore example from samples/client/c to samples/client/petstore/c
* Renamed function getPetById to petApi_getPetById to avoid name collisions
* Removed unecessary method in list.c
* Added POST functionality; added petApi_addPet method and improved unit-test for petApi; cleaned up some code in apiClient
* removed two methods in list.c(string/tag to JSON) and moved their code directly in the pet_convertToJSON method
* Removed old, already commented out, puts artifact in apiClient.c
* Added a convertToJSON method to the category model
* Added a convertToJSON method to the tag model
* changed how the convertToJSON method works in the pet model
* Adjusted the unit-tests on how the convertToJSON method now works(now returns a cJSON* instead of a char*)
* apiClient_t now needs to be given to API methods as a parameter. This means apiClient_t can now be reused in multiple methods.
* Added an untested concept for how authentication could be handled
* Tested basicAuth using wireshark and added untested OAuth2 feature
* Added support for api key authentication using the http-header and tested functionality using wireshark
2018-07-05 12:28:43 +08:00
Jérémie Bresson
1d69566cb1
Sanitize pipe in var name ( #461 )
2018-07-05 12:26:46 +08:00
Jérémie Bresson
b0cae23777
[java-client] WebClient requires java8 ( #460 )
...
* Usage of webclient library forces java8 to be true
* Run bin/java-petstore-webclient.sh
2018-07-05 12:26:02 +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
John Wang
2577e48feb
[README.md] minor fixes incl. spelling, links, sorting, formatting ( #462 )
...
* minor README.md fixes: link, spelling, sorting, formatting
* add PowerShell to Technical Committee list
2018-07-05 05:33:14 +02:00
developersteve
020883fd4d
[Java] version in the generated README dependent from {{java8}} ( #380 )
2018-07-04 13:05:14 +02:00
Jeremie Bresson
f8e5c410a2
Run bin/java-petstore-webclient.sh
2018-07-04 09:58:52 +02:00
Daonomic
b90c53deb6
[Java-client] Add Spring 5 WebClient as new library ( #435 )
2018-07-04 09:40:57 +02:00
TNM Technologies
d6e950f681
[jaxrs-resteasy] multiple values for @Produces annotation are separated by a comma ( #445 )
...
* fix: The values for @Produces annotation were not separated by a comma.
* Add test case for #443
2018-07-03 23:46:24 +02:00
Geoff Brown
960412a9b4
Restructure TypeScript Node generation into separate files (PHNX-1041) ( #363 )
2018-07-03 17:03:40 +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
Akihito Nakano
0137763997
Improve generation of README which has long description ( #400 )
...
* Add `appDescriptionWithNewLines`
* Add test case for escapeText as well
* Ruby client allows new lines in README
* Add doc comment
* fix issue related to github web gui
* the case of no description provided
* Run `./bin/utils/ensure-up-to-date`
https://app.shippable.com/github/OpenAPITools/openapi-generator/runs/1118/1/console
2018-07-03 21:25:27 +08:00
tomvangreen
dcc0c17a29
typescript-angular: add serviceSuffix and serviceFileSuffix parameters suffix ( #418 )
2018-07-03 13:38:21 +02:00
Raphael Ochsenbein
be68ef502e
Inject basepath through configuration in generated service for angular, create test cases for angular 6 ( #367 )
2018-07-03 17:55:26 +08: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
sunn
83e14a7b44
[golang] Fix Null pointer exception in toVarName ( #377 )
2018-07-03 05:58:05 +02:00
Jérémie Bresson
001f5ae50d
Mock generator for tests ( #429 )
...
Create MockDefaultGenerator class for tests
2018-07-02 17:38:07 +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
Akihito Nakano
8bddf12e05
[Ruby] Make rake tasks required to publish gem available ( #424 )
...
* Make tasks reuired to publish gem available
https://github.com/OpenAPITools/openapi-generator/issues/423
* Update samples
- bin/ruby-petstore.sh
- bin/security/ruby-petstore.sh
2018-07-01 14:36:48 +08:00
Jérémie Bresson
a02b313b89
ModelUtils: isMap only if additionalProperties is a Schema ( #410 )
...
Fix for issue #409
2018-07-01 07:31:36 +02:00
Akihito Nakano
8e648e4d95
[PHP] Remove unnecessary IF statement ( #421 )
...
* Delete unused IF statement
JSON_PRETTY_PRINT is available since PHP 5.4.0
* Update samples
- bin/php-petstore.sh
- bin/security/php-petstore.sh
- bin/openapi3/php-petstore.sh
2018-06-30 20:30:25 +09:00
William Cheng
e5a42ab277
add link to presentation at JHipster conf 2008 ( #422 )
2018-06-30 18:52:11 +08:00
Jérémie Bresson
2604c935cf
Add test cases for addProducesInfo(..) ( #420 )
2018-06-30 10:29:10 +02:00
Thomas Townsend
79856abae9
Fix subResourcePath when using tags in java-jersey ( #215 )
2018-06-30 10:23:04 +02:00
Jérémie Bresson
1f1a47c57b
Obtain the example value from examples ( #419 )
...
* Fix error: "GET operations can not have a requestBody"
* Add support for "examples" in addition to "support example"
2018-06-30 06:58:30 +02:00
Akihito Nakano
0c11718917
Revise how to obtain the example value ( #183 )
2018-06-28 18:14:01 +02:00
Jérémie Bresson
9b909df543
Prepare 3.1.0-SNAPSHOT ( #408 )
2018-06-28 06:52:40 +02:00
akihito.nakano
aedd2dea45
Update badges
2018-06-28 07:37:17 +09:00
akihito.nakano
5154712050
Use last prod version in docs/examples
2018-06-28 07:27:31 +09:00
akihito.nakano
76d87183c0
Use last prod version
2018-06-28 01:12:23 +09:00
akihito.nakano
0e31e4cff5
Re-enable ./bin/utils/ensure-up-to-date
2018-06-28 00:55:00 +09:00
akihito.nakano
23571046fb
Merge remote-tracking branch 'upstream/master' into prepare-310
2018-06-28 00:53:58 +09:00
Akihito Nakano
34ad6d5ac8
Release 3.0.3 ( #406 )
...
* Remove the SNAPSHOT version
bin/utils/release_version_update.sh 3.0.3-SNAPSHOT 3.0.3
* Disable ensure-up-to-date temporarily
2018-06-27 22:44:56 +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
Thibault Duperron
b6717a5bad
[Java, kotlin] Manage List<Integer> datatype for enum ( #75 )
2018-06-27 05:51:35 +02:00
Jérémie Bresson
ea81b0c833
Restore unit test that consider minLength, maxLength and pattern ( #401 )
...
when they are defined in a in referenced schema
Originally introduced with 6b8079808b (#45 ),
commented with 85090f5068 (#82 ).
2018-06-26 09:11:27 +02:00
John Wang
0eb385c0d6
Update path in error message ( #403 )
2018-06-26 09:05:21 +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 845df89e95
2018-06-25 18:17:47 +02:00
Akihito Nakano
9e2fcda357
[JMeter] Rename codegen class, template folder ( #387 )
...
* Rename JMeter client generator class name
* Rename jmeter template folder
* Update samples
2018-06-25 13:46:52 +08:00
tomvangreen
38bb732673
Typescript Angular 2: Make service suffix configurable ( #341 )
...
* Added serviceSuffix and serviceFileSuffix parameters to control the suffixes of generated class and file names
* Updated TypeScriptAngularClientOptionsProvider to include the new serviceSuffix and serviceFileSuffix parameters
* Fixed part in generator where hardcoded 'Service' suffix was used.
* Made the . in the service file name part of the config setting
* Updated cli message
2018-06-25 12:17:32 +08:00
Jan Prieser
a0bfe2bf72
WIP: new javascript flowtyped generator ( #176 )
...
New Javascript flowtyped generator
2018-06-25 12:04:10 +08:00
sunn
c01f4bf220
[cpp-qt5] sanitize model names ( #388 )
...
* Escape characters that have language significance
* Remove assignment to parameter variable
2018-06-25 11:51:24 +08:00
etherealjoy
f45ec312ee
Updated as requested to use isMapModel
2018-06-24 09:21:47 +02:00
etherealjoy
dd4b1aff2e
Update samples
2018-06-24 00:46:23 +02:00
sunn
92a0e4e7d8
Remove 'new' keyword from collection
2018-06-24 00:28:53 +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
William Cheng
845df89e95
disable rust server test due to lint error ( #379 )
2018-06-23 10:32:30 +08:00
Jérémie Bresson
8f4df45fb4
Consider ComposedSchema in DefaultCodegen#fromRequestBody(..) ( #358 )
2018-06-22 10:44:14 +02: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
William Cheng
825e4e99e3
disable erlang server test due to dependency issue ( #375 )
2018-06-22 01:20:38 +08:00
William Cheng
4cb51ac7c1
add wording to clarify the relationship with OAI ( #374 )
2018-06-21 11:36:39 -04:00
William Cheng
a897feef50
Fix alias to map in the model's properties ( #360 )
...
* add test case for ref to map (boolean) in fake petstore spec
* fix alias to map in model properties
* remove logging from new method
* update samples for the new map test case
* fix javadoc string
* skip testSanitizeNestedInvalidValue in php test
* skip test in php oas3 client
* add logic to handle outer enum
* update samples
* fix alias in model's allOf
* generate models for map def
* update petstore samples
* update petstore samples
2018-06-21 22:59:02 +08:00
William Cheng
f4a534855c
add an update to the Q&A ( #371 )
2018-06-21 10:16:12 -04:00
William Cheng
a0f71cc328
update go client, server petstore samples ( #365 )
2018-06-21 21:59:56 +08:00
Jérémie Bresson
5884db97d4
Fixes for maven deploy ( #366 )
...
gradle-plugin-mvn-wrapper:
* Fix disabling of install and deploy
* Set skipNexusStagingDeployMojo to true
2018-06-21 15:05:38 +02:00
Geoff Brown
12ab7e2752
Use case sensitivity when checking reserved words (PHNX-1040) ( #3 ) ( #351 )
...
Motivation
-------------
Open API generator previously wasn't case sensitive when checking for reserved words in the typescript generator. This will allow us to have the "Package" model in ProductCatalogs without needing to rename anything.
Modifications
------------------
Duplicated the C# logic for reserved words (per the @jimschubert from openapitools' suggestion)
2018-06-21 17:34:22 +08:00
Akihito Nakano
e23b2f6fcc
[Scala][client] Rename script, sample folder, template dir ( #334 )
...
* Rename scripts akka-scala-petstore.sh -> scala-akka-petstore.sh
* Rename sample folder: akka-scala -> scala-akka
* Rename templateDir: akka-scala -> scala-akka-client
* Rename scripts: scala-petstore.sh -> scala-httpclient-petstore.sh
* Rename sample folder: scala -> scala-httpclient
* Rename templateDir: scala -> scala-httpclient
* update circle pom.xml for new scala path
* remove duplicated scala test
2018-06-21 17:28:58 +08:00
Joe Elliott
5b5fe3cad9
[Swift 4] add compatibility for unwrapRequired config option ( #229 )
...
* Added support for unwrapRequired in Swift 4
* Update petstore generators for Swift.
2018-06-21 16:52:02 +08:00
ilk
4664c07034
[go] Fix issue #51 , change object mapping from *interface{} to map[string]interface ( #60 )
2018-06-21 13:36:28 +08:00
Jeremie Bresson
9509e66ae8
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-21 07:33:59 +02:00
Mads Føhns
d19a2faf8e
[php] Correctly handle multiple valid responses ( #128 )
...
* #125 : Correctly handle multiple valid responses
* Fixed defaultResponses
* Fixed void-returns
* Fixed multiple return-types without an actual type
* Update the samples under openapi3 folder
2018-06-20 21:26:23 +09:00
Jérémie Bresson
3c9cf1dcd6
Restore unit test ( #346 )
...
* Restore test classes to commit 5340c35ce1
* Fix samples/client/petstore/java/feign
* Fix samples/client/petstore/java/jersey1
* Fix samples/client/petstore/java/jersey2-java8
* Fix samples/client/petstore/java/jersey2
* Fix samples/client/petstore/java/okhttp-gson
* Fix samples/client/petstore/java/resttemplate/src/test/java
* Move "StringUtilTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Fix echo line
* Move tests to 'test-manual/common/'
* Move "ApiClientTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Move "ConfigurationTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Move "auth/ApiKeyAuthTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Move "auth/HttpBasicAuthTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Move "model/EnumValueTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Move "JSONTest.java" to "samples.ci"
and add copy command in *.sh scripts
* Replace "cp" => "mkdir & cp"
* JSONTest.java is java8 specific
* Run bin/java-petstore-all.sh
* "$_" does not work on Shippable
2018-06-20 15:40:58 +08:00
Jim Schubert
231202d0a3
Initial roadmap ( #295 )
...
* Initial roadmap
2018-06-20 00:29:17 -04:00
developersteve
9151f65702
Adding in Telstra ( #357 )
...
as a company using openapi-generator
2018-06-20 11:59:25 +08:00
Jeremie Bresson
478b0d6101
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-19 07:32:52 +02:00
Jérémie Bresson
9511586f07
Prepare 3.0.3-SNAPSHOT ( #338 )
2018-06-18 09:32:11 +02:00
Jérémie Bresson
74914b6313
Prepare release 3.0.2 ( #337 )
2018-06-18 07:19:53 +02:00
John Wang
30d10213ec
Add links for released versions in compat table ( #336 )
2018-06-18 04:51:05 +02:00
Ben Wells
c51986d657
Go server clean up ( #328 )
2018-06-18 01:09:48 +08:00
Jim Schubert
97bab928bd
[cli] Enable recommendations on validate command ( #292 )
2018-06-18 01:09:21 +08:00
Akihito Nakano
75171b4672
[C++] Rename template dir ( #332 )
...
* Rename templateDir: pistache-server -> cpp-pistache-server
* Rename templateDir: qt5cpp -> cpp-qt5-client
* Rename templateDir: restbed -> cpp-restbed-server
* Rename templateDir: cpprest -> cpp-rest-sdk-client
* Rename templateDir: tizen -> cpp-tizen-client
* Update scripts
2018-06-17 19:56:56 +09:00
William Cheng
7c49bdd953
CircleCI migration from 1.0 to 2.0 ( #333 )
...
* migration to circleci 2.0 config
* install docker compose
* add setup remote docker
* comment out docker compose
* using public petstore for testing
* use only one working_directory
* use openapitools/openapi-petstore instead
* disable auth in petstore server
* run petstore server locally via mvn jetty
* fix typo
* test go first
* test pet server at port 8080
* remove docker compose command
* wait for server to start up
* sleep longer
* test mvn jetty again
* use machine executor
* comment out docker
* comment out restore cache
* sleep for 30s
* change petstore port
* restore petstore docker
* fix docker run command
* restore cache, clean up comments
2018-06-17 14:52:37 +08:00
shigeru.nakajima
86a82d103e
Eliminate MySQL dependency of Rails 5 stub server ( #279 )
...
* [rails] In order to set up the Ruby on Rails stub server easily, remove the dependency on MySQL
* [rails] Update sample codes of Ruby on Rails stub server
2018-06-17 12:44:25 +08:00
delenius
c607ea8b31
Add fixes for es6 generator ( #180 )
...
Various fixes for JS (ES6) generator
2018-06-17 01:59:23 +08:00
William Cheng
53d9878cf2
Update Petstore samples ( #331 )
...
* Grammar and spelling fixes
* update petstore samples
2018-06-17 01:33:36 +08:00
Ville Skyttä
798bf61fde
Grammar and spelling fixes ( #329 )
2018-06-17 00:49:01 +08:00
William Cheng
e5635d236d
update brew readme ( #330 )
2018-06-16 21:21:18 +08:00
William Cheng
cb28ada0aa
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-16 19:02:17 +08:00
John Wang
a20f93b42f
[Golang][client] fix RFC-3339 date-time query param ( #325 )
2018-06-16 00:29:24 +08:00
William Cheng
6c996a7d1a
Various improvement to CI ( #326 )
...
* Various improvement to CI
* trigger a failure
* disable ensure up-to-date script
* move ensure-up-to-date under bin/utils, pipe update to /dev/null
2018-06-15 16:18:31 +08:00
Jérémie Bresson
5630746794
Remove "CI/pom.xml.shippable" ( #319 )
...
Remove Shippable CI specific pom file to avoid duplicates
2018-06-15 06:55:33 +02:00
Jeremie Bresson
dbb44a153d
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-14 13:29:52 +02:00
Stian Liknes
680a2bc3ec
Configuration option to disable HTML escaping when using Gson ( #298 )
...
* Configuration option to disable HTML escaping when using Gson
The default implementation of Gson will escape certain characters by default. This
includes the `=` character, which is used in base64 encoding and cause problems when
deserializing the value to a base64 encoded string in a service.
Adding an option for disabling this feature makes it easier to generate client code
with sane defaults.
* Update Petstore sample
2018-06-14 19:27:52 +08:00
topce
f8e61ac914
[typescript] fix cast problem ( #303 )
...
* fix cast problem
* fix cast problem
wing328 suggestion
2018-06-14 19:20:34 +08:00
Stian Liknes
24104dac35
Add option modelPropertyNaming to javascript generator ( #299 )
...
* Add option modelPropertyNaming to javascript generator
Fixes 6530
* Update Petstore sample
2018-06-14 19:19:23 +08:00
John Wang
7126074f49
add Go client test - TestPlaceOrder ( #321 )
2018-06-14 14:24:16 +08:00
Benjamin Gill
91d6d77a09
[rust-server] Add rust-server to travis CI ( #308 )
...
* Add rust-server to travis CI
* Install rust correctly (and only once)
2018-06-14 00:05:49 +08:00
Jérémie Bresson
f964873a2d
Change "samples" profile name to "samples.shippable" ( #305 )
2018-06-13 15:05:20 +02:00
Benjamin Gill
6f6a4a1013
[rust-server] (Re-)Adding support for rust-server ( #290 )
...
* First attempt at getting rust-server working
* Solve the problem of spurious 'object's
* We've found the missing models
* Catch some single-var objects correctly
* Get single-param models 'working'
* Got files working
* Remove surplus logging
* Disable some things to get it compiling
* `cargo test` now passes as well
* Create rust-server-specific petstore.yaml
We've commented out a few bits that rust-server doesn't yet support
* Remove commented-out code
And finally get rid of the generation date in the sample
2018-06-13 18:53:03 +08:00
William Cheng
49b8ece776
update cpp server scripts/batch files ( #296 )
2018-06-13 16:57:36 +08:00
sunn
299527370e
[go-server] Add dockerfile for building and run petstore service ( #274 )
...
* Add possibility to build and run go service in a container
* Remove tabs
* Update Pet Store server sample
* Add {{{packageName}}} instead of petstore
2018-06-13 16:55:04 +08:00
Jim Schubert
55f9e31f81
Update template modification docs ( #291 )
...
Updates some confusing wording, specifies naming conventions, and links
to external `new.sh` for contributed templates (rather than modified
templates).
2018-06-12 21:35:09 -04:00
Phil Sturgeon
2ff81caef6
Expanding customization docs ( #283 )
...
* Expanding customization docs
As a new user I was very confused on how to either modify, override or create a new library. The existing docs were brief and had requirred knowledge that new users will not have, and it took a lot of trial and error to make progress.
Also the wording seemed off. It kept talking about "client" when this project creates more than just clients, used "language" when some templates are not a language, and used library to mean a few seeminly different things. I've tried to consolidate the wording around "template" and "codegen".
The codegen is the Java code, and then you give it a "name" which is used for the template. That's the template folder it will live in, so it seems to work.
Feel free to use this as a base and edit it out, but this will all make a lot more sense to beginners. :)
2018-06-12 18:09:26 -04:00
Jeremie Bresson
a878749f6c
Merge remote-tracking branch 'origin/master' into 3.1.x
2018-06-12 16:26:44 +02:00
Jérémie Bresson
9930f610a7
Ignore signing for other branches than master ( #288 )
2018-06-12 16:25:47 +02:00
Christophe Bornet
d2016d8e0a
Fix spring controller validation ( #225 )
2018-06-12 20:45:17 +08:00
Jeremie Bresson
958dd20680
Merge remote-tracking branch 'origin/master' into '3.1.x'
2018-06-12 12:06:54 +02:00
Jérémie Bresson
defedf6e2b
Mention new branches in the doc pages ( #287 )
...
* Mention new branches in docs
* Add badges for new branches in README.md
* Allow branches "3.1.x" and "4.0.x" to deploy (.travis.yaml)
2018-06-12 12:05:32 +02:00
Jeremie Bresson
c223f28171
Initial commit for 3.1.0-SNAPSHOT
2018-06-12 06:27:26 +02:00
Jérémie Bresson
8ae1c814d5
Prepare 3.0.2-SNAPSHOT ( #285 )
...
Set version `3.0.2-SNAPSHOT`.
Follow up from #280
2018-06-11 13:22:03 -04:00
William Cheng
0453e64fa6
Prepare 3.0.1 release ( #280 )
...
* add new bash script for release version update
* update version using the bash script
* Fix shippable build
Modify `artifactId` of `CI/pom.xml.shippable` to be `openapi-generator-shippable-pom`
* Comment ensure-up-to-date
* add shippable to the release script
* Updates README based on new release changes (#271 )
The release management changes moved from maven-publish (newer plugin)
to maven (older plugin, only one that works currently with signing).
This updates docs in the samples/local-spec project with current
directions.
Also:
* Includes sonatype releases/snapshots on repo lookup
* Adds openApiGeneratorVersion property
2018-06-11 10:32:15 -04:00
Esteban Marin
0a479f77f6
[typescript-angular] strict type checking ( #218 )
...
* strict type checking
* strict type checking
* generate samples for angular-typescript
2018-06-11 21:31:23 +08:00
Akihito Nakano
2392a09eeb
[C++ server] Adjust the names (script, sample folder, generator) to lang option ( #250 )
...
* Renamce C++ server scripts
* Change output folder
* Rename sample folder: pistache-server -> cpp-pistache
* Rename sample folder: restbed -> cpp-restbed
2018-06-10 22:48:30 +08:00
sunn
f5f00069bd
Removed warnings for packages included in SDK for Net Core 2.0 ( #269 )
...
Microsoft.Extensions.SecretManager.Tools
Microsoft.DotNet.Watcher.Tools
For docker containerized apps, avoiding restore again is important for image size
2018-06-10 08:29:13 -04:00
Jim Schubert
640fd87e3b
[cli] Completions command for suggestions ( #213 )
...
* [cli] Completions command for suggestions
This takes airlift's 'suggest' command and reuses it as a different
command name, 'completion'. This gives us in-built CLI completions which
are useful in the repo-level container's docker-entrypoint.sh. This
previously parsed Java files for conventional usage of Command
annotations, which is potentially buggy. The new implementation relies
only on CLI to provide command completion suggestions.
As part of this, we can prepare for bash completion scripts which can be
added to our homebrew formula. The new completion command will also
complete on command options, for example:
cli completion generate
This will provide all short and long form switches available to the
generate command.
* Add piggyback license onto licensed of file borrowed from airlift/airline
2018-06-10 19:33:00 +08:00
SiMing Weng
43b60e667e
[Java][RestTemplate] Fix query parameter URL encoding ( #260 )
...
* add URL encoding to the query parameters in case they have unsafe characters
* add comment
* update generated samples
2018-06-10 17:48:26 +08:00
sunn
a2c27ba8a6
[cpp-qt5] Remove std::shared_ptr from Qt5 ( #267 )
...
* Remove std::shared_ptr from Qt5
Updated Petstore
Update Object Template to be able to store the json body
* Remove tabs
2018-06-10 17:39:38 +08:00
Johannes Hoppe
f5708218ea
Adds some links to the README ( #261 )
...
* Update README.md
links to both articles and our consulting company @wing328
FYI @fmalcher
* Update README.md
company-link in alphabetical order, as suggested by @wing328
2018-06-10 14:19:17 +08:00
Jim Schubert
276afefc85
Update sec.gpg.enc to binary encoded secret
...
Previous attempts at ecrypted secret failed due to improperly encoded
file. Local tests revealed that sonatype creds weren't configured
correctly for the defined server. Maven and Gradle snapshots uploaded
locally using updated configs.
2018-06-09 23:03:44 -04:00
Jim Schubert
36d1ec364e
Add gpg --check-trustdb, limit gpg to master
...
This adds gpg --check-trustdb to avoid:
gpg: keydb_search failed: invalid packet
This also limits gpg key maintenance to master branch.
2018-06-09 20:53:26 -04:00
Jim Schubert
dbbeffa712
Re-do encrypted gpg and reference in settings.xml
2018-06-09 19:42:51 -04:00
Jim Schubert
0adfd9f8e9
Fix trailing semicolons in after_success Travis CI scripts
2018-06-09 17:11:15 -04:00
Jim Schubert
178949038f
Use ubuntu keyserver instead of mit (due to timeout)
2018-06-09 14:36:17 -04:00
Jim Schubert
5a332f3c57
[gradle] Plugin release management ( #201 )
...
* [gradle] Plugin release management
This applies steps necessary for publishing to Sonatype, including
sources, javadoc, jar and signing. Also includes full POM details, per
Sonatype requirements.
* Properties placeholders in gradle plugin (should allow users without these settings to build locally)
* Update build wrapper for install task to be used with new maven plugin, not maven-publish plugin
* Add code signing for gradle and maven
2018-06-09 14:21:31 -04:00
Johannes Hoppe
f72059e7ac
Updates small typo in qna.md ( #262 )
...
-was +were
2018-06-09 09:21:44 -04:00
Jérémie Bresson
992afd51eb
Fix ModelUtils.getUnusedSchema() ( #253 )
...
Fix #252
`ModelUtils.getUnusedSchema()` consider Schemas referenced in other Schemas. Implemented for:
* array
* object
* maps
* ComposedSchema
- oneOf
- anyOf
- allOf
* not
2018-06-09 11:56:08 +02:00
Jérémie Bresson
8de5c62cf2
Add JaxRS to bin/ensure-up-to-date ( #248 )
...
* Create bin/java-jaxrs-petstore-server-all.sh
* Run bin/java-jaxrs-petstore-server-all.sh
* Add 'bin/java-jaxrs-petstore-server-all.sh' to 'bin/ensure-up-to-date'
2018-06-09 08:54:27 +02:00
Matteo Mazza
ebaa7021a4
feat(security): add cookie-auth support ( #240 )
2018-06-09 00:20:40 +08:00
Jérémie Bresson
51437af1cd
Add 'unblu inc.' to company list ( #246 )
2018-06-07 22:12:03 +08:00
William Cheng
c45dba1691
put company list in alphabetical order ( #244 )
2018-06-07 18:27:27 +08:00
William Cheng
fbe9626b7e
[jaxrs-spec] generate spec file (yaml) correctly ( #243 )
...
Fix #235
2018-06-07 11:08:52 +02:00
Akihito Nakano
cf657f1c7b
[C++] Adjust the names (script, sample folder, generator) to lang option ( #220 )
...
* Rename script: qt5-petstore.sh -> cpp-qt5-petstore.sh
* Rename sample folder: qt5cpp -> cpp-qt5
* Rename script: cpprest-petstore.sh -> cpp-restsdk-petstore.sh
* Rename sample folder: cpprest -> cpp-restsdk
* Rename generator: CppRestClientCodegen -> CppRestSdkClientCodegen
* Rename script: tizen-petstore.sh -> cpp-tizen-petstore.sh
* Rename sample folder: tizen -> cpp-tizen
* Rename script(security): qt5cpp-petstore.sh -> cpp-qt5-petstore.sh
* Rename sample folder(security): qt5cpp -> cpp-qt5
* Rename script(windows): qt5cpp-petstore.bat -> cpp-qt5-petstore.bat
* Change sample folder
* Rename script(windows): cpprest-petstore.bat -> cpp-restsdk-petstore.bat
* Change sample folder
* Rename script(windows): tizen-petstore.bat -> cpp-tizen-petstore.bat
* Change sample folder
* Change output folder: tizen -> cpp-tizen
* Rename the scripts under bin/openapi3
cpp-restsdk is not exist under bin/openapi3
* Change sample folder
2018-06-07 16:55:43 +08:00
Akihito Nakano
f65193e6fb
Add GMO Pepabo to company list ( #242 )
2018-06-07 16:45:23 +08:00
Christophe Bornet
7a1945e154
[Spring] Add apiFirst option ( #184 )
...
* [Spring] Add apiFirst option
* Git diff to see what's wrong
* Git diff to see what's wrong
* Update bin/ensure-up-to-date
* Run bin/ensure-up-to-date
2018-06-07 13:55:12 +08:00
Jim Schubert
f4c66d9e53
[cli] Write to stdout/stderr, allow redirection ( #207 )
...
* [cli] Write to stdout/stderr, allow redirection
Previously, slf4j-simple from generator core was being used. This writes
to only a single stream (STDERR) and is confusing from a CLI tooling
perspective.
This consumes logback in CLI, and excludes core's slf4j-simple
dependency. This allows us to define multiple appenders, one for STDOUT
and one for STDERR.
WARN messages and lower are written to STDOUT. ERROR is written to
STDERR.
* [cli] Limit logs to match prev implementation
* Remove slf4j-simple from core project, to avoid conflicts with consumer logger implementations
2018-06-07 12:45:03 +08:00
Ben Mordue
0fb1ffa88b
[JAVA][Client] New object instead of null for empty POST request ( #98 )
...
new Object() for empty request body
2018-06-07 06:37:37 +02:00
Jérémie Bresson
69a3852ef7
Make yaml serialization deterministic ( #233 )
2018-06-06 11:47:13 +02:00
Esteban Marin
d649c1311e
Add syntax highlighting to migration guide ( #237 )
2018-06-06 11:38:07 +02:00
William Cheng
f7eacbb0c5
Fix shippable badge ( #232 )
2018-06-06 08:06:00 +02:00
Esteban Marin
3e928fff2d
update company list ( #227 )
2018-06-06 10:57:54 +08:00
Stephane Carrez
967cc5bd3b
Fix #210 : [Ada] Update the code generator for required and optional parameters ( #211 )
...
- Do not check for required parameter in getTypeDeclaration()
- Update the nullableTypeMapping map to map an Ada type into a corresponding
Nullable_<T> Ada type that allows the value to be null
- Check for optional parameter in postProccessOperations() and postProcessModels()
to replace the Ada type into an Ada type that supports null values
2018-06-05 23:04:39 +08:00
Akihito Nakano
b8f1e5afa1
Delete unused methods in DefaultCodegen ( #209 )
2018-06-05 23:02:14 +08:00
Esteban Marin
fe04a0e347
add note about maven plugins ( #216 )
...
* add note about maven plugins
* add new section
* fix section link
* fix links
2018-06-05 22:24:55 +08:00
Esteban Marin
0e4d3e7815
add raiffeisen to company list ( #223 )
2018-06-05 21:32:24 +08:00
William Cheng
e631c16b96
add a remark about homebrew installatio ( #217 )
2018-06-05 19:16:31 +08:00
Jérémie Bresson
501245d0c2
Fix javadoc in clioption ( #188 )
...
* Fix javadoc warning
* Update 'maven-javadoc-plugin' to 3.0.1
2018-06-04 00:32:54 +08:00
Jérémie Bresson
df55ab3efb
Build improvements ( #202 )
...
* Set "openapi-generator-maven-plugin" version to 3.0.0
* Disable maven-install-plugin in "openapi-generator-gradle-plugin"
* Changes to the maven wrapper for openapi-generator-gradle-plugin
* Remove deploy-file that does not work
2018-06-02 21:06:37 -04:00
Jérémie Bresson
1e5e1d4458
Prepare 3.0.1-SNAPSHOT ( #195 )
...
* Restore version to 3.0.0-SNAPSHOT
* Set version to 3.0.1-SNAPSHOT
* Run ensure-up-to-date
* Remove duplicated version declaration
2018-06-02 10:57:33 +08:00
William Cheng
9c82520637
update docker file to use stable JAR
2018-06-01 15:48:15 +08:00
William Cheng
aea08fe76e
Remove SNAPSHOT version from online generator
2018-06-01 15:03:32 +08:00
William Cheng
746bb06a2a
Release version 3.0.0 ( #190 )
...
* update release version to 3.0.0
* comment out ensure-up-to-date during the release
* add release note
* clean up
* clean up links
* add release note for 3.0.0
* update release note
* update release note
* update version for gradle plugin before release
2018-06-01 10:58:16 +08:00
Jim Schubert
b6b8c0db87
[gradle-plugin] Initial implementation ( #162 )
...
* [gradle-plugin] Initial commit
* Clarify comments on file constraints
When a user sets the models, apis, or supportingFiles environment
variables, any one of these being set disables generation for the other
two. This could be confusing to users, so I've added some clarification
text in the comments for these properties.
In addition, I've cleaned up the extension on
Property.ifNotEmpty, to avoid using Suppress annotations where it's not
necessary. The change creates a local variable of type T?, allowing
Kotlin to track the variable's nullable state at compile time.
* Move gradle plugin under modules
* Move kt files under kotlin source set. Add sample.
* [gradle] map-like options as maps
* Add tests for gradle validate task
* Apply gradle plugin to mvn install phase
* [gradle] Testing remaining gradle tasks
* Add gradle plugin to the integration doc
* Update gradle plugin README with task options
* Gradle readme formatting
2018-05-31 19:23:05 +08:00
Jan Prieser
7dfd940023
Docker: use correct MAVEN_CONFIG ( #182 )
...
the variable wasn't used correctly. i always fell back to use `.` as homedir.
2018-05-30 18:56:08 -04:00
Thibault Duperron
bd50d368eb
[JAVA - jaxrs-reasteasy-eap] Add import to models ( #179 )
...
Call super management for managing imports in postProcessModelProperty
2018-05-30 07:35:52 +02:00
William Cheng
ad5d5f598e
Add TOC and a new section in the migration guide ( #174 )
2018-05-29 19:29:54 +08:00
William Cheng
31b9362433
Re-enable go test in CircleCI ( #173 )
2018-05-29 19:29:31 +08:00
Jim Schubert
f042132857
Cli error message improvements ( #172 )
...
* Errors in Generate/Validate print to stderr/exit 1
Generate and Validate exposed exceptions rather than user-friendly
messages when an error occurred. In generate, this could happen for
numerous reasons, but the most likely is a user typing (or guessing) an
invalid generator name. In Validate, an error was exposed if there were
any validation errors in a spec.
New behavior:
* Generate now exposes a typed exception when a generator cannot be
loaded by name. This allows consistent messaging for load failures.
* Generate now presents guidance on failure (check the spelling and try
again). This is purely a usability improvement.
* Validate now writes validation errors to stderr and exits with code 1.
* Improve err messages: config-help/required opts.
config-help now presents same error for invalid generator names as the
'generate' command.
Options which are required, and those which require a value, now present
a user-friendly hint at the error and exit with code 1 (rather than an
uncaught exception).
* Log missing -g error to stderr rather than LOGGER
2018-05-29 18:36:26 +08:00
Erik Timmers
5a87fe6950
[elm] Fix operations with empty responses ( #171 )
2018-05-29 14:42:10 +08:00
UnklePig
7efda597cc
Fix issue with useBeanValidation: 1. Default value not reflected in help ( #160 )
...
message. 2. When default is true, it can't be overridden to false.
2018-05-29 11:49:54 +08:00
William Cheng
917b6e0105
Add a section about body parameter name ( #170 )
2018-05-29 00:35:37 +08:00
William Cheng
0fadea9986
update php samples ( #169 )
2018-05-28 23:59:44 +08:00
Mads Føhns
3beeb4e777
#126 : Not-required properties now shows as nullable ( #129 )
2018-05-28 21:33:55 +08:00
William Cheng
c30afdf775
add php server batch files ( #165 )
2018-05-28 19:35:04 +08:00
Geoff Brown
9b8602311e
[TypeScript] Make OpenAPI Generator serialize subclasses properly ( #102 )
...
* Make SwaggerCodeGen serialize subclasses properly (PHNX-859) (#1 )
Motivation
----
Previously, when serializing as subclass of a property, generated swagger clients would only serialize properties of the parent class causing some values to not be pass through
Modifications
----
Before serializing attributes of a given type, we check to see if there is a specific type to be serialized so that we don't miss any properties.
* Fix improper whitespace in mustache template (PHNX-859) (#2 )
Motivation
----
OpenAPI Generator upstream requested whitespace fixes (from tabs to 4 spaces)
Modifications
----
Fixed whitespace
2018-05-28 17:22:14 +08:00
Christophe Bornet
71b5de3ed5
Do not set contextPath for spring-boot ( #104 )
2018-05-28 16:29:09 +08:00
Jérémie Bresson
1a4e5a4e5f
Java client: Add constants for libraries ( #163 )
2018-05-28 09:55:09 +02:00
Akihito Nakano
37df59d6f0
[PHP] Adjust the names (script, sample folder, generator) to lang option ( #159 )
...
* Prefix slim-petstore-server.sh with 'php-'
* Prefix slim sample folder
* Prefix ze-ph-petstore-server.sh with 'php-'
* Prefix ze-ph sample folder
* Prefix lumen-petstore-server.sh with 'php-'
* Prefix lumen sample folder
2018-05-28 13:49:47 +08:00
William Cheng
806330ac43
Fix ivy2 cache directory in CI config file ( #161 )
2018-05-27 15:44:26 -04:00
Jérémie Bresson
0ece706a46
Remove CodegenConfig.fromModel(String, Schema) method ( #90 )
2018-05-26 20:18:16 +02:00
William Cheng
685a4ab6b1
add kenisteward to founding team ( #158 )
2018-05-26 22:07:35 +08:00
Jérémie Bresson
64f2bea37f
Fix getReferenced...() methods in ModelUtils ( #157 )
...
* New: methods return the element containing the $ref if the referenced
element is not found
* Fix null check in getApiResponse(OpenAPI, String)
* Fix null check in getParameter(OpenAPI, String)
2018-05-26 15:16:39 +02:00
delenius
7db0201a89
Fix NPEs in Java generator ( #154 )
2018-05-26 17:42:02 +08:00
delenius
4d7ff8cfbd
JavaDoc fixes for Java/RESTEasy client ( #151 )
2018-05-26 06:34:38 +02:00
Akihito Nakano
6f23b5061a
Add PHP scripts to bin/ensure-up-to-date ( #155 )
...
* Add PHP scripts
* Run php-petstore.sh (OAS2,3)
2018-05-26 12:46:47 +09:00
William Cheng
9a2064cbf9
add 1-liner about customized templates, minor fix to dataType ( #152 )
2018-05-26 10:32:52 +08:00
William Cheng
b8eb91e731
update clojure petstore batch file to use petstore.json ( #148 )
2018-05-24 23:14:32 -07:00
Jérémie Bresson
16ff5174e4
Update swagger-parser to 2.0.1 ( #123 )
2018-05-25 06:19:29 +02:00
Jérémie Bresson
caef014e04
Update 'springboot-reactive' in samples folder ( #147 )
2018-05-24 22:11:46 +02:00
Jérémie Bresson
c53f61c74e
Fix javadoc in CodegenProperty ( #143 )
2018-05-24 09:36:14 -07:00
Jérémie Bresson
072ce070b2
resteasy: fix outer enum case ( #139 )
2018-05-24 09:35:26 -07:00
topce
4bc5ffe867
[typescript-angular] add provided in support ( #120 )
...
* add provided in root support
* fix unit test to pass test generation of new options
* set default for providedInRoot to be true
2018-05-24 09:20:16 -07:00
Jim Schubert
22e94fb4d8
Fixes javadoc warnings in GenApiDelegate ( #140 )
2018-05-24 17:25:38 +02:00
Tomasz Prus
7184f1ec68
[python] asyncio supports _preload_content; remove unsed imports ( #107 )
...
* chore: update python samples
* feat: python/asyncio support for _preload_content
* feat: remove unused imports from python clients; fix discriminator
2018-05-24 08:10:07 -07:00
Jérémie Bresson
76b7307a6e
DefaultGenerator: ignore only form param schemas ( #74 )
...
* Rewrite ModelUtils.getUnusedSchemas(OpenAPI)
* Add ModelUtils.getAllUnusedSchemas(OpenAPI)
* Add ModelUtils.getSchemasUsedOnlyInFormParam(OpenAPI)
2018-05-24 17:07:41 +02:00
Christophe Bornet
a3aabd3908
Create a default implementation of delegate if none could be autowired ( #92 )
2018-05-24 07:50:05 -07:00
Jérémie Bresson
00f176ad95
Add 'bin/ensure-up-to-date' script and update Shippable CI ( #136 )
...
* Create 'bin/ensure-up-to-date' script
* Update shippable config
* Do no longer copy 'CI/pom.xml.shippable' to 'pom.xml'
* Fix paths in CI/pom.xml.shippable
* shippable: remove write to file
* shippable: move order
* Run 'bin/ruby-petstore.sh' to update 'samples/'
* Add Kotlin scripts to the list
2018-05-24 10:18:35 -04:00
Jérémie Bresson
9040f49311
Improve 'bin/run-all-petstore' ( #133 )
2018-05-23 13:49:09 +02:00
Jérémie Bresson
3f81378d72
[java resteasy] fix string comparison ( #134 )
...
* Fix StringUtils.isEmpty(..)
* Update all JaxRS samples
2018-05-23 08:38:18 +02:00
Jim Schubert
27426f7b52
Cli generator name option, replaces 'language' options in CLI and Maven Plugin ( #57 )
2018-05-23 05:41:19 +02:00
Jérémie Bresson
b73ab0260e
jaxrs-cxf-cdi: fix outer enum ( #131 )
...
* jaxrs-cxf-cdi: fix model enum
* Fix script 'bin/jaxrs-cxf-cdi-petstore-server.sh'
See https://github.com/OpenAPITools/openapi-generator/pull/124
* Run 'bin/jaxrs-cxf-cdi-petstore-server.sh'
2018-05-22 17:55:19 -04:00
Jim Schubert
8df3e54873
Move bash argv opt to end of ags line in scripts ( #124 )
...
The $@ option in bash doesn't make sense to come before `generate`
because the only option we can pass before generate cli usage is `help`.
System properties can be passed via JAVA_OPTS, so there's not really a
need for any intermediaries in the command line construction.
Having $@ at the end of the arguments list allows maintainers and users
inspecting options to quickly pass new options to a script. For example,
```
./bin/aspnetcore-petstore.sh --additional-properties sourceFolder=asdf
```
For command line arguments that may appear more than once in the
arguments list, this change doesn't provide any rules about overwriting
values that may exist (hard-coded) in the script. That is, in the
example above, if aspnetcore-petstore.sh already includes the
sourceFolder set to a different value, the "winning" value is up to the
options parser and openapi-generator-cli implementation.
2018-05-22 15:18:52 +08:00
Ben Mordue
866dc03f4f
Reduce CI logging ( #119 )
2018-05-21 23:15:51 +08:00
Matthias Baer
f22224574b
Download elm dependencies without prompting user. ( #118 )
2018-05-21 16:23:01 +08:00
Matthias Baer
d9d6530161
[aspnetcore] Make the use of Swashbuckle optional ( #110 )
...
* Respect the sourceFolder option correctly
* Add an option to disable the use of Swashbuckle (useSwashbuckle)
2018-05-20 09:28:24 -04:00
Jérémie Bresson
cd4640dab6
DefaultGenerator: fix NullPointerException ( #109 )
2018-05-20 08:57:25 +02:00
Jérémie Bresson
495971c2c7
[Java] use html entities in javadoc of generated code ( #106 )
2018-05-20 08:55:56 +02:00
Jérémie Bresson
88f3c8a2e0
Update PULL_REQUEST_TEMPLATE.md
...
Fix 'technical committee' link
2018-05-19 07:39:26 +02:00
Jérémie Bresson
82ee8656fd
[java] Enum in array of array ( #66 )
2018-05-18 19:01:11 +02:00
Jérémie Bresson
a1ff502411
Rename datatype to dataType in CodegenProperty ( #69 )
2018-05-18 18:06:37 +02:00
William Cheng
9b05bd60d5
update elm test to compile all elm files ( #95 )
2018-05-18 19:29:18 +08:00
Erik Timmers
a5cf27b60e
Fix Petstore example for Elm ( #96 )
...
* Add support for `additionalProperties` in operations;
* Add reserved module names.
2018-05-18 19:14:55 +08:00
Jérémie Bresson
8c541a247b
Update Docker documentation ( #97 )
...
* Update migration-from-swagger-codegen.md
* Update README.md
Change order
2018-05-18 19:14:15 +08:00
Victor Orlovsky
3b9a2a7c36
CaseFormatLambda has been added, params for Rest-assured client has been refactored ( #91 )
2018-05-18 12:49:34 +02:00
Jérémie Bresson
e55ba567a9
Update integration.md
...
Fix url for "openapi-generator-maven-plugin"
2018-05-18 07:18:07 +02:00
Fabrizio Ferrai
d7e374504f
[Clojure] Add util method to set the api-context globally ( #93 )
2018-05-18 11:22:02 +08:00
Antoine Reilles
d890d733f8
[JaxRS-Java] issue with implFolder on windows, and required fields generation for containers ( #88 )
...
* Fix implFolder issue with jaxrs-cxf-cdi generator
This fix is for the issue:
https://github.com/swagger-api/swagger-codegen/issues/8113
When using jaxrs-cxf-cdi and other JaxRS generators, the implFolder
config is not honored by hte generator on windows.
* jaxrs-cxf-cdi: containers with no default init
Change similar to
https://github.com/swagger-api/swagger-codegen/pull/5363/files for
jax-rs-cdi generator.
When a property that is a contained is not declared as required, it is
initialized to `null`, and not to the empty container.
This makes apio mich more easy to use, since one can differentiate when
an input list in json has been set to the empty array or simply not set.
2018-05-17 19:28:05 +02:00
Christophe Bornet
4889103621
Set parameters allowableValues dynamically ( #65 )
2018-05-18 00:53:01 +08:00
Jérémie Bresson
2821f18b95
Meta: set version for "build-helper-maven-plugin" ( #89 )
...
* Set "build-helper-maven-plugin" in template
* Run bin/meta-codegen.sh
2018-05-17 23:21:32 +08:00
Jérémie Bresson
3ffaaa6505
Fix javadoc issues in "openapi-generator" module ( #84 )
2018-05-17 22:01:39 +08:00
Christophe Bornet
82d9e935e9
Add CORS configuration ( #71 )
2018-05-17 21:55:51 +08:00
Erik Timmers
c522927d58
Fix Elm generator for polymorphism ( #78 )
2018-05-17 19:04:52 +08:00
Jon Schoning
34db79b9ba
[haskell-http-client] update dependency versions + readme ( #81 )
2018-05-17 18:40:58 +08:00
Jérémie Bresson
3a1922bc94
Fix version for "spring-boot-maven-plugin" ( #85 )
...
Add `spring-boot-version` in the POM.
2018-05-17 11:28:14 +02:00
Jérémie Bresson
85090f5068
Revert pull request #45 ( #82 )
...
Reverts:
Consider minLength, maxLength and pattern in referenced schema (#45 )
This reverts commit 6b8079808b .
2018-05-17 09:05:00 +02:00
Thibault Duperron
752b36e660
Sanitize enumeration name to add underscore when it starts with digits ( #77 )
2018-05-16 21:51:55 -04:00
William Cheng
b5a0d173d2
Revise the usage of OpenAPI Generator online (docker image) ( #73 )
...
* revise openapi generator online image usage
* remove -o from command
2018-05-17 00:09:48 +08:00
William Cheng
d93bf4e53d
add links to blog posts ( #72 )
2018-05-16 23:07:42 +08:00
Ben Mordue
0d82971b0c
Use maven batch-mode ( #70 )
2018-05-16 21:39:52 +08:00
William Cheng
e58dc2c77c
Fix COPY in Dockerfile ( #64 )
...
* fix COPY in docker fiile
2018-05-16 08:35:04 -04:00
Kaito Watanabe
c30fb3ff0b
Remove examples comment from swift3 and swift4 client ( #61 )
2018-05-16 17:58:36 +08:00
William Cheng
9ef850f916
Better badge description ( #62 )
2018-05-16 17:53:16 +08:00
Christophe Bornet
e3814f51d8
Improvements to online codegen ( #55 )
...
* Change openapi-online context path
* Fix openAPI generated spec of openapi-online
2018-05-16 16:26:01 +08:00
Jérémie Bresson
6b8079808b
Consider minLength, maxLength and pattern in referenced schema ( #45 )
2018-05-16 09:19:16 +02:00
William Cheng
9d7feaaeba
Fix online generator (docker push) ( #58 )
...
* test online generator fix
* copy a single file in dockerfile
* update docker push to master branch only
* uncomment mvn verify
2018-05-16 14:56:19 +08:00
Jim Schubert
9a8183ab05
[aspnetcore] Fix openapi.json location rename ( #56 )
...
Swashbuckle generation was missing the configuration to rename from
default swagger.json to openapi.json (expected by change in SwaggerUI's
configuration for the endpoint).
This generates to the appropriate location and updates the sample to
load the Swagger UI properly on run.
2018-05-16 11:16:55 +08:00
Matthias Baer
de5260a7ce
Update the aspnetcore generation ( #53 )
...
This change resolves an issue I had with opening the aspnetcore Solution (Visual Studio could not load the project). The *.sln file contained an old GUID for ASP.NET 5.
Also removed the obsolete NuGet.Config file and updated the package references to the newest versions.
2018-05-15 21:41:44 -04:00
William Cheng
7c5dfbfa01
Minor improvements to OpenAPI Generator Online ( #54 )
...
* add copyright note, dockerfile
* update online generator doc
2018-05-16 02:11:40 +08:00
Christophe Bornet
8dd46a3fb9
Move online gen from jersey to spring boot ( #44 )
2018-05-16 00:57:44 +08:00
William Cheng
803821e210
Fix an issue with example generator when array is too large ( #46 )
...
* fix issue with example generator when array is too large
* reformat code
2018-05-15 23:08:37 +08:00
Ricardo Cardona Ramirez
70e9e2fb7e
Included @ricardona to founding members. ( #48 )
2018-05-15 22:44:36 +08:00
Gustavo Paz
cd1fe3ff45
Included @gustavoapaz to founding members. ( #47 )
2018-05-15 22:16:49 +08:00
Jérémie Bresson
673f2bc469
Add CodegenProperty.nameInSnakeCase ( #42 )
2018-05-15 13:17:04 +02:00
William Cheng
f0234b8ab4
Test Go petstore client in Travis CI ( #41 )
...
* test go in travis
* test go in shippable
* upgrade stack version
* fix shippable badge
* show stack version
* install go
* set go path
* install go 1.10
* remove go installation
* remove go test
* install haskell in travis
* reenable caching in appveyor
* comment out perl test
2018-05-15 14:34:53 +08:00
William Cheng
7d9fb9f51e
Add CI test for Elm in travis ( #40 )
...
* test elm in travis
* install elm
2018-05-15 09:58:37 +08:00
William Cheng
67ebe17dd6
Fix isPrimitiveType flag for array of form parameters ( #38 )
...
* fix isprimitivetype for array of form parameters
* setup snapshot deployment
2018-05-14 23:28:03 +08:00
Jérémie Bresson
10ac4024da
Code clean-up: remove field declaration hiding existing fields ( #35 )
2018-05-14 16:07:29 +02:00
William Cheng
cc2941740d
add more founding team members ( #37 )
2018-05-14 16:55:31 +08:00
William Cheng
4f88c1bc41
Push images to DockerHub ( #32 )
...
* test docker push
* test openapi-generator-online push
* fix environment variable
* remove maven central for the time being
* only push openapi-generator-cli
* skip mvn test
* uncomment mvn install
* fix echo
* fix openapi-generator-online docker push
* better password passing
* reenable mvn verify, only push to docker for master
2018-05-14 10:53:27 +08:00
William Cheng
a1ba198e47
Minor enhancement to the README ( #31 )
...
* fix ci status badge in readme
* revise readme
* fix badge to circleci
* remove maven central for the time being
* fix travis badge
* update travis badge image url
* fix typo in docker hub url
2018-05-14 10:48:35 +08:00
The Gitter Badger
f1dae8b39f
Add Gitter badge ( #29 )
2018-05-13 15:41:00 -04:00
Jérémie Bresson
4d7fc046f3
[JaxRS] Add "validation-api" dependency in jetty ( #30 )
...
Fix #28
* Add "javax.validation:validation-api" dependency in jetty
* Update JaxRS and Spring samples
2018-05-13 18:12:01 +02:00
Jérémie Bresson
ab9c4b5a61
Code clean-up: Add own private static final LOGGER in each class ( #26 )
2018-05-13 09:42:33 -04:00
Jérémie Bresson
bf7e4e7df7
Java gson: add @SerializedName value as constant ( #22 )
...
* Java gson: add @SerializedName value as constant
Fix #21
* Run bin/java-petstore-all.sh
2018-05-13 19:58:46 +08:00
Jérémie Bresson
41b0ff351b
Code clean-up: remove DefaultCodegen#getSimpleRef(String) ( #19 )
...
Use ModelUtils#getSimpleRef(String) instead
2018-05-13 15:25:45 +08:00
William Cheng
737e63976f
add unit tests to cover #5 ( #18 )
2018-05-13 15:24:25 +08:00
Jérémie Bresson
05a2f4b240
Fix NullPointerException in getSchemaType(Schema) ( #14 )
...
Fix #11
2018-05-13 15:23:48 +08:00
Jérémie Bresson
9fa9b115e3
Fix NullPointerException in getUnusedSchemas(OpenAPI) ( #10 )
...
fix #9
2018-05-13 15:22:01 +08:00
William Cheng
23ad9f3937
Minor update to readme ( #4 )
2018-05-13 06:27:27 +02:00
Jim Schubert
52322c47c9
[finch] Allow finch server to compile for CI checks ( #7 )
...
Previous error handling implementation had types returning
Either[CommonError, UserType], but implemented with the scala shortcut
??? which throws an exception instead. This causes compilation to fail
with a message that the expected CommonError is of type Any. This is
often fixable with generic upper bounds constraints, but this is
overkill for a placeholder implementation. Returning a temporary 'TODO'
type solves the compile error, and should allow CI to check for valid
compilation on changes.
Included in this is also a fix to support optional query parameter
types. The spec used to generate the finch server has optional query
parameters, but the version of finch in the template doesn't support
options on query parameters. Finch does, however, aggregate everything
(headers, query string, path parameters, etc) under "param" with
"paramOption" for those which are optional types.
2018-05-13 11:07:14 +08:00
William Cheng
d80e295852
Fix JS test using baseName in default value ( #5 )
...
* fix js test using baseName in default value
* re-enable JS test
2018-05-13 10:19:16 +08:00
Jim Schubert
e33f9e52b2
Merge pull request #6 from OpenAPITools/update_file_header
...
Update header for Java files
2018-05-12 14:04:02 -04:00
wing328
18031e3492
update header for java files
2018-05-13 01:57:57 +08:00
William Cheng
1d889da4e3
Various fixes ( #1 )
...
* fix pistache c++ server in windows
* skip perl test
* comment out go tests
* Fix go test, manually fix go client
* fix rails batch file
* fix tab in java file
* install rust
* fix swift2-deprecated in windows batch file
* fix rust installation
* comment out js test
* update swift windows batch files
* update tizen batch script
* comment out ktor test
2018-05-13 01:31:13 +08:00
William Cheng
bc20483345
Merge pull request #2 from ackintosh/readme
...
Cosmetic changes for README
2018-05-12 23:21:37 +08:00
akihito.nakano
efa27cec97
Add link
2018-05-12 22:54:47 +09:00
akihito.nakano
94dfb6b998
Fix links
2018-05-12 22:51:16 +09:00
akihito.nakano
db2319ae7c
Align heading level
2018-05-12 22:41:09 +09:00
akihito.nakano
935790e865
Numbering
2018-05-12 22:36:57 +09:00
akihito.nakano
8b67250e1c
table
2018-05-12 22:12:27 +09:00
akihito.nakano
3b3874b154
centering, sort
2018-05-12 22:02:45 +09:00
akihito.nakano
22757bb4bd
Centering badges
2018-05-12 21:56:37 +09:00
William Cheng
b5942624d6
update documentation ( #428 )
2018-05-12 10:19:27 +08:00
William Cheng
2ed3d8cc86
Update python test ( #426 )
...
* update python test folders
* update python template
* update python samples
* fix python comment too long
* update ruby test case
2018-05-12 09:54:19 +08:00
William Cheng
4b7a583b33
Update Swift default value ( #407 )
...
* update swift4 default
* update swift3 default value
* update swift default value
2018-05-12 00:15:24 +08:00
William Cheng
c905f6b5bb
fix pom ( #427 )
2018-05-12 00:10:52 +08:00
William Cheng
0ad66f7fe5
fix ruby test case, update gemfile ( #425 )
2018-05-11 20:51:35 +08:00
William Cheng
b3f3eabc72
remove php old files, fix php folder in pom ( #423 )
2018-05-11 20:51:24 +08:00
Jérémie Bresson
fcec2d74e0
Merge 'master' branch of 'swagger-codegen' into 'master' ( #422 )
...
Corresponding commit swagger-codegen: cccd0930368dd4c54d04bdfcaa3496685c3ed9b8
Co-authored-by: Andreas Müller <inidona@users.noreply.github.com >
Co-authored-by: Geoff Brown <gbrown@centeredgesoftware.com >
Co-authored-by: Raphael Ochsenbein <akekahn@gmail.com >
2018-05-11 14:35:56 +02:00
William Cheng
70733deab9
remove unused js files ( #421 )
2018-05-11 17:28:24 +08:00
Jérémie Bresson
ad0e05cf5c
Fixes in README.md ( #418 )
2018-05-11 10:35:59 +02:00
William Cheng
7d75c66180
Various updates ( #419 )
...
* various updates
* update pom.xml
* update ci config with new location
* Change "swagger-codegen" to "openapi-generator" in a comment
* fix pom.xml for bash client
* minor fix to github ID
* fix pom for ios
2018-05-11 15:28:32 +08:00
William Cheng
e5be838fa8
Update PHP client default value ( #417 )
...
* update php default value
* update php samples with oas3
2018-05-11 15:28:09 +08:00
William Cheng
0d913e6801
add step to restore Org.OpenAPITools.Test.csproj ( #420 )
2018-05-11 14:34:03 +08:00
William Cheng
5ae2d9b5f0
Add Question & Answer section ( #413 )
...
* add question and anaswer section
* add project URL to the license
* Use relative path for link between pages
* Reword some sentences, remove we/they style
2018-05-11 13:28:17 +08:00
Jérémie Bresson
9247cd01e7
Changes for Docker ( #400 )
2018-05-11 11:41:42 +08:00
William Cheng
a4f76b889e
update R default value, clean up old R files, add window batch for ( #415 )
...
openapi3
2018-05-11 11:25:50 +08:00
Akihito Nakano
7716d7e9b3
Rename the description of projectName option ( #414 )
2018-05-11 11:25:14 +08:00
Jérémie Bresson
90b7c89443
Implement hideGenerationTimestamp for kotlin-server ktor ( #416 )
2018-05-11 11:24:56 +08:00
William Cheng
064418ed12
update finch generator's default value ( #394 )
2018-05-11 09:18:49 +08:00
William Cheng
2d60c082b2
replace body parameter naming extension ( #412 )
2018-05-10 16:00:38 +08:00
Jérémie Bresson
dc4d6e499c
Add Migration from swagger-codegen guide ( #408 )
...
* Add Migration guide
* Update migration-from-swagger-codegen.md
2018-05-10 13:51:19 +08:00
Akihito Nakano
d958480fea
Reaname R default package name ( #411 )
...
* Rename package name
* Update samples
bin/openapi3/r-petstore.sh
2018-05-10 13:50:42 +08:00
Jérémie Bresson
a07ab606dc
Small fixes in samples ( #410 )
2018-05-10 13:45:12 +08:00
William Cheng
9ac9bc0dc3
enhance ts import ( #409 )
2018-05-10 13:08:12 +08:00
William Cheng
b21b964c43
change default value for rust client ( #406 )
2018-05-10 11:20:59 +08:00
William Cheng
868ede53f9
Update Scalatra's default value ( #403 )
...
* update scalatra default value
* minor rupdate to template
2018-05-10 10:56:11 +08:00
William Cheng
27c372ff56
Update akka scala default value ( #401 )
...
* update akka scala default value
* fix akka-scala test option
2018-05-10 10:55:44 +08:00
William Cheng
f615d823f9
update ts node dependencies ( #405 )
2018-05-09 22:53:05 +08:00
William Cheng
8cedb66063
wording change for haskell http client ( #404 )
2018-05-09 22:31:48 +08:00
Jérémie Bresson
fbf2e135ef
Docs: several small fixes ( #399 )
...
* Fixes for CONTRIBUTING.md
* Other docs fixes
2018-05-09 21:49:27 +08:00
William Cheng
286f2caa22
update scala default value ( #402 )
2018-05-09 21:48:32 +08:00
Jérémie Bresson
58f7a6f0c4
Fixes in new.sh ( #398 )
2018-05-09 18:21:13 +08:00
Jérémie Bresson
2ee05e12d2
Fixes in security examples ( #396 )
...
* Regenerate "samples/client/petstore-security-test/java/okhttp-gson/"
* Use correct jar
* Fix sh scripts
* Fix path: modules/swagger-codegen => modules/openapi-generator/
2018-05-09 18:13:30 +08:00
William Cheng
4852434d13
update scalaz default value ( #395 )
2018-05-09 17:26:42 +08:00
Jérémie Bresson
a00261d3da
Change default package name value for kotlin server ( #387 )
...
* Update default package
* Regenerate samples/server/petstore/kotlin-server/ktor
* Update git ignore
* Add CI
2018-05-09 16:38:16 +08:00
William Cheng
5fb1660fe1
Update default value for PowerShell, HTML2 generator ( #388 )
...
* update powershell script
* update powershell bin script (oas3)
* update html2 generator's default value
2018-05-09 16:37:42 +08:00
William Cheng
dcd26ece71
Update Scala gatling's default value ( #390 )
...
* update powershell script
* update powershell bin script (oas3)
* update html2 generator's default value
* update scala gatling default value
2018-05-09 16:34:54 +08:00
Jérémie Bresson
4ae1113c00
Rename C# default package name for html2 ( #389 )
...
* Change C# package name for html2
* Regenerate 'html2'
2018-05-09 16:34:31 +08:00
Jérémie Bresson
150d414b7e
Regenerate java clients ( #385 )
2018-05-09 07:45:53 +02:00
Akihito Nakano
872dd546f4
Update php related samples ( #375 )
...
* Update php client (OAS3)
bin/openapi3/php-petstore.sh
* Update symfony server (OAS2)
bin/php-symfony-petstore.sh
* Lumen: remove 'swagger'
* Update lumen server (OAS2)
* Update php client (security): deleted 'SwaggerClient-php' folder
* Update TEST_DIR
* Update php client tests (OAS3)
bin/openapi3/php-petstore.sh
* Update php client (OAS2)
bin/php-petstore.sh
* Fix
* Fix lumen -> php-lumen
* Update lumen server (security)
* Delete moved files
currently it will generate into under 'lib' folder.
* Fix slim -> php-slim
* Update slim server (security)
bin/security/slim-petstore-server.sh
* Fix
* Update dot files
2018-05-09 10:34:19 +08:00
Jérémie Bresson
d35bf1a388
Change default package name value for kotlin client ( #382 )
...
* Move pom.xml to sample.ci
* Regenerate 'kotlin-threetenbp' example
* Add build to gitignore
* Change default value for Kotlin
* Regenerate kotlin-string client
* Regenerate kotlin-threetenbp client
* Regenerate 'samples/client/petstore/kotlin'
2018-05-09 10:32:37 +08:00
William Cheng
e2d6f7c88f
update erlang client, server default value ( #378 )
2018-05-09 10:31:42 +08:00
Jon Schoning
68780afe9d
[haskell-http-client] update samples (OAS3) ( #381 )
2018-05-09 10:31:28 +08:00
William Cheng
4fd68f0f24
update powershell default value ( #380 )
2018-05-09 10:31:05 +08:00
William Cheng
b24df8882f
update lua default value ( #379 )
2018-05-09 10:30:49 +08:00
William Cheng
ded082202e
update clojure default value ( #377 )
2018-05-09 10:30:35 +08:00
William Cheng
9ecd3586b5
fix string comparison ( #376 )
2018-05-09 10:30:05 +08:00
stkrwork
3608a14b40
Updated founder name ( #383 )
2018-05-09 09:54:18 +08:00
William Cheng
a9fa4cd0db
Update default value for C++ related generator ( #373 )
...
* udpate default value for cpp, remove unused imports
* update cpprest template
* update tizen default value
* update cpp restbed default value
* update qt5cpp samples
* update pistache samples
* regenerate restbed ignore file
2018-05-08 22:10:40 +08:00
William Cheng
13f084e7b0
Fix dataTypeWithEnum for array of form parameters ( #354 )
...
* fix datatypewithenum for array of form parameters
* add test cases to cover dataTypeWithEnum, enumName in Ruby
2018-05-08 20:55:49 +08:00
William Cheng
0d20f75afc
Update default value, fix example value ( #370 )
...
* fix python flask NPE with oas3
* update perl default value, fix example value
* update android sample, fix example value
* restore x-swagger-router-controller for nodejs server generator
* update default value for bash client, fix example value, invalid tag
* update default value for objc
* update objc pestore core data
2018-05-08 19:51:15 +08:00
Arthur Mogliev
fd3b883e80
[DefaultCodegen] Fill CodegenOperation::produces with unique media types ( #343 )
2018-05-08 13:46:23 +02:00
William Cheng
c0a2673b26
update eiffel codegen default ( #371 )
2018-05-08 17:32:50 +08:00
Jérémie Bresson
e1c9a924c0
Generate kotlin 'client-string' sample ( #369 )
...
* Move pom to 'samples.ci'
* Regenerate 'samples/client/petstore/kotlin-string'
2018-05-08 16:45:50 +08:00
Jérémie Bresson
58c45b9b75
Regenerate 'samples/client/petstore-security-test/php/' ( #368 )
...
Using 'bin/security/php-petstore.sh'
2018-05-08 16:45:09 +08:00
Jérémie Bresson
059a3efe46
Regenerate samples ( #367 )
2018-05-08 16:44:51 +08:00
William Cheng
bbd2afdd0a
Update Flash default value ( #366 )
...
* update flash default value, clear samples
* add flash samples
2018-05-08 12:57:38 +08:00
William Cheng
db9a899a09
update getSchemaType variable, remove unused import ( #365 )
2018-05-08 12:57:25 +08:00
William Cheng
27b3302d8f
add test for body parameter example value ( #363 )
2018-05-08 10:16:48 +08:00
William Cheng
0dbb6dcaa6
Update Go generators' default value ( #362 )
...
* udpate go client default value
* update go generators' default value
2018-05-08 10:16:38 +08:00
William Cheng
3758aad225
Update Python flask default value ( #361 )
...
* update python flask default value
* update python flask samples
2018-05-08 10:16:25 +08:00
William Cheng
14c241fbce
Update python default value ( #360 )
...
* update pythong default value
* fix example, update python sample
* update python petstore sample (asyncio, tornado)
2018-05-08 01:23:49 +08:00
William Cheng
d08e31ae76
Add more tests (Swfit3) ( #359 )
...
* revise test cases
* add swift 3 tests
2018-05-08 00:10:19 +08:00
Akihito Nakano
376d9af9c0
Rename default packages for php client ( #315 )
...
* Rename default packages for php client
* Generate php client (OAS3)
* Rename namespace for tests
* Delete unnecessary 'use'
* Rename method/variable
* Update php client (OAS3)
* Generate php client (OAS2)
* Rename namespace for tests
* Delete unused files
* Fix tests
2018-05-07 23:04:06 +08:00
Jérémie Bresson
e2f8976fa7
Remove old metadata files ( #357 )
2018-05-07 13:31:17 +02:00
William Cheng
a9baaa81e3
update eiffel with petstore oas2 ( #268 )
2018-05-07 18:32:03 +08:00
William Cheng
d74b4cdf8d
fix map type and collection format for form parameter (array) ( #356 )
2018-05-07 18:22:30 +08:00
Jérémie Bresson
e49e8ca169
Generate 'cwiki' ( #351 )
...
* Regenerate 'cwiki'
* Change default package value for cwiki
2018-05-07 17:53:08 +08:00
William Cheng
230b0d24bb
Clean up the spec ( #348 )
...
* update openapi spec
* remove wordnik contact
2018-05-07 17:52:31 +08:00
Jérémie Bresson
c42777b09e
Rename default package for html, html2, dynamic-html ( #350 )
2018-05-07 09:55:23 +02:00
Jérémie Bresson
a22afb3d81
Rename default packages for android ( #349 )
2018-05-07 09:54:47 +02:00
Jérémie Bresson
b947970f99
Rename default packages for java ( #341 )
2018-05-07 08:43:57 +02:00
Jérémie Bresson
bdc318d63b
Comment 'haskell-http-client' in shippable CI ( #352 )
2018-05-07 08:00:14 +02:00
William Cheng
78815ba0e0
Revert "Revise how to obtain the example value ( #326 )" ( #353 )
...
This reverts commit d99f46cff9 .
2018-05-07 12:55:11 +08:00
Arthur Mogliev
d30fcbabba
Fixes for php-ze-ph generator ( #340 )
...
* Fixes for ze-ph:
- fixed gathering of required properties for query data model
- fixed setting of internal vendor extensions for query data model detection
- fixed small typo in generated README
* Updated samples for ze-ph fixes
2018-05-07 10:22:08 +08:00
William Cheng
e45b3784f1
Fix NPE with Haskell client generator with OAS3 spec ( #334 )
...
* fix NPE with haskell client oas3, better type check
* better unknown type check
2018-05-06 23:56:59 +08:00
Akihito Nakano
d99f46cff9
Revise how to obtain the example value ( #326 )
...
* Set the example value from 'Parameter'
* Set the example value from 'Schema'
* Tweak access modifier
* Fix doc comments
2018-05-06 23:38:01 +08:00
William Cheng
b1eac05b2b
Fix form datatype (array of string) ( #339 )
...
* fix data type for array of form parameters
* add test case to cover the form parameter issue
2018-05-06 22:17:47 +08:00
Akihito Nakano
a56d2333a2
Update validate command ( #338 )
2018-05-06 22:02:16 +09:00
Jérémie Bresson
4d3110f29d
Rename default packages for 'java-undertow-server' ( #336 )
2018-05-06 12:34:54 +02:00
Jérémie Bresson
d8fd560d64
Rename default packages for 'jaxrs-spec' ( #333 )
2018-05-06 12:34:36 +02:00
Jérémie Bresson
c4afaac285
Rename default packages for 'java-play-framework' ( #335 )
2018-05-06 12:34:02 +02:00
William Cheng
50163b4939
add ts tests ( #337 )
2018-05-06 17:33:48 +08:00
William Cheng
86f9686f29
Add more tests (c#, swift4) ( #330 )
...
* add more tests to csharp client generator
* add swift4 tests
* update wordings
2018-05-06 14:20:29 +08:00
Jérémie Bresson
2103fadab8
Fix package declaration for play-framework ( #332 )
2018-05-06 08:08:34 +02:00
William Cheng
aab99bc530
Update Dart default value, re-enable Objc Tests ( #328 )
...
* update dart client default
* re-enable objc test
* restore dart flutter_petstore, update dart oas3 script
2018-05-06 01:45:52 +08:00
William Cheng
3c666a6d44
Fix array of form parameters ( #324 )
...
* fix array of form parameters
* fix description for array of form parameters
* fix map of enum value
2018-05-06 00:39:38 +08:00
Christophe Bornet
90ac9d030c
Merge pull request #262 from cbornet/reactive
...
[Spring] Add reactive option for Spring Boot (webflux)
2018-05-05 18:01:46 +02:00
cbornet
8405b18563
Add spring cloud sample tests back
2018-05-05 17:26:21 +02:00
cbornet
1619486578
Add reactive option for Spring Boot (webflux)
2018-05-05 17:26:08 +02:00
Jérémie Bresson
a2b618a452
Merge 'master' branch of 'swagger-codegen' into 'openapi-generator' ( #327 )
2018-05-05 16:40:52 +02:00
William Cheng
c791146b62
Update Dart petstore with OAS3, fix mustache format ( #227 )
...
* update dart petstore with oas3, fix mustache format
* update default value to null
2018-05-05 21:02:18 +08:00
Jérémie Bresson
252a1c2599
Regenerate html.md OAS2 ( #251 )
2018-05-05 13:24:30 +02:00
Akihito Nakano
1245a47649
Merge pull request #321 from ackintosh/update-nodejs-server
...
Update nodejs server
2018-05-05 17:06:46 +09:00
William Cheng
5f2bc28779
update default value for elixir ( #319 )
2018-05-05 01:37:48 +08:00
akihito.nakano
1bd393f4ea
Rename 'keywords' for package.json
2018-05-05 01:43:35 +09:00
akihito.nakano
90438b8e71
Tweak indent
2018-05-05 01:38:23 +09:00
akihito.nakano
6c3d7bbc48
Update nodejs samples which skipped overwriting
2018-05-05 01:36:37 +09:00
William Cheng
e2251084f2
Update the default value of Ruby client generator ( #320 )
...
* fix ruby client default value
* fix example value for ruby
2018-05-05 00:10:34 +08:00
William Cheng
0b6a59fa09
update elixir with oas3 petstore ( #318 )
2018-05-04 23:52:52 +08:00
micheleISEP
bee7aebe4b
Update README.md
2018-05-04 16:21:56 +01:00
Jérémie Bresson
e9793783cd
Fixes in GitHub templates files ( #311 )
2018-05-04 13:44:01 +02:00
William Cheng
8edf6e52ad
Update Elixir Petstore with OAS2 ( #316 )
...
* restore elixir petstore original from codegen2x
* update elixir generator to work with oas2
* minor fix to elixir generato
* minor enhancement to templates
* update elixir petstore with oas2
2018-05-04 17:43:14 +08:00
Akihito Nakano
08e0393def
Fix missing examples ( #305 )
...
* Fix missing examples
* support ArraySchema
* Refactor: move the logic to generate samples from DefaultCodegen to ExampleGenerator
* Delete unnecessary argument
OpenAPI is passed in constructor
* Delete unnecessary 'import'
* Update samples ( bin/springboot-petstore-server.sh )
* Update samples ( bin/openapi3/nodejs-petstore-server.sh )
2018-05-04 17:25:49 +08:00
Jérémie Bresson
4dc519b4fe
Rename groupId for java-play-framework ( #310 )
2018-05-04 10:22:42 +02:00
Jérémie Bresson
71d544c9f7
Rename default packages in meta ( #314 )
2018-05-04 10:19:07 +02:00
William Cheng
ea18065447
Add Elm, Rust, Groovy to Travis CI ( #308 )
...
* add elm, rust, groovy to travis ci
* update elm script comment
* comment out elm test in travis
2018-05-04 16:12:18 +08:00
Jeremie Bresson
3d7eaf96fc
Move docs to a separate folder
2018-05-04 06:29:23 +02:00
Jérémie Bresson
0435910da8
Renamings ( #252 )
2018-05-04 04:50:17 +02:00
William Cheng
18a40deb30
Update rust client with Petstore OAS2 ( #148 )
...
* update rust client with petstore oas2
* update rust with oas2 petstore, fix default value
* fix type mapping for file, update api_doc for rust client
* update rust client with oas3
2018-05-04 01:38:40 +08:00
William Cheng
4690325a2c
add test for scala (akka, http client) ( #306 )
2018-05-04 00:36:45 +08:00
William Cheng
de55812d68
Update wordings ( #301 )
...
* update wordings
* update git_push wordings
* update git clone
* update homepage url
* update meta-codegen sample
2018-05-03 14:12:24 +02:00
William Cheng
15d4d2f0d4
remove duplicated entries in C# csproj ( #302 )
2018-05-03 16:31:26 +08:00
Jérémie Bresson
0ba2a9a250
Update java play framework samples OAS2 ( #286 )
...
* Regenerate play framework examples
* Add 'samples.ci' for manual files and update scripts
2018-05-03 08:19:59 +02:00
William Cheng
9cf185912c
Fix Scalatra petstore sample ( #300 )
...
* restore scalatra from codegen
* regenerate scalatra oas2 petstore, fix defaut value
* better code format for scalatra
* more format fix for scalatra
* update scalatra parameter template
2018-05-03 13:26:04 +08:00
William Cheng
751d09b162
Update CI files ( #296 )
...
* update ci files
* add apt-update at start
2018-05-03 09:46:39 +08:00
Emiliano Bonassi
70718332ff
Add 'Emiliano Bonassi' as Founding Memmber ( #298 )
2018-05-03 09:46:14 +08:00
William Cheng
95e04f91db
Add Elm script with Petstore OAS3 ( #293 )
...
* add elm script with petstore oas3
* change default value for elm generator
* update default value for elm templates
* fix typo
2018-05-02 23:04:16 +08:00
Erik Timmers
4ce97b6f4e
Add 'Erik Timmers' as Founding Member ( #295 )
2018-05-02 22:17:57 +08:00
Victor Orlovsky
63b85fde68
Victor Orlovsky has been added to 'Founding Members' ( #294 )
2018-05-02 21:32:11 +08:00
William Cheng
50837b2e83
update elm petstore with oas2 ( #291 )
2018-05-02 20:27:06 +08:00
Jérémie Bresson
45a50840a5
[spring, play-framework] Handle setters for package values ( #288 )
2018-05-02 13:39:29 +02:00
William Cheng
ff3b954f10
update c# 2.0 samples ( #285 )
2018-05-02 14:30:25 +08:00
William Cheng
30b829c611
Update Swift4 client with OAS2 ( #270 )
...
* update swift4 client with oas2
* map binary as file in swift4
2018-05-02 14:30:11 +08:00
Jérémie Bresson
1492df6cef
Override server port for Jetty configuration ( #246 )
2018-05-02 07:11:29 +02:00
William Cheng
4497a1fe47
update default user agent ( #284 )
2018-05-02 01:12:32 +08:00
William Cheng
0c981b7c2f
Update C# default value ( #283 )
...
* update csharp default value
* update csharp 35 samples
* update csharp 40 client
* update c# net standard client
* update C# net core client
* update csharp propertychanged client
2018-05-02 00:48:55 +08:00
William Cheng
8e29dba85b
update file header ( #282 )
2018-05-01 18:50:48 +08:00
William Cheng
4c656bb1d9
Update C# with Petstore OAS3 ( #281 )
...
* update c# petstore with oas3
* update c# propertychanged with petstore oas3
* update c# netstandard with oas3
2018-05-01 14:02:55 +08:00
William Cheng
23fc7a8cee
rearrange how map, array, model are checked in body request ( #277 )
2018-05-01 12:39:56 +08:00
Jon Schoning
d3401396f5
[haskell-http-client] remove duplicates in produces/consumes; fix pathParam paramName issue ( #273 )
2018-05-01 12:27:20 +08:00
William Cheng
0b3ec6b1f8
fix NPE with cpp qt5, add logic to avoid NPE with composed schema ( #267 )
2018-05-01 12:05:57 +08:00
William Cheng
acb63fd5e8
Fix go readme, remove resty install ( #280 )
...
* fix go readme, remove resty install
* fix default to null in go petstore doc
2018-05-01 12:02:55 +08:00
William Cheng
4bc99b9da8
minor fixes to haskell http client generator ( #278 )
2018-05-01 11:27:37 +08:00
William Cheng
9cb2f8472f
remove incorrect max, min in allowableValues ( #269 )
2018-04-30 23:48:59 +08:00
Akihito Nakano
be19724849
Fix default value ( #260 )
...
* Fix missing default value of form param
* Update php sample with OAS2
* Update php sample with OAS3
* Delete quotes as default value may have integer
* Update php samples with OAS2
* use toDefaultValue() in order to apply the decoration rules of generator
* Update php samples with OAS2
* Tweak: add quotes only if example is null
* Update php sample with OAS2
* Update php sample with OAS3
2018-04-30 17:18:58 +08:00
Akihito Nakano
aa5719e008
Fix missing default value ( #257 )
...
* Fix missing default value of form param
* Update php sample with OAS2
* Update php sample with OAS3
2018-04-30 16:24:07 +08:00
William Cheng
42aebe4367
Update Lumen generator petstore with OAS2, OAS3 ( #256 )
...
* update php lumen with oas3 petstore
* update lumen with oas3 pestore
2018-04-30 16:12:25 +08:00
William Cheng
7ad92572e4
Update default value for PHP server generators (slim, silex) ( #272 )
...
* update php slim samples
* update php silex samples
* update php silex default value
2018-04-30 15:18:13 +08:00
William Cheng
799b033c22
update go readme, update pom go dependencies ( #274 )
2018-04-30 13:04:00 +08:00
William Cheng
8730f910b2
Merge pull request #261 from wing328/fix_go
...
Various fix for Go petstore client
2018-04-30 09:49:49 +08:00
antihax
622a75b2ce
Fix data type shadowing
2018-04-29 12:16:17 -07:00
William Cheng
1d7da2ecf4
fix apex npe, better example value ( #266 )
2018-04-29 22:15:04 +08:00
Jérémie Bresson
1587d202b0
Generate apex ( #224 )
2018-04-29 20:38:18 +08:00
William Cheng
c60010c965
Update default value for Perl, Ruby, ROR generators ( #265 )
...
* rename perl genreator default
* update ruby sinatra default
* rename ror default value
2018-04-29 20:37:12 +08:00
William Cheng
861d11d010
use vendor extension in operation to set the body parameter name ( #264 )
...
Use vendor extension in Operation to set the body parameter name
2018-04-29 17:17:01 +08:00
William Cheng
80c8b92cb5
add postProcessParamter for body, form parameter ( #263 )
2018-04-29 15:58:12 +08:00
wing328
d8165b0cfb
update go test files
2018-04-29 02:14:12 +08:00
wing328
1e999f289d
various fix for go petstore
2018-04-29 02:03:21 +08:00
wing328
73cb1cd016
fix parameter naming in go
2018-04-28 23:21:17 +08:00
wing328
1577e5d89f
restore go client from codgen2x
2018-04-28 22:04:47 +08:00
William Cheng
2ce721d0b9
Update PHP ZE-PH server samples with OAS2, OAS3 ( #259 )
...
* update php ze-ph samples with oas2
* update zeph samples with oas3
2018-04-28 21:48:50 +08:00
William Cheng
490255025e
Update PHP Slim server samples with OAS2, OAS3 ( #258 )
...
* update php slim server petstore with oas2
* update php slim petstore with oas3 (no diff)
2018-04-28 21:48:40 +08:00
William Cheng
7621deeb9f
Update PHP Silex server petstore with OAS2, OAS3 ( #254 )
...
* update php silex with oas2 petstore
* update php silex with oas3 petstore
2018-04-28 21:48:22 +08:00
William Cheng
69133d3677
Update PHP Symfony server petstore with OAS2, OAS3 ( #255 )
...
* update php symfony with oas2 petstore
* update php symfony with oas3 petstore
2018-04-28 14:38:37 +08:00
William Cheng
5114cd96b0
Update TypeScript Petstore samples with OAS3 ( #253 )
...
* add scripts for ts oas3 petstore
* remove json files
* update ts jquery with oas3 petstore
* update ts inversify, fix file mapping
* update ts fetch wtih oas3 (no diff), fix script
2018-04-28 12:11:02 +08:00
Akihito Nakano
7b6e17e02d
Fix missing models ( #250 )
...
* ArraySchema should not be included in aliases
* Update php sample (OAS2)
2018-04-28 11:37:45 +08:00
William Cheng
78c865e268
update ts angular2 petstore oas2 ( #249 )
2018-04-27 22:12:30 +08:00
William Cheng
509fdd892b
Update TypeScript jQuery, Aurelia, Inversify with Petstore OAS2 ( #248 )
...
* update ts inversify with petstore oas2
* update typescript-aurelia petstore with oas2
* update ts jquery with oas2
2018-04-27 22:12:13 +08:00
William Cheng
6a98840199
update c# netstandard petstore (oas2) ( #247 )
2018-04-27 18:04:47 +08:00
William Cheng
0373b74a75
update ts angularjs petstore (oas2), fix model prefix ( #245 )
2018-04-27 17:09:34 +08:00
Jérémie Bresson
3f976afca8
Generate vertx OAS2 ( #226 )
2018-04-27 10:19:48 +02:00
William Cheng
bec559a6e8
Update TypeScript Fetch client with Petstore OAS2 ( #244 )
...
* update ts fetch (default) with oas2
* update ts fetech npm with petstore oas2
* update ts fetch interface (petstore oas2)
* update ts fetch es6 (petstore oas2)
2018-04-27 15:37:41 +08:00
William Cheng
4ea2e6dc78
update C# property change client (oas2) ( #242 )
2018-04-27 11:55:37 +08:00
William Cheng
6f4af337d9
Update TS Angular v4, v4.3 with Petstore OAS2 ( #241 )
...
* update ts angular 4 from codegen2x
* update ts angular v4 with petstore oas2
* restore ts agnular 4.3 from codegen2x
* update ts angular 4.3 with petstore oas2
2018-04-27 00:24:40 +08:00
William Cheng
5ef5e540fd
Update C# API client with Petstore OAS2 ( #240 )
...
* update c# petstore with oas2
* add csharp tests
2018-04-27 00:03:30 +08:00
William Cheng
8640c172c9
update ts node with oas2 ( #239 )
2018-04-26 22:39:01 +08:00
William Cheng
049eef9c53
Test erlang client, server petstore ( #235 )
...
* test erlang client, server petstore
* rename tests, replace tab
* install rebar3 in shippable ci
2018-04-26 18:12:00 +08:00
William Cheng
44aaccb108
update erlang server with oas3, no diff ( #238 )
2018-04-26 17:46:12 +08:00
Jérémie Bresson
19b0d37c38
Generate java-msf4j ( #225 )
2018-04-26 10:41:17 +02:00
Jérémie Bresson
633834455d
Rework url handling ( #236 )
2018-04-26 10:40:39 +02:00
Jérémie Bresson
52391ed9e5
Regenerate all jaxrs examples ( #234 )
2018-04-26 13:54:41 +08:00
William Cheng
bcc7b788e0
fix erlang client compilation error ( #228 )
2018-04-26 13:44:05 +08:00
William Cheng
df26bcb40c
Update Erlang server samples with Petstore OAS2 ( #150 )
...
* update erlang server samples with petstore oas2
* fix compilation in erlang server
2018-04-26 13:34:02 +08:00
William Cheng
e1a0355398
Update PHP samples with OAS2 before enabling CI test ( #230 )
...
* update php samples with oas2 before enabling ci test
* deleted unused php files
2018-04-26 13:17:16 +08:00
William Cheng
e2d4f5b5ca
update ruby with oas2 before ci test ( #231 )
2018-04-26 13:15:04 +08:00
William Cheng
fe15f46906
fix toDefaultValueWithParam in JS ( #232 )
2018-04-26 13:14:46 +08:00
William Cheng
f5f7546dcc
Update Dart petstore client (flutter) with OpenAPI v2 spec ( #152 )
...
* restore dart flutter samples from petstore oas2
* update dart-petstore (flutter) with OAS2
2018-04-25 14:53:42 +08:00
Jérémie Bresson
4924b4951c
Generate java-pkmst ( #223 )
2018-04-25 07:01:48 +02:00
Jérémie Bresson
6f28209ccc
Generate java inflector OAS2 ( #222 )
2018-04-25 07:01:32 +02:00
William Cheng
c605090d61
Fix alias for the model's properties ( #219 )
2018-04-25 05:50:55 +02:00
Jérémie Bresson
25ccef818d
Rename default package for spring generator ( #221 )
2018-04-24 18:20:44 +02:00
antihax
5d8362d859
Update go client, fix double body read ( #211 )
2018-04-24 22:39:55 +08:00
Jérémie Bresson
949ef4453a
Generate java spring OAS2 ( #216 )
2018-04-24 16:26:52 +02:00
Jérémie Bresson
e0b0248c38
Rename default package in java clients ( #218 )
2018-04-24 16:26:20 +02:00
William Cheng
2c6380c846
fix inner item (list, map) for play framework ( #217 )
2018-04-24 19:02:10 +08:00
Jérémie Bresson
c8c316e41e
Update java client samples OAS2 ( #140 )
...
* Update java client examples
* Rename artifactId in json config files
* Add imports in api.mustache for play24 and play25
2018-04-24 09:51:50 +02:00
Jérémie Bresson
5340c35ce1
Rename sagger metadata and more ( #208 )
...
* Rename groupId, artifactId, project name, title, ...
* Remove .swagger-codegen/VERSION file
2018-04-24 08:08:53 +02:00
Jérémie Bresson
7fe555a519
Set collectionFormat default only for array ( #210 )
2018-04-24 08:01:49 +02:00
Jérémie Bresson
61c25e7112
Fixes for retrofit ( #213 )
...
* Add org.threeten as dependency
* Mandatory parameter for @retrofit2.http.Field/Part
2018-04-24 13:20:44 +08:00
Jérémie Bresson
d5d8c356b7
Rename default packages for jaxrs generators ( #209 )
2018-04-24 06:26:42 +02:00
Jérémie Bresson
ccd0029667
java rest-assured: fix javadoc in templates ( #207 )
2018-04-23 20:39:30 +02:00
William Cheng
1f64646dc3
Rename Scala generators ( #206 )
2018-04-23 16:15:40 +02:00
Jérémie Bresson
e7410d4c8e
Allow $ in java var name ( #200 )
2018-04-23 15:48:10 +02:00
William Cheng
450cbb8250
update groovy with oas3 petstore, no diff ( #205 )
2018-04-23 18:50:59 +08:00
Jérémie Bresson
6983dcffa2
Update all jaxrs examples ( #144 )
2018-04-23 12:17:14 +02:00
William Cheng
f353f60b89
Update Perl client samples (OAS2, OAS3) with various fixes ( #204 )
...
* update perl client with various fixes
* update perl petstore with oas3, tests passed
2018-04-23 17:49:48 +08:00
William Cheng
b908b734dd
Update Groovy default value, fix import error when doing "gradle test" ( #203 )
...
* update groovy default value, fix import error when doing gradle test
* remove empty lines
2018-04-23 17:31:14 +08:00
William Cheng
16589de975
default collection format to csv according to the spec ( #201 )
2018-04-23 10:14:45 +02:00
Jon Schoning
db02cc2ac9
[haskell-http-client] resolve oas 2.0 regressions ( #198 )
...
* [haskell-http-client] fix codegen issues
* ensure datatypeWithEnum is set on codegenParameter when is enum
* [haskell-http-client] fix isAlias + arrayModelType missing "datatype"
* [haskell-http-client] param.isListContainer is sometimes false for list types
* [haskell-http-client] gen MimeNoContent instances automatically
* [haskell-http-client] fix example-app and integration tests
* [haskell-http-client] update docs
2018-04-23 16:10:50 +08:00
Jérémie Bresson
019b0dca1c
Add echo line at the beginning of each sh script ( #202 )
2018-04-23 09:58:45 +02:00
William Cheng
2833319b81
Update Groovy petstore client via OAS2 ( #133 )
...
* restore groovy client from codegen 2x
* update groovy client with oas2
* reformat groovy templates to remove empty lines
2018-04-23 14:12:37 +08:00
William Cheng
a2e299fe1a
change default value for c# 2.0 api client ( #194 )
...
Change default value for C# 2.0 API client
2018-04-23 14:06:16 +08:00
William Cheng
2f84f315f9
Fix NPE when getting the default value ( #196 )
...
* fix NPE when getting the default value
* rename test case
* better npe handling for repsonse example, default path to localhost
* fix code style
2018-04-23 11:47:16 +08:00
Jérémie Bresson
7ecd5f3566
Rename "swagger" to "openapi" ( #191 )
...
* Rename ".swagger-codegen-ignore" to ".openapi-generator-ignore"
* Rename setGenerateSwaggerMetadata(Boolean) to setGenerateMetadata(Boolean)
* Rename Metadata Folder to .openapi-generator
2018-04-22 21:28:17 +02:00
William Cheng
a2afc6e32e
remove swagger codegen files ( #195 )
2018-04-23 01:45:54 +08:00
William Cheng
a7da9039a4
Update Scala petstore with OAS2, OAS3 ( #162 )
...
* update pestore with oas2
* update scala petstore oas3 (no diff)
2018-04-22 22:00:49 +08:00
William Cheng
c32ef12c8e
Update documentation ( #184 )
...
* update documentation
* fix broken links
* minor fix
* add more section
* add line break to license
* add list of founding members
* fix typo
2018-04-22 21:34:55 +08:00
Jérémie Bresson
b109bf7ddc
Update "jaxrs-cxf-client" sample OAS2, OAS3 ( #172 )
2018-04-22 10:41:16 +02:00
William Cheng
6959ef9939
Update Clojure Petstore with OpenAPI spec v3 ( #181 )
...
* update clojure test
* update with clojure oas3
2018-04-22 16:32:51 +08:00
Jérémie Bresson
07dfbad29d
Merge branch 'swagger-codegen_renamed' into 'master' ( #183 )
...
* Added vendorExtensions.x-isPrimitive. (#7991 )
* Added vendorExtensions.x-isPrimitive.
Switch template for constructFromObject.
* Reflect review indication.
* [typescript-angular] AOT-compatible API client (via ng-packagr and ngc) (#7984 )
* typescript-angular: uses ng-packagr for the build
see https://github.com/swagger-api/swagger-codegen/issues/6722
see https://github.com/swagger-api/swagger-codegen/pull/6735/
* this should make everybody happy: Angular 2/4/5 AOT support
- uses ngc when targeting Angular 2 (as seen in https://github.com/swagger-api/swagger-codegen/pull/6735 )
- uses ng-packagr 1 when targeting Angular 4
- uses ng-packagr 2 when targeting Angular 5
* removes bogus import
* cleans / updates Petstore samples, adds a new sample for Angular 5
* typo in README
* fixes broken travis build. adds pom.xml files again
This reverts commit 471d248a2e9b5d8eed10c71644c222c053e007b0.
* makes usage of `dist` more clear
and i feel generally better when `npm run build` is called explicitly.
- for ng-packagr 2 is doesn't matter, since the final package.json does not have any scripts
- for old ng-packagr 1 it matters, scripts are copied to the final package.json which breaks installation via `npm install {{npmName}} --save` (it runs `npm run build` again)
* typescript-angular: small improvements as suggested by @macjohnny
* angular-typescript: updated petstore samples, 3rd try
* Issue 5542, always generate pom and readme (#7977 )
* Issue 5542, generate pom.xml with separate parameter. InterfaceOnly=true for not generating pom.xml not works in every situation.
* Issue 5542, generate pom.xml with separate parameter. InterfaceOnly=true for not generating pom.xml not works in every situation.
* Issue #5542 Always generate pom.xml and README.md
* [TypeScript][Angular] fix date path parameters (#7476 , #7302 ) (#7479 )
* #7476 , #7302 : [TypeScript][Angular] fix date path parameters, fix path parameters with :.+ in it
* #7476 , #7302 : [TypeScript][Angular] fix date path parameters, fix path parameters with :.+ in it
* #7476 , #7302 : [TypeScript][Angular] fix date path parameters, fix path parameters with :.+ in it
* #7476 : generate samples
* code cleanup
* #7476 : improve variable description
* #7302 : revert character skipping, since it will now have the same parameter name in the method signature and in the api path
* #7302 : generate samples
* typescript-angular: added Interfaces to api exports if withInterfaces is selected (#7975 )
* added Interfaces to api exports if withInterfaces is selected
* removed import of interface classes
* added gererated petstore example api.ts
* Fix Issue 8014
* Adapted to work with Angular2 Http and Angular 4.3+ HttpClient
* removed unnecessary (others) for ng HttpClient from Interface
* Golang Client Refactor (body and model in errors, typed optional parameters) (#7987 )
* Return abstracted errors with model data if available.
* update tests with error models.
* Return error models on the abstract type.
* dont leak FH
* duplicate of PR #7752 for issue #7511
* Change optional parameters to structs.
* update documentation
* fix circleCI failure
* [typescript][angular] query parameter with null value should not be set (#8033 )
* #7893 : [typescript][angular] fix optional query parameter null value
* #7893 : [typescript][angular] generate samples
* #7893 : [typescript][angular] generate samples
* Version rest-assured has been updated to 3.1.0 (#8052 )
* [Dart] Fixes TypeError in Dart 2 mode (#7959 )
* Properly convert lists to dart types
* Updated sample petstore client
* Fixed maps in Dart strong mode
Fixed list parsing for null-elements
* change parseDate in es6/APIClient (#7973 )
* [PHP] Improve duplicated validation logic (#7954 )
* Improve duplicated validation logic
* Update the samples
2018-04-22 16:32:30 +08:00
William Cheng
35f0cc221d
update erlang client with oas3 ( #182 )
2018-04-22 10:25:30 +08:00
Jérémie Bresson
edbe4902a4
Consider '$ref' for consumes and produces in CodegenOperation ( #180 )
2018-04-21 18:40:52 +02:00
William Cheng
e1fe9a3b60
update clojure petstore with oas3 ( #118 )
2018-04-21 23:35:21 +08:00
Jérémie Bresson
fe00a63ed0
Remove deprecated classes ( #177 )
...
* Remove:
- org.openapitools.codegen.Codegen
- org.openapitools.codegen.MetaGenerator
* Renaming:
- DynamicSwaggerConfig > DynamicConfig
- SwaggerResource > CodegenResource
2018-04-21 17:26:54 +02:00
William Cheng
f79f23865b
update clojure petstore with OAS2 ( #117 )
2018-04-21 23:06:07 +08:00
Akihito Nakano
5e05638360
Fix content type ( #179 )
...
* Update php client with OAS3
* Fix content type
the endpoint consumes 'application/x-www-form-urlencoded'
* Regenerate php client from OAS3
* Update the test case according to the fix on spec
2018-04-21 22:26:35 +08:00
Jérémie Bresson
72ffc95d6e
Consider '$ref' for 'getProducesInfo' and 'getConsumesInfo' ( #176 )
2018-04-21 15:45:43 +02:00
Jérémie Bresson
2e50780e1d
Remove "swagger-" prefix from artifactId ( #170 )
...
* Remove "swagger-" prefix in the samples artifactId
* Rename some artifactIds to make them unique
2018-04-21 12:31:21 +02:00
Akihito Nakano
1f0bed2a0c
Update php client with OAS2 ( #149 )
...
* Update php client with petstore OpenAPI v2 spec
bin/php-petstore.sh
* Change order of arguments according to the changes that auto-generated codes
* Fix 'FakeHttpClient not found' error
It has occured when run the test case separately like below.
"vendor/bin/phpunit tests/RequestTest.php"
* Update assertion according to a change on spec
* Update assertion
2018-04-21 18:13:45 +08:00
William Cheng
856ed05b00
update pom to include core team ( #174 )
2018-04-21 17:23:27 +08:00
Jérémie Bresson
e85733a5ec
Fix NullPointer exception in 'preprocessOpenAPI' ( #171 )
2018-04-21 15:23:07 +08:00
William Cheng
0736939c2a
Remove x-codegen-hasMore extensions ( #169 )
...
* remove x-codegen-hasMoreRequired from ruby template
* remove x-codegen-hasMore from html2 templates
* remove commented code
2018-04-21 12:49:27 +08:00
Tomasz Prus
d74d2ba031
fix: python clients ( #136 )
...
* fix: python client
* fix: regenerate petstore samples for python-asyncio/tornado
* fix: python-asyncio tests
* fix: python-tornado tests
* chore: update python samples
* fix: enable tests for python-tornado
* fix: discriminator property
* fix: file type
* python: regenerate samples
* fix: define file as generic type
2018-04-21 11:54:40 +08:00
William Cheng
fdeca629bb
Update JS petstore with OAS2, fix example values ( #168 )
...
* restore js petstore from codegen 2x
* update js petstore with oas2, fix example values
* remove comment code in js generator
2018-04-21 11:49:02 +08:00
William Cheng
93bf3d91ea
Update C++ Pistache samples with oas2, oas3 ( #166 )
...
* restore pistache from codegen 2.x
* update pistache samples with oas2
* update pistache with oas3 petstore (no diff)
* restore datatype for array of model
* update pisache server scripts
* Revert "restore datatype for array of model"
This reverts commit 3b949a3873f3fca78311065173eda26e786dedec.
* fix array of models in method signature
2018-04-21 00:40:45 +08:00
William Cheng
b67364e713
fix scalaz-petstore.sh oas3 script ( #167 )
2018-04-20 23:52:46 +08:00
Jérémie Bresson
d21e4227a6
Update finch Petstore OAS2 ( #126 )
...
* Update finch sample
* Udpate 'finch' samples
* update finch with oas3 petstore (no diff)
2018-04-20 21:52:22 +08:00
William Cheng
8a4f905892
Update C++ Restbed server samples with OAS2, OAS3 ( #165 )
...
* restore restbed samples from codegen2x
* update restbed samples with oas2
* update restbed sample with oas3 (no diff)
2018-04-20 19:07:42 +08:00
William Cheng
fa346ce004
Update Javascript closure angular Petstore samples with OAS2, OAS3 ( #164 )
...
* update js closure angular with oas2
* update js closure angular with oas3 (no diff)
2018-04-20 19:01:05 +08:00
William Cheng
3e0f959215
Update Scalaz petstore with OAS2, OAS3 ( #163 )
...
* update scalaz petstore with oas2
* update scalaz oas3 petstore (no diff)
2018-04-20 19:00:52 +08:00
William Cheng
e4b1613d1e
Update akka-scala petstore with OAS3 ( #161 )
...
* update akka-scala with oas3 petstore
* update akka-scala petstore oas3, fix import model
2018-04-20 16:58:27 +08:00
Jérémie Bresson
f3736d66b7
Fix "meta" command ( #157 )
...
* Fix "meta" generator
* Add script in bin/ to test the use case
* Add result in samples/
* Update read-me
* Implement 'escapeQuotationMark'
2018-04-20 15:25:51 +08:00
William Cheng
03490e9230
fix java binary mapping ( #158 )
2018-04-20 08:20:13 +02:00
William Cheng
28a1255c0e
Update Go server petstore sample with OAS3 ( #154 )
...
* restore go server from codegen 2x
* update go server petstore with oas3
2018-04-20 12:05:27 +08:00
Jérémie Bresson
e24238a355
Improve getter name handling for boolean properties ( #141 )
...
* Handle java boolean getter at codegen level instead of template.
* {{#isBoolean}}is{{/isBoolean}}{{getter}} is no longer necessary in templates.
* Use 'toBooleanGetter' instead of replace in PhpSymfonyServerCodegen
2018-04-19 19:11:27 +02:00
William Cheng
686ff6a502
Go server petstore update (OAS2, OAS3) ( #146 )
...
* restore go server petstore from codegen 2x
* update go server petstore (oas2) - no diff
* update go server samples (oas3)
* add go petstore server script
2018-04-19 21:57:22 +08:00
William Cheng
86f67c6665
Update Erlang client petstore (OAS2) ( #147 )
...
* update erlang client, add method to customize array model parameter name
* remvoe debug log
2018-04-19 21:22:24 +08:00
William Cheng
c20352caab
Update Android Petstore (httpclient, volley) with OAS2, OAS3 ( #145 )
...
* restore android samples from codegen 2x
* update android volley with oas2
* update android volley oas3
* update android http client petstore (oas2)
* update android httpclient petstore (oas3)
2018-04-19 16:13:35 +08:00
William Cheng
80d10e2cba
Update C# dotnet2 client with OAS2, OAS3 petstore ( #143 )
...
* update csharp2 from codegen 2x
* update csharp dotnet 2 client (oas2)
* update csharp dotnet2 with pestore oas3
2018-04-19 15:05:47 +08:00
William Cheng
6e2ca294b5
update discriminator to discriminatorName ( #142 )
2018-04-19 15:02:22 +08:00
Jeremie Bresson
74075c087e
Primitive datatype in Schema components
...
Fix for https://github.com/swagger-api/swagger-codegen/issues/7754
2018-04-19 07:15:10 +02:00
William Cheng
9fdcb3681b
Update ObjC petstore and test cases ( #139 )
...
* restore objc samples from codegen 2x
* update objc petstore test
* update objc with oas3 petstore
2018-04-19 12:08:00 +08:00
William Cheng
231547f6c7
fix isFile flag in response ( #135 )
2018-04-19 09:18:30 +08:00
William Cheng
d8abd4a14b
support map in body parameter ( #134 )
2018-04-19 09:18:13 +08:00
William Cheng
f9bc1aec9d
update scalatra petstore with oas3 ( #132 )
2018-04-19 09:17:44 +08:00
William Cheng
74ddbf7a16
update scalatra with oas2 spec ( #131 )
2018-04-19 09:16:52 +08:00
William Cheng
0feef2b57e
Update akka-scala petstore with OAS2, fix description in responder header ( #129 )
...
* update akka-scala sample by codegen 2x
* fix description in response headers, update akka scala generator
2018-04-19 09:16:28 +08:00
William Cheng
7c734445b2
fix file parameter in header file (cpprest) ( #130 )
2018-04-18 22:29:53 +08:00
William Cheng
52af29f46d
Update CPPREST client with OAS2 ( #128 )
...
* restore cpprest from codegen 2x
* fix cpprest by modifying the template
* better naming for array of models
* updtae cpprest samples with oas2
2018-04-18 18:13:35 +08:00
William Cheng
05f5c5798b
Update html, dynamic-html petstore, fix example value for form parameters ( #122 )
...
* update dynamic-html samples with oas2
* update dynamic-html oas3 (no change)
* update html petstore (oas2)
* update html petstore with oas3
* fix example value for form parameters
* fix javadoc string
2018-04-18 17:42:38 +08:00
Jérémie Bresson
391c75b5b3
Format mustache pom template ( #125 )
2018-04-18 09:19:40 +02:00
Jérémie Bresson
ca89af8080
Switch to Java 8 ( #124 )
...
* Set java version 1.8
* Remove "joda-time" usage
* Remove 'com.google.common.base.Function' usage
* Remove "LinkedListMultimap" usage
* Add guava to the dependencies
2018-04-18 09:18:46 +02:00
William Cheng
186594115f
Update swagger-core to 2.0.1 ( #127 )
...
Update swagger core to latest stable version
2018-04-18 08:27:08 +02:00
Jérémie Bresson
48ae13df81
Array fixes ( #102 )
...
* Fix for arrays in requestBody
* Map description from RequestBody in CodegenParameter
* Fix missing import of model class with nested arrays in response
* Fix imports, consistent 'baseType'
* Add tests for enum
2018-04-18 05:20:58 +02:00
Jérémie Bresson
f5f6a7b1fa
Set swagger-parser-version to 2.0.0 ( #119 )
2018-04-18 05:18:30 +02:00
William Cheng
08038ddc30
update haskell servant samples with oas3, oas2 ( #116 )
2018-04-18 01:48:49 +08:00
William Cheng
a30e25e50d
Update ObjC petstore with oas2, fix default value for parameter ( #115 )
...
* update objc petstore with oas2, fix default value for parameter
* update objc petstore with oas3 spec
* update objc core data oas2
* update objc petstore with oas3
2018-04-18 01:47:32 +08:00
William Cheng
ddf10b98dc
Update NodeJS server petstore samples with OAS2, OAS3 ( #113 )
...
* update nodejs server oas2
* update nodejs server petstore with oas3
* update nodejs google cloud with oas2 petstore
* update nodejs server google function with oas3
2018-04-17 22:58:13 +08:00
William Cheng
dc0cbd23b6
update tizen samples with oas3 petstore ( #114 )
2018-04-17 22:53:09 +08:00
William Cheng
4845eaa81d
Update bash Petstore OAS2 ( #112 )
...
* update bash petstore oas2, fix default parameter, map file to binary
* update bash petstore with oas3 script
2018-04-17 22:39:26 +08:00
William Cheng
0fc84687ff
update rails petstore (oas3) ( #111 )
2018-04-17 21:03:00 +08:00
Jérémie Bresson
93301eaacf
Fix NullPointer with empty Composed Schema ( #107 )
2018-04-17 10:50:10 +02:00
Jeremie Bresson
cae0d83742
Merge commit 'swagger-codegen_renamed' into 'master'
2018-04-17 09:21:42 +02:00
Jeremie Bresson
53597764c3
Add OpenAPI spec 3.0 support (beta)
...
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com >
Co-authored-by: Jeremie Bresson <dev@jmini.fr >
Co-authored-by: Jim Schubert <james.schubert@gmail.com >
Co-authored-by: Martin Delille <martin@phonations.com >
Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com >
Co-authored-by: William Cheng <wing328hk@gmail.com >
2018-04-17 09:19:10 +02:00
Jeremie Bresson
625e13656c
Merge and rename remote-tracking branch 'swagger/master' into 'swagger-codegen_renamed'
2018-04-14 17:06:10 +02:00
Jeremie Bresson
a32e2570ec
Merge commit 'oas3_support2' into 'swagger-codegen_renamed'
...
=> include last 'swagger-codegen_master -> oas3_support2' merge into 'swagger-codegen_renamed' for future merge
2018-04-14 16:42:41 +02:00
Jeremie Bresson
db413f4d26
Rename projects from swagger-codegen master branch
2018-04-14 16:36:30 +02:00
Jérémie Bresson
006f084b53
Allow to set values with setApiPackage(..) and setModelPackage(..) ( #8013 )
...
* Add getInvokerPackage() getter
* Add test cases
* Handle values set with setModelPackage(..) and setApiPackage(..)
2018-04-13 21:11:26 +08:00
Jérémie Bresson
2034f61e53
Add HideGenerationTimestamp getter and setter in the CodegenConfig interface ( #8009 )
2018-04-12 15:38:10 +08:00
Jérémie Bresson
d0e2d7684d
Getter and Setter for hideGenerationTimestamp ( #7998 )
...
* Create unit test to control regressions
* Change HIDE_GENERATION_TIMESTAMP handling
* Add new test case: set values with the setters
* Add 'isHideGenerationTimestamp()' getter
2018-04-11 23:44:12 +08:00
HugoMario
338b9c04b8
Merge pull request #8003 from swagger-api/issue-7999
...
show number as strings
2018-04-10 19:48:40 -05:00
Hugo Mercado
b5ffeff925
added test to verify behavior.
2018-04-10 19:36:23 -05:00
Hugo Mercado
57a8f9f599
show number as strings
2018-04-10 10:21:52 -05:00
wing328
cf735f95d8
Merge branch 'master' into oas3_support2
2018-04-10 00:02:38 +08:00
Ignacio Molina Cuquerella
c91ce17aee
Feature/javaPlayWithAsynchronousControllers ( #7705 )
...
* Add property 'supportAsync' to allow the use of CompletionStage of java8
* Add support for completionStage in play-framework templates
* Add script to generate samples for play-framework async controllers
* Add generated samples for java play framework with asynchronous controllers
* Add missing templates and generate samples
* Remove useless comments from generated samples in play framework async
* Fix ControllerImp template for java play framework
* Add script for java play framework async to general script
* Regenerate java play framework server samples
* Fix missing whitespace
* Fix unnecessary blank lines at imports
* Fix tabulation issue
* Fix tabulation issue in controllers
* Remove blanks from api Imp
* Remove more empty lines
* Add blank between methods
* Remove blanks before call to service method
* Fix some tabulations in java play async templates
* Regenerate samples for java play async
2018-04-09 22:41:22 +08:00
Bjarni Þór Jónsson
009dcf0090
Mark not required swagger properties as optional typescript properties ( #7806 )
...
* Mark `not required` swagger properties as optional typescript properties
Properties that aren't required in the swagger contract should be marked as optional typescript properties, i.e. with `?` after their name when they are defined.
* Adding Petstore samples files generated with the optional property change
2018-04-09 22:12:17 +08:00
Andrew Diamond
12abfb9686
[aspnetcore] Update Dockerfile ( #7873 )
...
* Update Dockerfile
* Readd telemetry optout
* Update Petstore samples
2018-04-09 22:09:51 +08:00
William Cheng
5fb26842ce
Merge pull request #37 from wing328/fix_js_doc
...
Update JS doc to remove x-codegen reference
2018-04-09 14:30:50 +08:00
wing328
eab65306c5
update js doc to remove x-codegen reference
2018-04-09 14:27:08 +08:00
William Cheng
b0e2eeeb55
Merge pull request #36 from wing328/fix-unknown-param-name
...
Fix unknown parameter name for body parameter
2018-04-09 13:17:06 +08:00
wing328
f21d01d1c4
fix unknown parameter base name for body parameter
2018-04-09 12:58:19 +08:00
William Cheng
9c32979d95
Merge pull request #35 from wing328/ts_fix_any
...
Fix TS incorrect object declaration
2018-04-09 12:44:19 +08:00
wing328
b5f0b24bae
fix object declaration in model
2018-04-09 12:41:36 +08:00
William Cheng
7ca8edb590
Merge pull request #34 from wing328/python_flask_fix
...
Fix Python Flask parameter naming to make it consistent with Python client generator
2018-04-09 11:58:28 +08:00
wing328
9999eac528
fix python flask parameter naming
2018-04-09 11:56:19 +08:00
wing328
4109f51a22
add ruby oas3 script
2018-04-09 11:21:33 +08:00
William Cheng
3e9931c550
Merge pull request #33 from wing328/fix_ruby_output
...
Fix requiredParams, add optionalParams
2018-04-09 11:10:09 +08:00
wing328
c1e7da5ec1
update ruby readme template
2018-04-09 11:01:01 +08:00
wing328
a08164592a
fix ruby parameters in documentation, fix reuqiredParams, optionalParams
2018-04-09 10:48:45 +08:00
William Cheng
dce41a0029
Merge pull request #32 from wing328/fix_ruby_output
...
Various fix for ruby client generator
2018-04-09 02:08:07 +08:00
wing328
26f08aa8ad
fix number's max, min value
2018-04-09 01:45:28 +08:00
wing328
3b6f280d0b
fix max, min for number
2018-04-09 01:41:58 +08:00
wing328
adbde2fb61
replace fromOperation with postProcessOperations
2018-04-09 01:27:28 +08:00
wing328
9d1ae0dd29
fix bigdecimal in default codegen
2018-04-09 01:14:51 +08:00
wing328
4c00d4564c
Merge branch 'oas3_support2' of https://github.com/wing328/openapi-generator into oas3_support2
2018-04-09 00:11:39 +08:00
wing328
a339422bd5
move get type declaration method to c++ restbed
2018-04-09 00:08:50 +08:00
William Cheng
b34f328e12
Merge pull request #25 from ackintosh/fix-collection-format-in-header-parameter
...
Fix collection format in header parameter
2018-04-09 00:05:01 +08:00
wing328
070b5c00b8
fix object type declaration in cpprest
2018-04-09 00:01:27 +08:00
William Cheng
6d88edb336
Merge pull request #31 from wing328/cpp_fix
...
fix string type detection in c++ generator
2018-04-08 23:30:04 +08:00
wing328
b6eb3451c8
add windows batch script for pistache server
2018-04-08 23:13:05 +08:00
wing328
f192613f11
fix string type in c++ generator
2018-04-08 23:03:18 +08:00
William Cheng
353dd3ee66
Merge pull request #30 from wing328/fix_restbed
...
Fix String check in RestBed generator
2018-04-08 22:19:31 +08:00
wing328
6fef0a7ffe
fix string issue with restbed generator
2018-04-08 22:07:46 +08:00
wing328
ffa0e115d9
fix default value and type declaration
2018-04-08 21:04:50 +08:00
William Cheng
665f0bd811
Merge pull request #28 from wing328/fix_numeric_enum
...
Fix numeric enum throwing NPE
2018-04-08 18:05:48 +08:00
wing328
01e1fb2415
fix numeric enum throwing npe
2018-04-08 17:40:12 +08:00
William Cheng
113e8ad9fd
Merge pull request #24 from ackintosh/fix-enum_query_double
...
Fix 'enum_query_double' definition
2018-04-08 16:57:10 +08:00
William Cheng
821fba394d
Merge pull request #22 from ackintosh/fix-yaml
...
Fix request content-type for '/fake/jsonFormData'
2018-04-08 16:56:22 +08:00
William Cheng
1160dbdb26
Merge pull request #27 from wing328/inline_support
...
Mark form parameter's schemas as unused in OAS 3.0 spec
2018-04-08 16:55:49 +08:00
William Cheng
e447e7dfb8
Merge pull request #20 from wing328/qt-update-client
...
[qt] update client
2018-04-08 16:55:33 +08:00
wing328
2c17a3d376
add method to skip form parameter's model
2018-04-08 12:22:43 +08:00
akihito.nakano
63449a49c4
Tweak test codes according to the parameter order changes
...
same changes in another PR:
36ed29852e
2018-04-08 12:33:47 +09:00
akihito.nakano
6e0e6fb7a1
Update samples
...
bin/openapi3/php-petstore.sh
2018-04-08 12:32:14 +09:00
akihito.nakano
016087c462
Explode the header value
2018-04-08 12:31:39 +09:00
akihito.nakano
0e744adb80
Apply collection format to SIMPLE enum style
...
in order to separate 'header' parameter values
2018-04-08 12:29:53 +09:00
akihito.nakano
827880a624
Update samples before starting fixes
2018-04-08 12:18:17 +09:00
akihito.nakano
36ed29852e
Tweak tests according to the parameter order changes
2018-04-08 02:21:26 +09:00
akihito.nakano
c4248e2fba
Update samples
2018-04-08 02:15:03 +09:00
akihito.nakano
17b0827935
Move 'enum_query_double' to parameters section
2018-04-08 01:39:41 +09:00
akihito.nakano
6af31c97c2
Fix 'in' value for 'enum_query_double'
2018-04-08 01:32:00 +09:00
akihito.nakano
df4297975c
Update samples before starting fixes
2018-04-08 01:32:00 +09:00
wing328
585865e47f
Merge branch 'master' into oas3_support2
2018-04-07 22:01:31 +08:00
Benjamin Berman
2e69e6c03e
build.gradle should not have commas here ( #7985 )
...
The commas are invalid syntax and create the error:
```
A problem occurred evaluating project ':client'.
> Could not get unknown property 'testCompile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
```
2018-04-07 21:41:43 +08:00
akihito.nakano
e33bd42f39
Tweak the test code
2018-04-07 20:33:39 +09:00
akihito.nakano
c7bf3360b7
Update samples
2018-04-07 20:18:57 +09:00
akihito.nakano
4b812935b8
'/fake/jsonFormData' consumes 'application/json'
2018-04-07 20:14:21 +09:00
akihito.nakano
e356bd4eba
Update samples before starting fixes
2018-04-07 20:13:25 +09:00
wing328
9e8bdba455
undo spec change
2018-04-07 17:25:33 +08:00
wing328
7ce35d3ab7
use $ref instead of inline def for form parameters
2018-04-07 16:23:39 +08:00
wing328
d18fe7375d
Merge branch 'master' into oas3_support2
2018-04-07 16:03:05 +08:00
Fabian Braun
ce930e7a63
[Jaxrs-cxf] Add bean-level cascaded beanvalidation for pojos (@Valid) fix #4738 ( #7807 )
...
* add valid for pojos #4738
* add Valid to imports for pojos #4738
* Do not generate Valid-annotation for Date-types and UUID
* * add Valid-annotation to Containers. #4738
Collection-valued, array-valued and generally Iterable fields and properties may also be decorated with the @Valid annotation. This causes the contents of the iterator to be validated.
Quoted from: http://beanvalidation.org/1.1/spec/
* add equivalent windows-bat-script for jaxrs-cxf-petstore-server.sh
* differences on jaxrs-cxf-generated-classes introduced by other changes (not related to this PR)
2018-04-07 15:16:22 +08:00
Martin Delille
4e4a626ecf
[qt] update client
2018-04-06 16:46:12 +02:00
William Cheng
d2bd41dc81
remove TypescriptInversifyAdditionalPropertiesIntegrationTest.java to ( #7983 )
...
skip integration test errors
2018-04-06 22:15:57 +08:00
ChrisNguyenGeek
85048f6a05
Removed a duplicated entry in the config file ( #7981 )
2018-04-06 16:33:41 +08:00
Yukio Ejiri
a3322fbf7e
[kotlin] Add OkHttpClient.Builder to ApiClient. ( #7907 )
2018-04-06 15:27:39 +08:00
benbenw
bdd2c2a4ee
Misc typescript Angular code generation improvements ( #7898 )
...
use const instead of let when possible
add missing semi-colon
replace " with '
2018-04-06 15:12:23 +08:00
Daiki Matsudate
40d5d09905
[Swift4] accept empty content with default client ( #7921 )
...
* [swift4] update mustache to accept empty body
* [swift4] update client
* [swift4] update client tests
2018-04-06 14:59:29 +08:00
Akihito Nakano
35d681b254
Fix the missing tag on FakeApi ( #7952 )
2018-04-06 14:27:08 +08:00
Akihito Nakano
4a5d16b236
[PHP] Fix string length validation ( #7953 )
...
* Add a test case which reproduces the issue
https://github.com/swagger-api/swagger-codegen/issues/7846
* Change `strlen` -> `mb_strlen` in order to count the length correctly
* Regenerate the samples
2018-04-06 14:20:05 +08:00
Benjamin Gill
37faaf9266
[rust-server] API version constant and composite version support ( #7969 )
...
* Add constant with API version
* Use semver::Version for ApiVersion
* Go back to API version as a string
* Rust composite services
* Actually use the version from the swagger file
2018-04-06 13:27:13 +08:00
wing328
d48c4e5038
Merge branch 'master' into oas3_support2
2018-04-05 23:49:59 +08:00
Jérémie Bresson
386b9f432a
Modify "postProcessOperations" for "jaxrs-cxf-client" ( #7886 )
...
* Fix sh script for 'jaxrs-cxf-client' and generate sample
* Modify "postProcessOperations" for "jaxrs-cxf-client"
* Update "jaxrs-cxf-client" sample
2018-04-05 23:34:37 +08:00
wing328
3cb3faedc1
update swagger core version to 2.0.0
2018-04-05 16:51:33 +08:00
wing328
409015461c
fix file type in qt5cpp
2018-04-05 15:56:30 +08:00
wing328
a4bcb3bc73
fix datetime and map type for qt5cpp
2018-04-05 14:36:35 +08:00
wing328
d882ad2fcb
using isMapSchema in generator
2018-04-05 13:18:04 +08:00
wing328
b8031b631d
fix npe by MapSchema
2018-04-04 23:02:13 +08:00
wing328
df19e1e05e
fix NPE with qt5 pestore 3.0 spec
2018-04-04 22:37:12 +08:00
wing328
8dbf2ed851
add spring generator
2018-04-04 22:20:22 +08:00
wing328
7310bbf31e
add openapi (json/yaml) generator
2018-04-04 22:00:15 +08:00
wing328
1bc015f5ae
add java undertow server generator
2018-04-04 18:40:31 +08:00
wing328
a6c8330e10
add elm generator
2018-04-04 18:20:17 +08:00
wing328
4887be0b1e
add ts inversify generator
2018-04-04 17:45:39 +08:00
wing328
ffa89dc373
Merge branch 'master' into oas3_support2
2018-04-04 17:33:28 +08:00
wing328
8b3bd049a9
add JavaJAXRSCXFCDIServerCodegen generator
2018-04-04 17:25:13 +08:00
wing328
60fdfdfbed
add jaxrs spec generator, rename openapi.mustache
2018-04-04 17:18:48 +08:00
wing328
c843712cdb
add java inflector
2018-04-04 17:05:07 +08:00
wing328
e53d375589
add java-msf4j generator
2018-04-04 16:57:44 +08:00
wing328
c45a217a8c
add java cxf client, server generator
2018-04-04 16:51:57 +08:00
wing328
f6c268ddd9
add jaxrs jersey server generator
2018-04-04 16:32:06 +08:00
wing328
b45b0c6cd1
add java resteasy eap server generator
2018-04-04 16:22:24 +08:00
wing328
5180881a50
add resteasy server genrator
2018-04-04 16:16:04 +08:00
Yukio Ejiri
3c5fb1d809
[kotlin] Add json annotation to each enum value. ( #7908 )
...
* [kotlin] Add moshi.Json annotation.
* [kotlin] update petstore samples.
* [kotlin] Remove extra new lines.
2018-04-04 15:26:19 +08:00
wing328
1db42ba317
add jmeter generator
2018-04-04 00:56:12 +08:00
Gualtieri Mario
e2c58fad71
Add typescript-inversify code generator ( #7885 )
...
* Add typescript-inversify language
* Add windows script
Add windows script
* Use rxjs instead of rx and encoding only the value of URL parameters
* Remove lodash dependency
Remove lodash dependency
* Readd linux user detail on run-docker script
* Solve import problems
* Remove configuration template
* Add usePromise config's variable
* Align Test to check usePromise config parameter
* Add possibility to receive all the httpResponse
* Better ts-lint on api service
* Update sample client example with new ts-lint
* Update petstore sample with new ts-lint
2018-04-04 00:30:53 +08:00
wing328
581b22bbc0
add java pkmst server generator
2018-04-04 00:24:01 +08:00
gs
240aad8686
Additional reserved python keywords ( #7956 )
2018-04-04 00:15:15 +08:00
William Cheng
74fa9418d8
add link to Swagger Codegen eBook in Japanese
2018-04-04 00:14:06 +08:00
wing328
8b39024932
add java vertx server generator
2018-04-03 22:04:51 +08:00
wing328
2297a70512
add play generator
2018-04-03 15:59:15 +08:00
wing328
d4cd0bdc3e
add java generator
2018-04-03 15:45:24 +08:00
wing328
ffecaa1b0b
add html, html2 generators
2018-04-03 14:36:08 +08:00
wing328
0081a2b89f
add dynamic-html generator
2018-04-03 14:21:31 +08:00
wing328
e2b9c8323d
Merge branch 'master' into oas3_support2
2018-04-02 23:01:07 +08:00
wing328
70fec38022
remove old codegen files
2018-04-02 22:53:22 +08:00
murzic4
bad1885b47
fix #7906 [cpprest] add parameterToString for number type with unspecified format (double) ( #7929 )
2018-04-02 16:44:09 +08:00
wing328
5d1874028b
add class as a keyword in objc generator
2018-04-02 16:36:01 +08:00
wing328
904cdc0d5b
Merge branch 'master' into oas3_support2
2018-04-02 16:34:11 +08:00
wing328
7673813648
update cpp qt5 sample
2018-04-02 16:25:35 +08:00
Martin Delille
23b31aba89
[qt5cpp] Fix crash when API return a map container ( #7933 )
...
* [qt5cpp] Fix crash when API return a map container
* qint32 => {{returnBaseType}}
2018-04-02 16:24:57 +08:00
William Cheng
f2186b212c
Merge pull request #4 from wing328/qt-update-client
...
Qt update client
2018-04-02 16:06:56 +08:00
wing328
b550471573
fix long cast to int
2018-04-02 16:03:40 +08:00
wing328
d690f429df
fix model name when obtaining from get$ref
2018-04-02 15:28:03 +08:00
aneeshkasokan
1b8df5c20f
Update ObjcClientCodegen.java ( #7950 )
...
Added "class" as a reserved keyword for Objc.
2018-04-02 15:05:32 +08:00
Euan Kemp
b443573945
[Rust] Implement minimal auth support ( #7338 )
...
* [Rust] Implement minimal auth support
This is pretty much the bare minimum needed to get v2 auth working.
This is partly based on the Go implementation.
* [Rust] properly format query string
* [Rust] Improve auth formatting
* [Rust] Regenerate petstore sample
2018-04-02 14:58:26 +08:00
wing328
d40c28b2b9
add rust client, server generator
2018-04-02 12:53:06 +08:00
Benjamin Gill
6c7813e79c
[rust-server] asynchronous support via hyper v0.11 ( #7896 )
...
* End use of deprecated openssl method
* Enhance rust-server to use hyper 0.11 to support handling operations asynchronously
The changes are complete and working (at least for microservices tested within Metaswitch). This isn't completely compatible with the (previous/current) synchronous swagger-codegen. Specifically,
* `Client` is no longer `Send + Sync`
* Api implementations used by Server are no longer expected to be `Send + Sync` (which is good, because it's quite hard if `Client` isn't)
* the code to create `Client`s and `Server`s, and hook them into `hyper` or `tokio` is different.
Importantly, though, the business logic itself should be unchanged.
* Re-adds the `basePath` element to all server endpoints. This mean clients and servers can talk to each other again.
* Fix multipart formdata codegen
* Fix up handling of multipart messages
* Fix server -> client multipart message response
* Correct handling of optional file types
* Add authorization header to requests with basic auth
* Add client support for `application/x-www-form-urlencoded`
* Import uuid library if headers use UUID type
* Add BASE_PATH to the server module.
* Wrap client connector
* Support both query and body parameters on the same operation
2018-04-02 10:32:45 +08:00
wing328
9b5c71fdb2
add eiffel generator
2018-04-02 10:29:35 +08:00
wing328
960198d345
flash generator code format, update default value
2018-04-02 10:00:52 +08:00
wing328
6f5dee6169
add flash generator
2018-04-02 09:44:05 +08:00
wing328
bbadc7f439
add scalatra generator
2018-04-02 00:33:58 +08:00
wing328
9226ce61b1
add scalaz generator
2018-04-01 23:49:21 +08:00
wing328
3fc37cf13a
add scala lagom server generator
2018-04-01 23:34:56 +08:00
wing328
e9089c85ae
add scala gatling server
2018-04-01 23:13:50 +08:00
wing328
00f73f0ea8
add finch generator
2018-04-01 22:41:39 +08:00
wing328
cba5d7cabe
Merge branch 'oas3_support2' of https://github.com/wing328/generate_test into oas3_support2
2018-04-01 22:25:50 +08:00
wing328
b0fc3e94a3
format code, add helper function to check body/form param
2018-04-01 22:25:22 +08:00
William Cheng
2fb9ce43b5
Merge pull request #9 from ackintosh/fix-discriminator
...
Fix broken discriminator
2018-04-01 19:09:54 +08:00
akihito.nakano
28fcf48f42
Add a method returns discriminator name
...
refs https://github.com/wing328/openapi-generator/pull/9#issuecomment-377776109
2018-04-01 19:38:19 +09:00
wing328
240d1fe7eb
Merge branch 'oas3_support2' of https://github.com/wing328/generate_test into oas3_support2
2018-04-01 17:57:45 +08:00
wing328
af17953bf9
add apex generator
2018-04-01 17:57:21 +08:00
akihito.nakano
7daa2ec5da
Fix broken discriminator
2018-04-01 18:29:13 +09:00
William Cheng
24db65b2b9
Merge pull request #8 from ackintosh/fix-required-flag
...
Fix 'required' flag
2018-04-01 14:37:04 +08:00
akihito.nakano
57bb63bd77
Update the sample codes
...
bin/openapi3/php-petstore.sh
2018-04-01 13:07:20 +09:00
akihito.nakano
8e191a121b
Fix 'required' flag
2018-04-01 13:05:57 +09:00
wing328
88f48c4a41
add Ada client, server generator
2018-04-01 11:19:22 +08:00
akihito.nakano
bd19c6bdea
Update samples under openapi3 folder
...
Apply changes that comes with master
bin/openapi3/php-petstore.sh
2018-04-01 12:11:29 +09:00
wing328
b287520e8a
Merge branch 'master' into oas3_support2
2018-04-01 01:45:34 +08:00
William Cheng
f0497e249d
Merge pull request #7 from ackintosh/fix-missing-requestbody-param
...
Fix missing requestBody param
2018-04-01 00:58:31 +08:00
wing328
64037ee59f
update docker-related filee to ues jdk8
2018-04-01 00:52:09 +08:00
wing328
177c0105c3
add groovy generator, abstract java class (with TODO)
2018-04-01 00:25:12 +08:00
akihito.nakano
344eb85466
regenerate the samples
2018-04-01 00:42:21 +09:00
akihito.nakano
d1c1ef73eb
Fix missing 'requestBody' param
2018-04-01 00:40:06 +09:00
wing328
efada7c540
fix the location of openapi.yaml/json file
2018-03-31 23:01:34 +08:00
wing328
a784932f04
add erlang client, server
2018-03-31 22:17:49 +08:00
wing328
b774a98822
add js closure angualr client generator
2018-03-31 22:06:51 +08:00
William Cheng
1438f68f12
Merge pull request #6 from ackintosh/improve-map
...
Add helper function to determine if it is MapSchema
2018-03-31 21:35:27 +08:00
William Cheng
d746d5653c
Merge pull request #5 from wing328/update-issue-and-pull-request-template
...
Update issue and pull request template
2018-03-31 21:33:57 +08:00
akihito.nakano
faa901640c
Replace with the helper function: getTypeDeclaration
2018-03-31 20:52:44 +09:00
akihito.nakano
353c51fc0a
Add helper function
2018-03-31 20:30:47 +09:00
William Cheng
d9ec433a5b
Merge pull request #2 from ackintosh/php-client
...
[WIP] Make PHPUnit green
2018-03-31 18:45:48 +08:00
wing328
5cea5972fa
add swift 4 generator
2018-03-31 18:36:39 +08:00
wing328
b27e844661
fix openapi yaml/json file generation
2018-03-31 18:13:42 +08:00
wing328
565102eddf
add swift3 client generator
2018-03-31 17:42:49 +08:00
wing328
5383c33181
add swift generator
2018-03-31 17:30:56 +08:00
wing328
eaed75229a
add helper function to generate openapi yaml/json file
2018-03-31 17:11:54 +08:00
Ben Wells
c8650d0e34
Make optional properties in models optional parameters ( #7859 )
...
* Make optional properties in models optional parameters
Move incorrect location of typescript-node client
* Add typescript node package.json to swagger ignore
2018-03-31 12:12:06 +08:00
wing328
e3a4bd6e68
rename cpp related generator
2018-03-31 10:36:31 +08:00
Martin Delille
ddd09bc597
Update issue and pull request template
2018-03-30 14:09:55 +02:00
Martin Delille
ee2eb74f75
[qt] update Qt client
2018-03-30 14:02:16 +02:00
William Cheng
f2d56b038b
add d-date to swift technical committee
2018-03-30 17:29:36 +08:00
Daiki Matsudate
46e5dddb05
removing trailing spaces ( #7943 )
2018-03-30 17:13:51 +08:00
Ben Wells
260375c9e1
Fix typescript-node generation of array type models ( #7861 )
2018-03-30 11:08:30 +08:00
Gerlando Caldara
45a2b5cae8
Update README.md ( #7940 )
...
Add Acando Company to list "Companies/Projects using Swagger Codegen"
2018-03-30 10:16:42 +08:00
wing328
c2759b393a
add nodejs server support
2018-03-30 10:05:20 +08:00
akihito.nakano
a5b38d0dfb
Fix 'Class Swagger\Client\FakeHttpClient not found'
2018-03-30 01:21:13 +09:00
wing328
af6312efa5
add aspnetcore generator
2018-03-29 22:38:11 +08:00
wing328
cd0e0aa76c
add c# nancy generator
2018-03-29 22:27:10 +08:00
wing328
ae2041f74e
add csharp client generator
2018-03-29 21:42:21 +08:00
akihito.nakano
4b49b256bb
Add a Pet before run test cases
2018-03-29 21:01:31 +09:00
akihito.nakano
75e354ed71
Fix broken map
2018-03-29 20:46:22 +09:00
akihito.nakano
dd3d798f02
Merge branch 'oas3_support2' into php-client
2018-03-29 19:58:18 +09:00
akihito.nakano
a6af75f99e
Copy tests from "samples/client/petstore/php"
2018-03-29 19:46:18 +09:00
akihito.nakano
a3c28adaef
Generate PHP client from OAS3
2018-03-29 19:44:52 +09:00
wing328
ea6d26eb3b
add abstract cpp generator
2018-03-29 18:39:19 +08:00
akihito.nakano
a7a0fe0440
Output to the openapi3 foler
2018-03-29 19:28:32 +09:00
wing328
27404894d7
add cpp restbed generator
2018-03-29 17:32:51 +08:00
wing328
21ce66509e
add cpp server generator
2018-03-29 16:57:16 +08:00
wing328
f8d089fb54
add haskell client generator
2018-03-29 16:01:15 +08:00
wing328
5646120b88
minor update to android generator
2018-03-29 15:06:49 +08:00
wing328
e5073db2d4
add ts node generator
2018-03-29 15:02:15 +08:00
wing328
e9630f1608
add ts generators
2018-03-29 14:51:23 +08:00
wing328
659f8248f0
add php symfony generator
2018-03-29 11:41:53 +08:00
wing328
b41626d1e8
rename php sever geneator, add php ze-ph generator
2018-03-29 11:28:21 +08:00
akihito.nakano
f526c33516
Add another set of script(php) for OpenAPI3
2018-03-29 10:48:28 +09:00
akihito.nakano
a53dae370a
Revert "Bump up version of sample spec file"
...
This reverts commit adee16e073 .
2018-03-29 10:42:00 +09:00
wing328
4d0bdf8aba
remove debug logging
2018-03-29 00:24:33 +08:00
wing328
e3da003b1f
add ts angular generator
2018-03-28 18:24:30 +08:00
wing328
9fa6abd1da
add JS client generator
2018-03-28 16:58:02 +08:00
wing328
98a41db17c
fix perl option test, minor reformat
2018-03-28 16:05:27 +08:00
wing328
341c0db734
Merge branch 'perl_generator' into oas3_support2
2018-03-28 15:49:20 +08:00
wing328
7dc40e1a83
Merge branch 'add_go_generator' into oas3_support2
2018-03-28 15:48:20 +08:00
wing328
f54b78f4bb
Merge branch 'add_go_generator' into oas3_support2
2018-03-28 15:42:58 +08:00
William Cheng
0821cf7fd0
Merge pull request #3 from wing328/add_go_generator_testfix
...
Add missing generator cliOption
2018-03-28 15:42:30 +08:00
wing328
077c1de300
add python flask generator
2018-03-28 15:33:21 +08:00
wing328
0b89519cf8
add python generator
2018-03-28 11:48:42 +08:00
wing328
7ccdca36ad
add lua generator
2018-03-28 11:41:55 +08:00
wing328
40d2381317
add kotlin server, set default lib to ktor
2018-03-28 11:27:46 +08:00
wing328
16183cba71
add kotlin client, server generator
2018-03-28 11:09:30 +08:00
wing328
aa697b15b7
add tizen generator
2018-03-28 10:52:01 +08:00
Jim Schubert
696b6a0930
Add missing generator cliOption
2018-03-27 22:11:49 -04:00
wing328
ff50ed187c
add cpp client generator
2018-03-28 00:48:46 +08:00
wing328
0b61de9cd5
add cpprest generator
2018-03-28 00:25:48 +08:00
wing328
d07417eeae
add cwiki doc generator
2018-03-27 23:16:40 +08:00
wing328
ee7d3b3b81
add clojure client generator
2018-03-27 23:05:49 +08:00
wing328
a58e645372
add apache 2 config generator
2018-03-27 22:50:48 +08:00
wing328
4a8db17077
add apache2 config generator
2018-03-27 22:50:36 +08:00
wing328
aa5a7ad540
add scala client generators
2018-03-27 22:45:21 +08:00
akihito.nakano
e3ba2d9936
Merge branch 'oas3_support2' into tweak
2018-03-27 23:09:56 +09:00
wing328
e7743da0e9
add android generator
2018-03-27 21:50:41 +08:00
wing328
545823e39b
add PowerShell generator
2018-03-27 21:43:12 +08:00
wing328
f89ba9950a
add perl generator
2018-03-27 21:35:54 +08:00
wing328
fb20a6e075
add elixir generator
2018-03-27 21:16:36 +08:00
wing328
19c16fd572
add Dart generator
2018-03-27 20:49:50 +08:00
wing328
2cfde8bd65
add go generators
2018-03-27 20:40:30 +08:00
wing328
852b5b02bd
add R client generator
2018-03-27 16:55:16 +08:00
wing328
24cb0f619f
add ruby sinatra server generator
2018-03-27 16:41:54 +08:00
wing328
15bb50d822
add php silex generator
2018-03-27 15:24:10 +08:00
wing328
d2ebefd4d5
add php lumen generator
2018-03-27 15:15:08 +08:00
wing328
b799d694f0
add php slim generator
2018-03-27 14:55:46 +08:00
wing328
7cc6591ef9
Merge branch 'oas3_support2' of https://github.com/wing328/generate_test into oas3_support2
2018-03-27 14:34:33 +08:00
wing328
1e634257fe
update gitignore
2018-03-27 14:34:01 +08:00
wing328
9e0a3ff069
migrate rails generator
2018-03-27 14:31:38 +08:00
William Cheng
18b2aaec2c
Merge pull request #1 from ackintosh/oas3_support2
...
Fix missing version.properties
2018-03-27 14:18:40 +08:00
akihito.nakano
adee16e073
Bump up version of sample spec file
2018-03-27 02:04:29 +09:00
wing328
1c22ec363b
add python generator and tests
2018-03-26 23:56:56 +08:00
akihito.nakano
b41774fd87
Fix missing version.properties
2018-03-27 00:30:00 +09:00
wing328
9cec2b3673
add back ruby tests
2018-03-26 23:17:33 +08:00
wing328
7fbc8fa31e
add haskell generator
2018-03-26 22:39:27 +08:00
wing328
246ed57547
restore objc reserved word: property
2018-03-26 17:28:50 +08:00
wing328
0e9dff995c
add objc generator and test
2018-03-26 15:50:50 +08:00
wing328
0e6da5bbd5
add original objc geneator and test
2018-03-26 12:00:55 +08:00
Akihito Nakano
d58835e571
[PHP] Improve: Make validation strict ( #7724 )
...
* Add test case which reproduce the problem
refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 1. We should pass true as 3rd argument of in_array()
* Add test case for setter
* Strict validation
* Update samples
* Tweak expected value according to changes in #7723
2018-03-25 23:17:46 +08:00
Akihito Nakano
6d88d073ca
[NodeJS] make serverPort configurable via CLI option ( #7899 )
...
* Add "serverPort" option
* Use port number passed via CLI option if specified
* Replace hand-written param name with the constant
* Rename serverPort -> defaultServerPort
* Fix failed test
https://travis-ci.org/swagger-api/swagger-codegen/builds/357674590
2018-03-25 23:12:15 +08:00
Jeremy Bohrer
fc7e083467
Add interfaces option ( #7831 )
...
[TypeScript][Fetch] Add interfaces option
2018-03-25 23:01:18 +08:00
davidbilge
40c30dd2f1
Fix inputSpec for multi module builds ( #7883 )
...
Prefix path to `inputSpec` with maven's `${project.basedir}`. The codegen-maven-plugin will look inside the current working directory so whether a relative path works or not is depending on where the maven build is invoked from. Using `${project.basedir}` makes the path absolute.
2018-03-25 22:51:40 +08:00
wing328
b5da183668
add bash generator and test cases
2018-03-25 16:39:50 +08:00
wing328
af4dcb9cbb
add back php test cases
2018-03-25 13:51:17 +08:00
wing328
5326152ccd
add option to reorder form/body parameter
2018-03-24 18:47:56 +08:00
wing328
6dc5f7f37b
add OAI 3.0 spec for petstore and fake petstore
2018-03-24 16:25:12 +08:00
wing328
aafaf64268
add back resource test files for openapi-generator
2018-03-24 16:14:39 +08:00
wing328
01161abe71
rename openapi-generator-cli test folder
2018-03-24 16:03:51 +08:00
wing328
5f9a9bda00
fix array of body parameter type
2018-03-24 00:04:07 +08:00
wing328
1d09962996
fix file, binary array
2018-03-23 21:17:05 +08:00
wing328
7d07458b45
fix issues with form parameter
2018-03-23 18:25:08 +08:00
wing328
ce6efcf5bb
fix security
2018-03-23 01:27:41 +08:00
Ben Wells
ea2474d707
Fix strict class initialisation in auth classes ( #7860 )
2018-03-23 01:12:28 +08:00
wing328
a8c64f458f
fix NPE with requestbody
2018-03-22 21:57:56 +08:00
etherealjoy
3b031ed2b8
[qt5cpp] delete callback data allocated before signal emission ( #7840 )
...
* Small fixes to prevent crash when empty json body is provided.
* Add deleteLater wrapper for pointers passed to user code to prevent memory leak.
* Updates to move Object Wrapper to separate file
* Add Prefix to class name
2018-03-21 20:51:17 +08:00
Philippe M
d1850091a7
Improve JMeter Template : Fix Issue 7773 ( #7774 )
...
* Improve JMeter Template:
In CSV DataSet ignore first line as it contains headers
Share CSV for Thread-Group instead of doing it across all threads
Use scheduler
Add variables definable through properties for:
- Rampup
- Duration
- Threads
Drop HttpClient 3.1 customization
Remove in Test Plan Element host and port as they are defined in User
Variables
* Improve JMeter Template : Fix Issue 7773
This comment #7773
As per request update samples
2018-03-21 20:46:47 +08:00
HugoMario
22f0b8db43
Merge pull request #7882 from swagger-api/issue-7839-null-fields
...
removed null fields
2018-03-20 21:07:26 -05:00
Hugo Mercado
74fa3b1e13
removed null fields
2018-03-20 18:07:26 -05:00
Martin Delille
fedfb0cda7
Factorize addOption/addSwitch method ( #7814 )
2018-03-21 00:31:01 +08:00
etherealjoy
73bd24db7d
[cpprest] Add support for nested vectors ( #7820 )
...
* Small fixes to prevent crash when empty json body is provided.
* cpprest : Add toJson and toHttpContent array support.
* petstore : Run script.
* cpprest : Fix toHttpContent function header.
* petstore : Run script.
* cpprest : Add support for primitive response without enclosing item.
* cpprest : Fix spaces.
* cpprest : Fix build if bodyParam is optional.
* cpprest : Fix vector of vector param.
* Small updates to use utf encoding
Add * operator for ^required
2018-03-21 00:30:17 +08:00
Daiki Matsudate
3b7230b170
[Swift 4] Fix APIHelper to accept array parameter ( #7821 )
...
* fix typo
* use URLComponents instead of NSURLComponents
* add encode method for any type
* Add public initializer for modelObject
* change id to _id
* fix APIHelper funcs for array query parameters
* make public to write unit test
* add APIHelperTests
* fix typo
* fix regression
2018-03-21 00:23:47 +08:00
SergeyLyakhov
f023327558
[JAVA] 4709: codegen with parcelableMode fails to build if using arrays in swagger. ( #7867 )
2018-03-21 00:10:24 +08:00
swavans
f943332d62
Updated version number ( #7880 )
...
updated version number of swagger codegen to current stable
2018-03-20 23:59:15 +08:00
William Cheng
8e34f9a98b
update to newer version of ruby ( #7879 )
2018-03-20 23:58:47 +08:00
Sergey Petrachkov
9443179d10
Update README.md ( #7877 )
...
add actonica to the list of users
2018-03-20 23:58:31 +08:00
wing328
f2489b256a
fix issues with body parameters
2018-03-19 16:46:45 +08:00
garte
f9b2839a30
Check date value before calling to_iso8601 ( #7769 )
...
* Check date value before calling to_iso8601
When deserializing a date value the value has to be a string when
calling to_iso8601. Otherwise it fails with a match error due to a
is_binary() guard.
* Fix: to_iso returns tuple with three values.
2018-03-19 15:15:38 +08:00
HugoMario
9d85c82cdd
Merge pull request #7864 from swagger-api/issue-7839
...
added config to yaml mapper to minimize long text.
2018-03-18 07:47:21 -05:00
wing328
6b65b02c56
fix 2.0 spec exception, fix NPE with Parameter
2018-03-18 17:12:59 +08:00
wing328
7b1c7255a7
fix NPE, add new files
2018-03-18 15:28:34 +08:00
wing328
b471fbcc92
project build succecced, only suppport ruby generator
2018-03-18 14:14:46 +08:00
Hugo Mercado
96a9ba16d9
added config to yaml mapper to minimize long text.
2018-03-16 17:50:50 -05:00
Yukio Ejiri
e22faf4cd3
[Swift] Add public initializer for modelObject. ( #7652 )
...
* Add public initializer for modelObject.
* Update samples.
* Use allVars instead of vars.
* Fix code format.
2018-03-16 00:56:00 +08:00
Martin Delille
b5eb0e7de8
Candidature to integrate Qt technical commitee ( #7834 )
...
* Candidature to integrate Qt technical commitee
* move to c++ technical commitee
2018-03-15 20:58:52 +08:00
etherealjoy
e796e4c369
[C++] Add linux as a reserve keyword ( #7844 )
...
* Small fixes to prevent crash when empty json body is provided.
* Add linux as a reserved keyword
* Small reorder of introduced keyword
2018-03-15 20:41:42 +08:00
Martin Delille
d82499944b
Adding qt project generation fix #7784 ( #7799 )
...
* starting adding qt project generation
* update sample after running bin/qt5-petstore.sh
* Add Project.mustache starter
* Fix processOpts function
* Write Project.mustache
* Add prefix
2018-03-15 00:31:03 +08:00
wing328
8851386ac8
comment out enum_string_required in test spec
2018-03-13 23:15:26 +08:00
wing328
721f1c7720
update ruby samples
2018-03-13 14:45:42 +08:00
wing328
4cfbc118e8
renaming for openapi-generator
2018-03-13 14:41:23 +08:00
wing328
f2b28d578f
rename plug-in, generator
2018-03-13 14:41:23 +08:00
Jérémie Bresson
25a6a9d444
html: fix typo in class name ( #7818 )
...
* html: fix typo in class name
* Update "html" samples
2018-03-13 00:08:48 +08:00
William Cheng
e7f4fb3c45
Fix nodejs-server path issue in windows platform ( #7808 )
...
* fix nodejs-server path issue in windows platform
* only replace character in apiPackage
2018-03-12 23:21:07 +08:00
Martin Delille
1bb1e44d18
[qt5cpp] Remove qt5 pro.user file ( #7813 )
2018-03-12 23:17:39 +08:00
Martin Delille
9bd94b4dbb
[qt] Fix warning message ( #7815 )
...
* [qt] fix warning message
* remove unused model.mustache file
2018-03-12 23:00:45 +08:00
William Cheng
7ef373f4d4
add ramzimaalej to scala tech committee
2018-03-10 13:20:44 +08:00
William Cheng
9e3d8d1c82
add etherealjoy to cpp tech committee
2018-03-10 11:37:03 +08:00
wing328
ff5edfb97a
comment out python tornado test due to ssl error
2018-03-09 18:28:43 +08:00
lborupj
e73eeb4fdf
fix for stripping prefix on single enums ( #7726 )
2018-03-09 14:33:34 +08:00
etherealjoy
1947220159
Qt5cpp plug memleaks part2 ( #7792 )
...
* Small fixes to prevent crash when empty json body is provided.
* Fix some more memory Leaks in the model-body
- Members not deleted in cleanup() method, for maps/arrays of primitive types.
- Avoid undefined behavior when updating class members with data from missing json fields
2018-03-09 00:19:45 +08:00
Simon Sprünker
f00a1ef52c
[JAVA] Fix #7734 : Correct consumes/produces attributes for Spring Controllers ( #7760 )
...
* fix #7734 : Correct consumes/produces attributes for Spring Controllers
* fix #7734 : Update petstore
2018-03-08 22:56:43 +08:00
Charles Capps
4eeb974cb6
[Java][google-api-client] Fix bug with empty POST request not sending content-type ( #7787 )
...
* Add overloaded method to take an InputStream for the request body, and fix a bug with collections
* Use fully qualified name for InputStream to avoid potential conflicts
* Add support for Input Stream choosing content type, and fix a bug
* Ensure GET requests send an empty request body!
2018-03-08 22:51:49 +08:00
Alexander Zinovyev
cf8d8d56fb
[PHP] Fix code example from README. Variable name was missing when using Basic auth. ( #7777 )
2018-03-08 22:36:35 +08:00
Ramzi Maalej
832919b84c
Remove unused dep when model package is empty ( #7793 )
2018-03-08 22:23:01 +08:00
Dennis Frommknecht
53eeb0c049
fix connection leak on retrofit OAuth token renewal ( #7750 )
2018-03-08 22:00:22 +08:00
Akihito Nakano
0adbf7e51f
[PHP] Improve: update sample tests automatically ( #7717 )
...
* Improve: update sample tests automatically
* security test
* Update sample
- bin/php-petstore.sh
- bin/security/php-petstore.sh
The security test has not been updated for a while.
2018-03-08 21:56:48 +08:00
Akihito Nakano
32cf2f16f5
[PHP] Non required enum property ( #7723 )
...
* Add required enum property
* Update samples
* Add test case which reproduce the problem
refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 2. Non-required enum property is listed as invalid when omitted
* If the property is not empty, perform validation
* Update samples
* Use is_null() according to setter implementation
refs 377247f125/modules/swagger-codegen/src/main/resources/php/model_generic.mustache (L347)
* Update samples
2018-03-08 21:54:34 +08:00
Max
227e2458d4
Update README.md ( #7772 )
...
Adding Accruent to list of companies using swagger-codegen
2018-03-08 21:38:17 +08:00
etherealjoy
12f3661d6f
Qt5cpp plug memleaks ( #7695 )
...
* Small fixes to prevent crash when empty json body is provided.
* WIP: plug mem-leaks
* fixup: add the QJsonObject instance in toJsonArray instead of pointer
* fixup: simplify toJsonMap
Actually the original solution is incomplete, because "innerType" maps to a single C++ type. Have a look at Qt's builtin QJsonObject::fromVariantMap.
* Updates to antis81:patch-1 after tests.
* update to remove string allocation
* Updates due to address of members being passed
* Update PetStore Examples
* Small updates for Header includes
2018-03-07 20:54:40 +08:00
William Cheng
d5f3619199
add JFCote to the core team
2018-03-06 16:21:20 +08:00
wing328
724a8fb05d
update java petstore samples (jersey1)
2018-03-05 19:34:34 +08:00
dennistruemper
70b4b55fae
Fix performance linting problem with maps in java ApiClient template ( #7685 )
...
* Fix performance linting problem with maps
* Fix the other map performance issue as well
2018-03-05 19:12:39 +08:00
Paul Vogel
3bcf0ff764
[PHP] Add path & file separator (/) to return the correct path when deserializing a file ( #7671 )
...
* Add path & file separator (/) to return the correct path
Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.
(Fixes #7670 )
* Remove separator from generated file
* Add separator
Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.
(Fixes #7670 )
* Update sample code
Via ./bin/php-petstore.sh
2018-03-05 10:32:47 +08:00
Andy Kipp
8e0a0ebd62
Fix python / tornado body handling ( #7738 )
...
* Handle empty body
* Update petstore
2018-02-28 16:08:17 +08:00
William Cheng
91da14577a
add link to ebay blog post
2018-02-28 14:36:04 +08:00
Per Thomas Lundal
769a65c95f
[Elm] Add support for array schemas ( #7729 )
...
The following schema definitions kinds are now supported:
MyStringArray:
type: array
items:
type: string
MyObjectArray:
type: array
items:
type: MyObject
2018-02-27 17:58:12 +08:00
Alberto Sartori
56a0268e39
[elm] missing '->' in Main elm template ( #7728 )
2018-02-26 23:11:21 +08:00
William Cheng
ac18722dd4
update ada technical committee
2018-02-26 22:48:48 +08:00
William Cheng
c1227dd720
add ackintosh to core team
2018-02-25 16:54:59 +08:00
Adam Conway
ff1178ad7e
[Java][Spring] fix optional query params missing in generated swagger ( #7607 )
...
* Added genericModelSubstitutes if using Optional
As per https://github.com/springfox/springfox/issues/1848 Doesn't seem to fix the problem, but is what springfox recommends so might be aprt of it.
* Added config package to scans
If you have defined apiPackage and basepackage (e.g. as com.example.api) but not defined configPackage then config is still in io.swagger.config and is not included in the component scan. This means the config is not used when generating the swagger definition from the code. Fixed by including configPackage also in the scan.
* Ran spring-all-pestore.sh update script
* Converted tabs to spaces
* Ran spring-all-pestore.sh update script
2018-02-23 00:02:38 +08:00
wing328
e5001a0c8d
java update petstore clients
2018-02-22 21:51:14 +08:00
Adrien CABARBAYE
d4543a99e3
[Java][retrofit2] Fix for Issue #7446 ( #7659 )
...
* [Java][retrofit2] Fix for issue #7446 : file upload sets filename as baseName instead of a dynamic filename. The solution is to use okhttp3.MultipartBody.Part instead of RequestBody in formParams template.
* Changes corresponding to review comments
* Petstore Samples
* Fixed tests
2018-02-22 21:45:19 +08:00
wing328
b4827beba4
update python petstore samples
2018-02-22 20:59:45 +08:00
micheleISEP
edf6be8c07
[Ada] Fix #7569 by defining x-is-model-type when property is local to the YML file ( #7655 )
...
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450
* Updated the Ada petstore samples
* Committing "VERSION" file and the rest of the petstore samples
* Changed default project name and package name for Ada, not to have circular dependencies between gpr files.
* Ada code generator now adds x-is-model-type every time a model is defined locally in the YML file.
Fix #7569 .
2018-02-22 20:57:15 +08:00
Daniel Zozin
b39c35c768
Fix inconsistency between model name and file name in python client ( #7684 )
...
Fixes issue #7357 using the same fix as #4958
2018-02-22 20:56:14 +08:00
wing328
92117b879a
fix incorrect indentation in petstore spec
2018-02-22 18:17:28 +08:00
wing328
a59c325cb7
update dart, ruby petstore samples
2018-02-22 17:53:51 +08:00
Akihito Nakano
91bd7ac3b9
[PHP] Run unit tests on 'tests' directory ( #7675 )
...
* Run unit tests on 'tests' directory
* Fix: move argument to <argument>
2018-02-22 17:31:47 +08:00
Akihito Nakano
be14e02875
[PHP] Cleanup test ( #7673 )
...
* Regenerate PetApiTest, OrderTest
The same test code as deleted is in the 'tests' directory.
* Move test code 'test' -> 'tests', and Regenerate test/Model/PetTest.php
* Regenerate 'test' directory
rm -rf samples/client/petstore/php/SwaggerClient-php/test && bin/php-petstore.sh
2018-02-22 17:31:18 +08:00
Akihito Nakano
14e1e19803
[PHP] Improve validation on empty arrays ( #7686 )
...
* Api should throw exception if an empty array is passed
* Update samples
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2018-02-22 17:15:00 +08:00
nicksanders348
6a81829bb3
remove tab ( #7692 )
2018-02-22 16:43:44 +08:00
shigeru.nakajima
dcad9ae807
[Rails5] make version of the generated Rails stub server to strict Rails 5.0 ( #7700 )
2018-02-22 15:57:14 +08:00
Nathan Broadbent
3f3d9c7f2a
Added FormAPI to the list of companies that are using swagger-codegen ( #7687 )
2018-02-19 22:12:29 +08:00
Andrew Z Allen
47614bb765
Properly capitalize exported go types ( #7636 )
...
Previously if the type was "myEnum" it would be written as
```
type myEnum string
const (
DEMO MyEnum = "DEMO"
)
```
which would fail because of the capitalization difference. This fixes that.
2018-02-19 00:18:03 +08:00
Ken Gilmer
39fa375e3a
[kotlin] Fix NPE for POST/PUT/PATCH with empty request models. ( #7629 )
...
* [kotlin] Fix NPE for POST/PUT/PATCH with empty request models.
* [kotlin] Pass content type in empty response as discussed in PR review.
2018-02-18 23:51:02 +08:00
edwd
9fb2c29a46
7644 objc deprecated afnetworking datataskwithrequest ( #7645 )
...
* Replacing calls to dataTaskWithRequest:completionHandler:
In objc ApiClient-body.mustache, replacing calls to AFNetworking's deprecated `dataTaskWithRequest:completionHandler:` with calls to `dataTaskWithRequest:uploadProgress:downloadProgress:completionHandler:`.
* Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change: ./bin/objc-petstore.sh and ./bin/security/objc-petstore.sh
2018-02-18 22:58:57 +08:00
Benoit Vermont
c599906f1a
Kotlin: Correct data_class.mustache to use proper property for inner enum data type ( #7597 )
...
* Correct data_class.mustache to use proper property
The name of the property is "datatype" lowercase, as can be seen in https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenProperty.java#L10
Using "dataType" does not work, and the type of the inner enum is null.
* Change in petstore
2018-02-18 22:44:35 +08:00
Karol
cddcda0fe0
Java Jersey2: Make generated client code thread safe ( #7605 )
...
* fix issue-7453; make jersey 2 generated code thread safe by following the withHttpInfo pattern used by many other generated clients
* fix issue-7453; make jersey 2 generated code thread safe by following the withHttpInfo pattern used by many other generated clients
2018-02-18 22:35:08 +08:00
Matthew McGarvey
35ec8ca5ab
fix typo ( #7641 )
2018-02-18 22:28:48 +08:00
William Cheng
aa6b217bb9
[Ruby] Add auto-generated rubocop config file ( #7637 )
...
* add rubocop to ruby api client
* add new files
* fix ruby generator test case
2018-02-12 14:08:02 +08:00
Frederik Hahne
86697fedb2
7616 correct body params filename ( #7635 )
...
* correct body params file name
close #7616
* update gradle gatling plugin
2018-02-12 13:44:35 +08:00
wing328
803cafb995
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2018-02-11 17:29:10 +08:00
wing328
8ba9db67f5
remove oudated php, node server samples
2018-02-11 17:28:38 +08:00
Aykut Akin
0b845a57e4
[Rust] Changes hard coded body to dynamic parameter name - Fixes #6569 ( #7630 )
2018-02-10 22:27:44 +08:00
William Cheng
854b5012be
fix NPE when host is undefined ( #7633 )
2018-02-10 17:11:11 +08:00
Matthew McGarvey
0a28aad73b
[MAVEN PLUGIN] Checking for null configOptions before looking for property ( #7613 )
...
* Checking for null configOptions
* Inline configOptions check
2018-02-10 16:08:47 +08:00
jarlesat
f41683a5ba
Update README.md ( #7615 )
...
Added Husbanken who uses swagger-codegen to specify, document and generate api-stubs for internal web-services.
2018-02-08 16:32:14 +08:00
wing328
0c3fc84f52
minor enhancemnt to swift3 bin scripts
2018-02-08 15:14:49 +08:00
Aykut Akin
62b93fc5cb
[Python][Flask] Handles UUID format - Fixes #7469 ( #7507 )
2018-02-08 14:57:46 +08:00
Victor Orlovsky
62a930223f
[JAVA][Rest-assured] reqSpec() method has been added into api.mustache for requests custom… ( #7556 )
...
* reqSpec() method has been added into api.mustache for requests customisation (group operations)
* add - reqSpec() has been added to samples
2018-02-08 14:51:23 +08:00
Alexander Ovchinnikov
ee561fcd63
Add withXml option for Go language ( #7566 )
...
* Added support for application/xml content-type for GO language
Issue #7463
* Added test scripts for Go lang "withXml" feature
* Added samples for Go land "withXml" feature.
* "withXml" feature for Go language is only available for client.
2018-02-08 14:47:47 +08:00
Jim Schubert
8668175879
[aspnetcore] Fix string enum generation ( #7581 )
...
* [aspnetcore] Fix enum strings generation regression
* [aspnetcore] Regenerate sample
2018-02-08 14:43:47 +08:00
Xiaoxiao
b184fb1d9c
[Swift3] escape URL parameters ( #7529 )
...
* Escape URL parameters for Swift4 and update its Petstore sample
* Update the code style
* Update code style
* Update code style
* Remove break statements in switch for AlamofireImplementations
2018-02-08 00:19:04 +08:00
William Cheng
52f606b8dc
Fix Swift3 test cases and add pom.xml, travis config for iOS test ( #7608 )
...
* add pom.xml for testing objc, swift
* add travis config for testing swift, objc
* test swift, objc clients
* use ruby 2.4.2
* remove stack
* update swift3 petstore
* test with xcode9
* remove testing inline additional properties for swift3
* restore travis, pom
2018-02-07 23:13:48 +08:00
Clinton Christian
d38a090395
Add SessionM to list of companies using swagger. ( #7598 )
2018-02-07 16:46:06 +08:00
Jim Schubert
0e34bcf4e4
[csharp] ctor params should always be camelCase ( #7519 )
...
* [csharp] ctor params should always be camelCase
After PR #6305 , var names defaulted to PascalCase results in constructor
arguments also being PacalCase. Model properties and constructor
arguments have no reason to be the same case, and in fact may cause
issues (`name = name` will result in a compilation error).
This commit forces all constructor params in models to lowerCase.
This is a necessary change, for instance, if client SDK consumers assign
using named args:
var a = new Model(first = "", second = "")
The PacalCase default and update to constructor arg casing will break
existing consumers of the client.
See #7070 for more details and discussion.
* [csharp] Regenerate samples
* [csharp] Remove client models generated from a different spec.
* [csharp] Escape reserved words on camelcase/lowercase lambdas
* [csharp] Regenerate samples
2018-02-06 22:54:26 +08:00
chrishiggins34
1139f3f053
Add a link to eBook on top ( #7588 )
...
The eBook is hard to find as it's in the presentation section (bottom)
2018-02-06 22:35:42 +08:00
William Cheng
87a4e296c0
Add link for the FOSDEM 2018 presentation
2018-02-05 18:07:09 +08:00
Stephane Carrez
9ba74f4840
[Ada] Fix GNAT project and server skeleton to avoid sending a response when an error is returned ( #7574 )
...
* Fix the GNAT project for the client and server to avoid using unecessary projects on
the client side
* Define a minimal configuration for user and application definition
* Fix the server skeleton to emit the response only when the status code is 200
* Fix the Ada petstore GNAT project
2018-02-05 17:47:20 +08:00
William Cheng
dbe78e23e8
[Lua] Improve auto-generated test files ( #7568 )
...
* move lua spec folder, remove extra endline
* remove extra line
* remove duplicated import
2018-02-04 22:06:43 +08:00
William Cheng
6c79052ac4
Add auto-generated Lua spec files for APIs, models ( #7562 )
...
* add auto-generated lua spec files for api, models
* use partial header in test files
2018-02-03 00:12:01 +08:00
shwetas1205
dfbef43743
Fixed unicode error and supported allow_nonstandard_methods in tornado based python client ( #7560 )
...
* fixing "decoding Unicode is not supported" error for py2 when data is unicode
* allowing nonstandard methods for tornado python client.
* Making sure to return unicode when needed
2018-02-02 23:00:04 +08:00
micheleISEP
ea27924f5c
[Ada] changed default project/package name, to solve circular dependencies ( #7550 )
...
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450
* Updated the Ada petstore samples
* Committing "VERSION" file and the rest of the petstore samples
* Changed default project name and package name for Ada, not to have circular dependencies between gpr files.
2018-02-02 17:36:15 +08:00
REST United
0e52dcd0c0
Add restunited to the list of companies ( #7555 )
2018-02-02 14:26:07 +08:00
William Cheng
38a2c1dde9
[Lua] Fix Rockpec ( #7554 )
...
* fix lua rockspec
* use dot in the rockspec namespace
2018-02-02 14:03:58 +08:00
wing328
73231bda1f
Merge branch 'wingsofovnia-fix/issue-6553-completable'
2018-02-02 13:53:40 +08:00
wing328
5a2c3a6571
Merge branch 'fix/issue-6553-completable' of https://github.com/wingsofovnia/swagger-codegen into wingsofovnia-fix/issue-6553-completable
2018-02-02 12:19:44 +08:00
William Cheng
fec0363f7d
[Java] Add back byte array enhancement ( #7546 )
...
* add back byte array enhanceement
* add okio dependency to java rest assured api client
2018-02-01 21:49:22 +08:00
Michael Simons
9c79297d6a
Use latest version in dependencies snippet ( #7545 )
...
Please use the latest version in the snippet as the older ones may contain nasty bugs (like this one https://github.com/swagger-api/swagger-codegen/issues/6122 ). Thanks.
2018-02-01 21:22:41 +08:00
William Cheng
13e3db59e3
Add operationIdOriginal to store the original operationId ( #7522 )
...
* add operationIdOriginal to store the original operationId
* store the original operation Id in DefaultCodegen
2018-02-01 19:25:25 +08:00
wing328
d01a60cb14
update ts petstore files
2018-02-01 19:20:35 +08:00
wing328
3adbd86760
remove corrupted ts files
2018-02-01 19:18:14 +08:00
wing328
1fbc3768a2
use python 3.6.3 as default in travis build
2018-02-01 17:28:55 +08:00
Tomasz Prus
f6e0e297eb
[python-asyncio] tests and fixes ( #7235 )
...
* fix: creating ssl context and passing args/files/forms
* feat: python-async add tests
* chore: rebuild petstore sample for python, tornado and asyncio
* feat: add python asyncio to travis
* feat: print coverage (python-asyncio)
2018-02-01 17:26:38 +08:00
Erik Timmers
157e6b7fab
[angular] Add option to generate tagged unions ( #7245 )
...
Using the option `taggedUnions` will create a union type for each parent
type instead of extending interfaces. The union types are tagged by using
the discriminator values.
And also:
* Add support for aliases;
* Add support for read-only properties.
2018-02-01 17:20:50 +08:00
William Cheng
36f69a034d
remove trailing spaces in qt5 c++ templates ( #7525 )
2018-02-01 13:35:09 +08:00
Jon Schoning
2d0bafb6b2
[haskell-http-client] default InlineMimeTypes=true ( #7534 )
...
- default CLI option InlineMimeTypes to True, since it produces cleaner code
- update bounds on dependancies
2018-02-01 12:26:13 +08:00
William Cheng
6b9d38d40a
remove trailing spaces in ada template ( #7527 )
2018-01-30 14:39:13 +08:00
wing328
4b428e89b6
resume docker build for swagger codegen cli
2018-01-30 11:46:11 +08:00
wing328
2178abe472
resume docker build for swagger generator
2018-01-30 11:24:39 +08:00
William Cheng
8aa5642845
add dart style guide
2018-01-30 11:06:42 +08:00
Jörn Ahrens
f1638a659a
[Dart] Allow setting an accessToken for OAuth ( #7528 )
...
* dart - allow setting an accessToken for oauth
* Remove unneeded accessToken member
2018-01-30 11:04:04 +08:00
William Cheng
eb35870d11
remove trailing spaces in r templates ( #7526 )
2018-01-30 11:02:13 +08:00
wing328
5d92717dc9
update jaxrs to listent at port 10080
2018-01-30 00:23:08 +08:00
wing328
36b042d605
update ts aurelia petstore samples
2018-01-29 16:42:16 +08:00
Konstantin Simon Maria Möllers
7faaa091cd
Fix generated module imports in Aurelia APIs ( #7465 ) ( #7520 )
2018-01-29 15:46:51 +08:00
wing328
7c20316755
update artifict id for jaxrs datelib j8
2018-01-29 13:51:21 +08:00
wing328
cf21ac0327
update spring petstore samples
2018-01-29 01:38:13 +08:00
Adam Conway
d14318cf25
[JAVA][Spring]Optional params with delegate ( #7180 )
...
* Fixed data type for optional parameters in delegate
When generating using the delegatePattern and including an optional parameter, the api used a type of Optional<T> while the delegate used just T. This resulted in a java error in the generated code wen trying to call one from the other.
Fixed by using correct data type in delegate
Fix #7179
* Updated samples using supplied (Windows) scripts
* Revert "Updated samples using supplied (Windows) scripts"
This reverts commit 58b9c618085ac4201cfb011def96e14caaaff3f8.
2018-01-29 01:31:47 +08:00
Victor Orlovsky
abdc6759d3
@viclovsky has been added to template creators ( #7517 )
2018-01-29 01:16:21 +08:00
wing328
87cdddcf17
add CI test for JAXRS datelibrary java8
2018-01-29 00:35:09 +08:00
Dennis Kieselhorst
298ca8d352
#7123 use correct jackson date library when using Java 8 ( #7285 )
2018-01-29 00:23:06 +08:00
wing328
6bc84eeee1
add rest-assured to circleci jdk8 test
2018-01-28 22:33:24 +08:00
Victor Orlovsky
6debf749ae
[NEW API CLIENT] Rest-assured ( #7492 )
...
* Rest-assured http client has been added
ApiClient has been added
@Deprecated has been added for operation
{{{returnType}}} has been fixed
build.gradle.mustache, build.sbt.mustache, api_doc_mustache has been added
Samples has been added for rest-assured
Useless supporting files has been removed for rest-assured
Sample has been added for rest-assured
* Tests has been added
* Doc and tests has been fixed, JSON.mustache moved to common
2018-01-28 22:29:23 +08:00
William Cheng
c69925b53a
[Kotlin] Fix issues with threetenbp ( #7516 )
...
* fix kotlin threetenbp client
* fix typo in kotlin sample path
2018-01-28 21:40:22 +08:00
wing328
a811a48c3f
minor fix to kotlin client genrator due to merge conflict
2018-01-28 17:18:15 +08:00
magiepooh
914275fe79
[kotlin] support selection of datelibrary ( #7054 )
...
* [kotlin] support selection of datelibrary
* remove additional property from string
* replace string with boolean
2018-01-28 17:16:01 +08:00
jarlesat
88c5112f2e
Adds support for returning response in jaxrs-spec interfaces ( #7442 )
...
* Issue 7440 Added support for returning response in jaxrs-spec interfaces.
* Issue-7386 Updates samples for jaxrs-spec interfaces introduced in issue 7386.
2018-01-28 15:19:30 +08:00
William Cheng
6cd40e02b3
add macjohnny to the TS technical committee
2018-01-28 15:01:05 +08:00
Jon Schoning
9fba9c3255
[haskell-http-client] add config options: cabalPackage, cabalVersion, baseModule, requestType, configType ( #7515 )
...
- add new config options:
cabalPackage
Set the cabal package name, which consists of one or more alphanumeric words separated by hyphens
cabalVersion
Set the cabal version number, consisting of a sequence of one or more integers separated by dots
baseModule
Set the base module namespace
requestType
Set the name of the type used to generate requests
configType
Set the name of the type used for configuration
2018-01-28 14:59:04 +08:00
Stephane Carrez
0de7f972fe
Fix the Ada server skeleton to check the authsMethods in the Shared_Instance generic package ( #7514 )
...
[Ada] fix PUT request and authentication checks for the server skeleton
2018-01-28 14:55:36 +08:00
Stephane Carrez
4bd8fc6e8a
Fix 7511: [Ada] Client call is not correct with multiple parameters and application/x-www-urlencoded ( #7512 )
...
* Fix calling the 'Call' procedure to submit the request for the Ada client when a request
has form parameters
* Rebuild the files by running bin/ada-petstore.sh
2018-01-28 14:54:36 +08:00
micheleISEP
3035bc629b
[Ada] Hotfix/ada model sort ( #7491 )
...
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450
* Updated the Ada petstore samples
* Committing "VERSION" file and the rest of the petstore samples
* Redone the algorithm to sort the models by their dependencies, to create correct *-model.ads files.
To fix #7485
* changed tabs into spaces
2018-01-28 14:48:51 +08:00
Jean-François Côté
d1933b5fca
Fix a problem in the generation of typescript-jquery when we have enum in a query param ( #7506 )
2018-01-28 14:48:33 +08:00
William Cheng
1d661f3683
add jimschubert as kotline server template creator
2018-01-27 17:48:24 +08:00
Jim Schubert
7cad47dd39
[kotlin-server] --library=ktor (barebones implementation) ( #7412 )
...
* [tools] Make sed in new.sh more cross-platform
The -r option passed to sed is a GNU sed option for extended regex
evaluation. The -E option evaluates the same option, and is part of the
POSIX standard, meaning this option is available in GNU sed as well as
Apple's BSD variant.
This commit removes the need for users to install gnu-sed on Mac.
* [ktor] Initial ktor (kotlin-server)
This adds a very barebones implementation for a ktor server generator.
This supports metrics and typed locations. All endpoins are stubbed to
return HTTP/1.1 501 Not Implemented.
* [ktor] Initial sample
* [ktor] Adding options for select feature installs
Options available:
* featureAutoHead
* featureConditionalHeaders
* featureHSTS
* featureCORS
* featureCompression
* [ktor] Start of auth functionality
* [ktor] API key auth placeholder
* Add basic support for oauth2 configurations
ktor doesn't seem to explicitly accept oauth flow properties in its
configuration object. This may be a blocker for 'implicit' flow
definitions.
* Added example response objects
* [ktor] Route for apis with bodies, some cleanup
ktor locations are only supported for routes with path/query parameters.
Routes with body or file parameters must be declared with traditional
route api.
This commit also includes lambdas for simplifying processing in
library-based server generator code. As an example, ktor requires
lowercase http methods while spring (a potential future generator)
would require an uppercase such as HttpMethod.GET. It doesn't make sense
to modify these in the operations post-process method because that
format wouldn't be universally desirable.
The lambdas included in the KotlinServerCodegen:
* lowercase: converts all text to lowercase
* uppercase: converts all text to UPPERCASE
* titlecase: converts words (with configurable delim) to Title Case
* indented|indented_8|indented_12|indented_16: these helpers apply the
same desired indent to all lines of an included fragment's text.
* Fix some javadoc issues in lambda classes
* Update kotlin-server-petstore.bat
Change `kotlin` to `kotlin-server`
* Fix javadoc error messages in CI
2018-01-27 17:43:46 +08:00
William Cheng
a2410b210c
Add auto-generated rockspec file to Lua API client ( #7475 )
...
* add luarocks spec
* remove trailing spaces
* remove rockspec filename option
* update lua rockspec
* update rockspec based on feedback
* remove configuration which is not needed
* remove api_client, which is no longer needed
2018-01-27 17:09:45 +08:00
wing328
15b3dfbb80
update java petstore samples
2018-01-26 10:02:24 +08:00
Benjamin Roedell
47111b3241
Issue 4824 fix gson deserialize format byte ( #7473 )
...
* Build sample prior to code changes so differences are easier to decipher
* Add byte array type adapter for okhttp-gson (java8 only)
* Unit revealed that Gson (or GsonFire) defaults to escape = (equal sign) out of base64 string. Add disableHtmlEscaping() to gsonbuilder.
* Update specs and samples to include format=byte and include junit test of byte array serialization and deserialization.
* Implement recommendations by @cbornet including: Use okio.ByteString for base64 conversions instead of java 8 lib since the okhttp-gson client already includes okio. Remove setting to disableHtmlEscaping. Rename LocalByteArrayAdapter to ByteArrayAdapter.
* Update spec and sample for java okhttp-gson library client
* Undo addition of profilePhoto property. A format byte property is already available under the format_test definition.
* Put previously deleted tests back. Modified testFindPetsByTags() to verify exception since the server now returns a 500 for this request.
* Update test to pass when run against docker containerized server swaggerapi/petstore (heads up, this test fails if calling out to the internet published version of http://petstore.swagger.io )
2018-01-26 09:52:49 +08:00
William Cheng
2d898511a8
Add Play server samples to CircleCI ( #7501 )
...
* add play server samples to circle ci
* add pom.xml for java play framework
2018-01-26 09:48:51 +08:00
Jens Radtke
76907cacde
fix: declare property headerSelector ( #7495 )
...
The property was created dynamically, it's a more clean approach to
declare it as a member of the class.
2018-01-26 00:49:35 +08:00
William Cheng
2394fac677
update swagger annoatation version to 1.5.17 ( #7500 )
2018-01-25 23:29:20 +08:00
William Cheng
df10c725ab
Add lua test script, minor fix to Lua API files ( #7490 )
...
* add lua test script, minor fix to api files
* fix model import, avoid null header issue
* add space before equal sign
2018-01-25 22:01:04 +08:00
Jean-François Côté
e33b350c89
Fix an issue in Play Framework generator where a CSV is empty and transfered to the controllerImp with an empty item. ( #7496 )
2018-01-25 21:53:20 +08:00
etondoze
d1a296412e
Upgraded swagger-parser and swagger-core versions ( #7497 )
2018-01-25 21:35:11 +08:00
ehyche
a3d0f1d4bd
Swift4: make generated models structs instead of classes ( #7345 )
...
* Split up model template into partials
* Change models from class to struct.
This fixes issue https://github.com/swagger-api/swagger-codegen/issues/6941 .
In this change, we make our Swift4 generated model objects struct instead of class. However, in order to do this, we needed to handle the following edge cases:
* Inheritance and polymorphism (allOf)
* With classes, we use inheritance. So therefore, the parent properties are ONLY on the parent generated class, and the model object which derives from the parent class picks up those properties through inheritance.
* However, structs do not support inheritance. So we simply duplicate the parent allOf properties in the child struct.
* We have to handle the case where the property name on the struct may be different than the property name in the JSON. By default, the Codable protocol assumes that the JSON property name is the same as the struct property name. If they need to be different, then we generate a CodingKeys string enum, which contains the mapping between struct property name and JSON property name.
* additionalProperties. We cannot use the default Codable implementation for the additionalProperties, since it will look for an actual dictionary called "additionalProperties" in the JSON. Therefore, for model objects which have additionalProperties, we must generate our own implementation for the Decodable and Encodable protocols.
I have run ./bin/swift4-all.sh and ./bin/swift4-test.sh to re-generate all of the sources, and I have verified that the generated code in samples/clients/test/swift4/default builds and the unit tests pass.
* Update VERSION in .swagger-codegen
* Update generated code for swift4-test schema
2018-01-25 21:33:11 +08:00
Jeffrey Slort
2b84118c9f
removed isomorphic-fetch typing dependency ( #6894 )
...
* removed isomorphic-fetch typing dependency
removed postinstall command
* space
* regenerated samples
* updated security samples
* fixed missing url module
* added prepublish hook
* regenerated samples
* added npm build to build
2018-01-25 21:20:58 +08:00
wing328
0b4b25afff
update all c# pestore samples
2018-01-25 21:17:57 +08:00
kaasasolut
6caf7699e3
Fix little bug in csharp READMEs ( #7494 )
...
* Fix little bug in csharp READMEs
* Fix another little README bug
2018-01-25 18:40:42 +08:00
Esteban Marin
20305139b5
[Feature][TypeScript] request param enum as literal unions ( #7433 )
...
* #7365 : use enums string / number literals for request parameter if it is an enum
* #7365 : use enums string / number literals for request parameter if it is an enum
* #7365 : use enums string / number literals for request parameter if it is an enum
* #7365 : improve docs
* #7365 : move code to AbstractTypeScriptClientCodegen, remove redundant code in TypeScriptAngularClientCodegen, change type Object to Number in numericEnumValuesToEnumTypeUnion()
* #7365 : move code to AbstractTypeScriptClientCodegen, remove redundant code in TypeScriptAngularClientCodegen, change type Object to Number in numericEnumValuesToEnumTypeUnion()
* #7365 : allow parameter data type customizations
* #7365 : re-enable disabled unit test assertions
* #7365 : remove enum handling from type declaration generation
* #7365 : generate all typescript samples
* #7365 : re-enable disabled unit test assertion
2018-01-25 18:36:14 +08:00
William Cheng
6d4d9056f4
add joernahrens for refactoring dart client
2018-01-25 18:25:07 +08:00
Jörn Ahrens
a5e26a44ff
[Dart] - Rework Dart client generator to be flutter-compatible ( #7418 )
...
* copy mustache templates from dart generator
* Start with generator by copying the DartClientCodegen for now
* at least we know this is not for a browser..
* First working version for a simple swagger configuration
* remove browserClient parameter, since it doesn't make sense for flutter
* Take care of complex types to support object hierarchies
* add null safety
* add small test for options
* add flutter-petstore scripts
* generate flutter petstore output
* Add new flutter test project
* move generated client to make it usable
* use generated swagger petstore plugin
* add support for lists of objects
* add DateTime support
* fix listFromJson implementation
* fix NPEs in DateTime operations + place order in sample
* Small readme changes
* bugfixes
* Use flutter-compatible implementation as default dart implementation
* fix generated samples
* Make lists serializable, now all dart test cases are working again
* better list implementation
* use StringBuffer
* removed FlutterClientCodegen
* fix browser client
* fix dependencies
* swagger-browser-client for browserClient testcases
* fix scripts
* removed flutter scripts
* add map support and simplify code via using .toJson contract
* remove unneeded devDependencies
* Regenerated samples
* fix call to mapFromJson, it is not a constructor
* remove pointless string serialization
* regenerated dart samples
2018-01-25 18:18:53 +08:00
Aykut Akin
a3c97753fe
Fixes #7107 - [Rust] Handles UUID as string ( #7471 )
2018-01-24 12:54:57 +08:00
Articus
60e3339aa6
[Feature][PHP] Update for ze-ph generator ( #7472 )
...
* update for ze-ph generator stub to support Zend Expressive 2.1 and Path Handler 0.3
* ze-ph: for each operation generator creates special DTO model from its query parameters
* ze-ph: generation of extra TODO's for complex container type and update for samples
2018-01-24 12:36:24 +08:00
wing328
5a3a33b3c8
update java vertx server samples
2018-01-24 12:32:45 +08:00
ccozzolino
0b2d805699
Expose getter/setter for serverPort to facilitate testing ( #7480 )
2018-01-24 12:31:20 +08:00
William Cheng
fe22472634
add a link to ebook (polish version)
2018-01-22 23:25:48 +08:00
William Cheng
61e58d6496
Add R namespace file ( #7467 )
...
* add r namespace file
* rename NAMESPACE mustache file
2018-01-22 22:32:22 +08:00
William Cheng
cf4df630b7
Add Spring Petstore samples (async, java8-localdatetime) to CircleCI ( #7468 )
...
* add ci for spring mvc: async, localdatetime
* update artifactId for new spring samples
2018-01-22 21:35:51 +08:00
William Cheng
c3c67b6ef1
Revised core team members
2018-01-22 21:33:29 +08:00
micheleISEP
43f0e86923
Ada code generator corrected: "=>" instead of "->". Fixes #7450 ( #7456 )
...
* Ada generator generates "=>" (correct syntax) instead of "->". Fixes #7450
* Updated the Ada petstore samples
* Committing "VERSION" file and the rest of the petstore samples
2018-01-22 17:40:34 +08:00
Neeme Praks
fe2a443394
Fixes issue #7177 (SpringCodeGen dateLibrary "java8-localdatetime" option is ignored). ( #7178 )
2018-01-22 17:31:13 +08:00
jarlesat
5ea3d3bb18
Issue-7438 Fix that prevents generating interfaces when interfaceOnly is false. ( #7439 )
2018-01-22 15:57:17 +08:00
Reijhanniel Jearl Campos
9e1bbe0c1c
#7093 - Add maven wrapper ( #7356 )
2018-01-22 14:35:34 +08:00
wing328
6651f6bfa1
Merge remote-tracking branch 'origin/2.4.0'
2018-01-22 14:16:55 +08:00
Jim Schubert
8724719960
[csharp] Support arrays of arrays for properties and models ( #7400 )
...
* [csharp] Support composition on toJson
Previous implementation assumed specification only supports polymorphic
associations (via discrimator), although the code didn't seem to be
setup correctly for that in the first place. That is, the parent object
must define the discriminator (see
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#models-with-polymorphism-support ),
so NOT HAS parent AND HAS discriminator doesn't make sense.
From a C# perspective, base classes should have the method marked
virtual and derived classes should override the method. This supports
both composition and polymorphic definitions.
* [csharp] this.Configuration in api template
Unprefixed Configuration property access leads to ambiguous references
when spec defines a Configuration model.
* [csharp] Models/properties support nested arrays
Previous implementation didn't support multiple levels of array with
array items as OpenAPI spec supports. This means an object defined as
type: array with items = type: array|items=double (which is common in
GIS) would not be possible.
This implementation assumes generics in the nested type definitions, so
the above would generate List<List<double?>> for model parent types as
well as property type declarations.
* [csharp] Regenerate integration test sample
* [csharp] Set "Client" case sensitive as reserved
* [csharp] Regenerate security sample
* [csharp] Regenerate samples
2018-01-22 14:14:17 +08:00
Jim Schubert
1c4e6b7d46
[csharp] Fix ToJson to work with composition and polymorphism ( #7399 )
...
* [csharp] Support composition on toJson
Previous implementation assumed specification only supports polymorphic
associations (via discrimator), although the code didn't seem to be
setup correctly for that in the first place. That is, the parent object
must define the discriminator (see
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#models-with-polymorphism-support ),
so NOT HAS parent AND HAS discriminator doesn't make sense.
From a C# perspective, base classes should have the method marked
virtual and derived classes should override the method. This supports
both composition and polymorphic definitions.
* [csharp] Regenerate integration test files
* [csharp] Regenerate samples
* [csharp] Regenerate security sample
2018-01-22 14:13:50 +08:00
Jim Schubert
ed7af73f6b
[csharp] Reference this.Configuration in client api template ( #7394 )
...
* [csharp] this.Configuration in api template
Unprefixed Configuration property access leads to ambiguous references
when spec defines a Configuration model.
* [csharp] Regenerate samples
2018-01-22 14:04:19 +08:00
jarlesat
99fc272465
[JAX-RS][Spec] Removes throws Exception. ( #7437 )
...
* Issue-7435 Removes throws Exception.
* Issue-7435 Updates jaxrs-samples.
2018-01-22 13:48:59 +08:00
Tobias Wich
524f162e63
Use supportsES6 flag in ts compilation for language typescript-angular ( #7408 )
2018-01-22 13:40:20 +08:00
Stephane Carrez
7d2b49085f
Fix 7457: [Ada] wrong order for generated structures in *-models.ads ( #7462 )
...
* Fix the comparison between two model types to compare them recursively
and make sure we sort the model types according to their dependencies
* Run bin/ada-petstore.sh to update the generated Ada client samples
2018-01-22 13:27:39 +08:00
Stephane Carrez
2b2b85eec7
Fix 7459: [Ada] wrong JSON in POST operations ( #7460 )
...
* Fix Ada client generated code to avoid having a spurious body name for parameters passed in the body
* Run bin/ada-petstore.sh to update the generated Ada client samples
2018-01-22 13:21:09 +08:00
Tristan Sloughter
c73118524c
[erlang-client] Erlang request utils ( #7257 )
...
* [erlang-client] fix body param from being included path and base path to remove host
* [erlang-client] move request logic out of api functions to utils module
* [erlang-client] add support for passing http client configuration to requests
* [erlang-client] update auth handling
* [erlang-client] remove underscore2, replacing with original underscore + replaceAll
2018-01-22 13:18:35 +08:00
wing328
01a076c3fe
reenable pushing snapshot to maven repo
2018-01-21 23:21:42 +08:00
William Cheng
e7c9ab344c
Create CODE_OF_CONDUCT.md
2018-01-21 23:02:06 +08:00
William Cheng
174b14ba1e
Merge pull request #7426 from swagger-api/2.4.0
...
Merge 2.4.0 into master
2018-01-21 23:01:21 +08:00
wing328
6b7b8771cf
comment out update to docker image
2018-01-21 21:52:24 +08:00
magnolia
6db63c7a1f
deleted unnecessary notes ( #7454 )
...
https://github.com/swagger-api/swagger-codegen/issues/7398
2018-01-20 14:31:43 +08:00
ccozzolino
59ff4c198b
[Java][library: vertx] Add default value and required parameter support to vertx server temp… ( #7410 )
...
* Add default value and required parameter support to vertx server templates. Fix for #7409 .
* Added missing serviceId declaration to workaround #allParams section clearing the vendorExtensions map
2018-01-20 14:31:06 +08:00
Esteban Marin
ef832e7157
[Feature][Angular] improve docs angular import ( #7363 )
...
* #7354 : improve docs about importing multiple ApiModules, prevent https://github.com/angular/angular/issues/20575#issuecomment-356261374
* #7354 : prevent https://github.com/angular/angular/issues/20575#issuecomment-356261374 add error message about importing the HttpModule / HttpClientModule
* #7354 : generate sample files
* #7354 : generate README.md also for non-npm packages
2018-01-20 14:24:33 +08:00
Jinkui Shi
197b4481ef
[doc] akka-scala and Java README normalize ( #7382 )
...
* normalize scala-akka and Java README.mustache
* move version info to the project info section
2018-01-20 14:15:16 +08:00
Alessio Fachechi
6bf84d5fa7
fix of issue #7386 ( #7401 )
2018-01-20 14:05:32 +08:00
Kane Lai
a61d23265d
Fixed incorrect renaming of header and query param to camel cases for Kotlin Client template ( #7420 )
...
* - Fixed incorrect renaming of header and query param to camel cases
* Generated petstore code base on modified Kotlin template
2018-01-19 17:30:04 +08:00
chiman-jang
8e270f4651
add vendorExtensions field in CodegenSecurity class (ref: #7236 ) ( #7415 )
2018-01-19 16:24:10 +08:00
magnolia
7853308c8e
Rebuild Scalatra sample ( #7431 )
...
When creating the following PR, sample was generated without reflecting the last change.
https://github.com/swagger-api/swagger-codegen/pull/7393
With this commit, it will be synchronized
2018-01-19 16:20:41 +08:00
magnolia
1ee85de94e
Added Intelli J ignore ( #7423 )
...
.idea
*.iml
2018-01-19 16:20:12 +08:00
etherealjoy
ea4b948428
[qt5cpp] Add nullptr guard to prevent crash when empty model is being serialized ( #7434 )
...
* Small fixes to prevent crash when empty json body is provided.
* Updated PetStore example for Qt5
2018-01-19 15:36:45 +08:00
William Cheng
30c1448d78
Fix build.gradle for Java RESTEasy client ( #7448 )
...
* update release 2.3.1
* add jeff9finger to java tech committee
* fix build.gradle for java resteasy
2018-01-19 13:21:39 +08:00
William Cheng
7ddb87b4e5
add jeff9finger to java tech committee
2018-01-19 11:09:12 +08:00
William Cheng
2fd38fbbe2
update release 2.3.1
2018-01-17 12:36:45 +08:00
magnolia
7b8e409cf9
Added gitignore generation function ( #7402 )
...
Copy gitignore template from client
2018-01-15 21:00:26 +08:00
William Cheng
389344726e
Split CircleCI test into JDK7, JDK8 specified tests ( #7405 )
...
* split out circleci pom for jdk7, jdk8
* update circle config to use jdk7 pom
2018-01-15 16:46:33 +08:00
Jinkui Shi
612cfb7af4
[Akka-scala] Clean unused dependencies such swagger-core #7329 ( #7329 )
2018-01-15 14:14:10 +08:00
Euan Kemp
027df610b1
[Rust] Handle error response statuses ( #6865 )
...
* [Rust] Consider error statuscodes to be errors
* [Rust] Introduce 'ApiError' type for 4xx/5xx resp
This updates the previous commit which added an 'ErrorStatus' variant to
an 'ApiError' variant.
It does not specialize the error to the specific possible error
responses yet, rather returning a 'serde_json::Value' for any case.
This will lose any error messages which cannot be parsed as json and
instead return a json-parse error.
A future change should update the generated signatures such that the
returned future's error type is specialized to the specific errors that
may be returned by that api (and possibly a catchall json::Value still).
* [Rust] Regenerate petstore samples
* [Rust] Add error example to petstore sample
2018-01-15 11:38:11 +08:00
wing328
06d0078366
Merge branch 'joeboyscout04-issue-7044' into 2.4.0
2018-01-15 10:45:31 +08:00
wing328
15e7255154
Merge branch 'issue-7044' of https://github.com/joeboyscout04/swagger-codegen into joeboyscout04-issue-7044
2018-01-14 23:41:46 +08:00
wing328
44211c8811
Merge branch '2.4.0' of https://github.com/swagger-api/swagger-codegen into 2.4.0
2018-01-14 23:19:28 +08:00
Carl E Leiby
25a127240a
Generated retrofit2 petstore files
2018-01-14 23:18:28 +08:00
Carl E Leiby
72221b1cf9
Adding @Deprecated to retrofit2 client interfaces.
2018-01-14 23:17:45 +08:00
Reijhanniel Jearl Campos
3bd2da9a8b
[Java] #3204 - Fix build warnings ( #7364 )
...
* [Java] #3024 - Add build-helper-maven-plugin version to retrofit client template
* [Java] #3024 - Add build-helper-maven-plugin version to feign client template
* [Java] #3024 - Add build-helper-maven-plugin version to jersey client template
* [Java] #3024 - Add build-helper-maven-plugin version to resteasy client template
2018-01-14 21:13:56 +08:00
wing328
44853c31b6
update rust default user agent to promote swagger codegen
2018-01-14 18:25:04 +08:00
Tristan Bourvon
66be7a7910
[Rust] Add user agent handling for rust template (master) ( #7375 )
...
* Add user agent handling for rust template
* Run ./bin/rust-petstore.sh
2018-01-14 18:18:58 +08:00
wing328
ea8b184931
update circle pom to include scalatra folder
2018-01-14 18:13:25 +08:00
magnolia
d5c355a596
[Scalatra] Updated the version of Scalatra to the latest (2.6.2) ( #7393 )
...
* Updated the version of Scalatra to the latest (2.6.2)
- Updated Scalatra 2.6.2 (latest)
- Updated Scala 2.12.4
- Updated sbt 1.1.0
- Reduced dependent artifacts to a minimum
- Cleaned up build.sbt
- Changed the package name from client to server
- Set log output (logback)
- Updated web.xml for servlet 3.1
* rename package 'com.wordnik' -> 'io.swagger'
* Added rolling file appender to logback.xml
2018-01-14 18:11:37 +08:00
Euan Kemp
3029b7b0fb
[Rust] Format example with rustfmt ( #7339 )
...
This was handled via 'cargo fmt' on the current nightly rust. I also
moved a few lines around and deleted an old comment.
2018-01-14 18:03:12 +08:00
etherealjoy
0bf430a803
Qt5cpp Add support for nested containers ( #7340 )
...
* Disable creation of empty json fields and fields for primitives which were not set, but using default values
modelnamePrefix will be the one passed from command line or SWG if none
* Updates after review
Also common http files are splitted
Update Petstore examples
* Small Fixes for cleaning up arrays of arrays/maps
* Changes
- Api Body pass by Reference, avoid seg fault due to deletion of auto constructed object passed as parameter.
- Support Maps and Arrays upto a depth of 2
- Refactor Helpers to handle Maps and simplify code
* Remove size check due to possible incorrect type
* Update PetStore Examples for Qt5 C++ and small fixes for QDate/QDateTime
* Updates after review. Fixes typo and remove usage of auto keyword.
* Restored usage of auto keyword.
2018-01-14 17:47:54 +08:00
Akihito Nakano
809e1f4c93
[PHP] Cleanup tests ( #7333 )
...
* Regenerate test/UserApiTest.php
The same implementation as testLoginUser() is in tests/UserApiTest.php
* Delete test/Client/ObjectSerializerTest.php
The same implementation is in tests/ObjectSerializerTest.php
* Update Petstore sample
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2018-01-14 17:47:08 +08:00
William Cheng
094f69bc9e
fix missing "`", removed duplicated Huawei entries
2018-01-14 17:44:46 +08:00
wing328
2c628aa587
Merge branch '2.4.0' of https://github.com/swagger-api/swagger-codegen into 2.4.0
2018-01-14 17:41:37 +08:00
Darío Hereñú
94746bb23d
Typo
...
on @266. Plus minor fixes (proposal)
2018-01-14 17:41:21 +08:00
Ben Mordue
429b96ae7e
[JAVA] equals and hashCode for models with byte[] and binary strings ( #7341 )
...
* equals and hashCode methods for POJOs with byte array vars
* Also fix equals and hashCode for binary vars
* Ran script to update samples
2018-01-14 17:39:32 +08:00
Marian Steinbach
90859575eb
Fixing variable name typo (instane -> instance) ( #7353 )
2018-01-14 17:37:37 +08:00
wing328
fb73b8c4de
update r petstore samples
2018-01-14 17:18:40 +08:00
wing328
97298bdb03
Merge branch '2.4.0' of https://github.com/swagger-api/swagger-codegen into 2.4.0
2018-01-14 17:14:43 +08:00
sneumann
9e06f7063f
Fix assignment of new object instance to variable ( #7379 )
...
* #7359 Fix - use reflection to instantiate non-generated class (#7360 )
* add tests for java vertx petstore
* add swagger example to README.md (#7368 )
* Fix assignment of new object instance to variable
Fixes `Error in foobar$fromJSONString(s) : object 'CategoryObject' not found`
Discussion in https://github.com/swagger-api/swagger-codegen/issues/6520#issuecomment-357132746 ,
thanks @wing328 for encouraging.
2018-01-14 17:14:35 +08:00
Euan Kemp
0f6696089f
[Go] Use consistent indentation in readme ( #7336 )
...
* [Go] Use consistent indentation in readme
* [Go] Regenerate petstore sample
2018-01-14 17:05:18 +08:00
antihax
72abb20f2e
[Go] Fix operation files clobbering model files. [2.4.0] ( #7337 )
...
* Prevent operation files clobbering model files.
* Update Tests
2018-01-14 17:00:17 +08:00
Illia Ovchynnikov
642c0566de
Use Rx2 Completalbe for Void Retrofit2 responses
2018-01-13 14:15:44 +01:00
wing328
73c338be58
Merge remote-tracking branch 'origin/master' into 2.4.0
2018-01-13 15:54:41 +08:00
wing328
4bdaf37ca5
update pom.xml in swagger components to 2.3.1
2018-01-13 15:45:05 +08:00
wing328
714b94d96c
v2.3.1 release
2018-01-13 15:42:56 +08:00
William Cheng
8aef689d1b
[Java] allow setting boolean getter (is, has, get) in templates ( #7344 )
...
* allow setting java boolean getter (is, has, get) in templates
* update msf4j boolean getter
* update jaxrs-spec boolean handler
* update jaxrs boolean getter
* update reasteasy, spring, cxf boolean getter
* update inflector boolean getter
* update java play boolean getter
* update java boolean getter
* update spring samples
2018-01-13 15:19:02 +08:00
SergeyLyakhov
4241b11d97
[Java][jersey2] Fix logging for jersey2 + java6 ( #6715 ). ( #7348 )
...
* [Java][jersey2] Fix logging for jersey2 + java6 (#6715 ).
* Fix formatting according to comments.
2018-01-12 21:16:23 +08:00
Jim Schubert
75c0180c71
[scala] Escape reserved words, support Array[Byte] ( #7378 )
...
* [scala] Escape reserved words, support Array[Byte]
Previously, Array[Byte] was compiling to ArrayByte. This provides a type
mapping to output the correct type.
This also escapes reserved words with grave accents, as is most common
in Scala. Escaping with an underscore prefix breaks serialization (in
Jackson, for example) unless templates are modified manually. Escaping
using grave accent should unblock most serializers from requiring
template modifications.
* [scala] Regenerate integration test outputs
* [scala] Regenerate samples
* [scala] Remove unused imports in related codegen files
2018-01-12 21:14:30 +08:00
qct
acf70d0481
add swagger example to README.md ( #7368 )
2018-01-11 23:03:36 +08:00
wing328
50b599719d
add tests for java vertx petstore
2018-01-11 16:36:23 +08:00
ccozzolino
247fbd4435
#7359 Fix - use reflection to instantiate non-generated class ( #7360 )
2018-01-11 16:31:37 +08:00
wing328
3930b5b0a1
Merge remote-tracking branch 'origin/master' into 2.4.0
2018-01-11 13:40:35 +08:00
Five & Done
1bb9207c9b
Standardize all isRestfulxxx methods. ( #7352 )
...
* [Scala] Fix async helper methods when body is optional (#7274 )
* [Scala] Fix async helper methods when body is optional
Closes #7272
* Update petstore sample
* Standardize all isRestfulxxx methods.
Change 'equals' method to 'equalsIgnoreCase' for isRestfulIndex method in Operations. This matches isRestfulCreate, isRestfulShow, isRestfulDestroy
2018-01-11 12:48:37 +08:00
Jim Schubert
65bda3e7b6
[scala] updates for client default values, required attributes ( #7286 )
...
* [scala] Fix default values in scala client
This uses consistent logic for optional types with default values in the
scala client. Also, uses Option(default) instead of Some(default) to
guard against people defining defaultValue = null. Option(null) becomes
None while Some(null) defines a null value explicitly and will break
maplike operations.
* [scala] Regenerate client sample
* [scala] Add missing json4s import, which will be added by another PR but allows current samples to generate
* [scala] Include integration tests for required attributes support
* [scala] Support string types with formats
This adds support for better support of type=string and
format={date,date-time,binary,byte}. Previously, binary and byte were
inconsistently defined as strings rather than byte arrays, while
date/date-time were parsing default values into formats that did not
match OpenAPI/Swagger 2.0 specifications for full-date and date-time.
We may want to consider pulling in json4s-ext to support wider date
formats and moving to date=LocalDate and date-time=ZonedDateTime.
This will have breaking changes for consumers expecting binary/byte to
be strings rather than byte arrays.
* [scala] Unique parameter names in integration test, to avoid seemingly conflicting names
* [scala] Regenerate client sample
* Sort file listings in AssertFile.java
Per File#list() javadocs:
There is no guarantee that the name strings in the resulting array
will appear in any specific order; they are not, in particular,
guaranteed to appear in alphabetical order.
I'm unable to repro directory listing failures on OS X High Sierra or
Ubuntu 16.04 under Parallels, so it's not clear to me if listing order
is indeterminate per-platform or the behavior is just not defined and
up to the platform's installed runtime. Sorting the array of strings
prior to comparison should resolve this issue on every platform/runtime.
* [scala] exclude api tests for integration test gen script
Script should match options in the integration test class
* [scala] Temporarily disable client integration tests
CI doesn't seem to pick up template changes in integration tests.
Disabling scala client integration tests, pending investigation of the
issue.
* [scala] Remove redundant json4s import
* [scala] Regenerate integration test
* [scala] Regenerate sample
2018-01-10 13:24:57 +08:00
Jean-François Côté
ebf4efe3ea
Fix issue #6867 : The apiPackage option was ignored ( #7316 )
...
* Fix issue #6867 : The apiPackage option is ignored in the template for Java Play Framework.
* use openjdk7 in travis to ensure it works with jdk7
2018-01-10 13:15:49 +08:00
William Cheng
e679254158
add link to Sumit Maingi blog post
2018-01-10 12:00:37 +08:00
Greg Marzouka
7cc738aa7c
[Scala] Fix async helper methods when body is optional ( #7274 )
...
* [Scala] Fix async helper methods when body is optional
Closes #7272
* Update petstore sample
2018-01-10 00:30:56 +08:00
Joseph Elliott
673be4e88f
exclude commons package from org.apache.oltu.oauth2 to provide a more long-term fix.
2018-01-08 14:41:57 +01:00
Joseph Elliott
c642d8a89b
Roll back oltu_version to 1.0.0 to fix #7044
2018-01-08 14:25:32 +01:00
wing328
16e3226c8a
Merge remote-tracking branch 'origin/master' into 2.4.0
2018-01-08 18:01:20 +08:00
Euan Kemp
26a665c771
[Rust] Recommend style based on 'rustfmt' defaults ( #7335 )
...
Rustfmt is widely accepted in the rust community. The actual style it
enforces is not completely stable, but running a reasonably recent
rustfmt and reading the short rfc-based style guide seems better than
nothing by a long shot.
2018-01-08 10:56:01 +08:00
Mehdi Jouan
c7f12d6c2d
[Spring][Java] fix support of long values for @Max and @Min annotations ( #7227 )
...
* add support of long values for @Max and @Min annotations
* run shell scripts for java and spring
* fix import issue after running shell script
2018-01-08 00:22:06 +08:00
William Cheng
f7779c545e
refactor abstract scala codegen ( #7334 )
2018-01-08 00:20:38 +08:00
wing328
a85162fe33
Merge branch '2.4.0' of https://github.com/swagger-api/swagger-codegen into 2.4.0
2018-01-08 00:15:26 +08:00
wing328
8348d535ab
Merge branch 'ehyche-ehyche_update_reserved_words_swift4' into 2.4.0
2018-01-08 00:14:17 +08:00
wing328
99823c04b9
update Swift4ModelTest.java with _id
2018-01-08 00:13:49 +08:00
wing328
0a6826d284
Merge branch 'ehyche_update_reserved_words_swift4' of https://github.com/ehyche/swagger-codegen into ehyche-ehyche_update_reserved_words_swift4
2018-01-08 00:05:49 +08:00
Sunrin SHIMURA
f5adbec1ff
[Rust-Server] Use string literal based mime initialization ( #7212 )
...
* Use string literal based mime initialization to avoid invalid token error
* canonicalize mimetypes before checking
2018-01-08 00:00:12 +08:00
wing328
e51223eef1
Revert "Replaced \t with spaces ( #7265 )"
...
This reverts commit 14a2c81adb .
2018-01-07 23:46:33 +08:00
ccozzolino
d9745962be
[Java:vertx] Initialize router in init method and re-use router member to create S… ( #7234 )
...
* Initialize router in init method and re-use router member to create SwaggerRouter
* Added generated samples for 7320 fix
* Fixed alignment to 4 spaces for 7320 fix
2018-01-07 23:37:37 +08:00
Jean-François Côté
193432ef52
Added optional extra JQueryAjaxSettings at the class and function level ( #7238 )
2018-01-07 23:21:43 +08:00
wing328
007974e3de
Merge remote-tracking branch 'origin/master' into 2.4.0
2018-01-07 23:13:24 +08:00
craffael
9a284776d8
[Java] Fix serialization of the discriminator field when using GSON ( #7075 )
...
* set discriminator on object construction...
* regenerate all java samples
* run bin/java-msf4j-petstore-server.sh
* remove extra newline
2018-01-07 23:10:32 +08:00
Greg Marzouka
14e7158164
[Scala] Fix missing json4s import ( #7271 )
...
* [Scala] Fix missing json4s import
Closes #7270
* Update petstore sample
2018-01-07 22:50:30 +08:00
westse
ea3d039717
[scala] make stripPackage name configurable via property ( #7226 )
...
* Make stripPackage name configurable via property
- Needed because some APIs (e.g. Kubernetes) include version information in packages. Stripping causes many generated API and model classes to be named the same, causing a last-one-wins situation which is unacceptable.
* Per PR review, ensure stripPackageName Boolean property and log warning
2018-01-07 21:47:25 +08:00
wing328
b7f4f3e058
Merge branch 'csharp-enum-cleanup' of https://github.com/jimschubert/swagger-codegen
2018-01-07 19:11:40 +08:00
wing328
f9105c8bdc
deploy snapshot version 2.3.1
2018-01-07 18:47:24 +08:00
Stephane Carrez
362625bfa9
[Ada] Add Ada support for server code generator #6680 ( #7256 )
...
* Add Ada client petstore samples
- Add script to generate Ada client support with swagger-codegen
- Add files to build the Ada sample
- Add main program to use the generated client samples API
and connect to the server to perform some operations
* Add some description for the samples
* Update the documentation to explain how to build, how to use the generated Ada client code
* Add server support for path parameters
- Update postProcessOperations to scan each path parameter and emit a x-path-index
vendor attribute to tell the index of the path parameter
* Add and fix Ada server code package declaration
- fix declaration of operations
- generate a generic package that must be instantiated with the target server implementation
and which provides the skeleton (deserialization and serialization of data)
* Implement the Ada server side operations
- extract body, query parameters, path parameters
- serialize the result
- register operations to the server according to the path/routes
* Update the code generation to generate server Ada implementation code
* Improvement of Ada server support: generate the swagger.json template file
* Define toModelName operation to the creation of a model identifier
* Add support for server permission generation
- collect the security scopes in postProcessAuthMethod() method and make sure
these scopes have unique identifiers. Some scopes correspond to URLs
but others correspond to pseudo identifiers.
* Use the #lambdaAdaComment filter to indent correctly a multi-line description
* Fix model generation to support arrays
* Update the generated GNAT project file
* Refactoring and improvement of server code generation
- Change the server generated code to pass a Context_Type object
to allow the server implementation to get/set headers in the request/response
and control what is put in some responses
- Generate the security permissions based on the scopes that have been collected
* Server code generation improvement
- Fix generation of GNAT project
- Generate the intermediate Ada packages if necessary
- Generate the server main
* Ada server main template
* Ada server code improvement
- Add support to generate server permission verification
- Fix the GNAT project definition
- Templates for Ada intermediate packages
* Skeleton for the server side implementation
* Generate an empty Ada server implementation
* Templates for the Ada server implementation
* Add a README.md file and a GNAT config.gpr file
* New templates to document the generated Ada server
* Add server configuration file for the Ada server
* Fix the log message in the Ada server to report the correct URI to connect to
* Generate the Ada server configuration file
* Improvement of Ada code model to support nullable types
* Update the Ada server templates
* Refactor the Ada code generator
- separate the Ada client and Ada server code generators
- register the Ada server code generator under the name 'ada-server'
keep 'ada' for the client Ada code generator
- moved the common Ada code operation supports to the AbstractAdaCodegen
* Improvement and cleanup of Ada client and server code
- new template for the client main program
- fix the GNAT project template for client or server programs
- remove unused options to better use the --model-package option
* Fix the GNAT project file name to use a lower case name
Fix the default GNAT config
Fix the headers of intermediate Ada package files
* Regenerate the model and client Ada files
* Update the Ada client sample to take into account the Nullable types
* Regenerate some files with Ada Swagger Codegen
* Ignore generation of petstore.gpr
2018-01-07 18:44:20 +08:00
William Cheng
743bc650ab
add shijinkui to scala technical committee
2018-01-07 18:12:55 +08:00
etherealjoy
c7ff303779
[qt5cpp] Disable creation of empty json fields and handle prefix in model generation ( #7206 )
...
* Disable creation of empty json fields and fields for primitives which were not set, but using default values
modelnamePrefix will be the one passed from command line or SWG if none
* Updates after review
Also common http files are splitted
Update Petstore examples
2018-01-07 17:50:44 +08:00
wing328
0469975632
minor enhancement to scala gatling
2018-01-07 17:38:55 +08:00
ryandavis84
6d2d4298df
Gatling generator2 issue #6927 ( #6934 )
...
* Initial commit, Generates everything necessary to run a performnace test against a swagger api. Just have to fill out the CSV feeder files with your data.
* adding samples and gatling-petstore.sh file
* Extending the AbstractScalaCodeGen
* Checking in the CodegenConfig file as it is needed to generate
* removing escaped reserved words
* Changed model to be able to make all variables utilize an underscore while json fields are still just the variable name
* Changing underscore to var as interpolation can not start with a _ in scala
* Fixing path params
* allow you to pass in a system property to define which config to use as a workload profile, use rate and instance multipliers to scale up and down your test, added ramp down after the test is completed, added global assertions.
* Addressing PR feedback
* missed semi-colon
* Bringing everything up to date with the renames that were suggested
2018-01-07 17:18:36 +08:00
ehyche
97ad90578d
Split up model template into partials ( #7297 )
2018-01-07 16:57:58 +08:00
Jon Schoning
bca2b9fb5b
[haskell-http-client] handle */* mimetype correctly & split api modules & allowNonUniqueOperationIds ( #7254 )
...
* [haskell-http-client] handle */* mimetype correctly
* [haskell-http-client] generate separate api modules, for each child api
* [haskell-http-client] add cliOption "allowNonUniqueOperationIds"
When cli option "allowNonUniqueOperationIds" is true,
allows *different* API modules to contain the same operationId,
and then each API must be imported qualified.
2018-01-07 11:59:55 +08:00
Oleksandr Slynko
919f867eba
[go] Fix go client formatting ( #7283 )
...
* Fix some go client formatting issues
* Fix go client go imports
* Run `goimports -w .` on examples directory
* Sort imports in api
* Add new line between each property
Before secret feature was used to add new line using two property
declaration in the same line. There should be no new line before
first property. The easiest way is to use `-first` special
property
https://github.com/samskivert/jmustache#-first-and--last
New line are required so `goimports` won't reformat whitespaces between
property name and type.
* Change whitespaces to tabs
* Fix whitespaces in api_client
There is a new line between each service to prevent `goimports` from
adding whitespaces between types and names
* Fix more whitespaces
There was a need to set special delimeter for formatting in the commit.
Go slices use curly braces and `jmustache` got confused when found
triple curly braces.
* Fix whitespaces in configuration.mustache
* Fix whitespaces for api response
* Support for optional description
Do not add whitespace if description is missing
* Add new lines between enum values to prevent formatting
* Generate go code from current code
- imports are not sorted :(
- there are extra whitespaces for different languages. I don't know why
* Run generate for security tests
2018-01-07 11:53:55 +08:00
etherealjoy
6afc0e9344
Fix for #7198 , use QJsonObject instead of QJsonArray for maps ( #7204 )
...
[C++][Qt5] use QJsonObject instead of QJsonArray for maps
2018-01-07 11:50:22 +08:00
Akihito Nakano
4e5ec4c71c
[PHP] Cleanup StoreApiTest ( #7248 )
...
* Move test codes in "test" to "tests".
* Simplify class name specification
* Regenerate test/Api/StoreApiTest.php
testGetInventory already exists in tests/StoreApiTest.php
2018-01-07 11:46:31 +08:00
Dennis Kieselhorst
ee5709177a
[Java] update CXF to latest release (3.2.1) ( #7284 )
...
* update CXF to latest release (3.2.1)
* update CXF to latest release (3.2.1) - samples update
2018-01-07 11:43:34 +08:00
Akihito Nakano
50d217894c
[PHP] Cleanup EnumTest ( #7282 )
...
* Move test codes in "test" to "tests"
- EnumClassTest
- EnumTestTest
* Regenerate test/Model/Enum(Class|Test)Test.php
2018-01-07 11:42:44 +08:00
Bernat Ràfales
9b5bba0193
Correct minor typo in Ruby gemspec files ( #7263 )
...
[Ruby] Correct minor typo in Ruby gemspec files
2018-01-07 11:41:14 +08:00
marcindanek85
14a2c81adb
Replaced \t with spaces ( #7265 )
...
* Added copying array type descriptors (isBoolean, isNumber, etc) to specify the type of items in array
* Replaced \t with spaces
2018-01-07 11:40:10 +08:00
Ben Wells
7479fc5361
Generate swagger yaml for go client ( #7281 )
2018-01-07 11:37:40 +08:00
Akihito Nakano
fa9fc4b45b
Delete ApiClient ( #7305 )
2018-01-07 11:34:17 +08:00
Akihito Nakano
68a4552741
Tweak test doc comment ( #7280 )
2018-01-07 11:23:05 +08:00
Akihito Nakano
fa3e72e6e3
[PHP] Cleanup AnimalFarmTest ( #7279 )
...
* Move test codes in "test" to "tests"
* Regenerate test/Model/AnimalFarmTest.php
2018-01-07 11:21:53 +08:00
William Cheng
4bb6d8993c
fix removeOperationIdPrefix in additional properties ( #7301 )
2018-01-07 11:15:13 +08:00
William Cheng
a5009b592e
add shijinkui to scala technical committee
2018-01-07 11:05:58 +08:00
wing328
bedd4c880e
use openjdk7 in travis to ensure it works with jdk7
2018-01-07 11:04:48 +08:00
wing328
7f0dca7ac2
update version to 2.4.0-SNAPSHOT
2018-01-07 11:04:05 +08:00
Jinkui Shi
30bd6f680d
[akka-scala] License info add in template header #7321 ( #7322 )
...
* [akka-scala] License info add in template header #7321
* generate petstore by akka-scala teplate
2018-01-07 11:00:57 +08:00
Kevin Brey
3af51d1b36
docs(readme): update link to contributing guid ( #7332 )
2018-01-07 10:49:38 +08:00
Jean-François Côté
3465f2918e
Fix a regression bug that was introduce in a recent commit. Removed the tabs that were causing error in Play Framework ( #7241 )
2018-01-07 10:48:49 +08:00
Jean-François Côté
0a9c6f56c8
Fix issue #7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. ( #7313 )
2018-01-07 10:33:46 +08:00
Aaron McGinn
6c2a583bcd
Java8 fix ( #7260 )
...
* [JavaPKMST-Server] Change Java 8 code to Java 7 to meet project specifications
* Revert "Update readme to Java 8"
This reverts commit 54ce4caafc .
2018-01-07 10:32:40 +08:00
wing328
9c68c00fa5
update to 2.3.1-SNAPSHOT
2018-01-07 09:53:01 +08:00
William Cheng
3c7505670b
fix typo, update 2017 to 2018
2018-01-04 21:56:20 +08:00
Jinkui Shi
8b9c8ad618
[Doc] add huawei cloud to companies list #7308 ( #7309 )
2018-01-04 18:10:01 +08:00
Louis
1b7f654f11
Adding Peatio opensource as reference project ( #7267 )
...
Peatio is an opensource project and all API client are generated using codegen.
2018-01-03 10:58:43 +08:00
joy8zhang
bf35e8bbf2
Update README.md ( #7298 )
...
Added Hootsuite under Companies/Projects using Swagger CodeGen
2018-01-03 10:38:33 +08:00
joy8zhang
07977462c8
Update README.md ( #7299 )
...
* Update README.md
Added new resource `http://code.hootsuite.com/using-protocol-buffer-to-generate-sdk-at-hoosuite/?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3By4ATz3SDRXyvXJJ14LQysQ%3D%3D ` onto `Presentations/Videos/Tutorials/Books`
* Update README.md
Added extra space
2018-01-03 10:37:41 +08:00
Eric Hyche
6c6cf1c09c
Re-organize the reserved words for Swift4
2018-01-02 10:32:55 -05:00
William Cheng
8e551a76b4
add link to chinese ebook
2017-12-29 13:49:46 +08:00
William Cheng
54ce4caafc
Update readme to Java 8
2017-12-27 11:27:37 +08:00
William Cheng
0301950dcb
move bvwells to go tech comm
2017-12-24 00:49:03 +08:00
William Cheng
8ae11847d3
update current stable version in readme
2017-12-22 23:54:21 +08:00
wing328
2cf6b98049
skip push snapshot to avoid error
2017-12-22 23:09:41 +08:00
wing328
63f36ad864
comment out checkstyle in circleci pom.xml
2017-12-22 12:45:30 +08:00
wing328
57cfd99ef3
comment out check style plugin
2017-12-22 12:33:32 +08:00
wing328
21f8d5fb1b
Revert "update version to 2.4.0-SNAPSHOT"
...
This reverts commit 8d2fa6b8ea .
2017-12-22 12:07:26 +08:00
wing328
e96fd89767
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-12-22 12:00:11 +08:00
wing328
e798c2b30e
update ci config to install codegen locally
2017-12-22 11:59:40 +08:00
William Cheng
591b4f2217
update doc to 2.3.0
2017-12-22 11:48:47 +08:00
wing328
8d2fa6b8ea
update version to 2.4.0-SNAPSHOT
2017-12-22 11:42:05 +08:00
wing328
ea9340e84d
update version to 2.3.0
2017-12-22 10:45:02 +08:00
manuc66
a050907d1f
fix net35 with JsonSubTypes ( #7043 )
...
* upgrade JsonSubTypes to 1.2.0
* update samples
* add SwaggerClientNet35
* re-generate
* fix the linux build script
2017-12-22 00:31:44 +08:00
William Cheng
587dc20e06
[Javascript] Set ES5 as default ( #7239 )
...
* default js client to es5
* update js option wording
2017-12-22 00:08:30 +08:00
Jean-François Côté
572bafe2a7
#7201 : Take the modelPropertyNaming property into account again ( #7202 )
2017-12-21 18:28:30 +08:00
William Cheng
c1cbf32d17
add trenneman as elm creator
2017-12-21 16:37:53 +08:00
William Cheng
0924771fc3
add bvwells to go technical committee
2017-12-21 15:19:06 +08:00
Daniel
dbfe4ec119
Video "Building an API with Swagger" ( #7237 )
...
Added my video to building a Swagger API using the Swagger editor and NodeJS.
2017-12-21 15:17:32 +08:00
Ramzi Maalej
9dde8525ec
[Akka-Scala] This is a fix to a bug introduced by this PR #7172 ( #7228 )
...
* Add missing import
* Update petstore app
2017-12-21 10:56:36 +08:00
Erik Timmers
d6539ba3c8
Add Elm language - BETA ( #6947 )
...
This is the initial Codegen for Elm 0.18.
Please try it out and provide feedback.
Not yet supported:
* path variables;
* additionalProperties;
* authentication;
* recursive types.
2017-12-20 22:26:46 +08:00
Jon Schoning
538f28e568
bump stack resolver to lts-10.0 ( #7221 )
2017-12-20 21:55:23 +08:00
Ben Wells
83fb107749
Create abstract go codegen base class ( #7197 )
...
Remove tabs
2017-12-19 23:41:02 +08:00
William Cheng
350a97095b
[Go] rename local variable "file" to "localVarFile" ( #7214 )
...
* comment out pkmst test for the time being
* rename file to localVarFile
2017-12-19 23:12:12 +08:00
sanshuman
8a45ac8426
added prokarma to the name of the company ( #7215 )
2017-12-19 23:04:39 +08:00
William Cheng
bd19111ff0
[Java][PKMST] Move resource folder ( #7213 )
...
* comment out pkmst test for the time being
* move pkmst resource folder
2017-12-19 22:16:16 +08:00
wing328
3782a878ab
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-12-19 21:36:02 +08:00
William Cheng
6946ee04f4
add java pkmst owner
2017-12-19 21:12:14 +08:00
wing328
d0afd25099
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-12-19 21:07:23 +08:00
William Cheng
41aa80ada7
[TS][Fetch] Use unescaped media type value ( #7210 )
...
* comment out pkmst test for the time being
* use unescaped mediaType in TS fetch
2017-12-19 18:21:22 +08:00
wing328
68987636bf
comment out pkmst test for the time being
2017-12-19 17:26:15 +08:00
William Cheng
37cd8b52d0
[Java][PKMST] rename pkmst to java-pkmst, update scripts/batch files ( #7209 )
...
* rename pkmst to java-pkmst, update scripts/batch files
* update pkmst batch file
2017-12-19 17:25:48 +08:00
Asad Saeeduddin
a3ca8d55e2
[TypeScript-Fetch] Support for non-JSON body params ( #6994 )
...
* Commit leftover snapshot changes
* Add logic to deal with non-JSON body params
If the spec specifies a list of consumes MIME types, default to the
first MIME type in the list instead of "application/json" (the user may
still override this by passing "Content-Type" in options.headers).
Additionally, only perform explicit JSON serialization if the data type
of the body parameter is not "string", or if it is string, only when the
content type is "application/json".
* Update snapshots
2017-12-19 17:20:16 +08:00
sanshuman
cb59591eff
pkmst- Prokarma microservice toolkit for java ( #7023 )
...
* Added pkmst-microservice toolkit
* formatted
* replaces tab with blank spaces
* adding documentation folder
* adding documentation folder
* Update readme.mustache
Added feature set offered by pkmst
* updated readme
* Update io.swagger.codegen.CodegenConfig
Arranged pkmstServerCodeGen and SymfonyServerCodegen in aphabatical order
* Update readme.mustache
* renamed according to convention and added typeinfoannotation
* removed tabs
* updated codegen which extends abstractjavacodegen
* Added the script files and rectified the errors
* folder name changed and commons -lang3 version upgraded
* updated readme.mustache
* updated logging filter
* Added petstore to samples and updated the pom for the same
* Added java-pkmst sample to pom.xml.circleci
* updated readme.mustache
2017-12-19 16:12:44 +08:00
Sunrin SHIMURA
7d96f61e5d
[Rust-Server] use status codes as the variants of the response enums instead of descriptions ( #7125 )
...
* use status codes in the variants of the responses instead of message
* samples
* add missing {{code}}
* use human friendly idents if possible
* generate samples
* salvage an oversight
2017-12-19 14:40:35 +08:00
antihax
dc69138de5
Go: Return error body with >= 300 errors ( #7192 )
...
* Report better errors
* update tests
2017-12-18 23:03:47 +08:00
David Noel
ad7a8200f0
Issue #6471 Add java8, interfaceOnly, delegatePattern to generated server stubs ( #6476 )
...
* java 8 interface only delegate method mode
* typo correction
* Update samples with ./bin/spring-all-petstore.sh
* change delegate prefix to "do" and make delegate method a default method that returns an OK status code
* remove temp debug printout
* prefix spring annotated method with "_" to indicate that is private
* resolve merge issues from Merge of remote-tracking branch 'upstream/master'
* tuned whitespace in api.mustache and re-ran spring-all-petstore.sh
* removed special spring cloud library check as it was no longer being referenced in api.mustache
re-ran spring-all-petstore.sh
2017-12-18 22:43:15 +08:00
Piotr Jóźwiak
cccef5dbc3
Add our company to list ( #7203 )
2017-12-18 22:13:10 +08:00
Ben Wells
6349e79a59
Fix typo in Petstore yaml ( #7195 )
2017-12-18 12:30:57 +08:00
Ben Wells
d25341d58d
Output models for go-server #3851 ( #7188 )
...
* Output swagger models.
Fix route verbs and formatting
* Remove backup files
* Make postProcessOperations consistent with go client
2017-12-17 21:55:20 +08:00
Ville Skyttä
8f2ed1c503
Run logo.png through zopflipng -m ( #7187 )
2017-12-17 14:43:37 +08:00
Christophe Bornet
79326399ef
Fix starting springboot server from IDE ( #7184 )
2017-12-16 11:19:31 +08:00
elion
20ace869b7
Issue 7151 2.3.0 ( #7181 )
...
* Removed redundant version declaration. Upgraded Spring boot dependency version.
* Update samples
2017-12-15 21:04:00 +08:00
William Cheng
6aa26461d7
add bjgill to rust tech comm
2017-12-15 18:51:37 +08:00
William Cheng
5b76151a87
update 2.3.0 release to Dec 2017
2017-12-15 01:21:48 +08:00
wing328
13b5a7e287
include akka-scala in circle CI tests
2017-12-15 00:49:33 +08:00
Jinkui Shi
be50955bbf
[akka-scala] template upgrade dependency version and refactor #7171 ( #7172 )
...
* [akka-scala] template upgrade dependency version and refactor #7171
* update sbt dependencies version and add enforce plugin
* delete new to the case class
2017-12-15 00:47:10 +08:00
etherealjoy
4b4528317c
Fixes segmentation faults for arrays of primitive types ( #7099 )
...
[C++][Qt5] Fixes segmentation faults for arrays of primitive types
2017-12-15 00:38:42 +08:00
wing328
f1c52dc97e
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-12-15 00:31:41 +08:00
Ben Wells
2e348b27f7
[Go-server] Fix formatting of go-server generated code ( #7162 )
...
* Add missing go-server petstore batch script
* Make go-server confirm to gofmt
2017-12-15 00:04:48 +08:00
wing328
1d44bb8141
update spring petstore samples
2017-12-15 00:02:43 +08:00
wing328
6693e8bc10
Merge branch 'fix-model-javadoc-whitespace' of https://github.com/nemecec/swagger-codegen into nemecec-fix-model-javadoc-whitespace
2017-12-14 23:59:04 +08:00
Jean-François Côté
e70bdf17f2
[Typescript All] Prevent usage of reserved keyword for model fields ( #7112 )
...
* Prevent usage of reserved keyword for model fields
* Changes from code review to follow JS convention of using toParamName and toVarName
* Another small change from code review. Removing from postProcess because it is already called from somewhere else.
2017-12-14 12:47:02 +08:00
Max K
a96bc3a409
Added support for controller action parameter validation into the ValidateModelStateAttribute ( #7156 )
2017-12-14 12:26:57 +08:00
Max K
5306372b98
Added Contact NAME to Startup.cs ( #7168 )
...
* Ran bin/aspnetcore-petstore-server.sh
* Added contact information to startup.cs
* updated to support NAME as well
* updated samples
* updated NAME default
2017-12-14 01:31:11 +08:00
Max K
5e4d363675
[AspnetCore Server] Added Original swagger ( #7170 )
...
* Updated Codegenerator as well as added new swagger-original mustache template
* updated Startup.cs template to provide guidance for original Swagger file
* Updated Sample
2017-12-14 00:57:16 +08:00
Neeme Praks
b2de0e6df6
Fixes issue #7167 (One space too many before JavaDoc first line in model methods).
2017-12-13 12:51:08 +02:00
William Cheng
81c0e81c77
Add "Contact" name, URL ( #7164 )
...
* update swagger parser, core version the latest
* add info name and email
2017-12-13 18:10:01 +08:00
William Cheng
c774e98464
update swagger parser, core version the latest ( #7163 )
2017-12-13 18:08:26 +08:00
Max K
c496ec7269
Added support for VERSION, APPNAME and CONTACT from Swagger file into Startup.cs ( #7103 )
...
* Added support for VERSION and APPNAME from Swagger file into Startup.cs for Swashbuckle SwaggerGen
* Ran bin/aspnetcore-petstore-server.sh
* Added contact information
* Added contact information to startup.cs
2017-12-13 12:03:33 +08:00
Max K
1541d96b18
Updated SwaggerResponse Attributes so they use the actual dataType instead of the common returnType ( #7096 )
...
* Moved SwaggerResponse Attributes to use the respective dataType instead of the common returnType.
* Updated examples
2017-12-13 11:59:45 +08:00
Benjamin Gill
4dbb44b061
End use of deprecated openssl method ( #7154 )
2017-12-13 11:31:11 +08:00
Bartek Kryza
8b61b1d466
#7047 - Added Bash syntax check to tests ( #7155 )
2017-12-13 11:14:07 +08:00
Max K
9ca63955c2
Added support for Operation EXAMPLE value in ASP.NET Core Generator. ( #7091 )
...
* Added support for Operation EXAMPLE value in ASP.NET Core Generator.
* Updated PetStore samples
2017-12-13 00:13:13 +08:00
Aleksandr Nekrasov
643ef64f04
resteasy support javax injection instead of static delegate factory ( #5272 )
...
* resteasy support javax injection instead of static delegate factory
* fixed resteasy joda example
2017-12-12 00:35:51 +08:00
Max K
d881cb39bf
Added Base Path support as well as PathParameterValidation ( #7120 )
...
* Ran bin/aspnetcore-petstore-server.sh
* Added BasePath filter and Validation filter
* Updated filters and added Attribute generators
* Removed newline
* Updated samples
2017-12-12 00:04:20 +08:00
Ben Wells
3c8293bbcf
Add missing go-server petstore batch script ( #7145 )
2017-12-11 12:19:25 +08:00
Francis Lalonde
f49109c1f6
Match rust integer type to minimum and maximum constraints ( #6985 )
2017-12-10 11:19:28 +08:00
wing328
8c92d3a27e
add erlang petstore server batch file
2017-12-10 10:52:07 +08:00
Ville Skyttä
794bb07cf7
Spelling fixes ( #7142 )
2017-12-10 10:48:30 +08:00
Dimitar Ivanov
b4f707450a
Erlang server: handle broken JSON ( #7129 )
2017-12-09 17:57:48 +08:00
wing328
e7b97383d1
update php petstore samples
2017-12-09 17:32:45 +08:00
Krzysztof Karol
d43e9c8be2
Fix wrong params indentation ( #7136 )
2017-12-09 17:22:24 +08:00
Mads Føhns
2af8868281
Fixed #7137 by checking for Response before calling getBody() on it ( #7138 )
2017-12-09 17:20:56 +08:00
Akihito Nakano
cfa5a55a28
[PHP] Improve StoreApiTest ( #7141 )
...
* Move the test code to the appropriate test case
* currently, InvalidArgumentException will be thrown
* Remove unnecessary tests at this time
* Unify into single quotes
2017-12-09 17:01:25 +08:00
Benjamin Gill
1a831f73f3
[rust-server] Plaintext support; encode params ( #7082 )
...
* MMORCH-428: Export the Authorization struct
This is needed so that code can check that the version of Authorization
in the auto-generated code is the same as the version it is using. If
the versions are not exactly the same then the lookup into the TypeMap
will not work.
* Add Rust as a supported language for client and server.
Clarify that there are two Rust client implementations, and one Rust server implementation.
* Percent-encode path and query parameters in client URLs
Fixes #122
Also don't include a question mark at the end of the path when there are no query paramters.
Fixes #121
* Rust2 client: add --host and --port parameters to example client.
Allows the example command-line client to override the default host and port.
* Extract default host and port from Swagger file.
* Derive 'Eq' and 'Ord' on enums
* Rust2: improve server code structure.
server.rs (main.rs) - main entry point for binary; starts the web server and points it at the server code within the library.
server_lib/mod.rs (lib.rs) - root of library; creates the server.
server_lib/server.rs (server.rs) - actual server code
The old server_lib/mod.rs is now server_lib/server.rs; server_lib/mod.rs is new.
This structure is easy to map onto a server implementation; unfortunately we can't get it exactly right here because of the limitations of cargo's examples/ folder.
* Rust2: Explain fully how to use the example code in your project.
* Added plaintext support
* Linting
* MGJ Markups
2017-12-08 18:42:14 +08:00
Oliver Hoffmann
20f48b04fc
Make efficient use of entrySet iterator. ( #7105 )
2017-12-08 00:35:11 +08:00
wing328
365f3a923b
update php petstore samples
2017-12-08 00:32:53 +08:00
Benjamin Gill
a57fb0c7db
[rust-server] add license and description to Cargo.toml ( #7080 )
...
* Move errant file to 'rust-server'
Rust2 was the old name
* Add license and description to Cargo.toml
For rust-server, getting them from the swagger
* Valid Java doesn't have uninitialised variables...
* Default license to "Unlicense"
* Set license to "Unlicense" for generated crates
2017-12-08 00:28:29 +08:00
Luciano Jr
da942ab80c
Update code style ( #7127 )
2017-12-08 00:25:28 +08:00
Jinkui Shi
01b6330202
[Scala] [ISSUE-7085] Scala template code format refactor ( #7086 )
...
* [Scala] [ISSUE-7085] Scala template code format refactor
* upgrade scala version to 2.11.12 and upgrade dependency version
2017-12-08 00:20:19 +08:00
Akihito Nakano
1ff3b00ac5
[PHP] Add generator version ( #7124 )
...
* Add generator version
* Update samples
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2017-12-08 00:02:52 +08:00
wing328
fb69703fe0
update ruby petstore samples
2017-12-07 23:55:51 +08:00
Anton Antonov
2d56f247ce
Fix typo ( #7131 )
2017-12-07 23:52:13 +08:00
topce
b0f61f394c
fix issue 7048 ( #7108 )
2017-12-07 23:50:26 +08:00
William Cheng
a7da5d8098
add a link to IT World article
2017-12-07 17:46:26 +08:00
Max K
e75523a684
[AspNetCore SERVER] Added support for ASP.NET Core 2.0 ( #7114 )
...
* Updated to .NET Core 2.0
* Fixed issue with IConfiguration vs. IConfigurationRoot
* Ran bin/aspnetcore-petstore-server.sh
* Updated to .NET Core 2.0
* Fixed issue with IConfiguration vs. IConfigurationRoot
* Ran bin/aspnetcore-petstore-server.sh
2017-12-06 11:02:13 +08:00
Jean-François Côté
40f1de8a58
[Typescript jQuery] Add README.md ( #7113 )
...
* Add README.md to the typescript jquery client generator
* Fix from code reviews about the addition of README.md. Made the fix in fetch too since it was a copy paste
2017-12-06 10:34:29 +08:00
Max K
645d71ed3b
Operation now returns StatusCode Stubs as well ( #7098 )
...
* Operation now returns StatusCode Stubs as well
* Updated mustache file to use comments
return StatusCode(..) is now commented out.
* Change default(..) to not escape the type
default(dataType) --> default(&dataType)
* Return IActionResult no matter what..
* Updated formatting
* Ran bin/aspnetcore-petstore-server.sh
2017-12-05 22:14:00 +08:00
William Cheng
5f9f6e5c9b
revised C# support in readme
2017-12-05 20:15:23 +08:00
William Cheng
ffa0151445
fix msf4j return type annotation ( #7110 )
2017-12-05 17:23:04 +08:00
Sridhar-1987
a4fbbb5999
Pass optional as null ( #7066 )
...
* Pass optional as null
* Addressing review comments
* Addressing review comments-2
* Addressing review comments-3
2017-12-04 22:18:32 +08:00
Ramzi Maalej
61e706ba6f
[Akka-Scala] Add build.sbt to Akka-scala ( #7076 )
...
* Add build.sbt to Akka-scala
* Add readme.md and build.sbt to petstore sample
2017-12-01 12:03:10 +08:00
ehyche
76d3cb5002
Swift4: Fix issue 6746 - problem with arrays of primitives ( #7072 )
...
* Update samples using latest codegen and templates
* Fix issue 6746 - problem with array models where array element type is a primitive
2017-12-01 10:30:24 +08:00
wing328
8baa6779ab
comment out ruby in circleci as already covered by travis
2017-11-30 16:04:58 +08:00
antihax
831e8d7c87
[Go] Add context to all requests for tracing, logging, cancellations, etc. ( #6997 )
...
* Add context to all requests for tracing, logging, cancellations, etc.
* Fix compile error with when call has no parameters.
2017-11-30 00:30:35 +08:00
William Cheng
5994a2fb2d
use {{{mediaType}} instead of {{mediaType}} ( #7073 )
2017-11-29 16:17:51 +08:00
ehyche
d2a2292d20
Update samples using latest codegen and templates ( #7071 )
2017-11-29 14:49:45 +08:00
wing328
80cc90c7c1
update spring petstore samples
2017-11-29 11:19:46 +08:00
wing328
9fae2d7da3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-29 11:05:05 +08:00
yelhouti
ce11e035d8
fix spring cloud config variable names ( #7068 )
...
remove leading space
2017-11-29 11:05:03 +08:00
wing328
9a2e024fc5
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-29 11:00:08 +08:00
William Cheng
28467a5c3f
add antihax to go technical committee
2017-11-28 23:46:17 +08:00
wing328
9a95f2f36b
update swift petstore samples
2017-11-28 23:44:49 +08:00
philicious
1472b60d3a
Added a Blog Post Entry ( #7069 )
...
Blog Post I wrote for Dreamfactorys Blog last year showing how to use Swagger to generate Client SDKs and using them
2017-11-28 21:17:10 +08:00
Sergey Shoshin
adda792010
#7026 [Swift] tvos support added ( #7034 )
2017-11-28 12:23:23 +08:00
Tomasz Prus
efe16fda8c
[python/tornado] ssl improvements ( #7061 )
2017-11-28 10:06:29 +08:00
wing328
55410a3d4a
update spring petstore sample
2017-11-27 22:12:46 +08:00
demtnt
dca7a1507b
As per documentation https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestPart.html @RequestParam should be used instead of @requestpart if not file. ( #6861 )
2017-11-27 22:06:37 +08:00
Ben Mordue
02bcc55e23
Do not apply content-type header if no request body ( #6648 )
...
* Do not apply content-type header if no request body
* Set content-type header if there are form params
* Add tests
* Run update script
* Regenerated sample clients
2017-11-27 18:33:28 +08:00
Maxim Zinchenko
a8642dbdfc
[Java][Spring][Server] Issue #4680 ( #6890 )
...
* Issue #4680 correct values for enum with escaped double quotes
* Issue #4680 regenerate samples
* Issue #4680 remove new lines
* Issue #4680 fixed scripts
* Issue #4680 update samples under CentOS
2017-11-27 18:30:39 +08:00
wing328
088eef5927
update petstore samples
2017-11-27 17:16:44 +08:00
Greg Marzouka
75c2d5ed4c
[Scala] Default Option parameters to None ( #6538 )
...
* Add sensible defaults for not required params in scala
* Also default to None for async methods
2017-11-27 17:06:28 +08:00
Ramzi Maalej
0c3c4ccf82
Use maven plugin to set required maven version ( #7032 )
2017-11-27 16:59:14 +08:00
craffael
fc5ec6271a
[NancyFx] Fix for issue #7024 , date field mapped to ZonedDateTime ( #7025 )
...
* add support for async routes/endpoints
you can now set --optional-properties async=true to generate
a nancyfx server stub that uses asynchronous programming.
(cherry picked from commit 126869cb0b967e8063417e11993cf6326ce8ffd4)
* add nancyfx-petstore-server-async.sh to generate sample of async nancyfx.
* Rename async => asyncServer
* update bin/nancyfx-petstore-server-async.sh
* rename async => asyncServer in api.mustache + small bugfix
* run ./bin/nancyfx-petstore-server.sh and ./bin/nancyfx-petstore-server-async.sh
* remove additional new line in api.mustache + add space after if
* run ./bin/nancyfx-petstore-server.sh and ./bin/nancyfx-petstore-server-async.sh
* Map `date` fields to LocalDate c# type + add a JsonConverter for LocalDate.
2017-11-27 16:46:09 +08:00
Erik Janssen
1b90a05754
[Scala][Finch] Adding security definitions to Finch ( #6891 )
...
* #6818 : support for security definitions and some refactoring
* adding support for Either
* adding dates with TimeZone (date-time) and Local (date)
* cleanup
* generating code
2017-11-27 16:38:12 +08:00
naelrashdeen
5d59dd10ec
[PHP][Symfony] Further enhancements ( #7001 )
...
* Further enchancements for PHP-Symfony. Fixes issues described in #6999
* Ran shell script to update petstore sample
2017-11-27 16:25:50 +08:00
Gingonic
a565a94a06
Removed wrong import of StrictJsonDeserializationVisitor ( #6948 )
...
* Removed wrong import
* Run samples
2017-11-27 16:16:42 +08:00
Tristan Sloughter
3d3a30a533
[Erlang] erlang client: properly handle optional parameters ( #7042 )
...
* erlang client: properly handle optional parameters
* [Erlang Client] handle multiple path params in the same path
2017-11-27 16:11:14 +08:00
Lee Skillen
7a15121f94
Adding Cloudsmith to Swagger users ( #7055 )
2017-11-26 01:16:51 +08:00
Akihito Nakano
8cc8c1eac6
Add GMO Pepabo ( #7049 )
2017-11-24 22:29:19 +08:00
topce
8a0de971e4
Remove rxjs operators ( #6989 )
...
* do not import rxjs-operators if using HttpClinet
* generate code
* do not import operators if they are not needed
2017-11-24 13:24:46 +08:00
William Cheng
57b42a544d
add fvarose to c++ tech comm
2017-11-24 01:57:15 +08:00
Keni Steward
8eb33f9d1b
[Typescript][Angular]Issue #6902 Return Client Response for Angular 4.3 and above with Observe string ( #6955 )
...
* Updated swagger-ui wget url to https
* Issue #6902 Add Observe/ReportProgress pass through variables to the response for each api call for angular 4.3 and above
* Issue #6902 Fixed problem where extra comma as generated and should
not have been.
* Issue #6902 Fixed compiltion issue for Angular 4.3
2017-11-24 01:50:07 +08:00
William Cheng
a4531b695e
use python client toOperationId logic ( #7035 )
2017-11-23 17:41:50 +08:00
Oliver Hoffmann
10107ac7ec
Upgrade to resteasy-jackson2-provider ( #7017 )
...
* Upgrade to resteasy-jackson2-provider
* Upgrade to resteasy-jackson2-provider
2017-11-23 17:35:49 +08:00
Ramzi Maalej
ebfdc05199
[Akka-Scala] Add readme file ( #7027 )
...
* Add readme file
* Add readme file to Scala generator
2017-11-23 16:46:35 +08:00
Ken Geis
5ea3499188
fix swager typo ( #7028 )
2017-11-23 12:03:52 +08:00
Lukasz Konopski
0f92baeb04
Inheritance support java client okhttp gson ( #6636 )
...
* #6636 inheritance support for java client okhttp with gson parser
* #6636 generate samples
2017-11-22 21:28:13 +08:00
Daiki Matsudate
ed705e9d70
add link to d-date's presentation ( #7021 )
2017-11-22 17:06:22 +08:00
Guillermo Pastor
65bb761952
Fix: Resolve problem with UUID class not found if there is almost one parameter with format as uuid ( #6617 )
...
* feat: java.util.UUID if parameter is UUID
* solve git problem
2017-11-22 16:54:11 +08:00
François Rosé
acefe3f385
[CppRest] Add Object and fix modelbase includes ( #6905 )
...
* Objects are represented by `ModelBase.h`, not `Object.h` which does not exist.
* Use correct relative imports for files in the `model` and `api` folders.
* [CppRest] Update cpprest petstore client sample.
* Implement `Object` class to support arbitrary types.
* [CppRest] Update cpprest petstore client sample.
* [CppRest] Add newly generated files to petstore client sample.
* [CppRest] Add `Object` to CMakeLists.
2017-11-22 12:19:13 +08:00
François Rosé
d9cea0f97e
[CppRest] Support optional parameters ( #6959 )
...
* Use boost::optional for parameters that are not required.
* Update sample petstore client.
2017-11-22 12:13:05 +08:00
William Cheng
803f337d24
[Scala][Lagom] rename generator from scala-lagom to scala-lagom-server ( #7014 )
...
* rename scala-lagom to scala-lagom-server
* add back pom.xml and shell script
* update scala-lagom-server path in circleci pom.xml
* make shell script executable
* rename batch file
2017-11-21 23:24:02 +08:00
William Cheng
573b5518be
[Scala][Lagom] minor enhancements ( #7011 )
...
* rename lagom scala, minor enhancements
* add scala lagom to circle ci
* test sala lagom with jdk8 only
2017-11-21 17:34:09 +08:00
William Cheng
5e76b22ae8
add gmkumar2005 as scala lagom template creator
2017-11-21 16:37:42 +08:00
gmkumar2005
32abb72769
[LagomScala] Add Scala API generator for lagomframework #6900 ( #6901 )
...
* Initial Commit
* Removed unneeded class, Updated names as per naming conventions, Removed licensing info from generated code
* Moved samples from client folder to server
* Fixed naming issue with scripts in the bin
* improved code format for api
* fixed compile issue and improved formatting
* fixed compile issue and improved formatting
2017-11-21 15:40:04 +08:00
Kenny Jones
63fce58931
[Java][Spring] Resolve serialization warning from RFC3339DateFormat ( #6960 )
...
Adds `serialVersionUID` to RFC3339DateFormat.java to avoid Java warning.
2017-11-21 12:14:02 +08:00
Daiki Matsudate
a5e4abe5ec
[Swift4]Update templates for swift 4 ( #6921 )
...
* update versions of dependencies on swift4 and swift3
* change syntax for swift4
* run petstore script
* change enum case from UpperCamel to lowerCamel
* remove unneeded break statements
* avoid wrapping conditionals in parentheses
* avoid force casting
* run pod update on petstore/swift4/rxswift
* update project for swift 4
* run swift4-petstore-all.sh
* fix compile error
* avoid use iso8601 date strategy for encoder / decoder
* resolve file references
2017-11-21 11:33:52 +08:00
manuc66
b06ccec11e
[csharp] Update JsonSubTypes to 1.1.3 and use nuget dependency ( #6969 )
...
* the result I want to obtain
* add csharp-petstore-net-40.bat for windows
* just ran bin\windows\csharp-petstore-all.bat
* Removed those directories:
- samples\client\petstore\csharp
- samples\client\petstore\csharp-dotnet2
then ran :
bin\windows\csharp-petstore-all.bat
* - update JsonSubTypes to 1.1.3 by using nuget dependency (the package is compatible with net40)
- allign all version of Newtonsoft.Json to 10.0.3
* the result of bin\windows\csharp-petstore-all.bat
* ran bin\security\windows\csharp-petstore.bat
2017-11-21 11:26:58 +08:00
Hidenori Maehara
0c3688227a
add my slide to README.md ( #7006 )
2017-11-21 10:30:25 +08:00
Jim Schubert
ebb96cbfb6
[docker] Update root Dockerfile ( #6870 )
2017-11-21 01:29:09 +08:00
topce
04ee374328
[TypeScript][Angular] fix problem with strict compilation ( #6978 )
...
* fix probelme with strict compilation
* commit generated files
2017-11-21 01:21:45 +08:00
wing328
404b526dbe
update resttempalte java petstore samples
2017-11-21 00:48:39 +08:00
JacC510
181680b0af
- fix duplicate problem ( #6981 )
...
* - fix duplicate problem
* style guide adjustment
* replace tab with 4-space
* replace tab with 4 -space
2017-11-21 00:42:19 +08:00
William Cheng
6476c0aa18
add @tsloughter to erlang tech committee
2017-11-19 00:04:37 +08:00
William Cheng
ec0da35b6c
regenerate package.json, tsconfig.json for ts node ( #6987 )
2017-11-18 21:05:19 +08:00
Peter Stuart
79bac2ca04
Fix typo. ( #6991 )
2017-11-18 15:48:02 +08:00
wing328
da1702db03
update petstore sample
2017-11-17 23:39:12 +08:00
Alex Goldring
9be12f9d03
Removed harmful content-type check ( #6977 )
...
https://github.com/swagger-api/swagger-codegen/issues/6226
2017-11-17 23:33:59 +08:00
shashank734
18e0b67903
Added Company using Sawgger in Readme.md ( #6988 )
...
Added company Thirdwatch.ai in Readme.md which is using swagger.
2017-11-17 20:52:37 +08:00
William Cheng
15bbb52b22
check for dot in path and throw exception if found ( #6986 )
2017-11-17 20:18:06 +08:00
Tomasz Prus
73cb68ee7b
[python] fix tests, tornado ssl fix ( #6968 )
...
* fix: non-zero exit code if tests fail
* tests: use local petserver to run tests
* fix: non-zero exit code if tests fail
* tests: use local petserver to run tests
* fix: creating ssl context in old version of Python
* chore: remove unused target from Makefile
* doc: changes from upstream
* fix: tornado client raises NotImplementedError in older version of Python
2017-11-17 17:33:39 +08:00
wing328
c6ffbd38ad
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-16 17:10:16 +08:00
wing328
d04d280d1b
update java petstore samples
2017-11-16 17:09:59 +08:00
William Cheng
0c0da42d33
Better instruction for Windows users
2017-11-16 17:08:16 +08:00
wing328
17bbb25ce4
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-16 17:00:59 +08:00
Shuma Yoshioka
85b0d0ff78
[TypeScript][Node] Resolve errors for strict compile ( #6933 )
...
* [TypeScript][Node] Resolve TS7017 error
* Run `bin/typescript-node-petstore-all.sh`
* Run `bin/security/typescript-node.sh`
* Add `strict` option to ts-node config
* Run `bin/typescript-node-petstore-all.sh`
* Fix `strict` option syntax in typescript-node/tsconfig.mustache
* Sync tsconfig.json
* Sync package.json
* Delete typings.json
* Sync tsconfig.json
* Resolve TS2345 error
* Resolve TS2322 in integration-test (Delete non-effective codes)
* Add @types/rewire to test
* Resolve TS7017 errors
* Run `bin/typescript-node-petstore-all.sh`
* Run `bin/security/typescript-node.sh`
2017-11-16 17:00:48 +08:00
Ben Mordue
818ff8f245
Add readTimeout field ( #6961 )
2017-11-16 16:59:02 +08:00
William Cheng
372f16d28b
Revert "Docker image tags" ( #6973 )
...
* Revert "[csharp] clean boolean additional properties 6784 (#6899 )"
This reverts commit 2c9f98ce38 .
* Revert "[Swift4] Add throw to reserved words (#6952 )"
This reverts commit 970de01bdf .
* Revert "add a docker build tag for pushing docker image instead of just latest (#6837 )"
This reverts commit 4e482eef17 .
2017-11-16 14:33:30 +08:00
Jim Schubert
2c9f98ce38
[csharp] clean boolean additional properties 6784 ( #6899 )
...
* [csharp] Convert "false" properties to booleans
It appears as though "false" strings in additionalProperties are no
longer treated as false booleans. This may be an issue elsewhere, but a
simple fix is to always explicitly set the boolean value in a generator
class back to the additionalProperties map to convert boolean Strings to
boolean Objects.
* [nancyfx] Clean up async default option handling
* [nancyfx] Include asyncServer=false in sample script
* [csharp] Regenerate samples
* [csharp] Resolve .net 4 generation issues
Some functionality is missing from .NET 4.0, such as IReadonlyDictionary
and Type.GetTypeInfo().
This commit resolves compilation of generated .NET 4.0 code, requiring
no conditional versioning of Newtonsoft.Json.
* [csharp] Regenerate .net 4.0 sample
* [csharp] Resolve .NET 4.0 sample compile
Sample build.sh wasn't accounting for targeting different FCL correctly.
That is, when passing "net40" to the -sdk option, it would use the
default -sdk:4 and -langversion:6. These don't necessarily match with
what is installed on a machine with only .NET 4.0 (which is our targeted
use case here).
To resolve, we need to define another version-specific value for passing
to the mcs -sdk option (see man mcs for details).
This option currently isn't overridable in the client codegen class.
Also, langversion is set specifically to the version of C# available to
the targeted SDK version. If there is need, we may extend this to
something like:
langversion=${MCS_LANG_VERSION:-6}
To allow users to run as:
env MCS_LANG_VERSION=5 sh build.sh
I haven't done this because I doubt there's much of a use case via this
script. I'm assuming most consumers will build via IDE or MSBuild.
* [csharp] Revert bin/csharp-petstore.sh to 3.5
* [csharp] Regenerate .NET 3.5 sample
* [csharp] Resolve nuget issue with existing files
* [csharp] Update -all.sh, regenerate samples
2017-11-15 22:36:37 +08:00
wing328
d676cd12c9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-15 21:46:08 +08:00
Atanas Bozhkov
970de01bdf
[Swift4] Add throw to reserved words ( #6952 )
...
* * Added `throw` to Swift4 Reserved words.
* * Regenerating Swift4 Petstore project
2017-11-15 21:45:30 +08:00
James Ebentier
4e482eef17
add a docker build tag for pushing docker image instead of just latest ( #6837 )
2017-11-15 21:37:26 +08:00
William Cheng
744c7d904a
remove spaces, empty lines from qt5cpp client ( #6956 )
2017-11-14 23:28:06 +08:00
Charles Capps
47f1865e69
[Java][google-api-client] Fix minor bugs in google api client ( #6951 )
...
* Fix minor bugs in google-api-client templates
* Update samples
2017-11-14 12:02:59 +08:00
Keni Steward
d719daab22
Updated swagger-ui wget url to https ( #6954 )
2017-11-14 11:24:50 +08:00
James Schubert
64fafb5db3
[all] sys props in CodegenConstants
2017-11-13 21:56:42 -05:00
James Schubert
a0d5079bce
Merge branch 'master' into csharp-enum-cleanup
...
* master: (101 commits)
[Swift4] Allow for custom dateformatter to be used (#6672 )
[haskell-http-client] fix bug when generating models-only (#6931 )
fix typo: crediential => credential
minor typo fix
[csharp] fix enum serialization of first value (#6873 )
[PHP] Improve docs and README (#6935 )
Binary mode for file deserialization in python (#6936 )
add python tornado test to travis
[Python/tornado] add integration tests and fix bugs (#6925 )
Fix PHP passes response body to ApiException (#6923 )
[TypeScript][Node] Resolve TS2532 error (#6932 )
skip "all" shell script
minor formatting change
Fixes Issue #6841 , Map for accessing additionalProperties is generated. (#6886 )
add tsloughter as owner erlang
WIP: initial commit for Erlang client generator (#6502 )
add back php client test
Switch Travis image from MacOS to Linux (#6937 )
add link to ebook
[Scala] Default case class Option types to None for non-required fields (#6790 )
...
2017-11-13 21:46:40 -05:00
Dawid van Graan
5af788cb9f
[Swift4] Allow for custom dateformatter to be used ( #6672 )
...
* Add a custom dateformat to be set
* Samples updated
* Update CodableHelper.swift
Change to correct format: decoder.dataDecodingStrategy = .base64
* Update CodableHelper.mustache
Add `decoder.dataDecodingStrategy = .base64` back
* Update CodableHelper.swift
Fix `decoder.dataDecodingStrategy = .base64`
* Update CodableHelper.swift
Fix `decoder.dataDecodingStrategy = .base64`
2017-11-13 22:15:43 +08:00
Jon Schoning
b3133a2d74
[haskell-http-client] fix bug when generating models-only ( #6931 )
2017-11-13 20:44:46 +08:00
wing328
473dfded21
fix typo: crediential => credential
2017-11-13 18:42:23 +08:00
William Cheng
dff463f2fc
minor typo fix
2017-11-13 18:35:47 +08:00
Jim Schubert
28e2fcee78
[csharp] fix enum serialization of first value ( #6873 )
...
* [csharp] Treat enum models consistently
C# works differently from most languages in that enums are not
considered objects. This means default(EnumType) will choose a default
of the first enum option. This isn't desirable because it breaks the
required = false functionality of swagger specs, which defines a
property which isn't required to exist in the message body.
Rather than force consumers to use enum values such as UNSPECIFIED, UNKNOWN,
NOT_SET, etc... we can treat enums as primitives. This means any
non-required enum will become Nullable<EnumType> regardless of whether
it is defined as an inline enum or a referenced enum model.
* Categorizing C# integration test for enums as general
* [csharp] Remove enum-ref integration test
* [csharp] Clean up general enum support integration test, validate different enum usage cases.
* [csharp][all] Assign one-based int to string enums
The EmitDefaultValue=false for string based enums will prevent the first
enum value from being serialized, because as 0 it is considered the
default.
This commit assigns an explicit numerical value to all non-integer
enums. This assignment has no effect on the
serialization/deserialization values, and only assigns the compiled
integer.
NOTE: This will have an effect of requiring recompilation of any code
that references the client/server models. This is because:
public enum Pet { Available }
Source files referencing Pet.Available as defined above will have a
constant 0 in place of the enum value.
public enum Pet { Available = 1 }
Source files referencing Pet.Available as defined above will have a
constant 1 in place of the enum value.
After compilation, Pet.Available in both instances lose their semantic
values and refer to the byte representation of their integral values.
For more info, see
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/enum
2017-11-13 16:02:03 +08:00
Akihito Nakano
9ca9887de4
[PHP] Improve docs and README ( #6935 )
...
* Fix wrong client class, add details about client
* Improve example for Configuration
* camelcase
* Improve README like api doc
* Update samples
2017-11-13 13:56:45 +08:00
Gabriele Bonetti
62444a7aaf
Binary mode for file deserialization in python ( #6936 )
...
* use wb mode in file deserialization
* add auto generated files from security/python-petstore.sh
2017-11-13 12:50:10 +08:00
wing328
90a0b7a7e2
add python tornado test to travis
2017-11-13 12:05:18 +08:00
Tomasz Prus
4e967e696c
[Python/tornado] add integration tests and fix bugs ( #6925 )
...
* tests: add integration test for python-tornado
* [python-tornado-client] tests: increase timeout for test_upload_file
* [python-tornado-client] fix: tornado client passes tests
2017-11-13 12:03:55 +08:00
Alexandre Demode
63d28cf75b
Fix PHP passes response body to ApiException ( #6923 )
2017-11-13 11:30:46 +08:00
Shuma Yoshioka
053061ec9f
[TypeScript][Node] Resolve TS2532 error ( #6932 )
...
* [TypeScript][Node] Resolve TS2532 error
* Run `bin/typescript-node-petstore-all.sh`
* Run `bin/security/typescript-node.sh`
2017-11-13 11:23:56 +08:00
wing328
4a38ee283c
Merge branch 'test_php'
2017-11-12 23:23:23 +08:00
wing328
f34aca62f6
skip "all" shell script
2017-11-12 22:42:02 +08:00
wing328
2ef65d1488
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-12 22:23:30 +08:00
wing328
444a05ce21
minor formatting change
2017-11-12 22:21:54 +08:00
wing328
c515dd82ff
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-12 22:16:37 +08:00
etherealjoy
ca58053339
Fixes Issue #6841 , Map for accessing additionalProperties is generated. ( #6886 )
...
The issue #6884 is still present and requires fixing outside of mustache file as well.
2017-11-12 22:16:26 +08:00
William Cheng
6739481a5d
add tsloughter as owner erlang
2017-11-12 22:07:12 +08:00
Tristan Sloughter
b9651e5775
WIP: initial commit for Erlang client generator ( #6502 )
...
* WIP: initial commit for Erlang client generator
* add models types and function type specs
* fix type specs when models are the type and support QS lists
* make method lowercase in postprocessoperations
* add model encode function
* add erlang client sample
* add windows client sample script
* proper return type spec and handle return error messages
2017-11-12 22:02:05 +08:00
wing328
0d55c12a63
add back php client test
2017-11-12 21:59:47 +08:00
William Cheng
fd220147ae
Switch Travis image from MacOS to Linux ( #6937 )
...
* remove jdk7 check
* comment out some installation
* update npm
* comment out ts angular tests
* restore ts angular2 test
* restore bash test
* add back new config, clean up commented items
2017-11-12 21:50:11 +08:00
William Cheng
d76e37277a
add link to ebook
2017-11-11 14:51:35 +08:00
Greg Marzouka
f921f4f4da
[Scala] Default case class Option types to None for non-required fields ( #6790 )
...
* [Scala] Default case class Option types to None
* Update Petstore sample
2017-11-10 15:57:40 +08:00
Gustavo Paz
b404dafa02
Issue 6694 2.3.0 ( #6845 )
...
* The get method template is modified to return the value of the enum instead of the enum itself.
* Update of the Petstore CXF server sample
* Update of the Petstore CXF client sample
* Update of the Petstore CXF server annotated base path sample
* Update of the Petstore CXF server non spring application sample
2017-11-10 15:32:05 +08:00
Andrew Norman
372a08763d
adding "Read Timeout" getters and setters for the Jersey and OkHttp ( #6853 )
...
* adding "Read Timeout" getters and setters for the Jersey and OkHttp
based ApiClients
adding "Write Timeout" getters and setters for the OkHttp based
ApiClient
adding tests for the OkHttpClient covering the new getters and setters
* generated files from the bin scripts
2017-11-10 12:12:40 +08:00
wing328
141fc7e8c7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-09 22:41:22 +08:00
afrolovsky
9a44512d03
@JsonProperty annotation for jaxrs-spec server model classes ( #6911 ) ( #6916 )
2017-11-09 21:46:26 +08:00
wing328
3355c92970
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-09 21:46:00 +08:00
wing328
9dea435104
add kenjonese-cisco to python tech committee
2017-11-09 21:43:47 +08:00
François Rosé
485b186129
[CppRest] Unique header guards ( #6904 )
...
* [CppRest] Generate unique header guards based on the package names.
* [CppRest] Update cpprest petstore client sample.
2017-11-09 17:59:45 +08:00
François Rosé
7a83081f18
[CppRest] Remove U macro ( #6903 )
...
* [CppRest] Replace U macro with conversion function for default string values.
* [CppRest] Replace U macro with conversion function in templates.
* [CppRest] Update cpprest petstore client sample.
2017-11-09 17:58:21 +08:00
Jim Schubert
92ac1edd78
[csharp] Treat enum models consistently ( #6851 )
...
* [csharp] Treat enum models consistently
C# works differently from most languages in that enums are not
considered objects. This means default(EnumType) will choose a default
of the first enum option. This isn't desirable because it breaks the
required = false functionality of swagger specs, which defines a
property which isn't required to exist in the message body.
Rather than force consumers to use enum values such as UNSPECIFIED, UNKNOWN,
NOT_SET, etc... we can treat enums as primitives. This means any
non-required enum will become Nullable<EnumType> regardless of whether
it is defined as an inline enum or a referenced enum model.
* Categorizing C# integration test for enums as general
* [csharp] Remove enum-ref integration test
* [csharp] Clean up general enum support integration test, validate different enum usage cases.
2017-11-09 17:14:47 +08:00
wing328
8b251555ac
update php symfony petstore, remove spaces in empty line
2017-11-09 16:36:25 +08:00
cydrickn
fbc28797d1
[PHP][Symfony] Update Controller.mustache ( #6842 )
...
* Update Controller.mustache
* Use debug instead of environment
2017-11-09 16:29:41 +08:00
Jinkui Shi
92a1c3a449
[issue-6860] fix NPE of Could not generate api ( #6868 )
2017-11-07 15:46:20 +08:00
James Schubert
018c8d3ece
Remove unused imports
2017-11-06 21:12:56 -05:00
Keni Steward
39a9c5587f
[Typescript][Node] Fixes inccorect enum generation for enumsMap when Array<Enum> is defined fixes part of Issue #5681 ( #6862 )
2017-11-07 01:19:58 +08:00
Keni Steward
626fa7531b
[TypeScript][Angular] Attempts to fix issues that causes enums that are not generated with a class to not generate correctly ( #6833 )
...
* Attempts to fix issues that causes enums that are not generated with a class to not generate correctly
* Fixed issue with incorrectly generating enums
2017-11-05 16:34:24 +08:00
Jeffrey Slort
cf813f5c8e
Feature/replace isomorphic fetch with portable fetch ( #6739 )
...
* Replaced isomorphic fetch with portable fetch
* Ran scripts in bin
* reference custom.d.ts in api.ts
* ran scripts and added custom.d.ts files to git
* Ran scripts in bin after merge
* regenerated security tests
2017-11-05 15:37:54 +08:00
wing328
2bce479c1c
minor code format enhancement to ts angualr ( #6888 )
2017-11-05 12:05:45 +08:00
wing328
37184a1cd8
Minor fix to body parameter in required parameter list ( #6885 )
...
* minor fix to required parameter list
* better if then else block
2017-11-05 10:22:36 +08:00
James Schubert
1058728777
[csharp] Clean up ref/inner enum struture
...
Enums defines as ref models have a different object structure
(CodegenModel) than those defined as inner enums (CodegenProperty). To
make these look as similar as possible, we walk all ref model enums and
reassign enumVars with the same properties inherited from the top level
CodegenProperty so CodegenModel enums can use the same templates as
inner enums.
2017-11-04 17:22:23 -04:00
Jon Schoning
cd1c2b13e3
[haskell-http-client] refactor & promote accept mimetype to request; simplify templates ( #6866 )
...
* add AuthMethodException
* rename cli prop
* simplify templates
2017-11-05 01:41:53 +08:00
Meindert Deen
a5586044cd
Implemented fix for #6006 . Mime-type support ( #6751 )
...
* Implemented fix for #6006 . Mime-type support for accepts and
content-type.
* Review comments of @macjohnny incorporated
* merge with latest and retest
* merge with latest and retest. Now correctly generated with new Maven build
2017-11-05 00:26:42 +08:00
Kenny Jones
b6699f6068
[python] Convert unicode to six.u ( #6881 )
...
`unicode` does not exist in py3, therefore since six is already imported
switch to using `six.u` so that `unicode` is used on py2 and `str` is used
on py3.
2017-11-04 23:24:51 +08:00
Jim Schubert
7b269eaf4a
Kotlin sanitize model names 6864 ( #6874 )
...
* [kotlin] better sanitize model names
* [kotlin] Regenerate samples
2017-11-04 23:23:08 +08:00
stkrwork
659e64206a
- Updated cpp generators to name boolean getter functions with an is at the beginning (ex. isActive) ( #6880 )
2017-11-04 22:04:38 +08:00
Giulio Pulina
4dafa5b92a
Updated version (2.2.3) in swagger-codegen-maven-plugin example in README ( #6876 )
2017-11-03 22:08:30 +08:00
wing328
cf5eba87bd
update circleci to cover java google-api client, update Java petstore
...
samples
2017-11-03 18:49:32 +08:00
Charles Capps
c2eb53ab1d
[Java] Templates to support google-api-client library ( #6838 )
...
* Add support for the google-api-client
* When there's no return type, just return (no parsing the response)
* Update the deserialization to use a Jackson typeref.
* Delete the auth mustache files as we don't need them
* Stop generating unneeded auth files; get SBT/gradle working with the generated module
* Add builder-style methods to the google-api-client ApiClient for getting API instances
* Update the README to reflect the new client library option
* Generated overloaded methods to send query params as a Map<String, Object>
* Add files for Sample codes
* Add type in angle brackets to support Java 6
* Required query params must be added to the Map of params. Update sample code.
* Use explicit types instead of diamonds to support Java6 in one more place.
* Clean up javadoc warnings in generated code / remove pointless return statements
* Clean up extra newlines in generated code
2017-11-03 18:46:07 +08:00
Jim Schubert
0ee46c32a2
[all] Better error message for missing libraries ( #6856 )
2017-11-02 17:55:42 +08:00
Jean-François Côté
16373b9f70
Fix the fake endpoint example. Now all cases are handled by the java play framework! ( #6850 )
2017-11-02 17:54:34 +08:00
Jim Schubert
e7594c42d0
[kotlin] Nested enum naming fix, and naming options via CLI ( #6858 )
...
* [kotlin] Nested enum naming fix, and naming options via CLI
* [kotlin] Add option test for enum property naming
* [kotlin] Escape all reserved/keywords for enums
2017-11-02 17:35:11 +08:00
wing328
86b266b02f
[TS][Anuglar] Update Travis CI to cover TS Angular 4.3 petstore client ( #6844 )
...
* add CI to TS Angular 4.3
* comment out ts cache direcotries
2017-11-02 17:32:32 +08:00
Erik Timmers
980dd7c6ab
Add TypeScript default value mappers ( #6828 )
...
Fixes #6765 .
2017-11-02 17:16:30 +08:00
Akihito Nakano
e8635632a4
[PHP] Fix #6770 : Debug flag is not passed ( #6808 )
...
* Add testcase which reproduces issue #6770
* Pass debug option if needed
* Update samples
* bin/php-petstore.sh
* bin/security/php-petstore.sh
* Api throws exception when failed to open debug file
* Pass debug option if needed (Async)
* Extract instance method
* Update samples
* bin/php-petstore.sh
* bin/security/php-petstore.sh
2017-11-02 17:14:00 +08:00
wing328
81d6b18cf7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-11-02 14:04:28 +08:00
wing328
1c19891db3
make nancyfx-petstore-server-async.sh executable
2017-11-02 14:04:12 +08:00
Kenny Jones
74f70a1924
[python-client] Modify python templates to resolve linting errors ( #6839 )
...
The linting results for the generated samples are as follows
where the first number is the BEFORE and the second is AFTER.
pyclient 7714 vs. 120
pyclient3 7717 vs. 120
pyclient3-asyncio 7584 vs. 120
pyclient-tornado 7633 vs. 120
pyclient3-tornado 7633 vs. 120
For the complete details please see the following gist.
https://gist.github.com/kenjones-cisco/2eb69a7e8db75e9fd53789f01570d9f2
Enforces linting for python clients by running flake8 for the generated
python client.
2017-11-02 00:47:14 +08:00
wing328
eba4affbb4
fix async option in C# nancyfx generator
2017-11-01 22:52:16 +08:00
craffael
8fec429158
[NancyFx] Support Async ( #6755 )
...
* add support for async routes/endpoints
you can now set --optional-properties async=true to generate
a nancyfx server stub that uses asynchronous programming.
(cherry picked from commit 126869cb0b967e8063417e11993cf6326ce8ffd4)
* add nancyfx-petstore-server-async.sh to generate sample of async nancyfx.
* Rename async => asyncServer
* update bin/nancyfx-petstore-server-async.sh
* rename async => asyncServer in api.mustache + small bugfix
* run ./bin/nancyfx-petstore-server.sh and ./bin/nancyfx-petstore-server-async.sh
* remove additional new line in api.mustache + add space after if
* run ./bin/nancyfx-petstore-server.sh and ./bin/nancyfx-petstore-server-async.sh
2017-11-01 22:50:49 +08:00
Euan Kemp
c97b63d2bb
[Rust] Implement 'object' type conversion ( #6846 )
...
* [Rust] Use serde Value for objects
This hopefully fixes the previous TODO; it at least fixes compilation
errors for the specific swagger model I'm working with.
* [Rust] Update Cargo.toml to specify versions
Letting the version float freely is scary, to say the least.
This gives it a better chance at being future-proof.
When the crate author had a recommended selector I picked that,
otherwise I went semver compatible.
* [Rust] Regenerate the example
2017-11-01 22:00:56 +08:00
Jim Schubert
7755c7de38
Update README.md ( #6859 )
...
Updated information for .swagger-codegen-ignore support via IntelliJ plugin, and path override.
2017-11-01 21:54:36 +08:00
Renaud Amar
9272b3e768
[Ruby] Fix "build_from_hash" function for Ruby enums ( #6812 )
...
* Modify build_from_hash to compare value against enum's value rather than const name
* Updated Petstore sample
2017-11-01 21:47:22 +08:00
James Schubert
72b9ab6cab
[csharp] Clean up general enum support integration test, validate different enum usage cases.
2017-10-31 14:37:12 -04:00
James Schubert
8be610b9a4
[csharp] Remove enum-ref integration test
2017-10-31 12:49:50 -04:00
James Schubert
08c8773b50
Categorizing C# integration test for enums as general
2017-10-31 12:48:29 -04:00
wing328
16e7bc053b
use travis_wait to avoid no output error
2017-10-31 21:43:34 +08:00
James Schubert
7b5e5c8289
[csharp] Treat enum models consistently
...
C# works differently from most languages in that enums are not
considered objects. This means default(EnumType) will choose a default
of the first enum option. This isn't desirable because it breaks the
required = false functionality of swagger specs, which defines a
property which isn't required to exist in the message body.
Rather than force consumers to use enum values such as UNSPECIFIED, UNKNOWN,
NOT_SET, etc... we can treat enums as primitives. This means any
non-required enum will become Nullable<EnumType> regardless of whether
it is defined as an inline enum or a referenced enum model.
2017-10-30 15:48:18 -04:00
ehyche
95ef1bf62e
Swift3: properly percent-escape path parameters ( #6705 )
...
* Add addiitional files from upstream
* Remove mis-added files
* Swift3: Properly percent-escape path parameters
This change fixes the following issue:
https://github.com/swagger-api/swagger-codegen/issues/6400
The problem was that path parameters were not properly percent-escaped before being placed into the URL path. This leads to creation of an invalid URL, which then fails.
So therefore, in the API template where path parameters are handled, we propertly percent escape them, using the characters which are allowed in URL paths.
In addition to this template change, then this PR includes the following changes:
1. Resulting changes in all generated code due to the above template change.
2. I added the objcCompatible run to the swift3-petstore-all.sh so that I could re-generated all of the generated code with a single script.
3. I added a unit test in UserAPITests.swift which verifies that paths are properly escaped.
4. In order to make the unit test work, then I needed access to RequestBuilder<T>.URLString to verify that the path was properly escaped. However, RequestBuilder<T>.URLString had "internal" access control so it was inaccessible from the unit test. So therefore, I made four contants in RequestBuilder<T> to be public. This should not harm anything, since they are constants ("let's") and cannot be changed from the outside of the class after initialization.
5. There were also some stray changes which look like they were caused by having not run bin/swift3-petstore-all.sh in a while.
2017-10-30 15:40:00 +08:00
wing328
1c201fe7ec
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-10-29 15:15:10 +08:00
wing328
622f478057
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-10-29 15:14:46 +08:00
niku
bc302f7151
[Elixir Client]Improve elixir client typings ( #6821 )
...
* [Elixir Client] Update the sample
It just executes
% bin/elixir-petstore.sh
without any code changes.
It have been affected by updating the sample swagger specification of 07b408a44a
* [Elixir Client] Fix typings in RequestBuilder
Fix following dialyzer warnings in the sample:
```
lib/swagger_petstore/api/another_fake.ex:30: Function test_special_tags/2 has no local return
lib/swagger_petstore/api/another_fake.ex:30: Function test_special_tags/3 has no local return
lib/swagger_petstore/api/another_fake.ex:32: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'patch') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:29: Function fake_outer_boolean_serialize/1 has no local return
lib/swagger_petstore/api/fake.ex:29: Function fake_outer_boolean_serialize/2 has no local return
lib/swagger_petstore/api/fake.ex:34: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:57: Function fake_outer_composite_serialize/1 has no local return
lib/swagger_petstore/api/fake.ex:57: Function fake_outer_composite_serialize/2 has no local return
lib/swagger_petstore/api/fake.ex:62: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:85: Function fake_outer_number_serialize/1 has no local return
lib/swagger_petstore/api/fake.ex:85: Function fake_outer_number_serialize/2 has no local return
lib/swagger_petstore/api/fake.ex:90: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:113: Function fake_outer_string_serialize/1 has no local return
lib/swagger_petstore/api/fake.ex:113: Function fake_outer_string_serialize/2 has no local return
lib/swagger_petstore/api/fake.ex:118: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:142: Function test_client_model/2 has no local return
lib/swagger_petstore/api/fake.ex:142: Function test_client_model/3 has no local return
lib/swagger_petstore/api/fake.ex:144: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'patch') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:181: Function test_endpoint_parameters/5 has no local return
lib/swagger_petstore/api/fake.ex:181: Function test_endpoint_parameters/6 has no local return
lib/swagger_petstore/api/fake.ex:195: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:230: Function test_enum_parameters/1 has no local return
lib/swagger_petstore/api/fake.ex:230: Function test_enum_parameters/2 has no local return
lib/swagger_petstore/api/fake.ex:242: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:266: Function test_inline_additional_properties/2 has no local return
lib/swagger_petstore/api/fake.ex:266: Function test_inline_additional_properties/3 has no local return
lib/swagger_petstore/api/fake.ex:268: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake.ex:293: Function test_json_form_data/3 has no local return
lib/swagger_petstore/api/fake.ex:293: Function test_json_form_data/4 has no local return
lib/swagger_petstore/api/fake.ex:295: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/fake_classname_tags123.ex:29: Function test_classname/2 has no local return
lib/swagger_petstore/api/fake_classname_tags123.ex:29: Function test_classname/3 has no local return
lib/swagger_petstore/api/fake_classname_tags123.ex:31: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'patch') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:30: Function add_pet/2 has no local return
lib/swagger_petstore/api/pet.ex:30: Function add_pet/3 has no local return
lib/swagger_petstore/api/pet.ex:32: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:57: Function delete_pet/2 has no local return
lib/swagger_petstore/api/pet.ex:57: Function delete_pet/3 has no local return
lib/swagger_petstore/api/pet.ex:62: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'delete') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:86: Function find_pets_by_status/2 has no local return
lib/swagger_petstore/api/pet.ex:86: Function find_pets_by_status/3 has no local return
lib/swagger_petstore/api/pet.ex:88: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:112: Function find_pets_by_tags/2 has no local return
lib/swagger_petstore/api/pet.ex:112: Function find_pets_by_tags/3 has no local return
lib/swagger_petstore/api/pet.ex:114: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:138: Function get_pet_by_id/2 has no local return
lib/swagger_petstore/api/pet.ex:138: Function get_pet_by_id/3 has no local return
lib/swagger_petstore/api/pet.ex:140: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:163: Function update_pet/2 has no local return
lib/swagger_petstore/api/pet.ex:163: Function update_pet/3 has no local return
lib/swagger_petstore/api/pet.ex:165: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'put') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:191: Function update_pet_with_form/2 has no local return
lib/swagger_petstore/api/pet.ex:191: Function update_pet_with_form/3 has no local return
lib/swagger_petstore/api/pet.ex:197: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/pet.ex:223: Function upload_file/2 has no local return
lib/swagger_petstore/api/pet.ex:223: Function upload_file/3 has no local return
lib/swagger_petstore/api/pet.ex:229: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/store.ex:30: Function delete_order/2 has no local return
lib/swagger_petstore/api/store.ex:30: Function delete_order/3 has no local return
lib/swagger_petstore/api/store.ex:32: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'delete') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/store.ex:54: Function get_inventory/1 has no local return
lib/swagger_petstore/api/store.ex:54: Function get_inventory/2 has no local return
lib/swagger_petstore/api/store.ex:56: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/store.ex:79: Function get_order_by_id/2 has no local return
lib/swagger_petstore/api/store.ex:79: Function get_order_by_id/3 has no local return
lib/swagger_petstore/api/store.ex:81: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/store.ex:104: Function place_order/2 has no local return
lib/swagger_petstore/api/store.ex:104: Function place_order/3 has no local return
lib/swagger_petstore/api/store.ex:106: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:30: Function create_user/2 has no local return
lib/swagger_petstore/api/user.ex:30: Function create_user/3 has no local return
lib/swagger_petstore/api/user.ex:32: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:56: Function create_users_with_array_input/2 has no local return
lib/swagger_petstore/api/user.ex:56: Function create_users_with_array_input/3 has no local return
lib/swagger_petstore/api/user.ex:58: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:82: Function create_users_with_list_input/2 has no local return
lib/swagger_petstore/api/user.ex:82: Function create_users_with_list_input/3 has no local return
lib/swagger_petstore/api/user.ex:84: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'post') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:108: Function delete_user/2 has no local return
lib/swagger_petstore/api/user.ex:108: Function delete_user/3 has no local return
lib/swagger_petstore/api/user.ex:110: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'delete') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:133: Function get_user_by_name/2 has no local return
lib/swagger_petstore/api/user.ex:133: Function get_user_by_name/3 has no local return
lib/swagger_petstore/api/user.ex:135: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:159: Function login_user/3 has no local return
lib/swagger_petstore/api/user.ex:159: Function login_user/4 has no local return
lib/swagger_petstore/api/user.ex:161: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:185: Function logout_user/1 has no local return
lib/swagger_petstore/api/user.ex:185: Function logout_user/2 has no local return
lib/swagger_petstore/api/user.ex:187: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'get') breaks the contract (map(),'Elixir.String':t()) -> map()
lib/swagger_petstore/api/user.ex:211: Function update_user/3 has no local return
lib/swagger_petstore/api/user.ex:211: Function update_user/4 has no local return
lib/swagger_petstore/api/user.ex:213: The call 'Elixir.SwaggerPetstore.RequestBuilder':method(#{},'put') breaks the contract (map(),'Elixir.String':t()) -> map()
```
2017-10-29 00:46:07 +08:00
Jon Schoning
4fc52c5524
[haskell-http-client] add support for enums ( #6803 )
...
* support enums for models and operation parameters
* add generateEnums cli option (default: true)
* bump stack resolver: lts-9.10
2017-10-29 00:45:13 +08:00
wing328
b259f3bb8b
remove newline from query parameter template (resteasy)
2017-10-27 23:13:43 +08:00
Andrea Formica
c566963268
Topic resteasy queryparams defaultvalue ( #6726 )
...
* Correct default value for resteasy query parameters
* clean up: add default value in query params for resteasy mustache templates
.
* clean up
* add space following wing328 recommandation.
2017-10-27 23:12:29 +08:00
Jean-François Côté
18ba90f5ac
[JavaPlayFramework] Add parameters for beanValidation in the application.conf + fix bugs ( #6794 )
...
* Add configuration to split input and output bean validations. When useBeanValidation is used, the variable are created in the application.conf file and can be tweaked by environment. For example, dev and stage can have true to both but only have input in prod.
* Refactor of mustache tags for more clarity
* sample generation with refactor
* Fix a couple of bugs with the fake-endpoint yaml but there is still 2 cases where it doesn't work.
2017-10-27 22:48:27 +08:00
wing328
cab4fc0fed
add support for csharp net40 ( #6792 )
2017-10-27 22:47:02 +08:00
Christophe Bornet
fe2ed67f20
Remove Accept request header from api signature ( #6704 )
...
* Remove Accept request header from api signature
* Inject HttpServletRequest to get request header and clean templates
* Use constructor injection for HttpServletRequest
* Implement example in default controller responses
2017-10-27 22:45:30 +08:00
Giulio Pulina
f14e07280a
Fix #6391 . Avoid Retrofit crashing because of @Path params defined after @Query params ( #6796 )
2017-10-27 22:35:01 +08:00
Kenny Jones
28d14e34c4
[python-flask] Apply template tweaks to improve lint results ( #6826 )
...
The linting results for the generated samples are as follows
where the first number is the BEFORE and the second is AFTER.
flaskConnexion 1843 vs. 20
flaskConnexion-python2 1841 vs. 19
For the complete details please see the following gist.
https://gist.github.com/kenjones-cisco/edc9d71ef7fd2bf23714ecbb693d52b3
2017-10-27 22:18:14 +08:00
korkut89
f472b623f0
Fix RefProperty bug for flattening MapProperty's inner properties. ( #6823 )
2017-10-26 23:55:00 +08:00
Kenny Jones
54b670b7e0
[python-flask] Create main function and entrypoint ( #6814 )
...
Enable the creation of the entrypoint so that the server can be started
using a named command instead of needing to always use `python -m` to
run the server.
2017-10-26 20:38:30 +08:00
Stephan E
f78d958ec0
Fix ruby model generation with objects and additionalProperties ( #6816 )
...
* Fix model generation with objects and additionalProperties
* Generate Ruby Petstore
* Generate Ruby Security Petstore
2017-10-26 19:59:38 +08:00
Keni Steward
4f3c86aa14
Adding forRoot instead of forConfig and forcing only 1 instantiation of the ApiModule ( #6775 )
...
* Added forRoot and constructure duplicate check
* added imports
* updated providers display format
* updated examples
* Moved providers so users don't hav eto use forRoot if they don't want.
* Updated the readme
2017-10-26 17:57:30 +08:00
Jérémie Fraudeau
681b1c20ea
[Scala][Finch] Fix interpretation of queryParams and headers ( #6809 )
...
* [Scala][Finch] Fix interpretation of queryParams and headers
* [Scala][Finch] Updates the sample for Finch generated server
2017-10-26 16:44:06 +08:00
wing328
6814530d69
fix enum in path parameter (spring) ( #6810 )
2017-10-25 22:30:36 +08:00
Asad Saeeduddin
49974c51bd
Change return type from any -> Response ( #6774 )
...
* Leftover updates to sample file
* Change return type any -> Response
* Update samples
2017-10-25 12:34:37 +08:00
Halil İbrahim Şener
f42a4a51dd
[javascript] Use babel-preset-env instead of es2015 and upgrade babel-cli and babel-core ( #6799 )
2017-10-25 11:12:41 +08:00
Brian Kim
044bfdac39
Fix #6166 by adding @Deprecated annotations in Java jersey2, okhttp-gson, resteasy libraries ( #6801 )
2017-10-25 11:10:03 +08:00
Dimitar Ivanov
ab338f8cb9
Erlang-server: fix dialyzer; fix min and max checks ( #6752 )
2017-10-25 10:57:53 +08:00
Esteban Marin
f4ac6feae2
Bugfix/6727 import http client module ( #6757 )
...
* [angular-typescript] imports HttpClientModule
HttpModule has no effect, since the new `HttpClient` is now used. fixes #6727
* #6727 : import http client module or http module, depending on setting
* #6727 : import http client module or http module, depending on setting
* #6727 : generate samples
2017-10-25 10:53:20 +08:00
Keni Steward
98e5612c84
Update README.md ( #6797 )
...
Added FINRA as a company using swagger codegen opensource
2017-10-25 10:02:05 +08:00
Esteban Marin
66cbab1947
Bugfix/6649 angular http client empty body ( #6754 )
...
* fix empty body issue
* #6649 : add line break
* #6649 : improve indentation
* #6649 : improve indentation
* #6649 : generate code
* #6649 : generate samples
* #6649 : fix method docs
2017-10-24 22:51:58 +08:00
korkut89
1f9dc4dd2e
Fix required bug ( #6733 )
...
flatten methods replaces original ObjectProperty objects with new
RefProperty objects which required variables are false as default.
Newly created objects' required variables are set as the original
property.
2017-10-24 11:34:24 +08:00
wing328
698149573d
fix r body parameter null issue ( #6786 )
2017-10-24 10:45:25 +08:00
Keni Steward
f7471add70
Fixed spacing in model.mustache ( #6788 )
...
* Added v4/v4.3 to typescript-angular-petsotre-all and renamed from angular2 to angular
* refactored typescript-angular-petstore-all.sh
* changed profile id for typescript-angularjs to properly have angularjs instead of just angular.
* Spacing at end of model template
* Corrected backwards compatible enum typing
2017-10-24 10:42:03 +08:00
tgifford-webfirst
fe5c2e627b
Allow using help command with run-in-docker.sh ( #6706 )
2017-10-23 23:35:11 +08:00
naelrashdeen
b034e4446a
[PHP][Symfony] Enhancements ( #6615 )
...
* Removed commented code
* Input validation is now supported as strict JSON validation
* [PHP][Symfony] Improve the implementation
Closes #6614
* Generated code is tested to assure it compiles and updated README to dynamically load dependencies via composer
* Updated shell script because shippable tests were failing
2017-10-23 22:50:56 +08:00
Steve Harrigan
a63e3f14f5
[TypeScript-Angular] Path URI Encoding Update ( #6769 )
...
* Replaced the method for updating path to prep for URL encoding.
The new method will switch TypeScript-Angular variables from snake_case to camelCase in the URL generation.
Imported StringBuffer, Matcher, and Pattern, since the new solution needs them.
Some extra whitespace on blank lines was removed.
* Since these were not up to date with the current master, I ran them and am commiting them here.
This way, the changes are shown here instead of after future commits.
* Simplified the code for the path conversion A LOT.
New version is much simpler to follow, and very efficient - only one iteration through the length of the string.
Removed regex Matcher and Pattern classes, since they weren't needed anymore.
2017-10-23 21:40:50 +08:00
Edward Wells
c6b6249f1c
Fixed Python client docstrings ( #6780 )
...
* Updated api_client and configuration docstrings
ApiClient: Removed host param, added configuration and cookie param
Configuration: Docstrings are only read from the @property decorated
function, not the setter, moved the more descriptive docstrings from the
setters to property functions
* Ran bin/python-petstore.sh
2017-10-23 18:44:37 +08:00
kinok
18b16c7fe6
Update README.md ( #6783 )
...
Add my company to `Companies/Projects using Swagger Codegen`
2017-10-23 17:46:12 +08:00
Benjamin Gill
c71aa9da49
Add Metaswitch to list of companies ( #6773 )
2017-10-23 00:39:33 +08:00
Gustavo Paz
7cbd36e75b
[Java][JAXRS-CXF] Improve API documentation in the CXF Server stub and Client generation ( #6708 )
...
* Inclusion of API documentation in CXF Server stub generation
* Inclusion of API documentation in CXF client generation
* Update of the Petstore CXF server sample
* Update of the Petstore CXF client sample
* Update of the Petstore CXF server annotated base path sample
* Update of the Petstore CXF server non spring application sample
* Changed {{{appDescription}}} to {{appDescription}} to use the HTML-escaped value in handling special characters like <, > in the description following the correction made by @wing328
* Update of the Petstore CXF samples
2017-10-22 23:00:48 +08:00
wing328
d2eb7cb35b
remove unused files from Ruby petstore client
2017-10-22 22:09:50 +08:00
Giulio Pulina
af2089777d
Fixed link to open issues (correct label is 'help wanted') ( #6779 )
2017-10-21 23:57:43 +08:00
wing328
4d994a2045
update ruby petstore samples
2017-10-20 22:17:09 +08:00
wing328
36f14ab757
update JS petstore samples
2017-10-20 22:16:41 +08:00
wing328
e9ad20a2fb
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-10-20 15:07:35 +08:00
kinok
649811d542
[JavaScript] Handle custom request.agent ( #6737 )
...
* Handle custom request.agent
* better semantic
2017-10-20 15:00:27 +08:00
wing328
b0823c8ad9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-10-20 13:01:50 +08:00
Jon Schoning
d0ec683a86
revert changes to fakes yaml ( #6758 )
...
* revert changes to fakes yaml
the yaml currently includes invalid definitions that do not exist: ('#/definitions/xmlObject').
revert to known good yaml state.
* update template creators
2017-10-20 11:06:28 +08:00
Peter Grman
8a5c361c1a
Bugfix/6750 name clash between npm request and parameter called request ( #6753 )
...
* rename request to $request
* update examples files
* rename $request to localVarRequest
* rename oder variables to localVar...
2017-10-20 11:04:16 +08:00
wing328
f0b7daeec6
[Rust] rename rust2 to rust-server ( #6747 )
...
* rename rust2 to rust-server
* update rust-server batch file to use petstore test spec
2017-10-19 20:17:08 +08:00
wing328
be7daa0792
update R petstore sample
2017-10-19 18:19:30 +08:00
Ramkumar Chandrasekaran
3472c68e0b
bug fixes ( #6743 )
2017-10-19 18:16:56 +08:00
Benjamin Gill
1d89ab6e08
[New Generator] Rust API client/server generator ( #6613 )
...
* Rust API client/server generator
* `Future::boxed()` has been deprecated - replace with `Box::new(...)`
* rebasing to rust
* MMMLS211 use empty vec over none
* MMMLS211 rebuild after merge from rust
* MMMLS211 YAML array examples not wrapped in Some()
* MMMLS211 Array parameters bad mustache fix
* MMMLS211 don't parse map containers
* MMMLS211 Tidy container types
* MMMLS-211 rebuild example
* MMMLS211 mvn rebuild
* Percent-decode parameters contained in the path
* Produce warnings when unknown fields are present
We still accept unknown fields and discard them. However, to improve
diagnosability, we now write a warning log and return a `Warning`
header.
Note that this is server-only
* Markup
* MMMLS211: Make optional arrays Options again
* 211 markups
* Temporary attempt at tweaking Cow ownership tweak while merging changes from rust branch
* Remove to_string call while parsing path parameters, which requires definining a temporary var in a block because rust can't tell where a Cow reference gets dropped
* Fix rustfmt to the correct version
* Fix rustfmt to the correct version
* Add more response information to ApiError in client
* Re-add missing brace
* Code review markups
* Allow converting out of wrapper types
* Store arrays in new-types too
* Use a new hyper_client every request
* Add vec-like traits to array types
* Xml support - new branch
* Moved conversion from serde_xml_rs::Error to ApiError from swagger-rs to client code until upstream PR is accepted
* MMSUB-172 Don't set Content-Type when there's no body.
If we don't have a body we've serialized, then don't declare
any content type for the nonexistent body.
This is really important for 204 No Content responses, but it's
also morally important for all other non-bodied responses.
* MMSUB-172 Move to swagger 0.6.
* Manually implement debug for the client
* Allow `Context` to be bound to `Api`, and not passed on every function call
* Support "." in parameter names
* Support generate's "--reserved-words-mappings" option
* Support "." in parameter names
* Support generate's "--reserved-words-mappings" option
2017-10-19 17:37:02 +08:00
Gustavo Paz
d37894199b
[Java][JAX-RS-CXF] Add JsonProperty to POJO ( #6710 )
...
* Included Open Systems International in the list of companies using Swagger Codegen
* Force Jackson to use the real names of the properties of the Data type defined in the YAML
* Update of the Petstore CXF server sample
* Update of the Petstore CXF client sample
* Update of the Petstore CXF server annotated base path sample
* Update of the Petstore CXF server non spring application sample
* Changed {{name}} for {{baseName}} following the correction posted by @wing328
* Update of the Petstore CXF server sample
2017-10-19 16:58:16 +08:00
Will Neild
e4abddf253
Fix spring api operation annotation ( #6700 )
...
* * Fix apioperation annotation using generics in class reference for spring server generation
* * Regenerate classes for new spring template
2017-10-18 16:38:12 +08:00
Jon Schoning
5219035b3a
[haskell-http-client] handle Alias models + refactoring. ( #6712 )
...
* handle Alias models with newtypes
* add inlineConsumesContentTypes cli option
* generate swagger.yaml instead of swagger.json
* check for/validate unhandled authMethods
* refactoring
2017-10-18 10:47:56 +08:00
wing328
1ac04ae13a
new files genreated by security shell scripts
2017-10-18 10:46:01 +08:00
wing328
7f9ae63880
add resteasy-all shell script
2017-10-18 10:39:34 +08:00
wing328
c783ec1d41
update all petstore security samples
2017-10-18 10:10:44 +08:00
Asad Saeeduddin
c4d5ba1533
Prefix local vars to prevent conflict with params ( #6717 )
...
* Prefix local vars to prevent conflict with params
Fixes #6698
* Update test snapshots
2017-10-18 09:58:36 +08:00
alex-fisher
ff9c723208
ContentType selection fix for csharp. ( #6633 )
...
* ContentType selection fix for csharp.
Updated to reflect java implementation. Previously any request body of type string was having the content type overridden to 'application/json'. This prevented custom json ContentTypes
* updated the petshop codegen for C#
* Fixed content type selection test for csharp
* Replaced tabs with 4 spaces
* Removed trailing space / string comparison
2017-10-17 23:37:22 +08:00
François Rosé
be3e33f472
[C++] Sanitize operation ids. ( #6664 )
...
* [C++] Sanitize operation ids.
* [C++] Handle reserved words in `toOperationId`.
* [C++] Re-order reserved words alphabetically.
* [C++] Add missing reserved words.
2017-10-17 23:14:34 +08:00
wing328
27850d9596
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-10-17 22:53:34 +08:00
wing328
d093a34499
add jaxrs-spec-interface to circle ci
2017-10-17 22:53:04 +08:00
Giacomo
abe1be1a14
JAXRS-SPEC: fix container return type ( #6659 )
...
* JAXRS-SPEC: fix container return type
* Run
./bin/jaxrs-spec-petstore-server.sh
./bin/jaxrs-spec-petstore-server-interface.sh
2017-10-17 22:51:37 +08:00
wing328
5143fb58a4
revise go header, minor formatting fix ( #6695 )
2017-10-17 22:31:06 +08:00
niku
62627f20bc
[Elixir Client]Improve elixir client typings ( #6665 )
...
* [Elixir Client] Improve primitive typings
* [Elixir Client] Add type to models
Fix following dialyzer warnings in the sample:
```
:0: Unknown type 'Elixir.SwaggerPetstore.Model.ApiResponse':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.Client':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.Order':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.OuterBoolean':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.OuterComposite':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.OuterNumber':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.OuterString':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.Pet':t/0
:0: Unknown type 'Elixir.SwaggerPetstore.Model.User':t/0
```
2017-10-17 21:59:25 +08:00
Akihito Nakano
07b408a44a
[PHP] Fix #5338 : InvalidArgumentException ( #6685 )
...
* Add endpoint definition which reproduces #5338 bug
* Update samples
* Add test case which reproduces #5338 bug
* Fix "InvalidArgumentException: Invalid resource type: object"
* Update samples
- ./bin/php-petstore.sh
- ./bin/security/php-petstore.sh
2017-10-17 21:22:49 +08:00
Hidetake Iwata
381acd28ea
Add http://www.nttdata.com ( #6713 )
2017-10-17 15:45:48 +08:00
wing328
5c14f907d6
add beta to scalaz generator
2017-10-16 22:33:12 +08:00
wing328
62794c1d60
add scalaz to cirleci
2017-10-16 22:23:26 +08:00
wing328
15450754ec
add tbrown1979 as template creator for scalaz
2017-10-16 22:15:07 +08:00
Taylor Brown
488aa989bf
Adding a new Scala client codegen ( #6572 )
...
* Adding a Scalaz codegen client
* Fixing imports and removing commented code
* Adding the bash file and updating the Pet store samples for Scalaz.
* Finalizing Scalaz generation so that it works for the Petstore.yaml
* Removing some unnecessary files and comments
* Removing some files that were accidentally generated for the wrong Scala
2017-10-16 22:07:57 +08:00
P.Y. Laligand
1050aa9a06
Added support for enums in Dart. ( #6516 )
...
* Added support for enums in Dart.
* Pick non-private names for enum values.
The _ prefix denotes a private member in Dart, so avoid generating enum values starting with this character.
* Properly encode enum values into query paramters.
* Various cleanups.
* Add support for x-enum-values extension.
Use class instead of enum for better ergonomy.
Better generated enum names.
* Fixed test.
* Support enum descriptions.
2017-10-16 21:28:21 +08:00
Jean-François Côté
8b70f24371
There was no validation when a required field was null, creating crash and null pointer exception further down the line in the business code. Now, it throws a InvalidArgumentException. ( #6673 )
2017-10-16 21:23:05 +08:00
wing328
619c391be9
update python flask petstore samples
2017-10-16 11:48:13 +08:00
Logan Patino
12a85bb09d
Add enum support for flask ( #6684 )
2017-10-16 11:34:31 +08:00
Yukio Ejiri
8bcceb4a10
[kotlin] Fix causing NoClassDefFoundError at runtime on Android device ( #6661 )
...
* Fix causing NoClassDefFoundError at runtime on Android device.
* Add samples modified by bin/kotlin-client-petstore.sh
2017-10-16 11:05:41 +08:00
Javier Velilla
3067da2877
Swagger eiffel:fix ( #6674 )
...
* Updated api client, Required parameters {{#required}} .. {{/required}}, are mapped to Eiffel
Void Safety Rules, optional parameters are translated to detachable TYPE.
Validation Rules are mapped to preconditions, at the moment maximun and minimun
validation has been added.
Improved API_CLIENT.parameter_to_tuple feature to accept a LIST [ANY] instead of LIST [STRING_32].
Improved model template to generate the model output.
* Updated API_CLIENT.parameter_to_string feature, missing STRING representation.
* Updating sample using the latest modifications.
2017-10-16 11:02:19 +08:00
Elias Ovchynnikov
3f7f6b8599
Add operationId as nickname to @ApiOperation ( #6688 )
...
* Add operationId as nickname to @ApiOperation
* Refresh samples after adding nicknames to @ApiOperation
2017-10-16 10:18:32 +08:00
Gustavo Paz
1f97caf960
Included Open Systems International in the list of companies using Swagger Codegen ( #6692 )
2017-10-16 10:17:40 +08:00
stkrwork
027fb2fe47
- Removed unnecessary line in in Restbed Codegen Constructor ( #6675 )
...
- Updated samples
2017-10-15 23:38:46 +08:00
wing328
96444d374f
update go petstore samples
2017-10-13 18:27:13 +08:00
Vincent Batts
eb453791b6
golang: trailing whitespace fails gofmt ( #6669 )
...
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com >
2017-10-13 17:02:20 +08:00
wing328
b22fb30891
add jaz-ah to swift, android tech committee
2017-10-13 00:35:04 +08:00
wing328
e9f49abfee
add back petstore test ( #6663 )
2017-10-12 19:31:36 +08:00
wing328
278bcfe96b
add Edubits to swift tech comm
2017-10-12 18:27:56 +08:00
naelrashdeen
5ffdee4479
[PHP][Symfony] Generate valid PHP code ( #6578 )
...
Fixes #5985
We were experiencing syntax issues when generating the Petstore example. See some of the examples below:
StoreApiInterface.php
namespace Swagger\Server\Api;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Swagger\Server\Model\Order;
**use maparray<string,int>;**
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
UserApiInterface.php
public function createUsersWithArrayInput(**User[]** $body);
public function createUsersWithListInput(User[] $body);
As far as I know, it is not possible to use array of objects in this way.
PetApiInterface.php
namespace Swagger\Server\Api;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Swagger\Server\Model\Pet;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Swagger\Server\Model\ApiResponse;
**use string[];**
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
public function findPetsByStatus(string[] $status);
public function findPetsByTags(string[] $tags);
2017-10-12 17:40:11 +08:00
ehyche
b716b378c4
Swift4: Add additional initializer for initializing model object with properties. ( #6642 )
...
* Add addiitional files from upstream
* Remove mis-added files
* Add additional swift4 initializer for initializing model object with properties.
This change fixes this issue: https://github.com/swagger-api/swagger-codegen/issues/6641
It adds an additional initializer which allows model objects to be initialized using the properties. For exxample, if we had this model:
"ErrorInfo": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "Example Error object"
},
This we generate an initializer for this model object like this:
public init(code: Int?, message: String?, details: [String]?) {
self.code = code
self.message = message
self.details = details
}
* Add hasVars checks around initializers and re-run all scripts to re-generate
2017-10-12 17:35:59 +08:00
Yukio Ejiri
590754f4f4
[kotlin] Fix syntax errors on localVariableHeader in api.mustache ( #6660 )
2017-10-12 17:31:09 +08:00
Javier Velilla
3bd24c3e5c
Updated api client, Required parameters {{#required}} .. {{/required}}, are mapped to Eiffel ( #6653 )
...
Void Safety Rules, optional parameters are translated to detachable TYPE.
Validation Rules are mapped to preconditions, at the moment maximun and minimun
validation has been added.
Improved API_CLIENT.parameter_to_tuple feature to accept a LIST [ANY] instead of LIST [STRING_32].
Improved model template to generate the model output.
2017-10-12 17:28:00 +08:00
Jumpei Takiyasu
02a053e2b6
Update README.md ( #6656 )
...
Add my slide to README.md
2017-10-12 17:26:57 +08:00
wing328
30a176126a
revise wordings for powershell generator
2017-10-11 21:16:53 +08:00
wing328
b5a01b51c6
comment out swift test due to build image changes
2017-10-11 20:58:27 +08:00
Jon Schoning
db67840ded
[haskell-http-client] bug fixes; path & newtype generation issues ( #6638 )
...
* fix path generation/param-substitution issues
* fix newtype de-duplication issues
* refactoring only
* correct version in comments
* prevent duplicate MimeTypes
* sort parameter newtypes
2017-10-10 23:01:48 +08:00
Esteban Marin
dc88ed99ae
[angular-typescript] fix using form data ( #6574 )
...
* #6457 : fix sending form params
* #6457 : fix sending form params using files
* #6457 : fix sending form params with files for angular 4.3
* #6457 : generate samples
* #6457 : [typescript-angular] fix form data submission in IE/Edge
* re-apply [typescript-angular] add customized encoder to use '+' char in query parameter #6306 (#6334 )
* adapt for HttpClient: [typescript-angular] add customized encoder to use '+' char in query parameter #6306 (#6334 )
* generate samples
* #6457 : fix url parameter encoder imports for angular <4.3
* #6457 : generate samples
2017-10-10 22:55:50 +08:00
ehyche
02d25f5a14
Swift4: Fix inline enum issue ( #6640 )
...
* Add addiitional files from upstream
* Remove mis-added files
* Fix compilation issue with Swift4 inline enums.
This change fixes this issue: https://github.com/swagger-api/swagger-codegen/issues/6607
The problem was that I was using "datatype" instead of "datatypeWithEnum" in the model.mustache file.
When you have a the following model property:
"myInlineStringEnum": {
"type": "string",
"enum": [
"inlineStringEnumValue1",
"inlineStringEnumValue2",
"inlineStringEnumValue3"
]
}
Then we were generating:
public enum MyInlineStringEnum: String, Codable {
case inlinestringenumvalue1 = "inlineStringEnumValue1"
case inlinestringenumvalue2 = "inlineStringEnumValue2"
case inlinestringenumvalue3 = "inlineStringEnumValue3"
}
However, when we decode this, we were using type of the enum ("datatype") rather than the enum type itself ("datatypeWithEnum"). So we were generating:
myInlineStringEnum = try container.decodeIfPresent(String.self, forKey: "myInlineStringEnum")
rather than:
myInlineStringEnum = try container.decodeIfPresent(MyInlineStringEnum.self, forKey: "myInlineStringEnum")
2017-10-10 22:53:17 +08:00
Graham Johnson
1bdb104738
Add Serializable import to JaxRS-spec models if serializableModel is set ( #6651 )
2017-10-10 22:45:47 +08:00
Jihun Lee
676af62122
Updated feign library dependency to io.github.openfeign ( #6652 )
...
Changed groupId from “com.netflix.feign” to “io.github.openfeign” from
gradle and sbt mustache templates.
2017-10-10 22:41:18 +08:00
wing328
39ae041975
Merge branch 'update_java_server_samples'
2017-10-09 23:33:32 +08:00
wing328
d054a43b65
update java server samples
2017-10-09 23:00:44 +08:00
wing328
3b134319fa
add java version to pom in resteasy eap java8
2017-10-09 22:51:58 +08:00
Jean-François Côté
e6d4362012
Fix for regression in issue: https://github.com/swagger-api/swagger-codegen/issues/6472 ( #6480 )
2017-10-09 22:51:32 +08:00
wing328
e90a40bfce
use japanese name of taxpon
2017-10-09 10:18:46 +08:00
wing328
07c71e342e
add link to ada's article
2017-10-09 09:39:05 +08:00
wing328
164f5bbb72
fix underscore to handle spaces ( #6637 )
2017-10-09 09:28:31 +08:00
wing328
81e0357561
fix NPE reported in #6519 ( #6635 )
2017-10-08 18:38:23 +08:00
Sasa Vilic
41b7950dcd
Fix class path for DeferredResult ( #6452 )
2017-10-08 18:29:48 +08:00
Lukasz Konopski
73b38dd19e
#3904 Inheritance support java client retrofit gson ( #4729 )
...
* merge with master
* remove zoo specific artifact names
* fix duplicate doublequote
* #3904 add samples for retrofit2
* #3904 clean json field retrieval
* #3904 allow non-abstract parent class
2017-10-08 18:25:38 +08:00
wing328
1dc3fb4f37
remove unused JS files
2017-10-08 17:16:48 +08:00
Halil İbrahim Şener
1f9f8c5a3e
[JavaScript] Fix licenseNames ( #6605 )
...
* [JavaScript] Fix licenseName in package.mustache
* Fix invalid SPDX license expression in resources/2_0
* Update JavaScript samples
2017-10-08 17:15:21 +08:00
jarlesat
8a7940f199
Issue 5431 Support jaxrs client api interfaces ( #6412 )
...
* Adds the ability to create code for an interface-based jaxrs client.
* Adds shell script and sample files for jaxrs-spec-interface
* rebase into adds shell
* Fixes bug in creation of Produces/Consumes in method annotation. Allows for instance "application/json; charset=utf-8"
* Fixes generated pom.xml
* Generate pom.xml by default
* Prettier output from api.mustache
* Fixes bug in mediatype, allowing charset-specification in swagger.yaml.
* Merges generation of interface-based jaxrs client/api into jaxrs-spec.
* Moves jaxrs-spec server interface to match location of jaxrs-spec server
* Makes Generated-annotation in genereated classes slightly prettier.
2017-10-08 15:28:12 +08:00
Stephane Carrez
cdc83ffd16
[Ada] Adding Ada client samples ( #6634 )
...
* Add Ada client petstore samples
- Add script to generate Ada client support with swagger-codegen
- Add files to build the Ada sample
- Add main program to use the generated client samples API
and connect to the server to perform some operations
* Add some description for the samples
* Update the documentation to explain how to build, how to use the generated Ada client code
2017-10-08 12:16:23 +08:00
wing328
7a7dd6d4cd
add ada style guide
2017-10-08 12:08:45 +08:00
Adrian Moos
eab9c72a42
represent swagger enums as union of literal types ( #6233 )
...
* represent swagger enums as union of literal types
enabling their easy use in angular templates, structural subtyping
among enums (in particular, different instances of the same enum
are now mutually assignable), improving type safety by preventing
incorrect widening, and permitting numeric enum values
(albeit without descriptive names)
Fixes #6206 , #5146 , #3500
* update samples
* restore blank lines at end of file
* fix typo
2017-10-07 21:42:46 +08:00
Greg Marzouka
cc756b5563
[Scala] Properly handle csv collectionFormat ( #6540 )
...
* Add support for lists of path parameters (eg instances), and default params for optional case classes
* Update Petstore sample
* Revert defaulting of case class fields to None
* Update Petstore sample
2017-10-07 18:24:08 +08:00
Jon Schoning
5b32e886f4
[haskell-http-client] add support for auth methods ( #6622 )
...
* add support for auth methods
* use newtypes for required params
* fix duplicate operationId issues
* prevent aliasing of vendorextension references in fromOperation
* add --fast to stack ci build
2017-10-07 17:12:48 +08:00
Andrea Rossi
0db4b32384
[objc] Let the developer specify the timezone to be used for date serialisation ( #6628 )
...
* [objc] Update deployment target to 8.0
Updates the test project deployment target to 8.0, as that's the lowest
supported by the latest XCode.
* [objc] Update petstore tests based on current master
Makes sure the tests are based on the latest version of master.
* [objc] Allow specifying the serialization timezone
Now it's possible to specify the timezone used for serializing dates
2017-10-07 13:44:35 +08:00
Gareth T
567ae3fd12
[GO CLIENT] Fix issue with generating code for API key ( #6630 )
...
* [GO CLIENT] Fix Go security query parameter generation by using correct string literal and using the Add method.
* Add generated files.
2017-10-07 12:05:48 +08:00
Akihito Nakano
42313af7a1
[PHP] Fix: Type object not handled properly in setParameterExampleValue ( #6619 )
...
* Add test which reproduce the warning #5338
https://github.com/swagger-api/swagger-codegen/issues/5338#issuecomment-292502895
`[main] WARN io.swagger.codegen.languages.PhpClientCodegen - Type object not handled properly in setParameterExampleValue`
* Fix Type object not handled properly in setParameterExampleValue
* Update samples
- /bin/php-petstore.sh
- /bin/security/php-petstore.sh
2017-10-06 15:56:13 +08:00
wing328
2f98ade693
fix inconsistent java naming ( #6624 )
2017-10-06 11:03:15 +08:00
niku
86803c0c24
[Elixir] Improve Elixir Client about primitive type spec ( #6623 )
...
Fix following dialyzer warnings in the sample:
```
:0: Unknown type 'Elixir.Float':t/0
:0: Unknown type 'Elixir.Integer':t/0
```
2017-10-06 09:16:27 +08:00
Gareth T
2644adb7a3
Note precisely which clients and servers can be used with Haskell. ( #6625 )
2017-10-06 09:10:31 +08:00
wing328
2e5289c4d7
add link to MS machine learning server
2017-10-05 23:07:53 +08:00
Brian
61b910fb82
[R] Added ApiClient and fixed other issues ( #6571 )
...
* Added namespace mustache to be generated
* Fixed syntax issues with package generation
* Added Response and Element mustache templates
* Added ApiClient
* Fix: Only required parameters needed for api operations
* Added documentation generated code
* Regenerated petstore samples
* Fixed url paths for operations
* Fixed based on comments in issues #6520
* Regenerated petstore samples
2017-10-05 01:07:06 +08:00
Cédric Grard
e49e7a056b
Typo error fix ( #6620 )
2017-10-04 22:46:06 +08:00
Stephane Carrez
90010da61d
[Ada] Adding Ada support for client code generator ( #6602 )
...
* Ada language support (generic generator)
Implement the AbstractAdaCodegen class with the Ada keywords and global
behavior for Ada language
* Ada language support (main generator)
Implement the AdaCodegen class for the Ada client and server code generator
Initial implementation based on a mix from CppRestClientCodegen, NodeJSServerCodegen
* Ada language support: register the AdaCodegen generator class
* Ada language license template
* Ada language model templates (spec and body)
* Ada language client spec and body templates
* Ada language server spec and body templates
* Fix escaping Ada keywords for parameter name
* Generate GNAT project and update type mappings
- Use 'p_' as escape prefix for parameter names because identifiers are not allowed to start with '_'
- Add GNAT project file generation
- Update the type mappings to use the Swagger package types
* Fix generation of operations with no parameters
* Fix instantiation of Ada.Containers.Vectors package in generated model files
* New template for the GNAT project file generation
* Fix datatype generation for Ada language
- Override the getTypeDeclaration function to specify the datatype
- Fix definition of language predefined types
* Add a Serialize procedure declaration for the Ada model generation
* Add a Serialize procedure for the Ada template model generation
* Fix operation name and parameter name for Ada
- Declare and implement toAdaIdentifier function to verify and turn some identifier
to Ada identifier following Ada style
- Override toOperationId and use toAdaIdentifier for generation of operation name
- Update toParamName to use toAdaIdentifier
* Media type support for Ada code generator
- Implement postProcessMediaTypes function to add a 'adaMediaType' member
to each media type and map it to some Ada enumeration
- Post process the 'produces' and 'consumes' media type of an operation
* Use x-has-notes extension to avoid emitting notes when they are empty
* First generation for Ada client operation body
* Add a x-has-uniq-produces and x-has-uniq-consumes to media types
to indicate that the list contains only one item, this is necessary
for Ada generator for generation of arrays with one item only
* Add a postProcessParameter for Ada code generator to emit a x-is-model-type attribute
* Update Ada client body template for the serialization of data
* Fix postProcessParameter in Ada code generator to take into account file parameters
* Update the Ada client body to support form parameters
* Fix type name used for mapped types in the Ada generator
* Declare a Deserialize procedure for the Ada generated model
* Override the fromOperation for Ada client code generator
- Emit a x-codegen-response extension with the response description type
- Emit a x-id-model-type extension for each type property
* Update the Ada client package spec template to declare the result type
* Add support to extract response and return result in Ada client code
* Fix Ada postProcessModels to handle container properties and emit a correct x-is-model-type attribute
* Add support for Deserialize procedure in the Ada model generator
* Fix indentation of generated Ada client body package
* Add projectName option to configure the GNAT project name
* Update the GNAT project name for the Ada code generator
* Cleanup implementation and remove unused code
* Cleanup implementation and remove unused code
* Fix javadoc errors
* Use 'ada' for the language name to follow swagger-codegen convention
Add (beta) to the help description
Fix a NPE that occurs with incomplete yaml descriptions
2017-10-04 11:51:04 +08:00
wing328
f7bd2c519e
add new language "ada"
2017-10-04 11:49:40 +08:00
wing328
bf74e33c52
rename CsharpDotNet2 to csharp-dotnet2 ( #6611 )
2017-10-04 00:03:35 +08:00
wing328
5175281f32
rename silex-PHP to php-silex ( #6612 )
2017-10-03 23:46:56 +08:00
wing328
f62b81fdd0
add link to ntt presentation
2017-10-03 20:34:19 +08:00
Pierre Deman
74e31699da
CsharpDotNet2Client - Use clientPackage in additionalProperties ( #6581 )
...
* CsharpDotNet2Client - Use clientPackage in additionalProperties if provided
* Give execution rights for csharp-dotnet2-petstore.sh
* Fix generation of C#.net2 apiPackage, modelPackage, clientPackage
* Fix modelPackage property missing when generating models
* Initialize clientPackage in constructor
2017-10-03 16:58:27 +08:00
craffael
1896e96648
[nancyfx] fix interface prefix ( #6595 )
...
* Retrofit2: Return ResponseBody if response if file.
Until now
--------------------
If a swagger endpoint returned a file (e.g. an image), then the Retrofit2
template has choosen the return type java.io.File. However, retrofit cannot
deal with this and throws a com.google.gson.stream.MalformedJsonException.
New:
-------------------
If a swagger endpoint returns a file, then the corresponding Retrofit2 endpoint
will return a okhttp3.ResponseBody which can be used to retrieve the file.
* fix Interface Prefix
2017-10-03 15:14:28 +08:00
wing328
28a5b74dbf
add partial header to haskell http client ( #6606 )
2017-10-02 23:52:01 +08:00
wing328
900aad6da4
add links to blog posts in techium.jp
2017-10-02 21:14:09 +08:00
wing328
bb919346bf
cache elixir deps
2017-10-02 13:15:49 +08:00
wing328
b5200ba12c
cache stack in shippable ci
2017-10-02 13:06:45 +08:00
Trond Bolsø
44bf1d69cb
Fix for self-referential imports in typescript-angular client ( #6450 )
2017-10-02 11:24:08 +08:00
craffael
1f4013e7f1
[NancyFx] provide option to override package context ( #6593 )
...
* Retrofit2: Return ResponseBody if response if file.
Until now
--------------------
If a swagger endpoint returned a file (e.g. an image), then the Retrofit2
template has choosen the return type java.io.File. However, retrofit cannot
deal with this and throws a com.google.gson.stream.MalformedJsonException.
New:
-------------------
If a swagger endpoint returns a file, then the corresponding Retrofit2 endpoint
will return a okhttp3.ResponseBody which can be used to retrieve the file.
* Add the option packageContext for nancyFx which allows a better adjustment of the namespace.
* run nancyfx-petstore-server.bat
2017-10-02 11:10:09 +08:00
Benjamin Douglas
6e7ad13e1b
Pre-calculate type aliases before processing models ( #6559 )
...
A type alias in this context is where a model is simply another name for a
primitive type, such as `MyString` in the following model definitions:
MyList:
type: array
items:
$ref: '#/definitions/MyString'
MyString:
type: string
It is valid to use a type alias as a property in another object or array model,
even if the object/array is defined before the alias is, as in the example
above. However, the current alias logic only looks "back" in list of previously
defined models, meaning that `MyList` would not know that `MyString` is an
alias. This change fixes the incorrect behavior by pre-calculating the list of
aliases before any models are processed. It also changes the test endpoint to
verify the correct behavior even when an object is defined before an alias it
uses.
2017-10-02 10:54:41 +08:00
Jon Schoning
8bd7d3912b
[haskell-http-client] fixes for fake-endpoints ( #6597 )
...
* fix compile errors / sanitization for petstore-with-fake-endpoints-models-for-testing.yaml
* correct mimetype logic
* add makefile
2017-10-01 18:18:46 +08:00
wing328
c32281cd02
add haskell to shippable ci ( #6600 )
2017-10-01 14:24:04 +08:00
wing328
82b6e81897
use String() to convert num, update TS angular samples
2017-09-30 17:28:07 +08:00
wing328
f3e19e0fdc
fix comma in method without parameters
2017-09-30 17:23:38 +08:00
Adrian Moos
da37f40202
Add optional support for HttpClient ( #6295 )
...
* fix compilation error in eclipse
by updating package declarations in moved files
(eclipse validates that package and folder names match)
* permit specifying the full angular version
simplifying the templates by moving trivial case splits to the model
* remove dead code
this method is never called ...
* support HttpClient in addition to Http, clean up generated code
Fixes #6080
* added new sample, and regenerated existing samples
* updated samples
this time with the freshly build generator ...
* improve formatting
* updated samples
* fix compilation error in generated code
the overload for blobs does not have a type parameter
* added the first test for the utils package
* fix extra trainling commas in function argument lists
* regenerated samples
2017-09-30 17:19:39 +08:00
wing328
e3c61cd1e4
add cbornet to python tech committee
2017-09-30 14:24:38 +08:00
wing328
634dc07719
update tech comm, fix broken link to 2.0.17
2017-09-29 22:02:41 +08:00
Jinkui Shi
063e885c2f
[Scala] format the Scala code style templete ( #6532 )
...
* The templete of scala code style refactor
* more reformat
* more reformat
* generate petstore client
2017-09-29 17:24:34 +08:00
Vlad Frolov
924a8e5efe
[CPPREST] Fixed multipart files upload implementation ( #6518 )
2017-09-29 15:46:16 +08:00
wing328
8e854dc744
add kenjones-cisco to bash tech comm
2017-09-29 11:39:15 +08:00
wing328
39908ebb83
add jvelilla to eiffel tech committee
2017-09-29 09:47:03 +08:00
Akito Nozaki
25812fc526
Swift3: non dictionary body type ( #6531 )
...
* Adding support for non dictionary body types.
* Adding test for rest of the swift3 types
* Cleaning up implementation of makeRequest and adding better error handling.
* Adding ClientError for error produced before request is sent.
* Changing how encoding of body data is handled.
* Cleaning up code that was modified.
2017-09-29 00:16:32 +08:00
wing328
16045a1cff
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-09-28 14:25:25 +08:00
Kenny Jones
87a9caa33f
Bugfix: Path replacement regex not working ( #6580 )
...
A previous change to make the regex a variable to allow proper linting
resulted in the regexp not having access to the value associated with
the variable and the path variable not being replaced.
Moves the regexp variable inside the for loop to allow the value to be
used and the path variable to be replaced with the provided value.
2017-09-28 14:14:47 +08:00
wing328
32b5f8d87d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-09-28 14:02:55 +08:00
wing328
4c31983bd3
fix JS help text
2017-09-28 14:01:37 +08:00
Kenny Jones
d04b7642f6
Feature: Adds doc generation ( #6570 )
...
Reference #2359
2017-09-28 13:17:48 +08:00
wing328
2c7dcbe3e5
fix elixir model naming
2017-09-28 09:55:53 +08:00
yissachar
bd5b586028
Use valid JS RegEx ( #6584 )
2017-09-28 09:49:05 +08:00
Jeff Ching
4b9ee1f194
[Elixir] Improve Elixir client ( #6550 )
...
* Fix dependencies and generate model classes
* Better elixir client generation.
Responses are parsed and serialized by Poison into the model structs.
Use shared helper functions to generate the request.
Extract client connection configuration from api calls.
Elixir client can sanitize the operationId
Correctly output the model variables. Fix typos
Fix path replacement when there are multiple replacements
Cannot separate globally shared parameters from operations
Error handling for the tesla response
update templates
Can generate clients that compile
Can make requests - parse optional params, build query
Add oauth to connection. Fix connection directory
Add basic auth helper for creating a connection
Fix map types. Fix guard clauses for creaing connections
Add licenceInfo template. Parse config for moduleName via standard invokerPackage option
Can provide and inject a license header into all source files
fix location of connection.ex
Move shared code into reusable modules
Elixir filenames should be underscored
Fix visibility of helper functions
Parse the packageName from config options
Handle date and datetime fields with DateTime.from_iso8601
Fix indentation
Update documentation, add typespecs
Generate a standard elixir .gitignore
typespec is calculated recursively in java
Use the JSON middleware and using Poison.Decoder.decode on already parsed structs
move decoded struct into java
Fix handling of non-json responses
Switch basic auth to use the provided Tesla.Middleware.BasicAuth
Update README template to include the appDescription
Update sample elixir client
remove junk client models that don't belong with petstore
Only implement Poison.Decoder protocol if needed
Update samples with skipped Poison.Deocder impl
* Handle multipart file uploads
Handle building form params in the body
Files are handled as strings for input
* Requests with no defined return type will return the Tesla.Env response
* Run the bin/elixir-petstore.sh
2017-09-28 09:32:17 +08:00
wing328
3ac2b803f9
[Elixir] Add Elixir Petstore sample to Shippable CI ( #6575 )
...
* add elixir petstore to shippable ci
* use oracle sdk
2017-09-27 20:53:27 +08:00
wing328
28a3206d16
update swift link, add kotlin, powershell
2017-09-27 11:52:44 +08:00
wing328
2917829eb0
add links to https://shinesolutions.com/
2017-09-27 10:44:16 +08:00
wing328
2a284fa1aa
add SAP blog post by Radu Simen
2017-09-27 10:41:38 +08:00
Jakob Schelbert
e3ba06cabb
Fix some bugs for the R client ( #6535 )
...
* * Fix bugs in api.mustache, model.mustache, mostly bracket errors or small typos
* Added section about installation in README.mustace
TODO: fix tests in testthat
TODO: fix bug in description.mustace regarding package name
* Updates to sample for R client caused by running ./bin/r-petstore.sh (or .\bin\windows\r-petstore.bat)
* Add R specific files to .gitignore
* [R] add additional files generated by the petstore sample. (see #6520 )
2017-09-27 00:06:53 +08:00
Kenny Jones
5e9d977a03
Bugfix: Resolve lint errors for generated client ( #6563 )
...
Updates the bash client template to allow the generated client code
to be free of lint errors.
Resolves : #6562
2017-09-26 21:53:05 +08:00
wing328
451218bfb0
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-09-26 17:16:31 +08:00
wing328
c53ebf6c45
add "npm run build" to ts angular
2017-09-26 17:10:08 +08:00
Mehdy Bohlool
d2b91073e1
[python] Add default Configuration ( #6554 )
...
* Add default configuration
* Fix assert_hostname bug in rest.py
* Update petstore sample
2017-09-26 14:16:48 +08:00
lukoyanov
e2916fdc13
[Java] Play! framework + retrofit2 client exception converter, bug fixes ( #6543 )
...
* added exception converter
* underscore removal fix
* samples updated
* added test
* test whitespace
2017-09-26 14:14:04 +08:00
Greg Marzouka
0a9e3782c5
[Scala] Add support for PATCH via X-HTTP-Method-Override ( #6539 )
...
* Added support for http PATCH to the scala client using X-HTTP-Method-Override header
* Update Petstore sample
2017-09-26 12:22:01 +08:00
wing328
d325c6ee77
revise wording for PR template
2017-09-26 11:14:54 +08:00
wing328
c09c7d2fac
add new item to copy technical committee in PR
2017-09-26 11:11:24 +08:00
wing328
d75e4ae4de
add link to netflix blog
2017-09-25 17:22:41 +08:00
wing328
96137e5677
add encodeURIComponent to encode path parameters ( #6551 )
2017-09-25 16:28:30 +08:00
wing328
419ee1cc79
Add class prefix to tag with numbers ( #6561 )
...
* add class prefix to tag with numbers, update java to default tag name
* update codegen test
2017-09-25 15:23:27 +08:00
wing328
672cc29f73
[Bash] Add test setting for Bash client ( #6558 )
...
* add pom.xml and travis.yml for bash
* create travis.yml.bak, test .travis.yml.bash
* restore travis.yml
2017-09-25 12:49:58 +08:00
Kenny Jones
4b0314498b
Bugfix: Handle all different types of security ( #6528 )
...
The only special handling was for security definition type `apiKey`
in `query`. All the other security configurations should result in the
same generated code.
Moves the handling of the special query parameters outside of the
`parameters without specific cardinality` section.
To cover the scenario where `elif` was being used, simply leverage the
builtin `continue` statement to stop processing the specific query
parameter and continue to the next available query parameter, if any.
Manually test with multiple different combinations.
Resolves : #6526
2017-09-24 23:07:12 +08:00
wing328
e85353ddae
Merge branch 'scala_ci'
2017-09-24 22:03:40 +08:00
wing328
53d34caa4f
add scala test, rearrange test order
2017-09-24 21:32:28 +08:00
wing328
2d44d7f291
use parameter name as description if not defined ( #6557 )
2017-09-24 21:18:49 +08:00
wing328
c501103540
add ackintosh to php tech committee
2017-09-24 17:48:11 +08:00
wing328
f5bc5ecc04
[Scala] Decommission "async-scala" generator ( #6552 )
...
* remove async-scala generator
* remove async-scala related scripts
2017-09-24 16:43:42 +08:00
Akihito Nakano
b31a80448a
[PHP] Improve Api template ( #6507 )
...
* Improve spacing in doc comment
* Improve grouping of parameter tags
* Improve line length
* Fix undefined variable $_tempBody
* Improve indent
2017-09-24 15:40:06 +08:00
Alex
ac99fe6b2d
fix #6353 ( #6514 )
2017-09-24 14:47:40 +08:00
wing328
639f88918a
[Java][RESTEasy] fix resteasy dependency issue in pom.xml ( #6556 )
...
* fix resteasy dependency issue
* add java resteasy petstore to circleci test
2017-09-24 12:49:43 +08:00
Akihito Nakano
8f8515486f
[PHP] Improve Model template ( #6460 )
...
* Update samples
./bin/php-petstore.sh
* Remove unnecessary implements entry
ModelInterface, ArrayAccess are already implemented in parent
* Remove field `container` which is already defined in parent
* Change snake case to lower camel case
- invalid_properties
- allowed_values
* Improve doc commenct style
* Improve description length
* Improve length
* Doc comment short description must start with a capital letter
* Add a line between @param and @return
* Delete an additinal blank line at end of doc comment
* Udpate petstore-security-test
2017-09-23 21:36:05 +08:00
Esteban Marin
4a89d23619
[typescript-angular] apply encodeURIComponent to path-parameter ( #6525 )
...
* #6524 : [typescript-angular] apply encodeURIComponent to path-parameter
* #6524 : [typescript-angular2] update samples
* #6524 : [typescript-angularjs] update samples
2017-09-23 17:23:45 +08:00
wing328
209158aa9d
update ts jquery petstore samples
2017-09-23 17:07:21 +08:00
Jean-François Côté
1baa5fca45
[Typescript-jQuery] Fix for issue #6505 ( #6541 )
...
* Fix that prevented the default version to generate the model files
* Add generated samples
2017-09-23 16:57:48 +08:00
wing328
16678b8106
update ts angular v2, v4 petstore samples
2017-09-23 15:55:14 +08:00
stoetti
07df0759d3
[TypeScript][Angular] Better support for "Accept", "Content-Type" ( #6454 )
...
* add consumes and produces as corresponding headers if present
* add check for empty array
fix copy/paste error
* fix styling
* add isJsonMime
filter produces- and consumes-Arrays for json-mime items
2017-09-23 15:48:05 +08:00
wing328
b1e7a4f724
update cpprest petstore samples
2017-09-23 15:45:17 +08:00
WendellDuncan
8698444fb2
Propsed fix for the ApiClient runtime crash ( #6523 )
2017-09-23 15:34:12 +08:00
Brad Crumb
c5c639b62b
Zend Expressive fix and upgrade to version 2 ( #6461 )
...
* upgraded zend-expressive from version 1 to 2
* Changed error handler for compatibility with Zend Expressive 2
* generated newest sample files for Petstore ze-ph
* removed ErrorMiddleware because it is never been used anymore. Regenerated samples
* removed ErrorMiddleware Template from Codegen
* remove ErrorMiddleware from petstore sample
* Fixed some code styles
* regenerated ze-ph samples with corrected code styles
* added new line at the end of the file
2017-09-23 15:31:20 +08:00
Hidetake Iwata
ccc980e619
Add link to Gradle Swagger Generator Plugin ( #6481 )
2017-09-23 15:24:37 +08:00
CK
c74c31bcfc
produce correct enum for jaxrs resteasy eap ( #6489 )
2017-09-23 15:05:05 +08:00
wing328
ffd8c4adb6
update elasticsearch to elastic
2017-09-22 14:25:43 +08:00
Cliffano Subagio
6267869b3f
Add Jenkins World 2017 talk. ( #6542 )
2017-09-22 12:37:31 +08:00
Jean-François Côté
bcfd14551a
Fixing conversion when it's an item of a collection + add missing isUuid in objects ( #6473 )
2017-09-22 00:54:10 +08:00
wing328
e626afaf1a
add https://www.elastic.co/ to list of co using sw
2017-09-21 21:05:17 +08:00
wing328
ae6d34d480
various readme update
2017-09-21 15:30:01 +08:00
wing328
d08149b7cc
Fix abcsum with abcsun
2017-09-21 11:07:43 +08:00
lukoyanov
7f6bccb4ed
[Java] Added Play! WS filters support for retrofit2 client ( #6499 )
...
* added play! ws filters support
* samples updated
2017-09-20 12:32:52 +08:00
Akihito Nakano
594b390e11
[PHP] Fix #6474 : Bug with 'format: date' when using --model-name-prefix ( #6510 )
...
* Add test case which repeats the issue #6474
* Add "date" to type mapping
* Update samples
./bin/php-petstore.sh
./bin/security/php-petstore.sh
2017-09-19 18:07:37 +08:00
wing328
e27d4577c1
update perl petstore sample
2017-09-19 10:20:47 +08:00
Larry Bordowitz
65d788396b
[6313] Add imports to perl objects. ( #6500 )
2017-09-19 10:11:38 +08:00
ehyche
146b107774
Eliminate all Java compilation warnings for swift4 codegen module ( #6467 )
2017-09-19 09:46:27 +08:00
stkrwork
5443c0a94c
[QT5][CPP] Fixing issue with maps in models ( #6479 )
...
* [QT5][CPP] Fixing issue with maps in models
- Adjusted init function to init map correctly
- Adjusted cleanup function to cleanup maps correctly
* Fixed formatting for samples
2017-09-19 09:31:53 +08:00
Mehdy Bohlool
f3c41e866c
[Python] Add configuration.{connection_pool_maxsize, assert_hostname} ( #6508 )
...
* Backport kubernetes client features:
- assert_hostname
- connection_pool_maxsize
- cleanups
* Update petstore sample
2017-09-19 01:25:33 +08:00
Jon Schoning
d928617b69
[haskell-http-client] use katip logger, default strict ( #6478 )
...
* change strictFields cli option default to True;
* use katip logging; add cli-option for monad-logger
* fix date parsing
* remove package.yaml
2017-09-19 01:24:38 +08:00
Barry Andrews
5f566255ac
Add support for reserved-words-mappings to cpprest ( #6501 )
...
* Also handles automatic escaping for reserved words, i.e.
by default, no need to provide a mapping.
Fix #6498
2017-09-19 01:14:47 +08:00
ehyche
b807f6ff96
Support object schemas with only additionalProperties. ( #6492 )
...
Previously, we had implemented the Codable protocol by simply claiming conformance, and making sure that each of our internal classes also implemented the Codable protocol. So our model classes looked like:
class MyModel: Codable {
var propInt: Int
var propString: String
}
class MyOtherModel: Codable {
var propModel: MyModel
}
Previously, our additionalProperties implementation would have meant an object schema with an additionalProperties of Int type would have looked like:
class MyModelWithAdditionalProperties: Codable {
var additionalProperties: [String: Int]
}
But the default implementation of Codable would have serialized MyModelWithAdditionalProperties like this:
{
"additionalProperties": {
"myInt1": 1,
"myInt2": 2,
"myInt3": 3
}
}
The default implementation would put the additionalProperties in its own dictionary (which would be incorrect), as opposed to the desired serialization of:
{
"myInt1": 1,
"myInt2": 2,
"myInt3": 3
}
So therefore, the only way to support this was to do our own implementation of the Codable protocol. The Codable protocol is actually two protocols: Encodable and Decodable.
So therefore, this change generates implementations of Encodable and Decodable for each generated model class. So the new generated classes look like:
class MyModel: Codable {
var propInt: Int
var propString: String
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: String.self)
try container.encode(propInt, forKey: "propInt")
try container.encode(propString, forKey: "propString")
}
// Decodable protocol methods
public required init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: String.self)
propInt = try container.decode(Int.self, forKey: "propInt")
propString = try container.decode(String.self, forKey: "propString")
}
}
class MyOtherModel: Codable {
var propModel: MyModel
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: String.self)
try container.encode(propModel, forKey: "propModel")
}
// Decodable protocol methods
public required init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: String.self)
propModel = try container.decode(MyModel.self, forKey: "propModel")
}
}
2017-09-19 01:04:50 +08:00
ehyche
8067612e06
Handle when response is a file URL. ( #6469 )
...
This is the equivalent change in the swift4 module which was made in the swift3 module in this PR:
https://github.com/swagger-api/swagger-codegen/pull/6274
This updates AlamofireImplementations.mustache to handle when the response is an URL. It also makes changes in the generated sample code for:
* default configuration (no promisekit or rxswift)
* promisekit
* rxswift
Also, in order to build, the generated code needed to be updated with the change in CodableHelper which changes dataDecodingStrategy to ".base64" from its previous definition in earlier Xcode 9 betas.
*
2017-09-12 14:37:39 +08:00
wing328
d639b38d0d
fix link to fehguy twitter account
2017-09-12 14:17:29 +08:00
wing328
591149bcb7
Better logic to handle tags with special characters ( #6466 )
...
* better logic to handle tag with special characters
* update test cases
* comment out swift test cases
* restore the swift tests
2017-09-12 11:41:14 +08:00
wing328
9e0911b376
[ObjC] fix NPE when getting swagger type ( #6465 )
...
* fix npe in swagger type (objc)
* remove trailing spaces
2017-09-11 17:39:12 +08:00
Lance Hannestad
a6d6432e6d
[Python][Flask] Upgraded connxion to 1.1.15 (now supports multi collection format arrays) ( #6463 )
...
* [Python][Flask] Upgraded connxion to 1.1.15 (now supports multi collection format arrays)
* Was modified by ./bin/python-petstore.sh
2017-09-11 10:23:38 +08:00
wing328
f6787539c0
add more blog posts
2017-09-11 10:09:16 +08:00
wing328
753ba935f1
add https://pycon.jp/2017/ja/ presentation
2017-09-11 03:15:12 +08:00
wing328
665545a2b4
add more links to presentations, blog posts, etc
2017-09-11 03:08:00 +08:00
wing328
5b004de20d
add R to the list of supported languages
2017-09-11 02:44:59 +08:00
wing328
afb75d64d0
fix NPE in get swagger type ( #6462 )
2017-09-10 02:16:08 +08:00
wing328
29bd1d92f2
add square blog post by roykachouh, retrofit post
2017-09-10 00:31:57 +08:00
wing328
94f5250e71
add presentation by Jesse Collis
2017-09-10 00:12:58 +08:00
wing328
e733bfa67d
update c# petstore samples
2017-09-09 21:19:21 +08:00
IvanovJohn
bbb901549f
[C#] Enabled inheritance to prevent property duplication ( #6335 )
...
* Issue#3829. [CSharp] Enabled inheritance to prevent property duplication when using allOf and discriminator
* tabs removed
* Petstore sample updated
2017-09-09 18:19:57 +08:00
wing328
a2cb35b1e9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-09-09 17:18:16 +08:00
wing328
35cf42996a
add note to deprecate swift generator
2017-09-09 17:16:04 +08:00
Jon Schoning
4fb612c2e8
[haskell-http-client] update documentation; refactoring; add 'strictFields' cli option ( #6458 )
...
* update readme; remove unused DeriveAnyClass extension
* refactor request/param utility functions
* add strictFields cli option
* add CONTRIBUTING.md
2017-09-09 17:11:46 +08:00
Carlton Whitehead
dcca115691
Genesys acquired Interactive Intelligence ( #6453 )
...
See http://www.genesys.com/about/newsroom/news/genesys-completes-acquisition-of-interactive-intelligence
2017-09-08 08:47:56 +08:00
wing328
5c547d5f4d
add jfastnacht to php tech comm
2017-09-08 08:41:01 +08:00
Jon Schoning
4310ea326c
[haskell-http-client] update readme; improve lens generation; fix dateFormat ( #6448 )
...
* point readme links to canonical locations
* use lenses for non-required model fields, instead of traversals
* fix .gitignore generation
* fix dateFormat cli option bug
2017-09-07 23:17:49 +08:00
ecolleu
3cd3b907f6
[ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI ( #6436 )
...
* [ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI (Issue #6432 )
The constructor of StringEntity can throw UnsupportedEncodingException, which is not catch nor thrown by createRequest method.
Therefore the build of android client fails with:
ApiInvoker.java:448: error: unreported exception UnsupportedEncodingException; must be caught or declared to be thrown
This commit adds a try ... catch on UnsupportedEncodingException in invokeAPI methods and declare this exception to be thrown in createRequest
* [ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI (Issue #6432 )
The constructor of StringEntity can throw UnsupportedEncodingException, which is not catch nor thrown by createRequest method.
Therefore the build of android client fails with:
ApiInvoker.java:448: error: unreported exception UnsupportedEncodingException; must be caught or declared to be thrown
This commit adds a try ... catch on UnsupportedEncodingException in invokeAPI methods and declare this exception to be thrown in createRequest
* [ANDROID][Volley] Handle UnsupportedEncodingException (Issue #6432 )
Throw more precise ApiException
2017-09-07 18:12:09 +08:00
Jean-François Côté
0cf82d7ae3
[All generators] Supports of hyphen-case to camelCase ( #6399 )
...
* Supports of hyphen-case to camelCase
* Add unit tests for the new section in the camelize function.
2017-09-07 13:14:22 +08:00
Dário Tavares Antunes
29a3a4b336
[Java] Handle Long in enum correctly ( #6342 )
...
Resolves #6338
2017-09-07 02:19:19 +08:00
jaz-ah
565844585e
[Swift3/Swift4] update all cocoapods for swift3/swift4 ( #6441 )
...
* [Swift] update all cocoapods for swift3/swift4
* fix subspec specification
2017-09-07 00:56:48 +08:00
wing328
845f54da99
[Java] fix bug to only remove "CustomInstantDeserializer" for Play v2.5 ( #6444 )
...
* fix bug to only remove CustomInstantDeserializer for play25
* revise logic
* fix logic for CustomInstantDeserializer.java
2017-09-07 00:18:39 +08:00
manuc66
a41e8bed97
[csharp] Support inheritance instead of duplicating parent properties in derived classes ( #5922 )
...
* [csharp] Explicitly set supportsInheritance
* [csharp] set supportsInheritance for client
This includes supportsInheritance only for the client codegen at the
moment, because setting in AbstractCSharpCodegen would require the
change to be tested in all derived generators, possibly including
similar template changes to this commit's.
* include nice improvement of https://github.com/jimschubert/swagger-codegen/tree/csharp/3829 and leverage https://github.com/manuc66/JsonSubTypes for subtype deserialization
* remove duplicate base validations
* remove useless tests
* restore documentation for properties coming from parent
* launch bin/security/csharp-petstore.sh
* it's impossible to call an explicitly implemented interface-method on the base class
(https://stackoverflow.com/questions/5976216/how-to-call-an-explicitly-implemented-interface-method-on-the-base-class )
* restore portion of code that was lost
* regenerate more
* fix missing using
* take the multi .net compatible revision
* keep generated model simple when no hierarchy involved
* regenerate with:
- bin/csharp-petstore-all.sh && bin/security/csharp-petstore.sh
- bin/csharp-dotnet2-petstore.sh && bin/csharp-petstore.sh && bin/csharp-petstore-netcore-project.sh && bin/csharp-petstore-net-standard.sh && bin/csharp-property-changed-petstore.sh
* fix sln indentation and the missing windows runner for dotnet2
* fix inheritance GetHashCode and Equals
* override instead of hiding the base method
+ fix the csharp-property-changed-petstore.bat
* By default the value of the discriminator property must be the name of the current schema
* Add test for subtype deserialisation from parent type
* add missing '.bat' and use the 'call' template from javascript-petstore-all.bat
add missing file to trigger it on windows
* fix default value bug
* cleanup copyright information
* formatting after merge
* fix merge
* applying bin/csharp-petstore-all.sh
* applying bin/security/csharp-petstore.sh
2017-09-06 17:22:20 +08:00
wing328
b8183fbd09
remove spaces in templates
2017-09-06 16:54:36 +08:00
lukoyanov
f623aa1f5b
[Java] Play! retrofit2 client content-type handling fixes ( #6440 )
...
* proper content-type handling (npe fixed when content-type is absent, improved content-length calculation)
* samples updated
* fixed missing imports, samples updated
2017-09-06 15:43:19 +08:00
Jon Schoning
c7d145a4ba
add haskell-http-client-generator ( #6429 )
2017-09-06 00:33:48 +08:00
Alex
4eab5406c5
Added ModelInterface for PHP Models ( #6331 )
...
All Model classes include a set of methods - it makes sense to align them to a concrete interface to improve strict typing when referencing these models.
2017-09-05 22:22:18 +08:00
Takuro Wada
84bb749cc3
[typescript-angular] add customized encoder to use '+' char in query parameter #6306 ( #6334 )
2017-09-05 22:04:23 +08:00
wing328
30fb13257a
add ramnov as r template creator
2017-09-04 01:25:04 +08:00
wing328
a4c0975aa4
[R] Add new R client generator ( #6351 )
...
* add r client codegen
* update r api, model templates
* various fix
* rename Json to JSON
* more enhancements
* fix json handling
* add file upload support, var name to handle hyphen
* use httr::upload_file
2017-09-04 00:21:32 +08:00
wing328
c1f5de91bb
add comment, update ruby, php samples
2017-09-03 23:20:55 +08:00
Daniel Ochoa Rodríguez
cfa2074802
Fix Uuid parse ( #6382 )
...
* Fix Uuid parse
* Add isString = true when property is Uuid
This will not break previous code
* Update conversionBegin.mustache
* Update conversionEnd.mustache
2017-09-03 23:10:25 +08:00
Giacomo
a1c1a82725
- Added javax.validation.Valid annotation to modules/swagger-codegen/… ( #6398 )
...
* - Added javax.validation.Valid annotation to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/bodyParams.mustache
- Added bean validation and api description to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/headerParams.mustache
- Added api description to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/queryParams.mustache
- Added interfaceOnly parameter management to modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaJAXRSSpecServerCodegen.java to generate only interfaces and models.
- Added interfaceOnly parameter management to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/api.mustache
- Added throws java.lang.Exception to modules/swagger-codegen/src/main/resources/JavaJaxRS/spec/api.mustache
* Run ./bin/jaxrs-spec-petstore-server.sh
* jaxrs-spec: javax.validation.Valid model attributes for array items
* Run ./bin/jaxrs-spec-petstore-server.sh
2017-09-03 22:45:35 +08:00
Florent Chamfroy
5007a1b1ba
Problem with enumOuterClass ( #6428 )
...
rewrite enumOuterClass based on modelEnum in Java swagger-codegen
templates.
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/Java/modelEnum.mustache
2017-09-03 22:36:10 +08:00
jaz-ah
19694ae4e3
[Swift3] Make sure decode doesn't fail on optional arguments ( #6423 )
...
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name
* update samples
* one step closer
* closer implementation
* break on optional decode failing since it's an optional we don't want to fail the whole decode
* update samples
2017-09-03 22:30:42 +08:00
jaz-ah
b19fa25521
[Swift3] Missing decoders for Array elements ( #6422 )
...
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name
* update samples
* one step closer
* closer implementation
* add back in array decoders
* regenerate samples
2017-09-03 22:30:21 +08:00
wing328
d22ee7c779
add lukoyanov to java tech comm
2017-09-02 23:02:02 +08:00
wing328
1f2730c587
Revert "Revert "[Java][Retrofit2] Return ResponseBody if response is "file"" ( #6421 )" ( #6426 )
...
This reverts commit a6561e7d21 .
2017-09-02 21:33:55 +08:00
Rene Cacheaux
da8f1e58bd
[Swift4] Updates syntax in Codable helper template. ( #6417 )
2017-09-02 18:33:38 +08:00
wing328
1097375d7f
fix file upload in retrofit2 (without play) ( #6425 )
2017-09-02 17:35:46 +08:00
wing328
2a011d0a1e
update retrofit2 petstore samples
2017-09-02 01:31:00 +08:00
wing328
a6561e7d21
Revert "[Java][Retrofit2] Return ResponseBody if response is "file"" ( #6421 )
...
* Revert "Make the Rust codegen compile. (#6411 )"
This reverts commit 60766c6210 .
* Revert "[Kotlin] Fix model enum generation (#6383 )"
This reverts commit adf5d643d5 .
* Revert "Global namespaces for ruby basic types (#6418 )"
This reverts commit 070894dc95 .
* Revert "add ehyche to swift tech comm"
This reverts commit 5c62ba182e .
* Revert "[python-client] Thread pool fix (#6396 )"
This reverts commit a28ce0b604 .
* Revert "update retrofit2 petstore samples"
This reverts commit 0f1a61d9c2 .
* Revert "Retrofit2: Return ResponseBody if response if file. (#6407 )"
This reverts commit 481c040373 .
2017-09-02 01:26:42 +08:00
Ahmed Charles
60766c6210
Make the Rust codegen compile. ( #6411 )
...
* Use the right package name for the Rust crate.
* Change getters on models to return Option for non-required fields.
* Cleanup Rust generation and get example compiling again.
* Use underscore names for functions.
2017-09-02 00:06:55 +08:00
Christian Röder
adf5d643d5
[Kotlin] Fix model enum generation ( #6383 )
...
Run postProcessModelsEnum on model enums, so that enumVars get populated,
and fix the model enum template.
2017-09-01 23:11:21 +08:00
Gleb Sinyavsky
070894dc95
Global namespaces for ruby basic types ( #6418 )
...
File here will be overriden by generated class File of swagger.yml containse the definition named File. Using global namespace can fix it
2017-09-01 22:56:47 +08:00
wing328
5c62ba182e
add ehyche to swift tech comm
2017-09-01 22:55:38 +08:00
Darshana Sanjeewan Adikari
a28ce0b604
[python-client] Thread pool fix ( #6396 )
...
* [python-client] Added close() and join() for threadpool at ApiClient destructor.
* Updated stuff for CI
2017-09-01 18:18:03 +08:00
wing328
0f1a61d9c2
update retrofit2 petstore samples
2017-09-01 17:14:43 +08:00
craffael
481c040373
Retrofit2: Return ResponseBody if response if file. ( #6407 )
...
Until now
--------------------
If a swagger endpoint returned a file (e.g. an image), then the Retrofit2
template has choosen the return type java.io.File. However, retrofit cannot
deal with this and throws a com.google.gson.stream.MalformedJsonException.
New:
-------------------
If a swagger endpoint returns a file, then the corresponding Retrofit2 endpoint
will return a okhttp3.ResponseBody which can be used to retrieve the file.
2017-09-01 17:01:15 +08:00
wing328
5a533a2f00
use another id for bbdouglas (java tech comm)
2017-09-01 16:50:32 +08:00
lukoyanov
a2c4f0baf4
[Java] Implemented support for Play! 2.5.x (java8) for retrofit2 client ( #6007 )
...
* Implemented support for Play! 2.5.x / java8
* Added petstore sample for play25
* implemented play25 support
implemented version switch via playVersion config option
* fixed compilation failure after merge
* Disabled generation of CustomInstantDeserializer if dateLibrary equals to java8
2017-08-31 23:02:09 +08:00
wing328
3ea74619c0
add farcaller to rust tech comm
2017-08-31 22:50:01 +08:00
Shimin Guo
37f48239b0
Map ByteArray to Text for haskell codegen ( #6402 )
...
* Support ByteArray in haskell codegen
* update petstore example
2017-08-31 10:19:42 +08:00
johnjcsmith
8ec98a2ac4
Fixes a small typo in README.md ( #6409 )
2017-08-31 10:11:58 +08:00
wing328
e78eae7cd4
add bkryza to bash tech comm
2017-08-31 02:09:21 +08:00
Jean-François Côté
d80c0f5546
[Java Play Framework] Fix a small error of using paramName instead of baseName ( #6395 )
...
* Fix a small error of using paramName instead of baseName
* Add sample generation
2017-08-30 17:58:24 +08:00
wing328
9fb8e637fa
add jfiala to java tech comm
2017-08-30 16:41:38 +08:00
wing328
cd391d651c
add daurnimator as lua tech comm
2017-08-30 16:28:28 +08:00
wing328
5721177212
add sreeshas to java tech comm
2017-08-30 01:06:57 +08:00
wing328
274675bb2b
add presentations to swagger codegen
2017-08-30 00:43:48 +08:00
David Fischer
506c58ec74
[JaxRS] Fix response annotation generation ( fixes #2588 ) ( #6373 )
...
* [JaxRS] Fix response annotation generation (fixes #2588 )
* [JaxRS] Fix jaxrs jersey1 usetags sample provider
* Revert "[JaxRS] Fix jaxrs jersey1 usetags sample provider"
This reverts commit 73fef2e451e376b23f6c1d43d8781f0b4a0bd1f5.
* [JaxRS] Fix jaxrs jersey1 sample generator
* [JaxRS] Fix samples for jersey1 and jersey2
* [Server: Java] Fix diamond operator defaultValue for Java < 1.7
2017-08-30 00:31:56 +08:00
jaz-ah
b0db394855
[Swift3] fix for unwrapRequired compilation when we have a "result" as one of the parameters ( #6377 )
...
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name
* update samples
* one step closer
* closer implementation
* fix unwrapRequired models when we have a parameter named result
2017-08-30 00:01:47 +08:00
wing328
b1660c2d57
add python presentations, add java tech com
2017-08-29 22:05:50 +08:00
wing328
edfec88943
add mandrean to php, C# tech com
2017-08-29 14:07:48 +08:00
wing328
b77337102a
move mbohlool to python committee
2017-08-29 02:13:04 +08:00
wing328
b981421bbb
add frol to python committee
2017-08-29 01:58:01 +08:00
wing328
e915b01cf7
update technical committee for cliffano
2017-08-29 01:56:59 +08:00
wing328
51b5207f92
add mbohlool to technical committee (python)
2017-08-29 01:39:07 +08:00
wing328
1f6b909dd0
add technical committee, remove evangelist
2017-08-29 01:31:22 +08:00
wing328
d8fcedadbe
rename ts angular batch files
2017-08-28 18:45:17 +08:00
wing328
ccfe7f5cbf
minor fix to ts angularjs bin script
2017-08-28 18:36:37 +08:00
Damien Pontifex
14f0375bdd
Codegen class rename for Angular and AngularJS to reflect naming guidelines ( #6109 )
...
* Rrename for angular and angularjs to reflect naming guidelines
see http://angularjs.blogspot.com.au/2017/01/branding-guidelines-for-angular-and.html
- move makes typescript-angular -> typescript-angularjs
- move makes typescript-angular2 -> typescript-angular
Language string with generate was already this so generation shouldnt change
but class naming follows this convention now
* Fixing merge problems
2017-08-28 18:32:50 +08:00
Yusuke Tsutsumi
8bdaf493dd
implemented tornado-based client. ( #6367 )
2017-08-28 15:10:06 +08:00
Ahmet Taha Sakar
17b71f1707
Swift3 arrayenums ( #6354 )
...
* added headers to makeRequest function for swift3 template
* added support for enum arrays
2017-08-28 15:08:28 +08:00
sandro97git
4457361c56
fix(codegen, nodejs-server): correct reponse.end ( #6301 )
...
Don't send code with response.end because it's already set in writeHead.
Fixes #6292
2017-08-25 23:54:41 +08:00
Isman Usoh
3ecc374682
[Typescript-Fetch] Support additionalproperties, Enum, Auth and more. ( #6130 )
...
* Support additionalproperties and more.
- Upgrade to TypeScript 2
- Use type definition from npm instead of typings, typings is deprecation
- Use Enum instead of String Literal Types
- Use typescript es6 lib for target es5
- Support additionalproperties
- Support JSDoc
- Add snapshot and npmRepository option
- Update typescript-fetch run script for linux
- Create typescript-fetch run script for windows
* Update and fix
- Fix circle run script
- Fix duplicate query parameter
* Rename typescript-fetch folder to lowercase
* Fix for review and update new line end of file
* Fix end of file
* rename script to {lang}-petstore-all.sh and fix test
* Fix override query string
https://stackoverflow.com/a/7517673/1077943
2017-08-25 23:26:32 +08:00
wing328
d4b8658e07
add style guide for R
2017-08-25 22:52:55 +08:00
stmeyer
6c8bd6b83e
[QT5CPP] General Improvements ( #6315 )
...
* - check C++ keywords
- setter for SSL configuration
* recreate example QT5CPP
* only emit error signal if error happens
* provide more error information
* regenerate example QT5CPP
* * use reserved words in abstract cpp generator
* update CppRest examples
* remove tabs
2017-08-25 18:35:56 +08:00
jaz-ah
1b05960a74
[Swift3] Fix unwrapRequired parameter which wouldn't compile ( #6340 )
...
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name
* update samples
* one step closer
* closer implementation
* fix build when using unwrapRequired option
2017-08-25 18:19:26 +08:00
Christian Röder
8a423d2aa5
Kotlin: Use packageName option for all classes ( #6365 )
...
Use the optional packageName parameter for model and api classes,
additionally to the infrastructure classes.
Fixes #6364
2017-08-24 10:44:02 +08:00
Krzysztof Karol
4ee557aa24
Fix swagger-api/swagger-codegen#6345. Wrap optional JSDoc parameter (apiClient) in square brackets ( #6346 )
2017-08-24 10:39:34 +08:00
Michael Werle
0fe8c7c96f
[Java] Valid generated classes with fullJavaUtil ( #6357 )
...
Partial fix for #2936 ; will fix the ArrayList/HashMap import issue in generated Java client code.
2017-08-24 10:35:43 +08:00
Jean-François Côté
006b97525f
Update the Java Play Framework generator to version 2.6.3 ( #6356 )
2017-08-24 10:23:10 +08:00
wing328
6ff612ffcb
fix pom in jaxrs-cxf-cdi ( #6343 )
2017-08-21 15:51:30 +08:00
Ryan Nowakowski
2d2f88e3d1
[python] Fix body check in rest.py ( #6333 )
...
Checking for "trueness" here is not sufficient. An empty list has a truth
value of false so it will not be encoded as json and sent as the request
body as it should. Instead we need to check explicitly if body is None.
2017-08-20 23:50:55 +08:00
wing328
da4deda278
update jaxrs-cxf petstore samples
2017-08-20 23:46:08 +08:00
wing328
d6c95226c7
minor code formatting fix
2017-08-19 12:11:47 +08:00
ToreJohansson
dabe6b5961
Added examples for body parameter ( #6228 )
2017-08-19 12:07:40 +08:00
Christian Röder
88e99f1a42
Kotlin: Fix trailing comma for data classes ( #6323 )
...
If a data class has no optional parameters, a trailing comma (which was
supposed to delimit the list of required and optional parameters) will be
inserted after the last required paramter, leading to a syntax error in
Kotlin.
2017-08-19 11:56:29 +08:00
wing328
7eb3ab8bf5
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-08-15 16:49:01 +08:00
wing328
2944bf8876
update java petstore (security)
2017-08-15 16:45:03 +08:00
lukoyanov
936c586df3
fixed error handling (now retrofit2.HttpException is thrown instead of RuntimeException on API error) ( #6302 )
...
value adapter now supports both F.Promise<Model> and F.Promise<Response<Model>> in retrofit interface
switched dataLibrary to java8
2017-08-15 16:03:19 +08:00
Morten Christensen
e31cef8c71
Added modelPropertyNaming option to the csharp generator - Almost 100% based of the implementation of the option for Scala ( #6305 )
2017-08-15 15:30:35 +08:00
Ali
7f50b3c300
[Java] fix a bug whereby OAuth intercept method calls itself forever ( #6290 )
...
* fix a bug whereby OAuth intercept method calls itself forever
When the response is 401 or 403, the interceptor assumes that it is because of token so it keeps retrying the request with new token. However if the response status is due to the fact that authorization to the api endpoint failed, and not due to invalid token, then a recursive operation of updating token and re-requesting the failed request happens.
* change binary OR operator: | to normal OR operator: ||
although binary may work, it's unusual and likely was unintentional.
2017-08-15 14:57:26 +08:00
Ramkumar Chandrasekaran
59663c0f1f
Remove License File ( #6312 )
2017-08-15 14:40:05 +08:00
Daniel Woodel
024916c425
[swift3] Download file fix #6274 ( #6274 )
2017-08-15 12:11:23 +08:00
wing328
23145edb83
Merge branch 'update_java_petstore'
2017-08-14 17:42:31 +08:00
Ramzi Maalej
c714b1ab00
Strip package name from the class name ( #6293 )
2017-08-14 17:02:45 +08:00
wing328
958ad9af87
update petstore samples
2017-08-14 16:54:33 +08:00
Lars Wander
23d0fedc9c
[Java] Fix okhttp-gson datetime converter compilation ( #6230 )
2017-08-14 16:50:02 +08:00
Yusuke Tsutsumi
d39b1ff76f
[python] asyncio support ( #6245 )
...
* trying an approach with providing asyncio as a framework.
* adding example of asyncio.
* removing sample client to help PR look more manageable.
* possibly fixing a unit test
* getting unit test to pass again.
* addressing comments.
2017-08-14 16:16:55 +08:00
Ramkumar Chandrasekaran
3de6a8f0f2
Adding R Petstore Client Package ( #6307 )
2017-08-14 16:06:08 +08:00
Ahmet Taha Sakar
da4fe86402
Swift3 xcodewarnings ( #6298 )
...
* added headers to makeRequest function for swift3 template
* Swift3 update to dismiss Xcode warnings
2017-08-13 13:09:23 +08:00
wing328
71123e157e
[Java][JAX-RS] Add Petstore samples with "useTags" option ( #6300 )
...
* add samples for jaxrs (jersey1,2) usetags
* fix duplicated id
2017-08-12 22:05:25 +08:00
Manuel Kiessling
105fe4958e
[php] Fixed typo in codedocs (Swaagger -> Swagger). ( #6299 )
2017-08-12 21:36:19 +08:00
Thomas Townsend
01477de711
Add useTags option to JavaJersey server codegen ( #6278 )
2017-08-12 18:02:31 +08:00
ephemera
11424a8cdd
fix #6264 ( #6276 )
2017-08-12 17:57:13 +08:00
lopesmcc
2ebb1bcaf0
[JAVA-VERTX] make Vertx client support running on different contexts ( #6283 )
...
* [java-vertx] make vertx client support running on different contexts
* [java-vertx] make vertx client support running on different contexts (samples)
2017-08-12 17:56:20 +08:00
mferguson-gb
bc633766f8
Retrofit2 rxjava2 adapter imports ( #6294 )
...
* Update retrofit2 rxjava2 adapter dependencies
* Update sample code
2017-08-12 17:34:03 +08:00
wing328
565b406b0e
comment out ts angular test
2017-08-12 17:27:09 +08:00
Michael Kaye
c2ababbb5b
[swift3] empty model with only additional properties ( #6273 )
2017-08-12 01:03:37 +08:00
Jean-François Côté
ab28c7c825
[Java Play Framework] Remove most warnings + bug fixes ( #6275 )
...
* Removals of most of the warnings found by lint
* Removals of most of the warnings found by lint (PART 2)
* Removals of most of the warnings found by lint (PART 3)
* Removals of most of the warnings found by lint (PART 4)
* Removals of most of the warnings found by lint (PART 5)
* Fix conversion error
* Removal of unnecessary import. Other will need more complex login in the generator itself (not in the mustache files)
* Add missing imports + fix to the regex. Generation of the samples
2017-08-11 15:38:18 +08:00
Gökberk Karaca
b0333af8bd
Fix unexpected text error in javadoc by replacing url with html tag ( #6279 )
2017-08-11 08:50:36 +08:00
stevecookform3
adfe4b6e6c
add @Valid/@Validated annotations to controller methods/nested models ( #6254 )
...
* add @Valid/@Validated annotations to controller methods and nested models
* update spring samples
2017-08-11 08:44:51 +08:00
wing328
f4de42608f
add Lua template creator
2017-08-11 02:05:14 +08:00
wing328
06686d65fa
[Lua] Add new Lua client generator ( #6252 )
...
* 1st commit of lua generator
* add petstore sample
* various fixes based on feedback
* better return handling
* check status code 1st letter
* add support for query parameters, auth, body param
* more fixes based on daurnimator feedback
* more fixes based on daurnimator feedback
* fix a few more issues found by luac -p
* use lower case for http header key name
* more fixes based on feedback
* update lua sample
* skip auto-generated readme, doc, test files
* use tab instead of 2-space
* fix container return type
* fix cast method call
* fix cast function call
2017-08-11 01:41:29 +08:00
wing328
79a5620fbc
remove lua sample in preparation for lua generator release
2017-08-10 21:51:47 +08:00
wing328
5d263e1c9c
set java-play-framework-petstore-server-fake-endpoints.sh to executable
2017-08-10 01:19:58 +08:00
wing328
974a2abdd5
make shell script executable
2017-08-09 22:39:51 +08:00
wing328
ce0dc64dd5
add back pom and shell script for java play petstore
2017-08-09 22:03:20 +08:00
Jean-François Côté
1e991be5f3
[JavaPlayFramework] Fix for issue #6100 ( #6128 )
...
* Fix issue #6100 . Tested with all the samples.
* Fix multiple issue with the examples. Removing all of this.
Adding fake endpoint .sh but it is not compiling right now.
2017-08-09 22:00:46 +08:00
Davide Zipeto
5c384d0f15
string used instead of bolean ( #6268 )
...
Deprecated should be a boolean otherwise the parser does not validate
2017-08-09 17:16:48 +08:00
Jean-François Côté
00b46e8a94
[Typescript-Jquery] Fix file upload ( #6262 )
...
* Fix a bug with the file upload that was not working
* Prevent unnecessary append to the FormData
2017-08-09 17:05:00 +08:00
wing328
e94ba4c36d
Merge branch 'gcernier-amadeus-issue-3371b'
2017-08-08 16:07:21 +08:00
wing328
c05db535e1
Merge branch 'issue-3371' of https://github.com/gcernier-amadeus/swagger-codegen into gcernier-amadeus-issue-3371b
2017-08-08 15:31:52 +08:00
daurnimator
5d14f3f733
samples/client/petstore/lua: Add lua sample ( #6244 )
...
* samples/client/petstore/lua: Add basic lua GET request
* samples/client/petstore/lua: Add classes
2017-08-08 11:35:17 +08:00
Gökberk Karaca
53f9ae277b
Add externalDocs support ( #6255 )
2017-08-08 01:11:00 +08:00
wing328
fca8d81b2b
[JS] fix template directory for ES5 ( #6253 )
...
* fix #5845 (template dir)
* fix js petstore test case
2017-08-07 22:10:56 +08:00
wing328
43e53dadda
remove old petstore powershell sample
2017-08-07 15:41:30 +08:00
wing328
cc848a1c24
fix replaceAll with replace
2017-08-06 17:52:19 +08:00
wing328
187d9a29a5
add farcaller as Rust template creator
2017-08-06 17:06:58 +08:00
wing328
4cb7f1d613
[Rust] add new Rust client generator ( #6105 )
...
* add rust generator (1st release)
* update based on feedback
* fix reserved keyword
* fix string parameter
* Convert String to &str in trait definition
* Only pass pathParams to uri builder
* Fixed the html escaping in return type
* Fixed the hashmap constructor
* Added models into API scope
* removed models subimport, reference from super
* update returntype in method signature
* Fixed the remaining templates inconsistencies
* Fixed issues that floated up in kubernetes swagger file
* add hash support, fix docstring
* fix map parameter, update api.mustache
* use baseName for parameter
* use fully-qualfiied model name
* add rust tests
* fix test cases
* Rust gen slightly more idiomatic (#6247 )
* Go -> Rust in README
* Remove leftover go file in rust sample
* rust: Regenerate sample
* rust: Rename *Impl -> *Client
* rust: one-line use line
More in line with common style
* rust: Replace tabs (in java) with 4 spaces
* Added trivial getter implementation (#6249 )
* update rust petstore samples
2017-08-06 16:59:08 +08:00
wing328
ffe7f0fb86
fix typo in java docstring
2017-08-06 15:39:14 +08:00
wing328
18c57a65ed
Fix returnBaseType in Map response ( #6246 )
...
* fix returnBaseType for map response
* fix javadoc string
2017-08-05 22:24:46 +08:00
wing328
646c2bc23c
update java petstore (okhttp-gson) samples
2017-08-05 00:54:01 +08:00
Lars Wander
86f2ea5e3e
[Java] okhttp-gson content-type fix for */* ( #6232 )
2017-08-05 00:47:52 +08:00
Javier Velilla
e4276853d7
Fixed typo in the Abstract Eiffel class. ( #6239 )
...
Fixed typo in shell script
Added support for Outer Enums, inner enums not supported.
Added missing UUID library in ecf template.
Improved Model inheritance.
2017-08-05 00:38:50 +08:00
wing328
10dc17e850
added "How Square makes its SDKs"
2017-08-04 17:02:10 +08:00
wing328
d3294ddd7c
add link to DevXcon 2017 presentation
2017-08-04 16:59:19 +08:00
wing328
e60034ec7d
update swift petstore samples
2017-08-04 01:01:19 +08:00
Hans-Christian Esperer
3cb36738b1
Fix issue #6212 POD Generated podfile doesn't include all generated swift files #6212 ( #6220 )
...
* Reference all generated swift files in the podfile
* Update test files
2017-08-04 00:46:01 +08:00
Mark Thebridge
9cadfd45d7
Scala import fix ( #6227 )
...
* Fix typo in Scala import generation
* Update test files
2017-08-03 18:40:58 +08:00
wing328
7aee5b6ee7
update java petstore sample, reenable test for resttemplate-withxml
2017-08-03 17:09:38 +08:00
mobreza
b4e0854823
Improved support for XML wrapped items ( #6150 )
...
* Improved support for XML wrapped items
* XML @annotation whitespace fixed
2017-08-03 16:44:17 +08:00
mobreza
b433afebdd
withXml replaces useJaxbAnnotations ( #6152 )
...
* Regenerated bin/jaxrs-*
* Replace `useJaxbAnnotations` with `withXml`
2017-08-03 15:35:33 +08:00
wing328
f26281fa5b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-08-02 23:41:39 +08:00
wing328
54d00084f7
update php, ruby petstore
2017-08-02 23:38:46 +08:00
Ahmet Taha Sakar
b9ae61a9f4
Added Fitwell to using companies ( #6222 )
2017-08-02 23:29:21 +08:00
wing328
8c487d5dbe
update python ,swift petstore sample
2017-08-02 21:23:06 +08:00
ehyche
32906ea7ce
Add Objective-C compatibility for Optional scalars in swift4 just as we added in swift3. ( #6158 )
...
This change adds Objective-C compatibility for Swift Optional scalars in the swift4 language just like we added in swift3 here:
https://github.com/swagger-api/swagger-codegen/pull/6129
It also adds unit tests for the swift4 language. Currently those unit tests are the same as the swift3 unit tests, but will change soon as we iterate on the swift4 language generator.
2017-08-02 21:19:48 +08:00
wing328
04e53dfba1
comment out resttemplate-withXml test
2017-08-02 20:48:29 +08:00
ehyche
dd46ba9ef6
Add additional cli option and properties to swift3 for Objective-C compatibility. ( #6129 )
...
Currently, in the swift3 language, if you have an optional integer, number, or boolean property in a model, then the generated swift3 model class might look like:
class SomeModel {
var someInt: Int?
var someFloat: Float?
var someDouble: Double?
var someBool: Bool?
}
This works fine if you are accessing this model only from Swift code. However, it is very common for iOS codebases to contain both Swift AND Objective-C. If you need to access this model from Objective-C, then those 4 properties are not accessible, since Optional scalars do not translate to Objective-C.
Therefore, in the swift3 language, we want to add some code for Objective-C compatibility:
1. We add a "objCompatible" boolean command-line option. If objCompatible=true, then this enables some additional code generation to make these types of properties accessible from Objective-C. If objCompatible=false, then the generated code is exactly as it currently is. The default is objcCopmatible=false.
2. If objCompatible=true, then for these types of Objective-C-inaccessible properties (Optional scalars), then we add a "x-swift-optional-scalar=true" vendor extension in the CodegenProperty.
3. Then, in the model.mustache template, if we see x-swift-optional-scalar=true, then we add an additional computed property which returns an optional NSNumber.
So, for example, when objcCompatible=false (the default case), then the generated code for the "declawed" property of the Cat model looks like:
open class Cat: Animal {
public var declawed: Bool?
...
But when objcCompatible=true, then it looks like:
open class Cat: Animal {
public var declawed: Bool?
public var declawedNum: NSNumber? {
get {
return declawed.map({ return NSNumber(value: $0) })
}
}
...
2017-08-02 18:20:01 +08:00
ToreJohansson
218273e9a8
Fixed x-example ( #6195 )
2017-08-02 18:14:35 +08:00
Chandan Singh
1c4e77585f
Issue 6172 ( #6173 )
...
* Changes to allow field names as examples for string properties and multiple items in array during example generation
* Reverting the version to 2.3.0-SNAPSHOT and autogenerated petstore files
2017-08-02 17:59:54 +08:00
wing328
e9285e31e1
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-08-02 17:23:43 +08:00
wing328
7f23b8fae6
Merge branch 'spring_update_sample'
2017-08-02 17:23:18 +08:00
Jeff
6e72018a64
Add polymorphism support for python ( #6208 )
...
* Add polymorphism support for python
* Update api_client
* Remove leading spaces
* Bugfix
* Catch case where swagger_types is none but get_real_child_model is defined
2017-08-02 17:15:26 +08:00
wing328
92b129708d
update spring samples
2017-08-02 16:43:54 +08:00
ToreJohansson
34e5838924
Added all models to postProcessOperations ( #6194 )
...
* Added all models to postProcessOperations
* Added new postProcessOperationsWithModels
2017-08-02 16:14:34 +08:00
wing328
1e18702380
add link to johannes presentation
2017-08-01 21:28:36 +08:00
wing328
785b467f64
add @lopesmcc as Vertx template creator
2017-07-31 22:12:00 +08:00
lopesmcc
66d48a0c71
[Java-VertX] Java Vertx client ( #6204 )
...
* #6165 - Java Vertx client
* #6165 - Java Vertx client (samples)
* #6165 - Java Vertx client (tests generation)
* #6165 - Java Vertx client (fixed test samples)
2017-07-31 20:04:11 +08:00
Mykola Yashchenko
be9a9a3837
[Java] Jersey, Jersey2 and Resteasy clients do not support HTTP-HEAD ( #6210 )
2017-07-31 19:03:25 +08:00
wing328
fab49e80a8
update Java jersey 1,2 to handle */*
2017-07-31 13:26:56 +08:00
Halil İbrahim Şener
182807ed9a
[Java][Client] Add javax.validation.validation-api dependency for Bean Validation API support to jersey2 ( #6203 )
2017-07-31 13:15:44 +08:00
Halil İbrahim Şener
a6f981350e
[Java][Client] Add PATCH method support for jersey2 ( #6197 )
2017-07-31 13:08:30 +08:00
wing328
443b0f142b
remove ref to SO ( #6209 )
2017-07-29 18:53:08 +08:00
Pavel Tavoda
d412bcfd6c
Fix to #6141 - [BASH] Bug generating access_token when "in: query" ( #6187 )
...
* Fix to #6141 - [BASH] Bug generating access_token when "in: query"
* Fresh petstore scripts
2017-07-28 16:00:44 +08:00
ToreJohansson
68966ac34e
Added year to default generator ( #6196 )
2017-07-28 15:58:58 +08:00
wing328
cd43ad8c62
set auth, request package based on invokerPacakge ( #6200 )
2017-07-28 13:31:47 +08:00
wing328
a6f594bfd2
use jersey 2.6 for java6 ( #6198 )
2017-07-28 01:59:31 +08:00
wing328
82835db670
fix issue with api key (query) in c# ( #6199 )
2017-07-28 01:51:39 +08:00
Ximo Guanter
e4e9a985e3
[Java Play-Framework] Remove unneeded deps ( #6097 )
...
* Remove unneeded deps in Java Play Framework codegen
* rebuild petstore project with latest java-play-framework changes
* fix: pr feedback
2017-07-27 23:47:04 +08:00
wing328
6c657a263b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-07-27 19:44:16 +08:00
wing328
67ec9d395d
fix snapshot push for master
2017-07-27 19:43:41 +08:00
Mykola Yashchenko
bb2a53ac9c
added additional properties to manage Android version numbers more easily ( #6160 )
2017-07-27 19:27:59 +08:00
CappCorp
e7b28f0d2d
[kotlin] removed unaccurate warning ( #6135 ) ( #6137 )
2017-07-27 16:39:11 +08:00
Vaughn Dice
40ae715392
[go] add http request host override for api client ( #6174 )
2017-07-27 15:53:33 +08:00
Sebastiano Miano
1eadb4201b
Pistache server ( #6189 )
...
* Added C++ generator for Pistache
* Revert of CodegenOperation
* Updated template
* Removed isRestful from method declaration
* Updated httpMethod variable
* Changed isRestfulCreate
* Updated pistache library name
* Update pistache petstore sample with the new library name
2017-07-27 14:56:56 +08:00
wing328
927055a681
[Java] MIME type "*/*" default to JSON ( #6188 )
...
* update java petstore
* minor fix to docstring
* roll back resttemplate with xml petstore due to errors
* minor fix to resttemplate isjson check
2017-07-27 11:36:29 +08:00
Lars Wander
44e7b5dd3f
[Java] Interpret consumes '*/*' as 'application/json' ( #6175 )
2017-07-27 00:35:46 +08:00
Cheng Luo
b2ef88eac6
fix the issue 5779 ( #6176 )
2017-07-26 22:19:33 +08:00
wing328
b33f01660e
reenable tests for ts node and angular
2017-07-26 20:53:38 +08:00
Duan Shiqiang
f9eaef8f24
Ts node angular2 typings ( #6178 )
...
* removed typings for typescript-node language and updated typescript version
* updated sample of typescript-node by running .\bin\windows\typescript-node.bat
2017-07-26 20:29:46 +08:00
wing328
e807b81471
Better control on setter, getter (for boolean, non-boolean) ( #6177 )
...
* better control on setter, boolean getter
* improve test casees for getter and setter
2017-07-26 19:57:50 +08:00
Andrea Rossi
66f2f70634
Add execute permissions to gradlew ( #6168 )
...
Some of the gradlew files don't have execution permission, so this adds it.
2017-07-26 15:30:09 +08:00
Alexandre Demode
17dff8b1f6
Fix PHP file param name ( #6171 )
2017-07-26 14:56:13 +08:00
Halil İbrahim Şener
7696ca1658
[Java][Client] Add Deprecated annotation and update samples ( #6166 )
2017-07-26 01:07:30 +08:00
Mykola Yashchenko
5223c80c6d
generate boolean getter method according to a code convention ( #6169 )
2017-07-25 23:43:56 +08:00
wing328
b683d6a335
add link to presentation about using Gradle
2017-07-25 22:28:17 +08:00
wing328
bc68e9706e
update java play petstore sample
2017-07-25 17:48:13 +08:00
Ximo Guanter
70e2f643dd
Fix date-time params in Java-Play codegen ( #6088 )
2017-07-25 17:45:02 +08:00
wing328
45213e0eb6
add tips about github keyword
2017-07-25 15:09:38 +08:00
Georgy Grigoryev
eea797d181
import models fix for csharp ( #6155 )
2017-07-25 15:04:30 +08:00
Eric O'Connell
2540db8adf
More flexible subclassing of ApiClient possible by s/private/protected/g ( #6159 )
...
* More flexible subclassing of ApiClient possible by s/private/protected/g
I found myself in a situation where I needed to change the configured `Feature`s, but
because of all the private variables I was not able to do so. Perhaps this is a bit too
broad of a stroke, but I changed all fields and methods to `protected` instead of `private`.
In this way, future extensibility should be improved.
Also, to solve my particular problem, I added a new empty method called
`performAdditionalClientConfiguration` which will allow subclasses to add specific features,
or do anything else possible with a `ClientConfig`.
* Updated samples
2017-07-25 14:56:34 +08:00
Dathan Bennett
630b126938
Update README.md to fix broken TOC link ( #6162 )
2017-07-25 14:54:30 +08:00
marcotta
21146b5087
Fix Xcode Documentation Issue ( #6157 )
...
Allow documentation to specify void when no
return type is available
Remove Xcode warnings:
"Documentation Issue
Empty paragraph passed to '@return' command"
2017-07-25 01:32:36 +08:00
wing328
943b47d04c
remove PetStatus from petstore.yaml
2017-07-25 01:21:15 +08:00
Jean-François Côté
79e10c427a
Fix for issue #5460 ( #5778 )
...
* Fix issue 5460
* Handling only first and last double quote to support example with double quote in the middle
* Fix proposed by @ePaul
* Add comments to explain de fixStringModel function. Add an enum model called PetStatus that test this scenario. Update sample only for JavaPlayFramework generator
2017-07-25 01:20:36 +08:00
wing328
64658f0bea
update eiffel petstore
2017-07-25 00:03:15 +08:00
wing328
007fc46b6a
[Java][Spring] set base package to "invokerPackage" ( #6156 )
...
* set base package to invokerPackage in spring
* minor fix to how invokerPackage is processed
* fix option test failure
2017-07-24 22:00:10 +08:00
wing328
b91ddfc669
comment out ts jquery test
2017-07-24 18:11:18 +08:00
wing328
5497ce5b23
update python petstore samples
2017-07-24 00:32:26 +08:00
Jeff
67288b1303
Add polymorphism support for python ( #6066 )
2017-07-24 00:25:39 +08:00
wing328
4a8d9c3509
add "Data" as reserved word in swift 2.x, 4.x
2017-07-24 00:06:11 +08:00
julien-h-webcenter
f5591232fc
fix add "Data" to reserved Keywords ( #6011 ) ( #6021 )
2017-07-24 00:03:33 +08:00
wing328
827c8c38ed
Merge branch 'gabrielbauman-patch-1'
2017-07-23 23:46:44 +08:00
wing328
302a0b4e93
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-07-23 23:39:00 +08:00
wing328
2d19776caf
Merge branch 'mobreza-jersey-logging-deprecated'
2017-07-23 23:38:39 +08:00
wing328
43d8fe5047
update java (jersey2) petstore samples
2017-07-23 23:38:15 +08:00
Isman Usoh
7805125713
Fix generate additionalProperties array type #6081 ( #6082 )
2017-07-23 23:21:57 +08:00
wing328
5cbce712fd
update spring petstore samples
2017-07-23 23:07:03 +08:00
wing328
8f95691681
Merge branch 'patch-1' of https://github.com/gabrielbauman/swagger-codegen into gabrielbauman-patch-1
2017-07-23 23:02:30 +08:00
Matija Obreza
a0de7cb3a4
Jersey LoggingFilter is deprecated, replaced with LoggingFeature
2017-07-23 16:54:12 +02:00
Jean-François Côté
bf327519b8
Add support for endpoint examples. Right now it doesn't work because {{{example}}} is always empty ( #5775 )
2017-07-23 22:45:30 +08:00
Jean-François Côté
8597b3f843
[JavaPlayFramework] Add automatic bean validation method when activated ( #6125 )
...
* Add automatic validation of return type when beanValidation is activated
* Small fixes for the automatic validation
* Add validation of entering body object + fix problem when receiving list + do not validate when the return value is a file
2017-07-23 21:49:55 +08:00
wing328
570f0a9bee
Squashed commit of the following:
...
commit e3210cf8cc679c54f5c0d8d4fda2db6af1ee5bcf
Author: wing328 <wing328hk@gmail.com >
Date: Sun Jul 23 17:41:44 2017 +0800
comment out failed kotlin test
commit ed6bd1b92464f56885bc3cfa5d30936ce4a3d53d
Author: wing328 <wing328hk@gmail.com >
Date: Sun Jul 23 17:17:20 2017 +0800
test kotlin the last
commit a601445d04d0935f6a80a5052f1b4c6c3ee514d2
Author: wing328 <wing328hk@gmail.com >
Date: Sun Jul 23 16:56:40 2017 +0800
add test for kotlin client
2017-07-23 18:25:36 +08:00
wing328
e916a769ca
update ts script to use petstore.yaml, add
...
typescript-aurelia-petstore.bat
2017-07-23 16:02:34 +08:00
wing328
188e998683
add petstore samples for typescript aurelia
2017-07-23 15:52:02 +08:00
Konstantin Simon Maria Möllers
21619c5320
[TypeScript][Aurelia] Create Aurelia code generator #5987 ( #5991 )
...
* [TypeScript][Aurelia] Create Aurelia code generator #5987
* Implement authentication methods for Aurelia #5987
* Support form data in Aurelia #5987
* Generate an index.ts file for Aurelia #5987
* Add return type to Aurelia model imports #5987
* Add Aurelia client options test #5987
2017-07-23 15:38:21 +08:00
wing328
e298964489
Added redhat with approval from Alec
2017-07-23 11:54:43 +08:00
CappCorp
a2a7ffe2bd
[kotlin] fixed support of source folder ( #6133 ) ( #6134 )
2017-07-23 11:34:02 +08:00
wing328
b54bd0581a
update ts fetch petstore samples
2017-07-23 02:24:18 +08:00
roberterdin
e710405778
[TypeScript Fetch] Optional URL query parameters not sent anymore ( #6032 )
...
* [TypeScript Fetch] Optional URL query parameters not sent anymore
This prevents empty URL parameters from being sent, e.g. http://some-api/endpoint?param=SOMETHING?v= will now be http://some-api/endpoint?param=SOMETHING .
Solution suggested by @TiFu. Fixes #6003 .
* Fixed indentation
* fixed missing semicolon
2017-07-23 02:12:41 +08:00
wing328
a4d67d9115
minor fix to typescript-jquery batch file
2017-07-23 02:00:53 +08:00
wing328
6c922fdae1
Squashed commit of the following:
...
commit b33232e52b9642e9edf724429dc99afe39d9df07
Merge: e3a1e30 3e76185
Author: wing328 <wing328hk@gmail.com >
Date: Sun Jul 23 01:38:09 2017 +0800
Merge branch 'add-petstore-support-typescript-jquery' of https://github.com/StingrayDigital/swagger-codegen into StingrayDigital-add-petstore-support-typescript-jquery
commit 3e76185d906d8b53cc3e7a198546b9e111a0cca4
Author: Jean-François Côté <jcote@stingray.com >
Date: Thu Jul 20 13:50:01 2017 -0400
Add working npm generator.
commit 5c27df7c4822fed10ddb81b8a35f60ca40b60914
Author: Jean-François Côté <jcote@stingray.com >
Date: Fri Jul 7 14:39:39 2017 -0400
Fix suggested by @wing328 's review
commit 41da37b3576a82ad6056434d36e9d579ef495492
Author: Jean-François Côté <jcote@stingray.com >
Date: Wed Jul 5 15:47:40 2017 -0400
Add petstore integration and updated sample
2017-07-23 01:39:36 +08:00
wing328
e3a1e308c4
update smaples, skip ts angular test.
2017-07-22 17:27:10 +08:00
Javier Velilla
fa73e56c17
Enhancements to the Eiffel generator #6057 ( #6138 )
...
Added shell scripts, batch files to generate Eiffel Petstore samples.
Added Setup CI (travis, shippable, etc) to cover the Eiffel Petstore samples.
Refactored part of the code into an Abstract Eiffel base class,
which can be later used in Eiffel server stub generators.
Added Eiffel Style guide to the contribution guidelines so that Eiffel contributors know what to follow in terms of code style
Fixed code generator issues.
Updated mustaches templates.
2017-07-22 16:55:45 +08:00
Yuantao
9b6115ec65
#5958 [JAVA-RESTEASY] Add servialVersionId to generated model class when serializableModel=true ( #6108 )
2017-07-22 16:50:18 +08:00
marcotta
a3c93a64b4
[objc] Convert boolean query params to true/false ( #6139 ) ( #6142 )
...
Change booleans in query parameters from 0/1 to true/false to
match Swagger UI behaviour
2017-07-22 16:27:05 +08:00
NicoEigenmannCW
b9b1b7647b
Possible Ruby Enum Fix ( #6131 )
2017-07-21 22:26:39 +08:00
Vladimir Pouzanov
1f133e8ecd
[New Generator] Rust API client generator ( #6092 )
...
* Added rust client example
* Added a proper apiclient / configuration based example
2017-07-21 21:58:31 +08:00
Alessandro
faa62ee40c
Swift3 code enhancements ( #6034 )
...
* Improve generated code in APIs so to use the most of Swift SDK
Improve generated code in APIHelper so to remove duplicated code and reuse existing checks
* run ./bin/swift3-petstore.sh
* Run ./bin/swift3-petstore-all.sh to update all the Petstore samples
* Restore old implementation and fix using .isEmpty in place of .count
* Run scripts to update pet store samples
* Reverte changes that use reduce
* Bug fixes on APIHelper template
2017-07-21 21:43:21 +08:00
ehyche
2be2ee080b
Fixes for swift4 language ( #6116 )
...
* Fix build error in Xcode 9 beta 3, as .compact is no longer defined
* Add test schema for Swift 4 and associated script and config files
* Add test app for swift4Test.json schema
* Make integer, Integer, int, and Int32 types map to Swift Int type instead of Int32 type
* Add CodingKeys to model template, which allows us to serialize/deserialize variable names that are different than property names
* Make updates to Swift 4 test schema
* Fixes for unit test app for swift4Test.json Swift 4 test schema
2017-07-20 15:45:09 +08:00
Jean-François Côté
bca35f6645
Fix for issue #6094 ( #6121 )
2017-07-20 15:42:56 +08:00
Sergey Shandar
f00e6b349e
Syntax highlighting ( #6124 )
2017-07-20 15:16:06 +08:00
wing328
f1b5ad2e0f
Merge pull request #6106 from davidpasztor/fix_issue5878
...
[Swift3] Fixed compilation issue on macOS
2017-07-20 01:06:58 +08:00
wing328
2dddfd6f16
Merge pull request #6112 from chubinou/flask_reserved_words
...
[Flask] self and None are reserved words (#6111 )
2017-07-19 23:00:56 +08:00
David Pasztor
1fd5e79180
run ./bin/swift3-petstore-all.sh
2017-07-19 15:27:14 +01:00
Pierre Lamot
9e51c45dd2
[Python] True, False, nonlocal are python3 reserved words ( #6111 )
2017-07-19 11:16:20 +02:00
David Pasztor
9c87cab4e6
4-space indentation used instead of tab
2017-07-19 10:10:10 +01:00
Pierre Lamot
6b85416f47
[Flask] self and None are reserved words ( #6111 )
...
* setReservedWordsLowerCase was called twice, the second time without self and None
* True, False and nonlocal are python3 reserved words
2017-07-19 10:04:27 +02:00
David Pasztor
fa555cf452
shell script ran under /bin/swift3-petstore.sh
2017-07-18 17:20:42 +01:00
David Pasztor
a3871d1f33
fix issue 5878
2017-07-18 17:05:27 +01:00
Jean-François Côté
dad3e6018a
[Java Play Framework] Fix collection utils ( #6025 )
...
* Major fix to the collection handling in Play Framework Generator
* Major fix to the collection handling in Play Framework Generator (small details missing from previous commit)
* Add the fix to header and form parameters too
2017-07-18 19:36:43 +08:00
Greg Huang
dafefc06f1
fix issue #6029 ( #6033 )
2017-07-18 14:16:35 +08:00
Ximo Guanter
5aced55075
Fix Java Play server generator when path variables aren't camelCase ( #6086 )
2017-07-18 01:33:52 +08:00
wing328
f999936c1d
[JAX-RS][RESTEasy] Add Petstore integration tests for RESTEasy EAP (java8) ( #6091 )
...
* add petstore integration tests for resteasy eap java8
* update circle pom.xml
2017-07-17 23:25:38 +08:00
Ian O'Neill
dc800c79cc
[JaxrsResteasy] Fix EAP dependencies for Java 8 ( #6058 )
...
* Depend on Joda by default, like the default JAX-RS server
* If Java 8 is specified add Jackson JSR-310 dependency and import
in the JacksonConfig.
2017-07-17 21:44:51 +08:00
Sodala
24d7700cd0
fix npe :Unboxing of '(count < numVars) ? true : null' produce npe ( #5917 )
...
* fix npe :Unboxing of '(count < numVars) ? true : null' may produce 'java.lang.NullPointerException
* add test to cover reconcileInlineEnums method.
2017-07-17 19:10:54 +08:00
Alex Nolasco
93415af92d
[Objc] Class not identified due to Circular imports ( #6069 )
...
* [Objc] Class not identified due to Circular imports
* Pet store generated sample
2017-07-17 17:14:05 +08:00
Jean-François Côté
bf74de3a5a
[Java Play Framework] Fix to the default values ( #5879 )
...
* Fix to the default values. It did not take care of the "default" and also was setting to a bad default when not set.
* Just make a difference between string and non string instead of placing all types in the mustache file
2017-07-17 16:51:02 +08:00
Réda Housni Alaoui
a2d19a1feb
Bugfix: Generated typescript-angular code fails to compile when models.ts file is empty ( #6076 )
...
* Fixed
* Fixed
2017-07-17 16:37:37 +08:00
wing328
a04dfe0ccc
update ts angular2 petstore samples
2017-07-17 16:15:28 +08:00
Isman Usoh
4be4ef6712
Fix Enum model display duplicate description #6072 ( #6073 )
2017-07-17 16:05:10 +08:00
wing328
e00c6d1dcf
update conributing guildeline
2017-07-17 15:42:58 +08:00
wing328
2502c376a4
add batch files for python flask
2017-07-17 15:28:15 +08:00
Matthias Walthart
e8bdf71ffc
Added not null check in code generator. ( #6079 )
...
* Added not null check in code generator.
* Replaced tabs with whitespaces.
2017-07-17 15:10:43 +08:00
wing328
d24895f4bc
remove unused travis (for objc, swift)
2017-07-17 14:59:26 +08:00
wing328
2c818920e6
update badge for 3.0.0
2017-07-17 00:56:53 +08:00
wing328
c66a0aaa07
Merge pull request #6075 from swagger-api/2.3.0
...
Merge 2.3.0 into master
2017-07-17 00:27:36 +08:00
wing328
5219b9c26f
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-16 21:57:29 +08:00
wing328
42445709a7
Update readme with links to 2.2.3
2017-07-16 21:49:30 +08:00
wing328
11d9cbd597
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-16 16:10:08 +08:00
Tony Tam
049b1b2bcc
Merge pull request #6071 from swagger-api/update-parser
...
updated parser
2017-07-15 15:29:21 -07:00
Tony Tam
5bf17da011
updated readme
2017-07-15 14:54:44 -07:00
Tony Tam
a17c3093f8
updated parser
2017-07-15 12:34:36 -07:00
wing328
34e94fbed0
Updated versions for 2.2.3 release and other minor enhancements ( #6070 )
...
* update pom to prepare 2.2.3 release
* add header support to qt5, update samples
* update version in java help
* update to xcode 9
* rollback to xcode8.2
2017-07-16 01:03:40 +08:00
Tony Tam
c47d5cc704
updated to xcode 9
2017-07-14 18:11:30 -07:00
Tony Tam
424fe3991d
Merge pull request #6068 from swagger-api/issue-5006-2.3.0
...
updated qt5 headers
2017-07-14 17:27:11 -07:00
Tony Tam
ff04f532bb
Merge pull request #6067 from swagger-api/issue-5006
...
expose default headers, add headers to request
2017-07-14 16:52:33 -07:00
Tony Tam
85dc2a437a
updated qt5 headers
2017-07-14 16:52:14 -07:00
Tony Tam
9ea6e7a06b
expose default headers, add headers to request
2017-07-14 16:22:09 -07:00
Tony Tam
d065a6a368
Merge pull request #6063 from zmoore-usgs/feature/move-config-options
...
Moving instantiationTypes, typeMappings, languageSpecificPrimitives, additionalProperties, and reservedWordsMappings out of configOptions and converting it into a list, rather than being a comma-separated string.
2017-07-14 13:55:05 -07:00
zmoore-usgs
7e723e4ae5
Updated comments
2017-07-14 14:17:12 -05:00
zmoore-usgs
4e40d370a6
Switched methods to use the list application functions rather than the string application functions.
2017-07-14 14:10:48 -05:00
wing328
d9ed238ccc
update ts fetch samples
2017-07-15 03:04:40 +08:00
zmoore-usgs
7d82b05d4c
Moving instantiationTypes, typeMappings, languageSpecificPrimitives, additionalProperties, and reservedWordsMappings out of configOptions and converting it into a list, rather than being a comma-separated string.
2017-07-14 12:54:09 -05:00
wing328
c1825b417c
use html-escaped description for C# (client, server), Java server ( #6061 )
2017-07-14 23:36:24 +08:00
Lars Wander
9c56bb63d8
[Java] Escape descriptions in javadocs ( #6040 )
...
The [java8 doclint](http://openjdk.java.net/jeps/172 ) rejects unescaped
HTML chars such as `<`, making some generated clients unbuildable with
java8. Seems a few property descriptions were using the `{{{` instead
of `{{` preventing those HTML chars from being escaped properly.
2017-07-14 22:07:19 +08:00
wing328
f987c93a71
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-14 22:01:12 +08:00
wing328
b024d86eab
add location for windows batch file
2017-07-14 22:00:37 +08:00
wing328
cf2b21b57a
update wording for issue template
2017-07-14 18:28:29 +08:00
wing328
ddf9db3148
fix window batch scripts after ts angular generator rename
2017-07-14 17:45:56 +08:00
wing328
804967eeed
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-14 16:31:44 +08:00
wing328
fd87359a1b
update c# petstore sample to remove pattern check for byte array
2017-07-14 16:17:00 +08:00
wing328
921e4a779e
update c# petstore samples
2017-07-14 15:49:03 +08:00
Johan Rouve
f90249caf4
Remove jetty server port ( #6049 )
2017-07-14 15:28:31 +08:00
wing328
bd1ab72776
update c# petstore samples
2017-07-14 13:17:56 +08:00
wing328
523e42160e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-14 13:11:47 +08:00
wing328
ba704e3ac8
add @summary tag to ts client ( #6052 )
2017-07-14 13:10:36 +08:00
wing328
094dbd00ed
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-13 23:35:22 +08:00
Isman Usoh
fdaf8ea65f
[Typescript-Angular2] add @summary JSDoc tag ( #6028 )
...
* add @summary JSDoc tag
* updatee sample and create windows script for typescript-angular2
* Fix for Review
2017-07-13 23:33:08 +08:00
Tino Fuhrmann
c0039ed570
[ts-node] Fixed html escape bug in serialize/deserialize ( #6043 )
2017-07-13 23:32:06 +08:00
wing328
2a5913c0dd
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-07-13 23:27:12 +08:00
wing328
d8bae71b8e
update JS petstore samples
2017-07-13 23:26:49 +08:00
wing328
21d33c4054
skip pattern check for byte array in C# ( #6048 )
2017-07-13 23:25:23 +08:00
wing328
6b07af8d4e
[TypeScript] rename Angular, Angular2 generators ( #6046 )
...
* rename ts angular, angular2, update scripts
* update angular4 script
2017-07-13 23:24:21 +08:00
boosh
d20537b263
Clarify the Javascript README for local use ( #6044 )
...
- Add instructions for installing the generated Javascript library locally without publishing to a remote npm registry.
- Clarify what `main.js` is.
2017-07-13 23:12:56 +08:00
wing328
dd8d59bed1
add jvelilla as eiffel template creator
2017-07-13 22:55:04 +08:00
Javier Velilla
9f711ae7e8
[Eiffel] Add Eiffel API client generator ( #6036 )
...
* Initial Eiffel Client code generator
TODO API and Domain model
* Updated EiffelClientCodegen to support Eiffel code style.
Added mustaches templates for models and apis.
The last one still under development.
* Updated templates, initial API generation.
Added client request template.
* Updated api.mustache style
* Updated code generation with a new directory layout.
Added test case generation, clean code.
* Updated Code generator, added apidoc and modeldoc
Updated readme file
* Added a Basic JSON Deserializer
Updated API client to support by default a basic json (de)serializer and let
the user customize then if needed.
* Updated Eiffel code generator to use Eiffel feature name style.
Updated templates to follow Eiffel style.
Improved feature descriptions.
* Added model inheritance support.
Removed unused code.
* Updated Eiffel code templates, refactor remove obsolte feature calls.
Added Eiffel sample in samples/client/petstore/eiffel.
* Updated Java code style.
* Fixed formating, using spaces instead of tabs.
* Updated EiffelCodeGenarator typeMapping.
Added TestCases for EfiffelClientOption and ModelTest cases.
Updated sample code to use the lastest changes.
* Restore keyword `nil' in Go Language.
2017-07-13 22:51:24 +08:00
beatcracker
ef076c34b4
[csharp] Update nuget.exe URL for latest version ( #6031 )
...
* Set nuget.exe URL to latest version
Fix #6022
* Update samples
2017-07-13 22:49:56 +08:00
stkrwork
4f33a02868
Swagger version info ( #6039 )
2017-07-13 17:32:24 +08:00
stkrwork
9d4ebf6998
Swagger version info ( #6038 )
2017-07-13 17:31:23 +08:00
wing328
8a1b030ed1
add zooplus
2017-07-13 17:02:45 +08:00
wing328
67bbb8349e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-13 15:39:05 +08:00
wing328
38b072556a
run mvn formatter:format on swagger codegen cli
2017-07-13 15:38:02 +08:00
wing328
eb498e23b8
run "mvn formatter:format" on maven plug-in
2017-07-13 15:37:15 +08:00
wing328
ef5c6a939d
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-13 15:36:44 +08:00
wing328
1e53557570
run "mvn formatter:format" on swagger-generator
2017-07-13 15:36:04 +08:00
wing328
e964702550
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-12 21:54:23 +08:00
wing328
0416b0332f
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-07-11 21:57:38 +08:00
wing328
74b0c04b2f
replace tab with 4-space in restbed class
2017-07-11 21:57:00 +08:00
wing328
42b77a303b
[Java][resttemplate] fixed build.gradle ( #6020 )
...
* fix build.gradle for resttemplate
* rename pom.xml id to avoid dup
2017-07-11 18:33:53 +08:00
wing328
898ead17fe
add tests for resttemplate-withXml in circleci
2017-07-11 17:02:44 +08:00
mobreza
5d32edd964
Java support for application/xml ( #5962 )
...
* WIP: CodegenProperty with XML
* WIP: CodegenModel XML bits
* WIP: Jackson XML
* WIP: Java templating
* WIP: Java client withXml flag
* WIP: resttemplate work
* WIP: withXml only when Jackson is used
* WIP: Tabs to spaces
* WIP: java-petstore-resttemplate-withxml sample
* WIP: language: spring
* WIP: language "spring" using library "spring-boot" should include apiPackage in @ComponentScan to detect the API
* WIP: javax.xml for non-Jackson Java and enabled payload logging for jersey2
* WIP: updated java petstore samples
* WIP: JavaSpring with non-jackson XML
* WIP: bin/spring-all-pestore.sh
2017-07-11 17:01:51 +08:00
stkrwork
f2f303b2e8
[C++] [Restbed] Reworked Resource class names ( #6017 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* Started work on restbed improvment
* - Updated samples
- Reworked Resource class names
- Added vendor extension for new formatted resource class names
* fix indention
2017-07-11 00:37:08 +08:00
Konstantin Simon Maria Möllers
d522236cec
Symfony generator enhancements ( #6016 )
...
* Fix error in Symfony models #5985
* Parse Symfony params #5985
* Implement auth metods in Symfony #5985
* Make "get" to "is" in Symfony's booleans #5985
* Use `camelize` instead of `initialCaps` in Symfony #5985
* Use File.separator instead of "/" in PHP/Symfony #5985
* Improve README generation for Symfony #5985
* Create an options test for Symfony #5985
2017-07-11 00:34:43 +08:00
wing328
0876c9d408
add integration tests for ts angular2, 4 ( #6019 )
2017-07-11 00:20:25 +08:00
wing328
ca988039cc
Merge branch 'phiz71-feature/java-vert.x'
2017-07-10 23:52:45 +08:00
wing328
929627722a
make java vertx shell scripts executable
2017-07-10 23:52:10 +08:00
wing328
d56b7ae037
Merge branch 'feature/java-vert.x' of https://github.com/phiz71/swagger-codegen into phiz71-feature/java-vert.x
2017-07-10 23:41:47 +08:00
topce
d5a8ecfe1c
fix blob issue ( #5972 )
2017-07-10 22:26:27 +08:00
mmosemmle
455e53b2ae
[CPP] Fix cpp escape issue part of #5949 ( #5952 )
...
* Fix cpp escape issue.
* whitespace.
2017-07-09 16:34:57 +08:00
serezha93
140826b47f
minor fixes ( #5981 )
...
* Update configuration.mustache
added return tag in PHPDoc
* made sanitizeFilename as static method
* updated petstore
2017-07-09 16:23:18 +08:00
wing328
247cdf273b
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-09 02:08:22 +08:00
wing328
5f44486238
add swift4 to README.md
2017-07-09 01:36:12 +08:00
ehyche
2ce3365eaf
Add a swift4 client generator ( #6010 )
...
* Add a swift4 client generator
* Updates per review comments:
- Changed Alamofire dependency from 4.0 to 4.5
- Added "Codable", "Encodable", and "Decodable" to list of reserved words in generator
- Ran "pod update" in default, promisekit, and rxswift samples test projects
2017-07-09 01:33:52 +08:00
wing328
b852e61ee9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-09 00:59:41 +08:00
Frank Fleige
0274ba79ad
#6012 - fixed mustache template for lumen server ( #6013 )
2017-07-09 00:51:47 +08:00
wing328
a603750617
Merge remote-tracking branch 'origin/fix_option_test' into 2.3.0
2017-07-08 22:52:05 +08:00
wing328
c1e1d23b05
fix ts ng2 option test
2017-07-08 22:37:45 +08:00
wing328
b7ffad9a21
update 2.3.0 circleci badge
2017-07-08 22:25:04 +08:00
Florent Chamfroy
d044498de4
adding Vert.X Codegen
...
Adding the possibility to generate java Vert.X servers.
It uses Vertx-Swagger-Router project.
It can generate an Async callback version or a Rx version.
2017-07-08 16:10:07 +02:00
wing328
4fdaf0d2b4
Merge branch 'wing328-ts_angular2_typings' into 2.3.0
2017-07-08 19:17:41 +08:00
wing328
ed11da25fc
Merge branch '2.3.0' into wing328-ts_angular2_typings
2017-07-08 19:03:31 +08:00
marcotta
7ae4146a2b
[objc] Initialize default BOOL with @(YES)/@(NO). ( #5982 ) ( #5999 )
...
This will prevent submitting integer numbers instead of booleans
when posting objects to the REST API.
2017-07-07 17:16:49 +08:00
wing328
d8e7a11411
remove options to set token
2017-07-07 17:11:34 +08:00
Joel Reymont
4b9d0e6a10
Fix Erlang auth method code generation ( #5994 )
...
Broken code is generated when no authentication methods are supplied
in the API schema. Fix this by providing code to fall back to.
2017-07-07 15:14:06 +08:00
Bryon Williams
0e9f531569
allow accessToken to be specified by string or function; restores functionality of PR #4361 ( #5974 )
2017-07-06 14:28:02 +08:00
topce
01ea4dbb08
fix config issue ( #5971 )
2017-07-06 00:33:57 +08:00
wing328
e18cf6bd4f
update rxjs version
2017-07-05 23:40:21 +08:00
Konstantin Simon Maria Möllers
c29e16f36f
Add Sponsoo to list of companies using swagger codegen ( #5988 )
2017-07-05 21:33:28 +08:00
wing328
18e7c6a712
add php symfony
2017-07-05 16:58:21 +08:00
Konstantin Simon Maria Möllers
8e62ef7b8c
[PHP][Symfony] Add a Symfony server generator #3486 ( #5973 )
2017-07-05 16:43:56 +08:00
Akhil Kedia
f9c9a08a1c
Tizen client bugfixes ( #5979 )
...
* [Bugfix] Removed a debug print statement that sometimes caused crashes.
Change-Id: I62cf8d70faddfe855c7150927441465466dbaa53
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com >
* [Workaround/Fallback] Fix conversion of string representation of Json to JsonNode
Changed the conversion to consider any non-parseable string as a single "json string" object.
This is just a fallback to handle non-ideal server responses.
Change-Id: I5339d385e57b6225706fbaaaba1c04003c3810e9
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com >
* [Bugfix] Correct Handling of Non-String Value Types in Json Maps
Inside the Json Maps in server response, the earlier code was bugged if the "value" in the map was of a non-string type.
Change-Id: I8c34c7e9470fc0743b509917f8098b2ebe2bd4e5
Signed-off-by: Akhil <akhil.kedia@samsung.com >
* [BugFix/WorkAround] No "isPrimitiveType" in BodyParams
The "isPrimitiveType" value tells us whether the data type of a particular parameter is one if the primitive types.
This value is not present when iterating over all the body parameters, but is somehow present when
iterating over all parameters and filtering for only BodyParams.
Change-Id: I5b0a97e615b7300c33dc7f3d4673ad5e87c36f7e
Signed-off-by: Akhil <akhil.kedia@samsung.com >
* [Bugfix] Making Functions Static to Avoid Name Clashes
Multiple functions in different classes might named the same, hence leading to multiple functions of the same name.
Using static to have only internal linkage for these helper functions.
Change-Id: I97fb1dd64b176c4a2b95e6d923723469852bc85a
Signed-off-by: Akhil <akhil.kedia@samsung.com >
* [Enhancement] Minor Improvements to Documentation
Added Modules in Doxygen Doc, Improved MD documentation
Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com >
* Regenrated petstore sample
Update the petstore sample with newest template files
Deleted older sample in samples/client/petstore/tizen/client/
The old samples use oblsolete APIs
(These are APIs for Tizen 2.0, removed in 2.4, current release is 3.0)
Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com >
* [Bugfix] Fixes incorrect headers sent (#5980 )
Regenerated the petstore as well.
Signed-off-by: Akhil Kedia <akhil.kedia@samsung.com >
2017-07-05 01:28:39 +08:00
Jan
2774d47a2b
fix: es6 style of Array inheritance to fix transpiler error ( #5977 )
...
* fix: es6 style of Array inheritance to fix transpiler error
* fix: rebuild of promise-es6 petstore samples with fixed mustache
style: added space between classname and bracket
* style: rebuild javascript-all to reflect style changes in mustache
2017-07-05 01:04:07 +08:00
wing328
f756bd7a72
add style guide for C++ tizen
2017-07-04 19:09:18 +08:00
Julien Fouilhé
c2b575607c
fix(swift3): add en_US_POSIX locale to date formatters ( #5602 )
2017-07-04 11:21:25 +08:00
wing328
45eb5fffc0
add ngVersion option
2017-07-04 01:00:35 +08:00
Jean-François Côté
616f57a592
Typescript-Jquery refactor/improvement proposition ( #5751 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* First iteration of updating the typescript-jquery template/generator
* first RC of the new version of Typescript-JQuery using better models.
* Minor fix to the generation
* first RC of the new version of Typescript-JQuery using better models.
* Add an options for people using this client in a legacy app and that already have jquery loaded with a script tag somewhere
* Generation of the samples based on the latest changes from the typescript-jquery generator
* Fix to the check if the value is null and undefined
* Small fix when using collection
2017-07-03 23:08:48 +08:00
Ryoga Kitagawa
6b40bc6d30
[Swift3] Add sample for unwrapRequired. ( #5853 )
2017-07-03 22:46:42 +08:00
wing328
1187950df4
update links to snapshot
2017-07-03 22:39:31 +08:00
Dennis Kieselhorst
3c6696be40
update Spring cloud dependency ( #5947 missed the application.yml change) ( #5970 )
2017-07-03 21:51:31 +08:00
wing328
44d112e9c6
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-07-03 21:25:39 +08:00
wing328
bec6eaa9dc
minor fix to output path in javascript-es6-petstore.bat
2017-07-03 21:25:16 +08:00
wing328
9a56d4560a
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-03 18:47:10 +08:00
wing328
25a46374c5
Updated Spring, Boot, Fox and Cloud dependencies ( #5969 )
...
* updated Spring, Boot, Fox and Cloud dependencies
* run scripts for java, jaxrs-cxf and spring samples (although changes are not related to my changes)
* update jersey java8 petstore samples
* update java feign samples
* update java petstore samples
* add new files for java petstore clients
* roll back spring cloud dep version
* fix jaxrs-cxf error
2017-07-03 18:44:22 +08:00
wing328
ecf924e78f
[Spring] Adds feature useOptional ( #5968 )
...
* Adds Valid annotation for request body (#4847 )
If useBeanValidation is active, this change will add Valid annotation to ReqeustBody
* Adds generated samples for bean vaildation in spring boot (#4847 )
* Adds feature option (#3819 )
When you enable the feature useOptional the JavaSpring generator will use type Optional for non required parameters.
* Adds generated sample for #3819
* Adds generated sample for #3819
* Reverts commit for bean validation
* Adds generated sample for #3819
* Reverts commit for bean validation
* Fix alignment
* update spring samples
* update pom.xml to include spring use optional samples
* update artifactId to "spring-boot-beanvalidation"
* rpelace tab with 4-space
* check mvn task result
2017-07-03 17:40:00 +08:00
wing328
76481d1d80
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-02 22:43:08 +08:00
wing328
e50a4cca36
update ts angular2 petstore
2017-07-02 22:39:18 +08:00
Paŭlo Ebermann
5de6f7b86e
Change all sample-generators for typescript-angular2-* to use the YAML version. ( #5859 )
2017-07-02 22:32:58 +08:00
mmosemmle
94814176b7
[CPP] Fixing some more ordering of checks ( #5951 )
...
* Fix more ordering of checks.
* Update cpp petstores.
2017-07-02 22:30:42 +08:00
wing328
15382f5b77
Merge branch 'ts_angular2_typings' of https://github.com/wing328/swagger-codegen into wing328-ts_angular2_typings
2017-07-02 22:01:10 +08:00
wing328
f3d83eb925
update ruby gem dependency version ( #5964 )
2017-07-02 21:46:04 +08:00
wing328
304a7ae19a
fix regex escape forward slash ( #5963 )
2017-07-02 20:51:45 +08:00
wing328
f0c40d4c7c
update php security petstore sample
2017-07-02 15:10:17 +08:00
wing328
afd535f415
rollback to 2.6.4 for jackson threetenbp in springmvc
2017-07-01 23:46:31 +08:00
wing328
011c6fd01c
postpone release date to Jul/Aug 2017
2017-07-01 22:43:34 +08:00
wing328
e7d6bf5d04
add links to snapshot versions
2017-07-01 22:40:53 +08:00
wing328
8d31e57e2a
fix spring dep version
2017-07-01 22:22:02 +08:00
wing328
a177e09fbd
update mvn clean deploy for 2.3.0
2017-07-01 15:49:00 +08:00
wing328
9269dac6cf
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-01 15:47:27 +08:00
wing328
7fa53773fc
mvn deploy for master only ( #5946 )
2017-07-01 15:16:26 +08:00
Jordan Zimmerman
40369bb819
Add java8 option 2.3.0 ( #5955 )
...
* Closes #5863
The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.
* Closes #5954
built and ran tests/samples
2017-07-01 15:04:18 +08:00
stkrwork
fbd888d298
[CONFIG] [APACHE] Fix for Java7 issue ( #5960 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* fix java7 issue with apache
2017-06-30 23:58:31 +08:00
wing328
b2366670d7
update ts fetch petstore samples
2017-06-29 23:06:25 +08:00
Sebastian List
f760d93cd7
Updated npm configuration to use new typescript2 typings system
...
This also removes the dependency to the typings project.
Issue #4761
2017-06-29 23:00:22 +08:00
Gavin Sitthiampornphan
d210236040
fix(ts-fetch): preserve available headers ( #5650 )
2017-06-29 22:47:03 +08:00
rubms
6fa4853fe7
[NancyFx] Fixed bug in the generation of enum models that were generated with compilation errors ( #5910 ) ( #5913 )
...
* NancyFx - Fixed bug in the generation of enum types in the NancyFx server, which cause enums to be generated as general classes, without the enum values and with compilation errors (#5910 )
* NancyFx - Changes in the nancyfx sample after the updates in the nancyfx model.mustache template. (#5910 )
2017-06-29 22:35:41 +08:00
Juan Pablo Marzetti
64df75d8b6
Docs and examples need model name to be passed as baseType ( #5944 )
2017-06-29 22:34:12 +08:00
Dennis Kieselhorst
407d728908
updated Spring and Spring Boot dependencies ( #5948 )
2017-06-29 22:28:08 +08:00
wing328
846ee63f38
[C#] Update C# API client dependencies to the latest version ( #5935 )
...
* update C# client dependency
* add back csproj file for c# petstore
* update test result
* downgrade version 1.51.3
* add logo as embedded resource
2017-06-29 21:37:24 +08:00
Dennis Kieselhorst
7a9981b350
updated swagger-ui dependency ( #5945 )
2017-06-29 16:12:33 +08:00
wing328
b18e003d12
update petstore script usage
2017-06-29 15:32:10 +08:00
wing328
2d058aa925
add info message for mvn clean deploy
2017-06-29 14:59:46 +08:00
wing328
9f2d800435
Merge branch 'better_ci_conflicts'
2017-06-29 14:23:01 +08:00
wing328
8015744212
update java petstore samples
2017-06-29 13:53:37 +08:00
Jordan Zimmerman
b2efb70410
Support a true "java8" option ( #5864 )
...
* Closes #5863
The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.
* updated samples
* fixed tests for new CLI java8
* regenerated samples after master merge
* oops - left in an end tag after master merge
* rerun checks
* rerun checks
2017-06-29 13:23:44 +08:00
wing328
7b80557363
fix file not found
2017-06-29 13:22:26 +08:00
wing328
bced355191
better detection for unresolved merge conflicts
2017-06-29 13:01:40 +08:00
Dennis Kieselhorst
a64c7d7986
updated jackson-version ( #5943 )
2017-06-29 10:56:12 +08:00
Dennis Kieselhorst
eb6c6d0698
use enforcer-plugin to fix Maven warning ( #5940 )
2017-06-29 00:22:26 +08:00
Dennis Kieselhorst
e3da4f9fde
updated maven-war-plugin ( #5941 )
2017-06-29 00:14:16 +08:00
Bernd
cbd7301f9c
Update README.md ( #5942 )
...
Added Leanix as Company using swagger codegen
2017-06-28 22:28:16 +08:00
wing328
4f404a794d
add stkrwork as the owner of apache2 template
2017-06-28 18:05:53 +08:00
wing328
fd44d01d9c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-28 18:03:28 +08:00
Paŭlo Ebermann
d31d431071
#5147 : allow multiple for other plural options, too ( #5860 )
...
* Issue #5147 : allow multiple occurrences for other plural options, too.
* Use two --additionalProperties parameters in sample generation script.
2017-06-28 17:55:23 +08:00
wing328
5d7ff49658
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-28 16:23:55 +08:00
Dennis Kieselhorst
4f6e2857cc
removed obsolete jersey2-version ( #5933 )
2017-06-28 16:22:29 +08:00
wing328
cd0ec4ed71
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-06-28 15:36:14 +08:00
wing328
e7561a11f4
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-28 15:35:24 +08:00
Tony Tam
bc01c3c103
Merge pull request #5937 from swagger-api/enable-sonatype-push-2.3.0
...
enabled push to sonatype
2017-06-27 17:21:00 -07:00
Tony Tam
ad7422e2ff
enabled push to sonatype
2017-06-27 13:03:38 -07:00
Tony Tam
a0e4a56026
Merge pull request #5934 from swagger-api/enable-snapshot-push
...
Enable snapshot push
2017-06-27 12:05:58 -07:00
stkrwork
3c0623cce1
ApacheConfGen for HTTP Basic Authentication Proposed implementation ( #5800 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* Auto stash before merge of "master" and "origin/master"
* added missing apache2 config gen in services file
* - Added new Config Type
- Added Samples
- Added sample generating scripts
- Renamed Apache2Confgen to Apache2ConfigCodegen
* - Added Samples
- Added new config type
- Added sample generating scripts
- Renamed Apache2Confgen to Apache2ConfigCodegen
2017-06-28 02:48:53 +08:00
Tony Tam
fae3f42ba8
Update .travis.yml
2017-06-27 10:44:25 -07:00
Tony Tam
8b03baf463
added local settings
2017-06-27 09:35:38 -07:00
Tony Tam
eabc13e468
added sonatype push
2017-06-27 09:35:08 -07:00
Brendan Burns
91f470e41f
Add a function for injecting your own Authentication into the Typescript-node client ( #5865 )
2017-06-28 00:23:40 +08:00
Tony Tam
1e2465735b
[2.3.0] Update Swagger Codegen to v1.5.15 ( #5929 )
...
* updated versions
* match fix in 2.2.x branch
* updated with 73df07d64c
* regenerate pom.xml for jaxrs-cxf-petstore-server-annotated-base-path
* regenerate pom.xml for jaxrs-cxf-petstore-server-non-spring-application
2017-06-28 00:13:52 +08:00
Tony Tam
62c0f17f98
Merge pull request #5858 from swagger-api/issue-5753
...
Update Swagger Codegen to v1.5.15
2017-06-26 14:20:20 -07:00
Tony Tam
73df07d64c
Merge branch 'master' into issue-5753
2017-06-26 13:15:00 -07:00
Tony Tam
8237e491ac
fixed order of checking
2017-06-26 13:10:31 -07:00
wing328
1011b3ae7c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-27 00:42:19 +08:00
wing328
5fbb674cac
fix retrofit okhttp version
2017-06-27 00:41:08 +08:00
wing328
e84b789f78
remove unused files from C# petstore folder
2017-06-26 23:41:22 +08:00
wing328
49dbb51957
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-26 23:39:04 +08:00
wing328
522d704f7a
[Java] Update dependencies for Java clients ( #5926 )
...
* update dep for java jersey1, jersey2
* update sbt dependency for jersey2
* update dep for java okhttp-gson, resteasy, resttemplate
* update dep for java retrofit 1.x, 2.x
* update java petstore samples
2017-06-26 23:18:45 +08:00
wing328
6eb987919f
minor fix to js promise test cases
2017-06-26 21:48:44 +08:00
Felix Becker
9e420f2149
Use id -g for determining the gid instead of -u ( #5899 )
...
fix wrong group id lookup in run-in-docker.sh
2017-06-26 18:29:47 +08:00
Dennis Kieselhorst
68d878c244
update to latest CXF release ( #5923 )
2017-06-26 15:55:34 +08:00
wing328
0c5ba727f9
fix typo in java generator help text
2017-06-26 03:33:03 +08:00
wing328
4d065e8823
[JavaScript] set ES6 as the default for JS generator in the 2.3.0 branch ( #5915 )
...
* set useES6 in all JS scripts/batch files
* set ES6 as the default in js generator
2017-06-25 15:17:09 +08:00
Rafał Petryka
65e888519a
Added one presentation to README.md ( #5921 )
2017-06-25 15:03:37 +08:00
wing328
b9bd221ba9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-23 22:23:17 +08:00
wing328
e08e9cfefe
set useES6 in all JS scripts/batch files
2017-06-23 22:22:05 +08:00
wing328
02f30a27f9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-23 22:09:45 +08:00
wing328
5b4e8a8ed5
[JavaScript] fix JS shell scripts, add log to show template version ( #5907 )
...
* fix JS shell script, add log to show es version
* change CLI option default value for useES6
* fix shell script in JS ES6 promise
* fix windows batch files
* set useES6 to false
2017-06-23 22:09:07 +08:00
wing328
f32dd6f7bc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-23 15:24:04 +08:00
Stanislav Bondarenko
69ce921371
Python - Increase range of valid status codes ( #5901 )
...
swagger-client shouldn't throw ApiException if status code in range 200-299
2017-06-23 11:31:30 +08:00
Hugo Kiyodi Oshiro
d67cb9c30b
Fix wrong es6 template path ( #5904 )
2017-06-23 02:27:50 +08:00
stkrwork
025bf3aa80
Final fix for cpprest for issue #5862 ( #5893 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* First step in fixing the cpp rest template
regenerated new samples
TODO: Fix the other functions
* Updated samples
* Added isMapContainer check
* Fixed item selection in json object for MapContainer
* - Fixed Syntax error in C++
- Fixed Syntax error in Mustache, that escaped characters
2017-06-22 23:00:54 +08:00
wing328
9c3476b014
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-22 22:42:01 +08:00
wing328
999c4dbfb5
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-06-22 22:41:51 +08:00
wing328
8507a25831
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-06-22 22:23:38 +08:00
wing328
a383daa5b0
comment out objc tests
2017-06-22 22:23:08 +08:00
Gabriel Bauman
171151f91e
Make interface default methods return Not Implemented
...
When using JDK8 and generating default interface method implementations, return HTTP 501 Not Implemented rather than 200 OK by default. (#5895 )
2017-06-21 12:24:23 -07:00
wing328
d35239c661
recursively add import for parameters ( #5891 )
2017-06-21 21:35:45 +08:00
SiMing Weng
45519c521c
add testimonial of Viavi Solutions Inc. ( #5890 )
2017-06-21 16:41:42 +08:00
Austin Green
81d69eef1c
[Typescript-Angular2] Removed invalid BASE_PATH InjectionToken type ( #5866 )
2017-06-21 03:39:59 +08:00
stkrwork
8c9f377c16
[CPP] [CPPREST] isMapContainer fix for models ( #5884 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* First step in fixing the cpp rest template
regenerated new samples
TODO: Fix the other functions
* Updated samples
* Added isMapContainer check
* Fixed item selection in json object for MapContainer
2017-06-21 00:59:31 +08:00
wing328
8d0c7128b0
add option to specify c# client path in powershell generator ( #5887 )
2017-06-21 00:58:29 +08:00
wing328
2b8e968977
remove duplicated kotlin template creator
2017-06-20 23:28:14 +08:00
wing328
4920da6ac7
add beatcracker as template creator of PowerShell
2017-06-20 23:26:19 +08:00
wing328
adedaf6adc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-20 22:20:23 +08:00
wing328
e53b3a03aa
[PowerShell] Add PowerShell API client generator (WIP) ( #5789 )
...
* add powershell generator (wip)
* minor fix to api template
* rename model files
* Powershell generator fix (#11 )
* Fix typo
pacakge -> package
* Add missing `petstore` subfolder to $ClientPath
* Resolve $ClientPath to absolute path
Start-Process needs WorkingDirectory to be absolute
* Fix spaces in variable name
${ somevar } is a vairable that literally has spaces in name. We need to
temporarily redifine mustache delimiters so we can generate var. names
without spaces.
* Fix typo
Remove stray `r`
* Fix *.ps1 import in module
Directory structure has changed + we should export functions using
manifest.
* Remove erroneous file
* various fixes and enhancements
* remove nullable for string
* change function name based on feedback by beatcracker
* set index to start at 0
* fix file type
* Powershell generator fix 1 (#12 )
* Add closing curly brace
* Fix duplicated '['
* Get FunctionsToExport using AST
Discussion: swagger-api/swagger-codegen#5789
* add guid option to powershell generator
* add test files, remove docs
* fix array of items
* clean up powershell comment, update model/api test files
2017-06-20 22:20:05 +08:00
wing328
c4356dd9c3
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-20 22:18:28 +08:00
Vlad Frolov
c26b5a1e1b
[JavaScript] Fixed *WithHttpInfo methods in 'usePromises' mode to be ES5 compatible ( #3654 ) ( #4902 ) ( #5871 )
2017-06-20 16:27:07 +08:00
Vlad Frolov
3546361b33
[JavaScript] Added README section for Webpack configuration (howto disable AMD) ( #3466 ) ( #5872 )
2017-06-20 16:25:06 +08:00
stkrwork
8ab2b84c97
[CPP] [CPPREST] first steps on fixing the template ( #5877 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* First step in fixing the cpp rest template
regenerated new samples
TODO: Fix the other functions
* Updated samples
2017-06-20 01:29:42 +08:00
wing328
9f83a1adb1
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-19 23:17:35 +08:00
sabras75
24c55d1f0e
Fix#5856 - Add support for PATCH ( #5875 )
...
* Changing QBuffer to use a QByteArray solves the issue for me since there is no real use-case for using a QBuffer.
Documentation of QT5 states:
QBuffer::QBuffer(QByteArray *byteArray, QObject *parent = Q_NULLPTR)
Constructs a QBuffer that uses the QByteArray pointed to by byteArray as its internal buffer, and with the given parent. The caller is responsible for ensuring that byteArray remains valid until the QBuffer is destroyed, or until setBuffer() is called to change the buffer. QBuffer doesn't take ownership of the QByteArray.
Since the variable “request_content” is allocated on the stack, this is clearly wrong and a bug. The construction of QBuffer is designed this way so that whenever you write to the buffer, it is also written to the byte array that it is pointing to
* Add a retro-compatible solution based on QNetworkAccessManager SourceCode
* update samples
2017-06-19 23:08:32 +08:00
stkrwork
981ad60050
[C++] [Restbed] Reworked the model template for restbed to create generic models ( #5873 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
* - Reworked the getter setter generation
2017-06-19 22:56:01 +08:00
wing328
4fb4887fec
pod install for swift3 clients
2017-06-19 15:17:30 +08:00
wing328
502b6eac00
Redo #5569 to 2.3.0 branch ( #5869 )
2017-06-19 12:02:12 +08:00
wing328
c988afa766
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-19 11:23:58 +08:00
wing328
3a32857790
PR to roll back #5569 ( #5868 )
2017-06-19 11:19:21 +08:00
wing328
84334146f9
better code format for cpprest
2017-06-19 09:59:19 +08:00
wing328
b5411a94f0
update swfit3 petstore samples
2017-06-19 01:29:41 +08:00
wing328
3808d67953
move javascript-es6 templates under subfolder in Javascript
2017-06-19 01:28:39 +08:00
wing328
3ad576a53d
update js es6 samples
2017-06-19 01:21:22 +08:00
Kevin Murphy
6fef7acf9f
[javascript] Fix usages of exports in generated ES6 code ( #5835 )
2017-06-19 00:28:12 +08:00
Kevin Murphy
aa37b9747f
[javascript] Use arrow function with usePromises in ES6 ApiClient.js for superagent callback to preserve this context ( #5814 )
2017-06-19 00:27:52 +08:00
wing328
7893f759e0
fix JS es6 script template folder
2017-06-19 00:07:27 +08:00
Tony Tam
9286e26162
updated versions
2017-06-16 11:49:32 -07:00
Ahmet Taha Sakar
3ced146a65
Swift3 configuration ( #5725 )
...
* added headers to makeRequest function for swift3 template
* Added configuration file to Swift3 template
* added comments about the value read only once
* added comments about the value read only once
* comments fix
* Added Configuration.swift to Project File
* swift 3 promisekit, rxswift updates
2017-06-17 00:25:03 +08:00
wing328
f27143fc08
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-06-16 23:15:45 +08:00
wing328
bbe27581c9
Merge branch 'shawkinsl-user/shawkins/fix/dont_modify_parameter_names'
2017-06-16 23:12:33 +08:00
wing328
0bb610494e
Merge branch 'user/shawkins/fix/dont_modify_parameter_names' of https://github.com/shawkinsl/swagger-codegen into shawkinsl-user/shawkins/fix/dont_modify_parameter_names
2017-06-16 23:12:17 +08:00
Paŭlo Ebermann
ec448a6167
[CLI] #5147 : make -D work like system properties ( #5191 )
...
* Issue #5147 : allow empty values for properties.
* Issue #5147 : Allow multiple `-D` options.
* Issue #5147 : take advantage (and demonstrate) the new usage of -D.
* Issue #5147 : also update windows script and security ones.
2017-06-16 17:29:44 +08:00
wing328
1f1e92d964
update run xcodebuild command for objc client to reduce log
2017-06-16 17:28:57 +08:00
wing328
e0ec454891
add back java rest template to circle ci pom.xml
2017-06-16 14:07:01 +08:00
SiMing Weng
32a6f19933
[Java][RestTemplate] fix compilation issue with API client (resttemplate) ( #5832 )
...
* adapt the resttemplate target for the threeten Time API
* add threeten dependencies to build.gradle
* fix missing dollar sign
* fix missing dollar sign
2017-06-16 00:58:11 +08:00
Paŭlo Ebermann
1a803af54a
Update samples for typescript-angular2. ( #5826 )
2017-06-15 22:17:02 +08:00
wing328
fee54157c0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-15 17:14:39 +08:00
wing328
29a0159add
change PythonClientCodegen.java file format to unix
2017-06-15 17:10:43 +08:00
miguelvaladez
85850b2846
Feature/es6 angular ( #5495 )
...
* module code added for es6-angular client code generation
* typescript wiped out the core gitignore file
* added USE_ES6 cli option to javascript-closure-angular, will use the javascript-es6-angular templates instead
* fixed issue with module file
* added annotations to the templates
* moved default output folder declaration
* moved es6 template folder under closure-angular
2017-06-15 16:44:34 +08:00
wing328
410b2d301f
update c# petstore samples
2017-06-15 16:33:31 +08:00
wing328
5d03905a63
update spring petstore sample
2017-06-15 15:41:21 +08:00
Lorenzo Nicora
01100d56f0
[spring] improve build-time code generation, for CI and maven integration ( #5545 )
...
* Do not generate pom.xml and README.md when interfaceOnly=true #5542
* New swaggerDocketConfig option, to generate Spring configuration class for Swagger Docket bean. Ignored when interfaceOnly=false or library=spring-cloud #5542
* Updated tests running ./bin/spring-all-petstore.sh
* Run ./bin/spring-all-petstore.sh
2017-06-15 15:37:10 +08:00
wing328
ba4ecea408
Merge branch 'update_spring_samples'
2017-06-15 15:09:55 +08:00
wing328
e58342bacb
udpate spring samples
2017-06-15 14:33:16 +08:00
Elizabeth Thomas
b752c0a030
Adding the generator version template to api mustache file ( #5691 )
2017-06-15 13:59:42 +08:00
Elizabeth Thomas
c4f7c4f3f9
Example Generator to populate model for all references of a given model ( #5667 )
...
* Example Generator to populate model for all references of a given model
* Fixing the space
2017-06-15 13:59:21 +08:00
wing328
5c10e24337
use file.separator instead of "/" ( #5846 )
2017-06-15 00:55:47 +08:00
Moscagus
f2276e5b35
Fix for issue #5777 - java/jersey2 ApiClient.invokeAPI doesn´t close the Response object ( #5782 )
...
* Update ApiClient.mustache
Fix for issue #5777
* Update ApiClient.mustache
* Create ApiClient.mustache
* Run java-petstore-jersey2.sh
2017-06-15 00:45:14 +08:00
wing328
b21e0ca763
update Java petstore samples
2017-06-15 00:24:37 +08:00
Michael Kourlas
d20f83e643
[Java] Fix for issue #3638 : Generated Java APIs incorrectly encode commas in certain query parameters ( #4908 )
...
* Fix for issue #3638
* Update tests for fix for issue #3638
* Fix bug when queryParams and collectionQueryParams are both specified
* Update tests
* Add certain tests back, address CI failures
2017-06-15 00:20:04 +08:00
wing328
77c14bca39
use file.separator, minor code format enhancement ( #5844 )
2017-06-15 00:10:32 +08:00
wing328
6d9e862381
Merge branch 'JuH33-master'
2017-06-14 23:29:47 +08:00
wing328
b63193824a
update html2 petstore sample
2017-06-14 23:29:31 +08:00
wing328
c74fc6e0ee
Merge branch 'master' of https://github.com/JuH33/swagger-codegen into JuH33-master
2017-06-14 23:23:24 +08:00
JuH33
e0d7c7dbd5
Html2 speed Up | Raw html using java parser instead of JS parser
2017-06-14 17:06:53 +02:00
wing328
66c64495a9
add sebymiano as Pistache template creator
2017-06-14 22:41:24 +08:00
Sebastiano Miano
e66eceeaaa
[C++] Server Stub Code Generator based on Pistache ( #5838 )
...
* Added C++ generator for Pistache
* Revert of CodegenOperation
* Updated template
* Removed isRestful from method declaration
* Updated httpMethod variable
* Changed isRestfulCreate
2017-06-14 22:40:00 +08:00
Paŭlo Ebermann
4b9988c4f2
Update samples for several language (just whitespace changes, reordering, VERSION) ( #5828 )
...
* Update samples for several languages.
Just whitespace changes and some reordering where the order doesn't matter.
* Adding generated .swagger-codegen/VERSION files.
2017-06-14 01:17:31 +08:00
Paŭlo Ebermann
e8cdfa8185
Update samples for html2. ( #5827 )
2017-06-14 00:48:42 +08:00
Paŭlo Ebermann
29db258e65
Update samples for akka-scala. ( #5825 )
2017-06-14 00:48:31 +08:00
Paŭlo Ebermann
ceff3762cc
Update samples for ze-ph. ( #5823 )
2017-06-14 00:42:24 +08:00
Paŭlo Ebermann
b288991c6c
Updating samples for csharp. ( #5822 )
2017-06-14 00:41:53 +08:00
wing328
d6c717263c
[Python] add project name to setup.py in python client ( #5836 )
...
* add project name to setup.py in python client
* update python README to use project name
* add cli option project name for python
2017-06-14 00:18:54 +08:00
Alex Chauvin
b61dfefa5b
serverPort add from cli ( #5821 )
...
in order to change the serverPort from the codegen cli
2017-06-13 15:57:55 +08:00
Austin Green
1a421112ed
[Typescript-Angular2] Removed models namespace from inheritance template ( #5728 )
2017-06-13 15:51:08 +08:00
wing328
2bc4710e36
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-12 20:57:26 +08:00
wing328
2c7cd07cc3
add back petstore-security-test/typescript-angular
2017-06-12 20:55:53 +08:00
wing328
ab1ecbff38
remove petstore-security-test/typescript-angular folder
2017-06-12 20:52:40 +08:00
mmosemmle
62db9a09ee
Fix issue 5793 ( #5794 )
...
* cast character to string.
* Check if variable name is reversed.
* Guard against reservedWordsMappings.
2017-06-11 22:06:19 +08:00
wing328
1da52bf8ba
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-11 21:43:34 +08:00
Cliffano Subagio
dc7c1f8cb9
[JS] Fix JavaScript string return type ( #5819 )
...
* [javascript] Fix response body when return type is String.
* [javascript] Regenerate javascript petstores with fixed String return type.
* [javascript-es6] Fix response body when return type is string.
2017-06-11 21:42:36 +08:00
wing328
8224688ca3
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-06-11 21:40:46 +08:00
wing328
2f3898c99c
Merge branch 'stevecookform3-java-spring-throw-exceptions' into 2.3.0
2017-06-11 21:40:31 +08:00
wing328
12bcb18e9e
Merge branch 'java-spring-throw-exceptions-#5686' of https://github.com/stevecookform3/swagger-codegen into stevecookform3-java-spring-throw-exceptions
2017-06-11 17:30:53 +08:00
wing328
2d385d8bcb
update retrofit2 dep ( #5820 )
2017-06-11 16:12:04 +08:00
wing328
f163fdb980
update spring samples
2017-06-11 15:39:08 +08:00
manuc66
c5335081ea
fix the mustache file ( #5736 )
2017-06-11 15:34:09 +08:00
wing328
4bbd9b29a2
Merge branch 'swfit_code_format' into 2.3.0
2017-06-11 14:14:41 +08:00
wing328
b7fe612cc7
minor code format enhancement to swift3 client
2017-06-11 13:31:45 +08:00
Jason Gavris
ef8365ecd2
[Swift3] Fix handling of query item with array value ( #5684 )
2017-06-11 12:30:51 +08:00
harishchoragudi
21bf3a5a5e
Create README.md ( #5813 )
...
Added GE in the list of companies using swagger-codegen
2017-06-10 08:50:40 +08:00
wing328
7cddd17acc
[Java] Add JSON-patch support to other Java API clients ( #5808 )
...
* add JSON-patch support to other Java API clients
* minor fix to java jersey1 json check
2017-06-09 21:46:40 +08:00
Brendan Burns
53bd931f5c
Add JSON-patch as a JSON mime-type ( #5764 )
2017-06-09 16:47:38 +08:00
Björn Petersen
e9a0d7ea83
Add android dependency to pom if 'parcelableModel' is set ( #5801 ) ( #5802 )
...
* Add android dependency to pom if 'parcelableModel' is set
* Update java-okhttp-gson-parcelableModel sample
2017-06-09 16:16:53 +08:00
wing328
7e98e59e53
move swift/objc test to the end
2017-06-09 16:11:34 +08:00
Mads Hvelplund
8f7e2a1563
Allow overriding the service delegate ( #5662 )
...
* Added support for injecting service implementations via web.xml
* Updated samples
2017-06-09 16:09:27 +08:00
Jim Schubert
dabf01c3fa
[kotlin] support collection format multi ( #5792 )
...
* [kotlin] support collectionFormat:multi
Adds "multi" support to collections.
Also changes generic lists (List<T>) to arrays. Generic lists and nested
lists can be problematic and require customized json factories. The
previous implement appeared to work because the results in the test were
LinkedHashMap with count greather than 0. The functional test has been
updated to force serialization and verify the results.
* [kotlin] Regenerate sample
* [kotlin] Update model test for Array changes
2017-06-09 15:40:18 +08:00
wing328
022eb0d379
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-09 15:24:53 +08:00
harishchoragudi
2d008be181
Fix for issue#5788 -CPPRest generated models are not using inheritance as specified in contract ( #5791 )
...
* fixed map to use value instead of mapentry while doing fromJson.
* cpprest models now use inheritance properly instead of always extending from ModelBase
* cpprest models now use inheritance properly instead of always extending from ModelBase
* removed a sysout used for debugging
* toJson() and fromJson() now leverages parent class's corresponding methods
* virtual is not needed as override essentially does the same thing.
* added docstring for getModelByName
* corrected the javadoc
* fixed @param issue in javadoc
* fixed @param uncapitalized P in param in javadoc
2017-06-09 01:41:20 +08:00
Romain d'Alverny
73f5266596
[Swift3] Set more liberal Swift3 decoder, behind lenientTypeCast option ( #5795 )
...
* [Swift3] Add lenientTypeCast option
When set to true, this generates a client JSON decoder
that will accept and cast mistyped values.
Here:
- String => Bool ("true" instead of true),
- String => Int ("123" instead of 123),
- NSNumber => String (123 instead of "123").
The point is to allow the same client code to handle several
server implementations that may (sadly) not be up to spec,
or still be "evolving".
The conversion is not guaranteed if the input
Not a perfect/complete solution, not sure if it should be
activated along other casts, so kept behind an option.
* Update Petstore client code
2017-06-08 09:10:21 +08:00
wing328
691c14fa1a
add --rm=false to circleci docker build commands
2017-06-07 23:09:08 +08:00
Akihito Nakano
4612c12560
[PHP] Add support for async requests ( #5771 )
...
* Add xxxAsyncWithHttpInfo
* Add xxxAsync
* Tweak doc comment
* apply DRY principle to the creation process for request
* Fix undefined variable $statusCode
* error handling
* Fix undefined variable $url
* Tweak syntax
* Update samples
run './bin/php-petstore.sh'
* Update samples (security)
run './bin/security/php-petstore.sh'
* Fix doc comment
xxx(Async|AsyncWithHttpInfo) returns \GuzzleHttp\Promise\PromiseInterface
* Update samples (./bin/php-petstore.sh)
* Update samples (./bin/security/php-petstore.sh)
* Add AsyncTest
2017-06-07 20:35:28 +08:00
wing328
e43595a0a1
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-06-07 20:04:12 +08:00
wing328
544b7b77ac
comment out docker update while we're working on the issue
2017-06-07 20:03:48 +08:00
Ralph Langendam
ec19e8f407
Fixed minor compiler error and warning ( #5762 )
...
* 5762 Fixed minor compiler error and warning
* 5762 Regenerated cpprest petstore client
2017-06-07 18:37:45 +08:00
Julien - JuH
9f81aa4bfc
StaticHtml2Gen | Speed up appDescription rendering ( #5722 )
2017-06-07 18:35:17 +08:00
Trent Albright
676e2a04f5
Fix issue with buffered sink handling in OkHttp ( #5786 )
...
* Fix issue with buffered sink handling in okhttp
Fixes unexpected end of stream exceptions when using the okhttp-gson library
and making asynchronous calls.
* update petstore samples for okhttp-gson
$ ./bin/java-petstore-okhttp-gson.sh
$ ./bin/security/java-petstore-okhttp-gson.sh
* WIP: trigger ci
2017-06-07 18:15:06 +08:00
wing328
2bef56c7bd
add env variables for circleci
2017-06-07 18:01:36 +08:00
Jean-François Côté
ccf2f2ff07
Add basic support for collection. ( #5776 )
2017-06-07 17:12:30 +08:00
Vlad Frolov
6a986975e4
[javascript] Fixed fs files support for Electron ( #5765 )
2017-06-07 17:01:47 +08:00
wing328
6183960d86
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-06 17:11:49 +08:00
Kevin Murphy
6239ec0807
[javascript] Mark "fs" package as absent in browser in package.mustache ( #5768 )
2017-06-06 17:09:50 +08:00
Kevin Murphy
9b93d3363f
Fix bug in ES6 ApiClient.mustache ( #5766 )
...
ES6 static properties cannot self-reference.
2017-06-06 16:19:35 +08:00
Kevin Murphy
151d1b2783
[javascript] Fix documentation for ES6 ApiClient ( #5783 )
2017-06-06 16:03:36 +08:00
wing328
f770477d48
Merge branch 'objc_xcpretty'
2017-06-06 16:02:54 +08:00
wing328
0b998f0684
add xcpretty to objc test output
2017-06-06 15:23:15 +08:00
wing328
891cc5347d
comment out resttemplate test
2017-06-06 02:39:07 +08:00
wing328
bc9786dd2d
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-06 01:25:36 +08:00
wing328
785a48e6b9
Merge branch '230_merge_master' into 2.3.0
2017-06-06 01:21:33 +08:00
wing328
001960a2c2
remove podfile for promisekit/rxswift of swift3 petstore
2017-06-06 00:34:22 +08:00
wing328
c3ea24cefa
Merge branch 'objc_ci'
2017-06-06 00:20:31 +08:00
wing328
d6743b4597
uncomment objc tests
2017-06-05 23:35:17 +08:00
wing328
87bbbc1a1b
Merge remote-tracking branch 'origin/master' into 230_merge_master
2017-06-05 23:27:11 +08:00
wing328
6ee332a513
[Swift] Fix issue with Swift Petstore integration tests due to pod install ( #5774 )
...
* add pod file for swift3
* skip pod install
* avoid pod install in swift3 petstore (promisekit,rxswift)
* use https instead of http for cocoapod spec
* avoid timeout in swift3 test
2017-06-05 22:22:56 +08:00
wing328
3cbe96f3c6
comment out pod repo update
2017-06-05 18:03:20 +08:00
wing328
bbe019a3ce
move docker tasks from travis to circleci
2017-06-05 17:54:25 +08:00
wing328
faf082589d
Enable Travis CI tests for Swift, ObjC clients and move some tests to CircleCI ( #5687 )
...
* enable travis CI tests for swift, objc, move some tests to circleci
* fix comment in xml file
* use xcode8.3
* use ruby 2.2.5
* fix objc core data pom.xml
* use cocoapods 1.2.1
* use xcpretty for clearer test results
* fix pom with relative path to script
* comment out objc test
* fix xcpretty exit code
* add && exit ${PIPESTATUS[0]} for swift3 xcodebuild script
* use xcode 8.2
* update promisekit version for swift 2x, 3x
* add pod repo update
* remove Pods directory
* update swift dependencies to the latest version
* update podfile.lock
* rollback Alamofire to 4.0 for swift3
* fix swift3 rxswift api cliiet
* fix testDeletePet test in Swift3 rxswift petstore
* update clojure petstore
* comment out clojure test in travis (already covered in circleci)
* run pestore server locally
* use wing328/swagger-samples to run petstore
* run petstore server in the background
* test ruby petstore client
* add /Users/travis/.cocoapods/repos/master to cache
* add back ruby test, use public pestore server
* add back bash client test
* add npm config set registry to avoid time out
* use docker branch in swagger samples
* remove bash test
* show go version, reorder
* debug go petstore client
* reinstall go
* comment out pod repo update
* uncomment pod repo update
* test go in circleci
* remove go from travis test
* brew install sbt
2017-06-05 15:43:20 +08:00
wing328
40163b26d2
update objc petstore to use petstore.json
2017-06-05 12:25:51 +08:00
Zack Lemmon
f3da691a72
Fix typo in Ruby examples/mustache files ( #5773 )
2017-06-05 11:19:29 +08:00
wing328
4fd52d17c5
minor build warning fix for C# client
2017-06-05 01:05:19 +08:00
Jim Schubert
bc8fe0fd03
[csharp] date proper format ( #5734 )
...
* [csharp] Honor Swagger/OpenAPI 'date' format
Per spec
(https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types ),
DateTime instances defined as 'date' datatype need to be serialized as
defined by full-date - RFC3339, which has the format:
full-date = date-fullyear "-" date-month "-" date-mday
ref:
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14
see #5513
see #5531
* [csharp] Regenerate sample
* [csharp] Include date format test
2017-06-05 00:57:00 +08:00
Arne Jørgensen
d5b3cc0534
[PHP] Fix date format serialization ( #5754 )
...
* [PHP] Honor Swagger/OpenAPI 'date' format
Per spec
(https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types ),
DateTime instances defined as 'date' datatype need to be serialized as
defined by full-date - RFC3339, which has the format:
full-date = date-fullyear "-" date-month "-" date-mday
ref:
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14
see #5531
fixes #5607
* [PHP] Add `date` and `date-time` serializer tests
See #5531
See #5607
* [PHP] Improve codestyle of generated code
* [PHP] Regenerate PHP Petstore sample
* [PHP] Regenerate PHP Security sample
2017-06-05 00:47:56 +08:00
davidgri
00f2dc422d
Issue5613 ( #5616 )
...
* Fixed Issue5162 consumes in GET-Methods
* Fixed Issue5613
* Ran the shell scripts under bin
* Tab removed
2017-06-05 00:38:43 +08:00
baartosz
d7202a7c76
[php] 2.3 - fix form params json encoding ( #5701 )
...
* fixed tests expectations not compatible with phpunit 4
* added test and endpoint definition, updated template
* regenerated sample
* regenerated security sample
2017-06-05 00:36:40 +08:00
Cliffano Subagio
9bc8f37aa6
[javascript] Fix empty response body when schema type is string ( #5759 )
...
* [javascript] Fix response body when return type is String.
* [javascript] Regenerate javascript petstores with fixed String return type.
2017-06-05 00:20:11 +08:00
Jim Schubert
ef07a02a01
[kotlin] Support nested enums in models ( #5769 )
...
* [kotlin] Add model enum support
Model variables marked isEnum=true are nested class enums. Top-level
enums will not be isEnum=true, but rather have a datatype specific to
the enum's type.
* [kotlin] Regenerate client sample
2017-06-05 00:04:58 +08:00
wing328
879149bb69
Revert "[javascript] Added README section for Webpack configuration ( closes #3466 ) ( #5767 )" ( #5770 )
...
This reverts commit 54f5d73ee2 .
2017-06-04 16:52:50 +08:00
Vlad Frolov
54f5d73ee2
[javascript] Added README section for Webpack configuration ( closes #3466 ) ( #5767 )
2017-06-04 15:42:41 +08:00
wing328
034fc44bdd
add Play Framework
2017-06-03 01:14:08 +08:00
sdoeringNew
ffc0d32b9c
#5712 put @JsonValue to appropriate place in generated enum, add TypeAdapter for Gson enums, enhance tests ( #5713 )
2017-06-02 16:03:32 +08:00
wing328
71d1d05b98
add owner for restbed
2017-06-02 14:51:43 +08:00
stkrwork
b53a668517
[C++] Restbed Server Stub Code Generator ( #5742 )
...
* - Added Restbed Generator
* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template
* Changed it to respect alphabetical order
* Made the string joining java 7 compatible
* Added samples
2017-06-02 14:40:07 +08:00
Alexander Popiak
e0e5bdde76
fix cpprest model source mustache template ( #5716 )
...
(which was generating code that doesn't compile because of a wrong variable name)
2017-06-02 00:40:32 +08:00
Johnny-Bee
fa8e8fdc3c
Update README.md ( #5757 )
2017-06-01 21:10:43 +08:00
wing328
08a11c1d75
fix c# net35 issue, add xml doc to new C# class ( #5756 )
2017-06-01 07:53:35 +08:00
wing328
98684d872c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-01 07:10:03 +08:00
Jim Schubert
b671129557
[csharp] Refactor Configuration usage ( #5740 )
...
* [csharp] refactor ApiClient and Configuration usage
* # This is a combination of 2 commits.
# The first commit's message is:
[csharp] refactor ApiClient and Configuration usage
[csharp] Regenerate sample
# This is the 2nd commit message:
[csharp] Simplify setting apikey/prefix/headers
* # This is a combination of 2 commits.
# The first commit's message is:
[csharp] refactor ApiClient and Configuration usage
* Simplify setting apikey/prefix/headers
* Regenerate sample
# This is the 2nd commit message:
[csharp] Pass-through configuration timeout to client
* [csharp] refactor ApiClient and Configuration usage
* Simplify setting apikey/prefix/headers
* Regenerate sample
* [csharp] Regenerate all client samples
* [csharp] regenerate .net standard/core samples
* [csharp] Fix Timeout diff between netstandard and non-netstandard
* [csharp] Resolve additional netStandard issues after merge
* [csharp] Update doc for Configuration usage
2017-06-01 06:06:36 +08:00
Tony Tam
77555bfab1
Merge pull request #5749 from swagger-api/issue-5748-2.2.x
...
Updated parser to v1.0.29
2017-05-31 12:45:19 -07:00
Tony Tam
5838e5de41
Merge pull request #5750 from swagger-api/issue-5748-2.3.0
...
Updated parser to v1.0.29
2017-05-31 12:45:15 -07:00
Tony Tam
bd9142150e
updated to 1.0.29
2017-05-31 10:44:24 -07:00
Tony Tam
7e6084d944
updated to 1.0.29
2017-05-31 10:43:30 -07:00
wing328
9070c7133c
minor code format enhancement to ZipUtil.java
2017-05-31 23:14:37 +08:00
wing328
e0d932b1ac
add npm config set registry to avoid time out
2017-05-31 18:31:39 +08:00
wing328
3bc7ad2ea1
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-05-31 18:26:10 +08:00
wing328
bda5f1a5d5
add npm config set to avoid time out
2017-05-31 17:39:58 +08:00
Jonathan Leitschuh
d6f2424152
Fix spring generated controller annotations only generating for first return type ( #5399 )
...
Fixes the spring java code generator so that the ApiResponse fields are populated correctly
on the controller.
Related to #4693
2017-05-31 17:27:32 +08:00
Ian White
4673d02875
ensuring that swagger dates are treated as strings for all typescript clients ( #5518 )
2017-05-31 17:14:43 +08:00
imgx64
bee999056a
[typescript-angular2] Avoid tslint "Unused import" warnings ( #5723 )
...
Move the tslint comment that disables `no-unused-variable` to before the
import statements, to avoid "Unused import" warnings
2017-05-31 17:13:22 +08:00
stevecookform3
b185d03a1b
update Spring petstore examples
2017-05-31 09:48:34 +01:00
stevecookform3
0f3f0686cc
Throw Exception from controller methods
2017-05-31 09:46:51 +01:00
wing328
0a8e845e47
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-31 16:30:52 +08:00
Casey Fulton
31a8ac6987
[docker] Run as non-root user, fixes permissions. ( #5702 )
2017-05-31 16:17:42 +08:00
wing328
34b742355b
Merge branch 'jimschubert-kotlin-api-model-docs'
2017-05-31 00:28:30 +08:00
wing328
6473949737
Merge branch 'kotlin-api-model-docs' of https://github.com/jimschubert/swagger-codegen into jimschubert-kotlin-api-model-docs
2017-05-31 00:28:08 +08:00
Jim Schubert
23cf641e8a
Kotlin client lists ( #5729 )
...
* [kotlin] array->List instead of Array
Serialization to/from primitive arrays can cause issues with valid
responses. This commit considers swagger 'array' types as 'List' which,
although not as memory efficient should provide a cleaner interface for
users (and avoid serialization issues).
Also, updates README.md to list new generator and excludes
folder at samples/client/kotlin/bin/, which is not used.
* [kotlin] Move sample under conventional directory
samples/client/kotlin/ -> samples/client/petstore/kotlin/
Updated new.sh to generate client/server/docs into similar structure.
Current documentation generators (cwiki, html, html.md, html2) aren't
following a convention like client/server generators.
2017-05-31 00:18:37 +08:00
wing328
9282098d72
remove unused folder
2017-05-30 22:07:53 +08:00
wing328
a0e3dea964
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-30 16:12:50 +08:00
wing328
51f9874da6
update appveyor to use java-jersey-jaxrs-ci
2017-05-30 16:11:01 +08:00
wing328
23a925bcfc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-30 15:34:45 +08:00
wing328
d830ed717b
sort CodegenConfig
2017-05-30 15:34:13 +08:00
wing328
4cffea4626
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-30 15:28:21 +08:00
wing328
156c63db0e
show CI test results for 2.3.0
2017-05-30 15:16:51 +08:00
wing328
e607aedf5b
add kotlin and jimschubert as the template owner
2017-05-30 15:09:25 +08:00
Jim Schubert
87265d9ac7
[kotlin] api/model docs
...
This commit adds Api/Model/Auth documentation to the generated
README.md. Because auth support is not yet fully implemented (users can
manually set default headers globally), there aren't examples for helper
auth methods.
Models with inline enums document allowed values rather than pointing to
a generated enum class.
Two global additionalProperties were added (generateApiDocs,
generateModelDocs) to allow templates to conditionally display
documentatoin depending on these mutually exclusive settings. All
current generators supporting docs will attempt to link to generated
models when only api docs are specified.
This also moves the $@ bash parameter in bin/kotlin-client-petstore.sh
to the end of the args variable. This is because $@ can only be used to
pass System properties like -DdebugModels, can can already be passed as:
JAVA_OPTS="$JAVA_OPTS -DdebugModels" ./bin/kotlin-client-petstore.sh
By moving the $@ to the end of the args, it allows us to pass additional
properties and other switches directly to the script.
2017-05-29 22:12:55 -04:00
Jim Schubert
d6a98fa444
Kotlin client ( #5727 )
...
* Add new.sh helper script to create generator files
* [kotlin] Initial Kotlin client generator
* [kotlin] Generate sample
* [kotlin] Sample helper files not needed for generation, but for sample evaluation
2017-05-30 00:38:15 +08:00
wing328
18e6440bcc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-30 00:12:34 +08:00
wing328
b84769d1e3
fix enum float value in C#, minor format fix in doc ( #5726 )
2017-05-29 22:16:42 +08:00
wing328
3df5b6f303
[Java] Fix float enum value by adding "f" ( #5724 )
...
* fix java float enum value
* update java petstore samples
* add comment explaining the fix
2017-05-29 19:34:04 +08:00
Cliffano Subagio
ea30a4a7f8
[Ruby] Chunked file download ( #5718 )
...
* [Ruby] Modify file download to be written in chunks in order to handle large files. #5704
* [Ruby] Update Ruby Petstore with file download improvement. #5704
2017-05-29 14:56:48 +08:00
wing328
ef35b80bd8
Fixed missing isWildcard method used in templates
2017-05-29 11:45:28 +08:00
Soliman
009a039fc5
Fixed missing isWildcard method used in templates ( #5714 )
2017-05-29 11:34:09 +08:00
René Winkelmeyer
3d97d83f7a
Apex update for NamedCredentials and Salesforce DX ( #5717 )
...
* Added mustache file for namedCredentials
* Removed Basic and OAuth from Apex API in favor of NamedCredentials
* Moved old README to README for ant deployment
* Added SFDX OSS descriptor
* Removed remoteSite mustache
* Changed package.xml from RemoteSite to NamedCredential
* Update ApexClientCodegen to support SFDX and namedCredentials
* Created initial README for Salesforce DX
* Ran Petstore test for Apex commit
* Fixed error in README mustache
2017-05-29 11:16:06 +08:00
wing328
999f901d2b
update clojure petstore cient
2017-05-27 00:33:49 +08:00
Michael Langford
b1ccaf69ac
Updates http-client dependency to correctly handles certificates ( #5707 )
...
* Updates http-client dependency to one that correctly handles certificates
This is important as amazon AWS gateway and several other types of certificates will not work correctly due to the old java library used by the 2.0.0 version of http-client.
* Runs the petstore updates switch for clojure
* Runs the petstore updates switch for clojure
2017-05-27 00:27:11 +08:00
wing328
d315ba2984
add SAS to list of companies using swagger codegen
2017-05-27 00:04:17 +08:00
wing328
39d79de6f7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-05-26 22:50:06 +08:00
wing328
54119a7ac1
roll back clojure petstore to use petstore.json
2017-05-26 22:49:30 +08:00
wing328
4d705081c8
[PHP] Fix broken links in the auto-generated documentation ( #5715 )
...
* remove trailing space in cpprest, update samples
* remove unused pom.xml in go pestore
* fix broken links in php api doc by fixing baseType
* fix csharp api doc
* fix php examples
* fix examples for abstract php generator
2017-05-26 21:47:49 +08:00
wing328
424a70bd8c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-26 17:35:36 +08:00
wing328
f2e149c237
add Apex to the list of supported API clients
2017-05-26 17:28:45 +08:00
Takuro Wada
a2240ac619
[htmlDocs2] inconsistent python method name between html2 and python generator ( #5711 )
2017-05-26 17:24:06 +08:00
Svarog
84df23f025
Made httpMethod in curl example actually upper case in html2 to support firefox ( #5558 ) ( #5705 )
2017-05-26 17:19:09 +08:00
wing328
e2c91967a1
add phiz71's article on vert.x-swagger project
2017-05-25 17:42:35 +08:00
wing328
0c0a401829
add link for https://github.com/icha024
2017-05-25 15:57:34 +08:00
wing328
5b3bcf8a54
fix link to vpolouchkine
2017-05-25 14:34:31 +08:00
wing328
b4a2cd0888
add "Using Open API Specification To Put Lyft SDK Support in the Fast Lane"
2017-05-25 12:42:49 +08:00
rompic
ef53f08b09
fixed #5692 and regenerated samples ( #5698 )
2017-05-24 23:26:33 +08:00
wing328
41527ead54
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-24 20:13:31 +08:00
wing328
b024288df2
JS ES6 enhancements
2017-05-24 16:50:32 +08:00
Dinuka De Silva
ca139ffc05
Gh-4044: Enabling ES6 in javascript client ( #5593 )
...
* gh-4044: Added useES6 as an option for javascript templates
* gh-4044: Enabled ES6 in `javascript/api.mustache`
* gh-4044: Enabled ES6 in `javascript/ApiClient.mustache`
* gh-4044: Enabled ES6 in `javascript/enumClass.mustache`
* gh-4044: Added useES6 cli option to `javascript` clients and updated the test cases
* gh-4044: Enabled ES6 in `javascript/index.mustache`
* gh-4044: Enabled ES6 in `javascript` model templates
* `javascript/model.mustache`
* `javascript/partial_model_generic.mustache`
* `javascript/partial_model_enum_class.mustache`
* `javascript/partial_model_inner_enum.mustache`
* gh-4044: Separated `javascript-es6` templates to another folder
* gh-4044: Updated `javascript-es6/index.mustache`
* gh-4044: Enabled ES6 in `javascript-es6/api_doc.mustache`
* gh-4044: Added required dependencies for ES6
* gh-4044: Updated Supportig files for ES6 and non ES6
* gh-4044: Added test scripts to verify `javascript` useEs6 option
* gh-4044: Commented `javascript-es6` scripts due to the permission issues.
2017-05-24 16:35:54 +08:00
wing328
296e0288ea
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-05-24 15:56:00 +08:00
wing328
bd227df4db
update ts angualr2 petstore clients
2017-05-24 15:55:34 +08:00
wing328
f33e1d0026
add new files for C# API client
2017-05-23 22:20:08 +08:00
mtakaki
165c116661
Moving import-mappings out of configOptions and converting it into a list, rather than being a comma-separated string. ( #5384 )
...
* Moving import-mappings out of configOptions and converting it into a list, rather than being a comma-separated string. #5383
* Making the change to importMappings backwards compatible
2017-05-23 21:46:27 +08:00
wing328
b18121ee9c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-23 21:41:13 +08:00
kirpit
e12b22d5ce
Implement generating interfaces option for api resources, closes #5453 . ( #5519 )
...
* Implement generating interfaces option for api resources, closes swagger-api/swagger-codegen#5453 .
This commit introduces another _system property_ for typescript-angular2, called `withInterfaces` that is default to `false`. You can activate this flag by:
```
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i http://petstore.swagger.io/v2/swagger.json \
-l typescript-angular2 -o samples/server/petstore/springboot/typescript-angular2 \
-D withInterfaces=true
```
If set to `true`, generated api resource classes will be implemented with their interfaces in separate files.
This change should not break and change the behaviour even though `withInterfaces` flag set to `true`. You are also welcome to create your own custom resource class by implementing those generated interfaces as they support defining new attributes with `[others: string]: any;` signature.
* Fix unit test for typescript/angular2 client options for "withInterfaces"
* Use double quote to follow coding standard
* Respect interface naming convention for typescript/angular2
Create respectful interface names that ends with `Interface` suffix, instead of prefixing with `I` according to typescript naming convention. This is also consistent with their file names that also ends with `Interface.ts`.
Also fixes the merge conflicts.
* Have better explanation for the `withInterfaces` system config
2017-05-23 21:40:21 +08:00
wing328
ebcd8489bc
Merge branch 'christof-vollrath-bild-de-master'
2017-05-23 19:21:42 +08:00
wing328
82740de5a0
Merge branch 'master' of https://github.com/christof-vollrath-bild-de/swagger-codegen into christof-vollrath-bild-de-master
2017-05-23 17:57:54 +08:00
wing328
5c46929ec2
add link to "Diseño de APIs con OpenAPI"
2017-05-23 00:26:58 +08:00
wing328
d16eeb4046
remove trailing )
2017-05-22 23:36:12 +08:00
wing328
8b37ccb153
add more presentations/tutorials
2017-05-22 23:32:42 +08:00
wing328
35e20976fb
add Presentations/Videos/Tutorials/Books section
2017-05-22 23:20:58 +08:00
wing328
802641bf91
update apex petstore client
2017-05-21 16:12:47 +08:00
René Winkelmeyer
9f1c3e3e50
Updated default Apex API version to v39 (Spring '17 release) ( #5678 )
2017-05-21 16:04:37 +08:00
wing328
651a3e388b
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-21 01:35:13 +08:00
wing328
8314f4e78a
Add removeOperationIdPrefix option ( #5674 )
...
* add removeOperationIdPrefix option
* remove removeOperationIdPrefix from cli option for generators
2017-05-21 01:28:06 +08:00
wing328
7edf744426
[Apex] add petstore samples, shell scripts, batch files ( #5672 )
...
* add apex petstore samples, shell scripts, batch files
* add wording "beta" to Apex help
2017-05-20 01:02:08 +08:00
wing328
1aeef5f41f
add @asnelling as the template owner of apex
2017-05-19 23:32:10 +08:00
wing328
a0482a4038
Add support for Apex API client ( #5669 )
...
* Salesforce Apex support
* typo in function name
* comments for clarification
* DoubleProperty and FloatProperty are both DecimalProperty
* test models with default and provided example property values
* adding some more default example values
2017-05-19 23:18:52 +08:00
Jean-François Côté
ef2028e53f
[Java Play Framework] Warnings removal and default value fix ( #5660 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* Removal of warning (final) and fix of a missing default value for boolean query parameters
2017-05-19 22:32:19 +08:00
Takuro Wada
ad0838f0a0
[ts-ng2] add check whether header parameter is undefined or not ( #5668 )
2017-05-19 18:23:17 +08:00
wing328
bc34062c2b
Merge branch 'update_swift_objc_petstore'
2017-05-19 00:54:41 +08:00
wing328
bd2f03f1c0
update objc, swift2,3 petstore samples
2017-05-18 17:22:20 +08:00
wing328
fdbd13b368
update objc, swift2,3 petstore samples
2017-05-18 17:18:43 +08:00
wing328
cc55dfbf13
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-18 16:22:42 +08:00
Jean-François Côté
4479382ced
[Java Play Framework] Fix conversions ( #5604 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* Fix the conversion of boolean type
* Add samples for the fix with the boolean
* Fix bugs introduced by polci related to the bean validation.
* Refactor to use the "beanValidationCore". Asked by @wing328
2017-05-18 16:19:48 +08:00
David Biesack
632a2e3949
Fix #5653 so body parameter schema link matches model anchor ( #5655 )
...
* Sync with upstream/master
* Fix for issue #5653
Override the toModelName(String name) [from DefaultCodegen] in StaticHtmlGenerator to return `name` unmodified
so that the anchors for models and the href for body parameters match case (do not convert model names to TitleCase.
* Revert "Fix for issue #5653 "
This reverts commit 5472aa10a3101ea5dd417bc509c5d9c5351a3d66.
* Fix for issue #5653
Override the toModelName(String name) [from DefaultCodegen] in StaticHtmlGenerator to return `name` unmodified
so that the anchors for models and the href for body parameters match case (do not convert model names to TitleCase.
2017-05-18 15:16:42 +08:00
Harald Walker
4417bb6b32
#5649 Fix FileAlreadyExistsException when downloading file using jersey2 ( #5654 )
...
* #5649 Fix download file copy
* Include generated pet store samples and fix indentation
* Regenerate petstore sample to fix indentation
2017-05-18 15:12:53 +08:00
Jason Gavris
97a4bacc4e
[Swift3] Use thread safe manager dictionary ( #5610 )
2017-05-17 23:35:49 +08:00
wing328
54e0492598
Merge branch 'ButterflyNetwork-swift-2.3.0-models' into 2.3.0
2017-05-17 22:34:57 +08:00
wing328
5c17cb3a78
Merge branch 'swift-2.3.0-models' of https://github.com/ButterflyNetwork/swagger-codegen into ButterflyNetwork-swift-2.3.0-models
2017-05-17 22:34:33 +08:00
wing328
554763dd13
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:28:16 +08:00
wing328
07df7d47eb
update shell scripts, remove execute permission for json files
2017-05-17 22:12:06 +08:00
wing328
2ff548d80b
update C# petstore samples
2017-05-17 22:07:58 +08:00
wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +08:00
Cas Perl
a6b7f60ac7
Python improved ( #5512 )
...
* ignore .vscode
* fixed test case for models requiring mandatory attributes. added deserialize test for enum class
* construct model with mandatory attributes. improve class reflection (e.g. deserialize). disable generated empty model unit test for further FIXME
* rebuilt samples
* FIXME comment
* FIXME comment
* fix deserialization enum test
2017-05-17 21:18:51 +08:00
Benjamin Douglas
5bfd723ecc
Add Yelp to list of companies using swagger-codegen ( #5651 )
2017-05-17 15:08:29 +08:00
Benjamin Douglas
be3cfda3ce
Disable Jackson FAIL_ON_INVALID_SUBTYPE in feign ( #5597 )
...
* Disable Jackson FAIL_ON_INVALID_SUBTYPE in feign
With this change, Jackson does not fail even if it doesn't recognize a
discriminator type name. This is helpful when upgrading a microservice with
a new subtype while keeping compatibility with its old clients. The instance
is returned as null instead of throwing an exception deep in the feign
framework, allowing clients to gracefully degrade.
* Disable FAIL_ON_INVALID_SUBTYPE for all Jackson-based projects
2017-05-16 21:20:05 +08:00
wing328
de427297ec
update petstore samples for flask connexion
2017-05-16 21:09:16 +08:00
Kyle Cacciatore
046b730446
Upgraded connexion to 1.1.9 - required change to encoder as connexion is isolating implementation specific code ( #5645 )
2017-05-16 21:07:21 +08:00
wing328
09a0edc4d9
Merge branch 'bbdouglas-empty_classes'
2017-05-16 18:07:39 +08:00
wing328
0a67696de8
Merge branch 'empty_classes' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-empty_classes
2017-05-16 17:51:42 +08:00
wing328
27686c7e64
Merge branch 'bbdouglas-sync_samples'
2017-05-16 17:09:32 +08:00
wing328
1fc969b050
Merge branch 'sync_samples' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-sync_samples
2017-05-16 16:51:41 +08:00
Elizabeth Thomas
41cfcc6f23
Marking Accept as an optional header ( #5622 )
...
* Making Accept Header as not required by default
* Adding the auto-generated spring mvc petstore sample controllers
2017-05-16 16:30:11 +08:00
Brendan Burns
c5d1c5d73b
Extract out a new helper method from java ApiClients ( #5648 )
2017-05-16 13:59:06 +08:00
wing328
63facc0b0b
add null/nil as reserved keyword ( #5647 )
2017-05-16 00:02:27 +08:00
wing328
9936018090
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-05-15 22:12:16 +08:00
wing328
c5036a3637
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-15 22:11:56 +08:00
wing328
5b250aa18f
add warning message to window batch file
2017-05-15 16:11:51 +08:00
Marcus Low Junxiang
2b56384887
Adding enum generation support for golang client ( #5635 )
...
* adding enum support for golang client
* indentation correction
2017-05-15 15:41:13 +08:00
wing328
2a70655c98
add warning message for run-all-petstore
2017-05-15 15:37:05 +08:00
wing328
cf15f9fe33
comment out resttemplate CI test in 2.3.0 only
2017-05-15 01:26:40 +08:00
wing328
96a8440a57
fix missing private datetime var in java okhttp client
2017-05-14 23:42:31 +08:00
wing328
7dd42483a4
update all petstore samples for java clients
2017-05-14 23:21:05 +08:00
wing328
67c61eed0b
update java petstore
2017-05-14 22:53:25 +08:00
wing328
7fc36f1e1e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-14 22:32:12 +08:00
mtakaki
9c46ab2599
Fixing import-mappings and using it when generating API stub. #2502 ( #5373 )
2017-05-14 22:26:02 +08:00
René Pfeuffer
54febc38e6
#5615 [Java] recognize 'null' as a reserved keyword ( #5617 )
2017-05-14 11:59:13 +08:00
Takuro Wada
a7d5684679
[Python] add an option to Config in order to specify safe chars for path parameter ( #5628 )
2017-05-14 11:54:26 +08:00
Adam Fanello
fb04b5a26a
Fix for issue #5349 . ( #5560 )
...
With this change, users providing custom configuration must provide an exported Configuration factory, rather than just an object. This is needed to be Angular AoT compatible.
Example use:
import * as api from '../api';
/** Configuration settings for the backend API */
export function backendConfigurationFactory(): api.Configuration {
return new api.Configuration({basePath: '/api'});
}
@NgModule({
imports: [api.ApiModule.forConfig(backendConfigurationFactory)],
...
2017-05-14 11:52:10 +08:00
Takuro Wada
11baad6e4b
[TypeScript-jquery] set default return type as any ( #5630 )
...
* [TypeScript-jquery] fix bug of empty returnType appearing if returnType is not provided
* chore: add security sample for typescript-jquery
2017-05-14 11:36:09 +08:00
wing328
fe1fa188da
add box to the list of companies using codegen
2017-05-13 07:41:50 +08:00
sdoeringNew
98d53bc8d2
#5619 added getValue() method in generated Enum classes in Java ( #5620 )
2017-05-13 00:03:44 +08:00
Brendan Burns
e7a1f5fb17
[Java] Add custom SSL KeyManagers for okhttp-gson Java clients ( #5629 )
...
* Add the ability to set SSL KeyManagers for okhttp-gson Java clients
* Update generated code.
* Update security model files.
2017-05-12 23:49:00 +08:00
wing328
68864a2eea
[JavaScript] Minor fix to JS doc and add swagger-codegen version to the file header ( #5623 )
...
* fix JS doc using instance instead of default
* update JS header with codegen version
* roll back change in swagger codegen version in pom.xml
2017-05-12 16:49:20 +08:00
wing328
d0d9650c13
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-11 01:25:30 +08:00
Jim Schubert
eaa2dc6d21
[csharp] Fix project glob pattern ( #5605 )
...
This fixes the glob pattern to remove hard-coded namespaces, and exclude
the obj folder. This removes a newly introduced issue that breaks
apiPackage and modelPackage support and fixes a problem with Xamarin
pulling in obj/**.cs when globbing **/*.cs.
2017-05-11 01:01:45 +08:00
Jason Gavris
b582c46e4b
[Swift3] Fix compilation of models file
2017-05-10 12:05:07 -04:00
wing328
b8715fc4a5
add back example support to java spring (breaking changes) ( #5606 )
2017-05-10 23:31:25 +08:00
wing328
3e95f464e3
fix pom version for circlci
2017-05-10 23:19:39 +08:00
wing328
59075d105e
update java parcelable model petstore
2017-05-10 18:06:49 +08:00
wing328
45ff39c237
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-10 18:04:49 +08:00
wing328
9b68f02f83
[Java][Spring] Undo "Add examples defined in the spec to Spring MVC server generator " ( #5599 )
...
* remove unused pom.xml in go pestore
* remove example support in JavaSprin (undo changes)
2017-05-10 17:31:43 +08:00
kenisteward
ec7b80abab
#4962 Empty Response body handling in typescript-angular2 - added returning an empty object on response.json() failure ( #5585 )
2017-05-10 15:46:33 +08:00
Voydz
5a257a0558
[csharp] fixes for netstandard (json serializing and project files) ( #5590 )
2017-05-10 15:24:43 +08:00
wing328
fd3cae6c4b
rename .swagger folder to .swagger-codegen
2017-05-09 17:07:45 +08:00
Jim Schubert
f25a7575d3
[generator] Adds a .swagger/VERSION file for all generators ( #5556 )
2017-05-09 16:59:48 +08:00
sabras75
824842290d
Fix#5510 ( #5582 )
...
* Add overloads on signals.
The overload adds the NetworkError and the error string to the signal. Both signal will be emitted. Clients are supposed to subscribe to only one of the overloads.
* refactor generated code alignement
* Do not use method overload for signals. Instead, have another naming convention for signal that carries Error information.
Why ? Because signal overloading and QT5 connector with method referencing do not mix well (see http://stackoverflow.com/questions/16794695/connecting-overloaded-signals-and-slots-in-qt-5 ). It would need to specify exactly which overload to take. That is cumbersome to write AND is a breaking change for the consumer of the generated code.
* update qt5 sample files
2017-05-09 16:34:17 +08:00
Eric Bélanger
fa2e575762
[JavaSpring] add support for cascading bean validation ( #5393 )
2017-05-09 00:38:59 +08:00
wing328
621ff06a89
update java petstore sample
2017-05-08 18:33:25 +08:00
Vincent Coetzee
409638676e
Added code to templates to ensure correct generation of code for Swift3 ( #5390 )
...
* Added code to templates to ensure generation of code for Swift3 that builds on both Apple platforms and Linux. Fixed a bug in the Model decoders that prevented code from building for Linux
* Ran the script to generate the PetStore API
2017-05-08 18:26:30 +08:00
Peter Pentchev
f5f3dbd94a
Run all the CLI commands in the Docker environment ( #5564 )
...
* [docker] Allow "validate" and "version" in Docker
* [docker] Allow all the available CLI commands
* [docker] Quote some more variables
2017-05-08 18:12:13 +08:00
Takuro Wada
a81cff0ed0
[typescript-angular2] change OpaqueToken to InjectionToken<string> (Issue #5565 ) ( #5569 )
...
* change OpaqueToken to InjectionToken<string> and add useOpaqueToken option for typescript-angular2 (#5565 )
* run security shell
2017-05-08 18:08:54 +08:00
Marcus Low Junxiang
adb213bc00
Modifying resty dependency to use stable release instead of HEAD ( #5579 )
...
* Modifying resty dependency to use stable release instead of HEAD
* adding dependency to pre-integration test
2017-05-08 09:55:13 +08:00
Luca Favatella
ea16da813c
[Erlang] Plant CI for server ( #5559 )
...
* [Erlang] Address apparent reproducibily issue of sample
Spotted running `bin/erlang-petstore-server.sh` on d08d55d41 .
Apart from newlines, this is the opposite change of ec6248cbc .
* [Erlang] Perform basic testing of sample server on CI
* [Erlang] Install recent Erlang/OTP version
... in order to satisfy `jesse` compilation.
The error I faced is:
```
$ curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 766k 100 766k 0 0 1041k 0 --:--:-- --:--:-- --:--:-- 1041k
rebar 3.3.6 on Erlang/OTP R16B03 Erts 5.10.4
...
===> Verifying dependencies...
===> Fetching jesse ({git,"https://github.com/for-GET/jesse.git ",
{tag,"1.4.0"}})
===> Fetching jsx ({git,"https://github.com/talentdeficit/jsx.git ",
{branch,"v2.8.0"}})
===> Skipping jsx (from {git,"git://github.com/talentdeficit/jsx.git",
{tag,"2.8.0"}}) as an app of the same name has already been fetched
===> Compiling jsx
===> Compiling jesse
===> Compiling _build/default/lib/jesse/src/jesse_tests_util.erl failed
_build/default/lib/jesse/src/jesse_tests_util.erl:28: can't find include lib "common_test/include/ct.hrl"
_build/default/lib/jesse/src/jesse_tests_util.erl:55: undefined macro 'config/2'
_build/default/lib/jesse/src/jesse_tests_util.erl:24: function do_test/2 undefined
_build/default/lib/jesse/src/jesse_tests_util.erl:72: function test_schema/3 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:102: function get_path/2 is unused
_build/default/lib/jesse/src/jesse_tests_util.erl:105: function load_schema/1 is unused
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:804)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:751)
at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:313)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Erlang Test) on project ErlangServerTests: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
```
* [Erlang] Bump `jsx` dependency to latest stable version
* [Erlang] Disable sample server from CI until compilation works
2017-05-06 11:23:30 +08:00
mguan-trulia
918343b684
issue #3365 adding accept encoding for PHP ( #5525 )
2017-05-06 10:40:08 +08:00
Alexander
9212c21567
[PHP] Add default value to method signature if present in Swagger spec ( #5571 )
...
* Add default value to method signature if present in Swagger spec
* Update pet store PHP code
2017-05-06 10:39:14 +08:00
wing328
2a337f8327
add antihax as template owner for 2.3.0 Go
2017-05-05 21:50:32 +08:00
beatcracker
d214e0ad4b
[PowerShell] module to serve as template for PowerShell generator ( #5509 )
...
* Added PowerShell module. See #4320
MVP PowerShell module to serve as a template for a PowerShell generator.
* Fixed function name
* Removed module manifest
It should be generated by the build script
* Ignore module manifests
* Removed binding from prop. name for Pet
2017-05-05 17:21:11 +08:00
wing328
167cbe9726
remove trailing comma in ts angular template ( #5563 )
2017-05-05 17:05:45 +08:00
Mike Kistler
b62928ff88
Set name for item property from 'x-item-name' annotation if present. ( #5461 )
2017-05-05 16:53:16 +08:00
wing328
8e0d940e0a
update cpprest petstore sample
2017-05-05 16:20:59 +08:00
Jim Schubert
8e6dfce83e
[csharp2] Extend generator from AbstractCSharpCodegen ( #5552 )
...
* [csharp2] Extend generator from AbstractCSharpCodegen
* [csharp2] regenerate sample
2017-05-05 15:58:01 +08:00
Ravi
f101a43b9e
[C++][CppRest] Add CMake file template to generate CMakeLists build file ( #5561 )
...
* Add operationId in exception message
* add number data type mapping
* removing mergetool lines
* first draft of cmake file
* compiles generated source files with 64 bit cpprest and boost
* using glob recurs to add source files
* using glob recurse for source files
* cmake to build statuc library
* add cmake style comments, use project source dir and lib
* fix_issue5488: Add supporting files and source files separately
* fix_issue5488: Add supporting files and source files separately
* fix_issue5488: Add supporting files and source files separately
* fix_issue5488 - updated header comments
* updated samples
2017-05-05 15:47:39 +08:00
wing328
cfd9d7e4c6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-05 11:01:36 +08:00
fisherliu
d08d55d419
add @Valid annotion for bean-validation ( #5517 )
2017-05-04 23:03:12 +08:00
Jim Schubert
9dab57c2fb
[csharp] warn on use of invokerPackage ( #5551 )
2017-05-04 19:12:54 +08:00
wing328
fb357086c8
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-04 19:04:39 +08:00
wing328
1e9fe51175
use original value of pattern ( #5554 )
2017-05-04 18:01:52 +08:00
Jim Schubert
1700a86c38
[aspnet5] REMOVED ( #5550 )
2017-05-04 18:00:35 +08:00
Andrea Polci
fd17955685
#5548 Avoid html escaping of pattern in bean validation ( #5549 )
...
* Issue #5548 Avoid html escaping of pattern in bean validation
* Run spring-all-petstore.sh and java-petstore-all.sh scripts
2017-05-04 17:12:13 +08:00
wing328
6f944b243d
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-03 21:45:07 +08:00
wing328
a7e42ee2b6
add validatable flag for .net 3.5 ( #5544 )
2017-05-03 21:32:25 +08:00
wing328
b87851bd27
update spring cloud petstore client
2017-05-03 17:47:49 +08:00
wing328
3b98cc7ca0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-03 17:32:24 +08:00
wing328
e28471341c
add switcgh to determine java8, java7 ( #5541 )
2017-05-03 16:41:58 +08:00
wing328
43812cc002
use origina value of example ( #5540 )
2017-05-03 16:14:20 +08:00
Kenny Jones
06f8ac422c
Bugfix: JavaSpring pojo example escape ( #5536 )
...
Applies the same fix as #5247 to avoid invalid escaping of the attribute
example within `ApiModelProperty`.
Resolves #5534
2017-05-03 15:31:48 +08:00
Benjamin Douglas
7406d07aca
Reverting petstore sample gen (fails tests)
2017-05-02 19:55:47 -07:00
Benjamin Douglas
34d9dca5e7
Update samples to current code/scripts
...
This is the result of
- `$ git checkout master`
- `$ bin/run-all-petstore`
No change was made to the code, just ran the aggregate sample generation
script.
2017-05-02 10:33:06 -07:00
wing328
413a00ef40
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-03 00:09:14 +08:00
wing328
3744a3f8f5
add option to skip client side validation in ruby client ( #5528 )
2017-05-02 21:30:59 +08:00
wing328
53b25b11d2
add baartosz as php guzzle template owner.
2017-05-02 19:14:54 +08:00
wing328
a313812613
add resteasy template owner
2017-05-02 19:10:48 +08:00
Benjamin Douglas
4512619acf
Minor fixes to sample generation scripts ( #5523 )
...
- typo in csharp-petstore-net-standard.sh (Stanard -> Standard)
- non-existent config file name name in csharp-petstore-netcore-project.sh
- non-existing config file name in ruby-petstore.sh
- snapshot versioning in typesript-petstore-npm.json causes
non-deterministic output
2017-05-02 15:12:45 +08:00
Takuro Wada
afa8e56b4e
Add validate option to swagger-codegen-cli (Issue #5466 ) ( #5526 )
2017-05-02 15:11:10 +08:00
Benjamin Douglas
b7df040b6e
Fix class name in discriminator subtypes ( #5487 )
2017-05-01 15:50:58 +08:00
Benjamin Douglas
c2a1720972
Fix hasMore field and order consistency of authMethods ( #5516 )
...
The hasMore field of the global authMethods was broken due to sorting after
setting that field. The sort order for per-operation authMethods was not
guaranteed to be consistent across runs because it didn't do sorting. This
change fixes those issues by always sorting and setting the hasMore field
post-sort.
2017-05-01 15:26:35 +08:00
Jason Lee
1a25b308cc
For dateLibrary=java8, remove JODA references ( #4705 )
2017-04-30 00:03:11 +08:00
herrerog
70f4c72421
[Python]: correct query_params type. ( #5503 )
...
query_params is a list of tuple, so defined it as a list by
default instead of a dict.
This fix below issue on the client side.
Traceback (most recent call last):
File "test.py", line 13, in <module>
api_response = api_instance.seek("the")
File "python-client/swagger_client/apis/seek_api.py", line 168, in seek
(data) = self.seek_with_http_info(recherche, **kwargs)
File "python-client/swagger_client/apis/seek_api.py", line 245, in seek_with_http_info
collection_formats=collection_formats)
File "python-client/swagger_client/api_client.py", line 323, in call_api
_return_http_data_only, collection_formats, _preload_content, _request_timeout)
File "python-client/swagger_client/api_client.py", line 135, in __call_api
self.update_params_for_auth(header_params, query_params, auth_settings)
File "python-client/swagger_client/api_client.py", line 512, in update_params_for_auth
querys.append((auth_setting['key'], auth_setting['value']))
AttributeError: 'dict' object has no attribute 'append'
Signed-off-by: Gregory Herrero <gregory.herrero@gmail.com >
2017-04-29 12:07:09 +08:00
wing328
427ca1828e
replace petstore.json with petstore.yaml in shell scripts
2017-04-29 12:02:37 +08:00
weiyang
1091ebce5a
[go][model] Use pointers to avoid circular references ( #5478 )
...
* [go][model] Use pointers to avoid circular references
Signed-off-by: weiyang <weiyang.ones@gmail.com >
* [samples][go][model] Use pointers to avoid circular references
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2017-04-29 01:08:07 +08:00
wing328
556be7dfd6
update qt5 c++ petstore samples
2017-04-28 22:47:05 +08:00
sabras75
994e4fd8ff
Fix#5481 ( #5499 )
...
* Add CPP_NAMESPACE option
* update mustache template to exploit cppNamespace option
* update sample files
* correction : missing namespace replacement in template
2017-04-28 22:19:37 +08:00
wing328
0792933c7e
use petstore.yaml instead of petstore.json in windows batch files
2017-04-28 19:49:39 +08:00
Xin Meng
c7979da74d
add withCredentials to the configuration ( #5484 )
...
* add withCredentials to the configuration
1. `withCredentials` in Request is `false` default
2. if want to set the `withCredentials` as `true` (for CORS request),
instance `Configuration` object and set the `withCredentials` as `true`.
* simplify the code according to the code review
2017-04-28 18:11:23 +08:00
Ian White
e5fdf327db
Adding Stardog Ventures to company list ( #5504 )
...
Thank you for suggesting @wing328.
2017-04-28 11:41:40 +08:00
wing328
2ac169c750
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-28 02:03:42 +08:00
Daniel Woodel
bfae01cd35
[swift3] Swift3 code generator & templates fixed to support additional properties, updated petstore for CI ( #5407 )
2017-04-28 01:58:54 +08:00
wing328
b964994f00
add ./bin/java-petstore-okhttp-gson-parcelable.sh to java petstore
...
all.sh
2017-04-28 01:24:28 +08:00
guidovezzoni
663db1b72a
Fix issue5425 ( #5483 )
...
* issue 5425 : [Android] Bug generating parcelables constructors for custom classes ( missing getClassLoader() )
* issue 5425 : changes in generated code
* ran ./bin/java-petstore-all.sh and committed the changes
2017-04-28 01:23:32 +08:00
wing328
2324e927bd
[Java][Spring] fix missing import for java.io.IOException ( #5501 )
...
* fix issue about import io exception for spring mvc
* fix spring-mvc-petstore-j8-async script, config
* update spring cloud client, restore petstore.yaml
2017-04-28 00:45:06 +08:00
wing328
b5949f61e4
update spring petstore samples
2017-04-27 22:24:23 +08:00
wing328
7b57dd0c04
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-27 21:18:52 +08:00
wing328
3c9b495eb1
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-27 21:16:16 +08:00
wing328
42a5a13fef
[Java][Spring] Fix spring cloud client due to enhancement in adding server example responses. ( #5497 )
...
* add use spring cloud client option
* uncomment spring cloud client test
* remove scala-related tests from pom.xml for circleci
* fix mismstach tag
2017-04-27 20:00:56 +08:00
wing328
e8feca2753
[Android] add windows batch, better code foramt ( #5496 )
...
* remove trailing space in cpprest, update samples
* add android batch files, better code format, sync petstore.json with
petstore.yaml
* restore petstore.json and sync it to petstore.yaml
* update circleci pom.xml
* add new android files
* add new android files
2017-04-27 17:58:38 +08:00
Benjamin Douglas
5eefbc2195
Remove unused generation script ( #5491 )
...
The old android-petstore.sh script is writing output to the android volley
directory. There is a new script called android-petstore-volley.sh that also
writes to that same directory. They overwrite each other, which makes the
run-all-petstore script output dependent on which one gets run last. This change
removes the old script.
2017-04-27 00:51:49 +08:00
wing328
89464cbe5f
Update pom.xml for CircleCI to test java-related projects only ( #5477 )
...
Update pom.xml for CircleCI to test java-related projects only
2017-04-27 00:49:03 +08:00
wing328
58db6a5e14
Revert "Issue#5376- changes to include swagger version in generated api files ( #5449 )" ( #5489 )
...
This reverts commit 702f193f61 .
2017-04-26 17:53:36 +08:00
wing328
f4d78079de
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 23:34:45 +08:00
Elizabeth Thomas
702f193f61
Issue#5376- changes to include swagger version in generated api files ( #5449 )
...
* Elizabeth - changes to include swagger version in generated api files
* Filtering version.properties in swagger codegen module
* Removing resource filtering from swagger codegen cli module
* Merging master
2017-04-25 23:28:16 +08:00
Elizabeth Thomas
efb337dd92
Issue 5413 - Use ConstructorBased Injection for ObjectMapper ( #5430 )
...
* Converting to constructor based injection
* Correcting spelling mistake
* Adding the bean for ObjectMapper
* Adding files modified by running the petstore scripts
* Adding final qualifier to objectMapper variable in apiController mustache
2017-04-25 23:11:18 +08:00
nbruno
aef25ffdc3
Enable Tag details to be used in templates ( #5455 )
...
* Enable Tag details to be used in templates
Adds the ability to reference the tag name, description, external
docs, and vendor extensions in Mustache templates during codegen
* Properly resolve tags when not defined in Swagger tags definition
2017-04-25 23:07:59 +08:00
wing328
2dd051fd4e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 21:46:44 +08:00
wing328
5c4a05e212
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-04-25 21:40:19 +08:00
wing328
3ef7694b9f
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 21:39:17 +08:00
wing328
745951c1ce
Add missing UUID mapping for some generators ( #5474 )
...
* remove trailing space in cpprest, update samples
* add missing uuid mapping for generators
2017-04-25 21:16:17 +08:00
erdarun
fa09d75180
Fix NullPointerException for info.version on Javascript client codegen ( #5471 )
...
* Fix NullPointerException for info.version on Javascript client codegen
* Set/Return project default version to 1.0.0 if info.version not found
* info version null check handled and default version/appVersion value set to 1.0.0
* Removed null check for info version. Fixed DefaultGenerator code to handle null check.
* Semicolon added missing
2017-04-25 21:15:39 +08:00
sabras75
00651dd340
Fix#5463 - [QT5CPP] missing SWGUUID when generating client based on swager.yaml containing a string with format 'uuid' ( #5472 )
...
* Add support to UUID type
* Simplify and use a simple QString instead of a QUuid.
Work for using a QUuid is way larger than supporting QString (imply modifying multiple c++ templates).
Current needs are fullfill with the use of a simple QString, so I let the use of QUuid for future enhancement.
* - add windows executable for generating qt5 security samples
- update sample clients
PS : some modifications on the samples are not related to the patch I applied. Were the samples up-to-date ?
2017-04-25 20:54:05 +08:00
erdarun
d392f0b12e
Fix NullPointerException for info.version on Javascript client codegen ( #5475 )
...
* Fix NullPointerException for info.version on Javascript client codegen
* info version null check handled and default version/appVersion value set to 1.0.0
* Removed null check for info version. Fixed DefaultGenerator code to handle null check.
* semicolon added missing
2017-04-25 20:11:04 +08:00
wing328
c61c3c9b43
add http://www.cisco.com/
2017-04-25 10:26:28 +08:00
wing328
1cd8341f89
update shell script permission to executable
2017-04-25 10:23:45 +08:00
nikitozz
80dccfe395
The new .NET project file format support ( #5439 )
2017-04-25 10:22:59 +08:00
Jani Väinölä
9055dfc42e
Jaxrs jersey2 support ( #5058 )
...
* [JAVA/] jaxrs/jersey2 (Issue: 4662) Made java8-date codegeneration to work with jersey2
* Ran shellscripts for jaxrs-jersey-petstore-server and java8-petstore-jersey2 to update petstore samples
2017-04-25 00:53:34 +08:00
Kenny Jones
c14da15b3e
Feature: Enable validation ( #5391 )
...
When useBeanValidation is enabled make sure the annotation @Valid
is added to the attributes of the model.
2017-04-24 23:18:04 +08:00
wing328
aa85468932
remove trailing space in cpprest, update samples
2017-04-24 22:45:16 +08:00
Martin Brown
fc2b3d49ea
Issue 4632 ( #4803 )
...
* Updated the Petstore samples
* This change uses std::stringstream for string conversions instead of std::to_string(). Android doesn't yet support std::to_string(). This should fix #4632
2017-04-24 22:27:51 +08:00
wing328
59801d5167
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-24 21:35:38 +08:00
wing328
176b6829c4
add back toString to form parameters in ts angular2 ( #5457 )
2017-04-24 18:44:49 +08:00
Phillip Novess
7282ad2d6a
updated to place environment files in the correct location ( #5168 )
2017-04-24 18:37:37 +08:00
Phillip Novess
a2080810f8
updated to fix issue #5053 ( #5057 )
...
* updated to fix issue #5053
* updated test
2017-04-24 18:16:10 +08:00
wing328
e969b35ea2
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-24 18:07:17 +08:00
wing328
dc89f3e731
Merge branch 'gayathrigs-master'
2017-04-24 18:01:48 +08:00
wing328
3c4a9480ce
update java-petstore-all script with resteasy
2017-04-24 18:01:18 +08:00
wing328
d9026c67aa
remove carriage return in resteasy java files
2017-04-24 17:44:27 +08:00
wing328
f09372e2ec
replace tab with spaces
2017-04-24 17:27:07 +08:00
wing328
e4608745b0
update java resteasy sample
2017-04-24 17:12:00 +08:00
wing328
640b16b58a
Merge branch 'master' into master
2017-04-24 17:00:27 +08:00
wing328
e66566a971
use quiet model when building with maven
2017-04-24 16:36:32 +08:00
wing328
30d0b11801
update java petstore samples
2017-04-24 16:22:11 +08:00
wing328
ad0a80dfc4
add Gronsak as creator for .NET Standard 1.3
2017-04-24 14:47:43 +08:00
wing328
64f55e4471
add nbruno as resttemplate owner
2017-04-24 14:42:07 +08:00
nbruno
ddc309ec19
Add support for Spring's RestTemplate in Java client codegen ( #5404 )
...
* Add support for Spring's RestTemplate in Java client codegen
Resolves #1176
* Update all Java samples to include change for Jackson enums
Currently enums are deserialized from a String value with an
explicit @JsonCreator. However, they are not being serialized with
this String value. This change introduces the @JsonValue annotation
on the toString() method of enums, so they will be serialized as a
String with the correct value.
2017-04-24 14:40:47 +08:00
wing328
863f431dfb
update all spring petstore samples
2017-04-24 00:27:20 +08:00
wing328
4067986e1c
update spring mvc samples
2017-04-24 00:06:42 +08:00
wing328
0c5cc4621a
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 23:07:28 +08:00
wing328
56d4382d75
update swift3 petstore samples
2017-04-23 23:06:16 +08:00
Tomek Cejner
f110072ef1
[swift] Open buildHeaders() and requestBuilderFactory property to allow extension. ( #5225 )
2017-04-23 23:02:21 +08:00
wing328
c8d9450db5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 22:46:10 +08:00
wing328
1277db61bd
[Ruby] add generator version to Ruby template ( #5459 )
...
* add generator version to ruby template
* remove tab in java generator
2017-04-23 22:41:56 +08:00
wing328
ee5c1b203b
fix typo: lamda -> lambda
2017-04-23 22:28:29 +08:00
Rik Sprenkels
bd8b2d37c0
Fixes for swagger.json to Java escaping. ( #5247 )
2017-04-23 19:10:25 +08:00
wing328
397b440e60
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 18:36:37 +08:00
Xin Meng
c3d51357a8
fix the typescript angular 2 http request option issue #5374 ( #5380 )
...
* fix the typescript angular 2 http request option issue #5374
https://github.com/swagger-api/swagger-codegen/issues/5374
add `withCredentials:true` to the request option
* run ./bin/typescript-angular2-petstore-all.sh to update Petstore samples
2017-04-23 18:31:00 +08:00
manuc66
d869051fb8
Fix Possible null pointer dereference ( #5370 )
2017-04-23 18:10:25 +08:00
wing328
fee410d84e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 18:02:02 +08:00
Ian White
26fa547fd2
typescript-angular2: ensuring that dates are strings and datetimes are Dates ( #5417 )
2017-04-23 17:44:40 +08:00
wing328
f266f32db8
clean up csharp scripts
2017-04-23 16:10:17 +08:00
wing328
f10886b490
remove csharp/SwaggerClient.v5
2017-04-23 16:04:33 +08:00
wing328
5a36f7435d
better circleci configuration ( #5456 )
2017-04-23 15:59:16 +08:00
wing328
7acd0cfa4d
add csharp batch files
2017-04-23 15:42:42 +08:00
wing328
f7cbb2c0e6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 15:26:15 +08:00
antihax
3ed1aa8e79
Rewrite of Go Client #2 ( #5037 )
...
* Rewrite of Go Client
* Revert to older version of context.Context
* Clean and bulk up concurrency test.
* Correct {{path}} to {{{path}}}
* change custom date type to string.
* Add APIKey authentication
* Correct missing line from resolving conflicts.
Correct missing line from resolving conflicts.
2017-04-22 01:17:18 +08:00
Sergey Novikov
6685f18e5f
Reuse allowed values ( #5435 )
2017-04-22 00:30:52 +08:00
Ravi
e9a438b73f
[CppRest] Overload toJson for bool in Modelbase ( #5448 )
...
* Add operationId in exception message
* add number data type mapping
* fix_issue5434
2017-04-21 22:20:46 +08:00
Mario
f61e0d4024
Add RuntimeException option ( #5405 )
...
* add option to change Exception to RuntimeException
* rename propertie
remove space in template
2017-04-21 22:13:57 +08:00
Cas Perl
122db78b1a
Issue 5375 ( #5403 )
...
* use py3 instead of py34
* fixed test to test invalid enum
* ADDED: assign variable in the ctor with property setter to check validity if possible. CHANGE: move required property check to proper place. CHANGE: remove double quotes from allowed_values for none-string enum property
* rebuilt samples
* comment for improvement
* ADDED: post process enum model for python.
* comment
* rebuilt samples
* rebuilt samples
2017-04-21 22:05:54 +08:00
Jean-Maxime Fillau
8144ab6870
Add json format in case contentType is application/json. ( #5427 )
...
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com >
2017-04-21 22:01:37 +08:00
Tony Tam
247be2f140
fix cache skip
2017-04-20 16:51:15 -07:00
Tony Tam
456b54b24f
fix cache skip
2017-04-20 16:49:58 -07:00
Tony Tam
c5fa38ae47
Merge pull request #5447 from swagger-api/issue-5446
...
updated to openjdk
2017-04-20 16:40:42 -07:00
Tony Tam
2155663816
Merge pull request #5445 from swagger-api/issue-5444
...
Updated to openjdk (2.3.0)
2017-04-20 10:55:46 -07:00
Tony Tam
6ea4b4d6f3
fixes #5446
2017-04-20 10:32:27 -07:00
Tony Tam
0382f39780
disable cache
2017-04-20 10:29:12 -07:00
Tony Tam
aff529c0a9
updated index file for new editor
2017-04-20 10:29:06 -07:00
Tony Tam
c6ee8226a2
updated base image
2017-04-20 10:15:20 -07:00
Julien Fouilhé
edb80df0ba
fix(swift3): fix infinite loop with inheritance and check if parent decoder exists before calling ( #5416 )
2017-04-20 22:54:35 +08:00
Julien Fouilhé
c65e663a11
fix(swift3): decoders call parents decoders too ( #5433 )
2017-04-20 22:54:01 +08:00
wing328
6359c064f3
Merge pull request #5250 from auchri/patch-1
...
[JAVA] Update gradle and android build tools
2017-04-19 15:57:14 +08:00
wing328
c72e900b95
Merge pull request #5418 from wy-z/add_xsky_to_company_list
...
[README] Add XSky to company list
2017-04-19 15:24:57 +08:00
weiyang
77bb6132f1
[README] Add XSky to company list
...
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2017-04-19 15:04:05 +08:00
wing328
9c641b0111
Merge pull request #5412 from saracmert/patch-1
...
Update README.md
2017-04-19 10:18:25 +08:00
Mert Sarac
edf9f56e80
Update README.md
2017-04-18 23:16:18 +03:00
wing328
d5ac248e41
comment out test for spring cloud client for the time being
2017-04-19 01:56:13 +08:00
wing328
a1e745bdda
add back petstore sample for spring boot with bean validation
2017-04-19 01:09:14 +08:00
wing328
6d8762cfb5
Merge pull request #5411 from wing328/elizabetht-issue-5310
...
[Java][Spring] Add examples defined in the spec to Spring MVC server generator
2017-04-19 00:39:57 +08:00
wing328
813949dd00
add lamda to clean up examples, fix spring tempalate format
2017-04-18 18:14:00 +08:00
Christoph Auer
70e4dad72e
java/lib/retrofit2: Fix indent
2017-04-18 11:53:30 +02:00
Christoph Auer
9640e30f48
Update java/lib/okhttp-gson
2017-04-18 11:53:30 +02:00
Christoph Auer
4b88374df4
Update java/lib/retrofit2
2017-04-18 11:53:29 +02:00
Christoph Auer
ca87a4b817
Update java/lib/retrofit
2017-04-18 11:53:29 +02:00
Christoph Auer
5b475bcb16
Java/feign: Remove spaces at empty lines
2017-04-18 11:53:29 +02:00
Christoph Auer
83e902ba3f
Update java/lib/jersey2
2017-04-18 11:53:29 +02:00
Christoph Auer
b2674feb14
Java: Remove spaces at empty lines
2017-04-18 11:53:29 +02:00
Christoph Auer
85a58f3414
Update Java/lib/feign
2017-04-18 11:53:29 +02:00
Christoph Auer
9652ce37f7
Update android/lib/volley
2017-04-18 11:53:29 +02:00
Christoph Auer
84dc2e1dd9
Update android
2017-04-18 11:53:29 +02:00
Christoph
71b12636e4
[JAVA] Update gradle and android build tools
2017-04-18 11:53:28 +02:00
Benjamin Douglas
7d22605473
Adding stub test for CXF
...
It looks like these are not automatically generated and so needed to be filled
in manually.
2017-04-17 18:23:11 -07:00
Benjamin Douglas
07ba1eb6f8
Fixup generation of Javascript samples
...
The generation code was ignoring top-level aliases for any language config that
contained "java", which included "javascript", a completely different language.
Changed this to be those configs based on the JavaAbstractGenerator class.
2017-04-17 17:50:01 -07:00
Benjamin Douglas
73454e95dc
Fixed up duplicate pom ids
...
These were generated by bin/run-all-petstore, so ultimately that script should
be modified to not generate the duplicate artifact ids.
2017-04-17 16:30:38 -07:00
Benjamin Douglas
9058099e5b
Add alias type definitions for Java
...
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.
definitions:
JustABoolean:
type: boolean
This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.
This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.
This functionality currenlty only applies to Java, but could be extended to
other languages later.
The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07:00
wing328
a17e80dfb1
minor fix to spring use of examples
2017-04-18 01:42:29 +08:00
wing328
3ca77d3cf2
Merge branch 'issue-5310' of https://github.com/elizabetht/swagger-codegen into elizabetht-issue-5310
2017-04-18 00:52:52 +08:00
Julien Fouilhé
b1a39ac820
fix(swift3): decoders call parents decoders too ( #5369 )
2017-04-18 00:03:52 +08:00
wing328
647f3601f9
Merge branch 'LEgregius-spring-resource-file-streams2'
2017-04-17 23:47:02 +08:00
wing328
34a99d6dba
update spring petstore samples
2017-04-17 23:32:03 +08:00
wing328
ba32f66714
Merge branch 'spring-resource-file-streams' of https://github.com/LEgregius/swagger-codegen into LEgregius-spring-resource-file-streams2
2017-04-17 23:26:09 +08:00
wing328
a32774c541
update spring boot bean validation script
2017-04-17 23:25:27 +08:00
wing328
c7ccb1a9a9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-17 23:05:46 +08:00
Eric Bélanger
fd289ac6de
[JavaSpring] add support for map minProperties and maxProperties bean validation ( #5395 )
2017-04-17 22:47:21 +08:00
Tino Fuhrmann
e858f2390b
[TypeScript] fix class filename in import/export ( #5396 )
...
* Fixed classFilename in typescript-angular and recreated samples
* Changed classname to classFilename in ts-angular2/models.mustache
Also recreated ts-angular2 sample
2017-04-17 22:43:33 +08:00
hossamhossny
e2cd00f905
Update README.md ( #5402 )
...
adding company.
2017-04-16 21:35:34 +08:00
Elizabeth Thomas
ec4b3307fe
Merge pull request #1 from elizabetht/master
...
Elizabeth/Joy - adding example support if specified in the swagger spec
2017-04-13 10:02:23 -05:00
Thomas, Elizabeth-CW
02bcad36fd
Elizabeth/Joy - adding example support if specified in the swagger spec
2017-04-13 09:31:07 -05:00
Mike Kistler
ca9fcd7db1
Fix copy method of CodegenParameter to copy isPrimitiveType ( #5381 )
2017-04-13 20:58:55 +08:00
wing328
4e6a342c13
replace tab with 4-space in spring templates ( #5389 )
2017-04-13 19:03:34 +08:00
wing328
c637157f9e
update project identifier for spring boot beanvalidation
2017-04-13 18:38:34 +08:00
wing328
57871d845d
update travis ci to cover
...
samples/server/petstore/springboot-beanvalidation
2017-04-13 17:53:10 +08:00
wing328
50c6f87d98
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-13 17:48:34 +08:00
wing328
0682e41d6d
update spring petstore sample
2017-04-13 17:44:38 +08:00
dhuning
8cf0f7046e
Adds @Valid to request body for the JavaSpring ( #4850 )
...
* Adds Valid annotation for request body (#4847 )
If useBeanValidation is active, this change will add Valid annotation to ReqeustBody
* Adds generated samples for bean vaildation in spring boot (#4847 )
* Adds Valid import to Controller
* Adds generated code for bean validation change
2017-04-13 17:42:02 +08:00
Benjamin Douglas
ab69ce5dc3
Add null pointer check to add/put methods ( #5385 ) ( #5386 )
...
Commit e3d04ee01 (issue #5240 ) introduced unsafe add/put methods for optional
list/map parameters. This change maintains the spirit of issue #5240 (optional
containers are null by default) while still making add/put calls safe. It does
this by checking for null first and, if so, initializing it with an empty
container.
Also updated the affected samples using the various scripts in bin/.
2017-04-13 17:37:49 +08:00
Jean-Maxime Fillau
df1055fe38
Add float conversion for cpprest api client template. ( #5387 )
...
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com >
2017-04-13 17:30:20 +08:00
Gayathri
8153284f07
petstore sample sh file for resteasy
2017-04-12 09:32:37 -05:00
wing328
942c77b530
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-12 22:11:52 +08:00
Gayathri
a774ff9587
Latest from master - merge conflict resolution
2017-04-12 09:03:54 -05:00
nikitozz
78c4928908
Fixes #5367 . Async support is enabled for .NET netstandard API clients ( #5368 )
2017-04-12 10:39:42 +08:00
wing328
1f4261d20b
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-11 22:29:28 +08:00
wing328
1fdd3e6ffa
[Java][Spring] fix enum allowable values in Spring generators ( #5364 )
...
* fix enum allowable values in spring generators
* use values instead of enumVars in spring annoation
2017-04-11 22:23:09 +08:00
wing328
e3d04ee01f
[Java] remove initialization for optional list property ( #5363 )
...
* set list to null in java if not required
* update petstore sample for java server stub
* update sample for msf4j
* add null assignment to new list/map in java
2017-04-11 19:07:48 +08:00
Michael Kourlas
0e65f649bc
[JavaScript] Fix for issue #5358 : Regression in 2.3 using multi parameters (Cannot read property 'buildCollectionParam' of undefined) ( #5362 )
...
* Fix for issue #5358
* Update tests for #5358
2017-04-11 17:52:32 +08:00
wing328
2d0c8c4060
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-11 01:03:28 +08:00
wing328
d3ac4b686a
fix CI issue by declaring originalEnvironmentVariables as a protected
...
member
2017-04-11 00:57:22 +08:00
wing328
7662924ce1
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-10 23:32:06 +08:00
Simon Marti
1734ac4ed0
Add option to skip Maven plugin execution ( #5337 )
...
* Add option to skip Maven plugin execution
The execution is skipped if either the codegen.skip property or the <skip>
configuration parameter is set. This is consistent with how many other Maven
plugins, such as maven-exec-plugin and maven-clean-plugin, handle this.
* Add documentation for Maven `skip` property
2017-04-10 23:31:58 +08:00
Simon Marti
fea8699d8b
Fix environment variable support in successive Maven plugin executions ( #5351 )
...
* Fix environment variable support in successive Maven plugin executions
System properties were retained across multiple successive executions,
resulting in unpredictable behavior. Property values are now properly reset
to their original value after plugin execution.
Fixes #5350
* Add explanation to environment variable reset mechanism in Maven plugin
2017-04-10 23:25:09 +08:00
Jean-François Côté
2e46bb9b9f
Add File support + some fixes to Play generator ( #5263 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* Return a FileInputStream when the returnType is "file" + Fix a couple of other bugs with boolean + updated sample
* Return an InputStream instead of FileInputStream (except in the instantiation)
* A little cleanup for the form param of type file.
2017-04-10 23:23:28 +08:00
wing328
7991cf75ae
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-10 23:21:36 +08:00
Vincent Giersch
aef98f464e
fix(php): should not check enum value if not unspecified and optional (broken since #4886 ) ( #5357 )
...
Signed-off-by: Vincent Giersch <vincent@giersch.fr >
2017-04-10 23:21:14 +08:00
Vincent Giersch
99f0ab496b
fix(php): escape reserved words in enum variables names ( #5356 )
...
Signed-off-by: Vincent Giersch <vincent@giersch.fr >
2017-04-10 23:19:06 +08:00
tbe
d59ac2ae65
[Perl] remove singleton ( #5353 )
...
- removed Singleton from ApiClient
fixes #5336
2017-04-10 22:52:32 +08:00
Ahmet Taha Sakar
c6959b0d21
Swift3 headers ( #5340 )
...
* added headers to makeRequest function for swift3 template
* petstore update
2017-04-10 22:36:22 +08:00
wing328
c35fdc3bda
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-10 14:39:48 +08:00
wing328
8dbdc31ba7
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-08 00:29:26 +08:00
anuthebananu
19d5e74dbd
[Spring] Adds serialVersionUID to serializable model POJO's ( #5347 )
2017-04-07 09:17:29 +08:00
Johannes
e147fdec48
swagger-codegen-maven-plugin: hint added how to generate server code ( #5342 )
...
addresses issue #5332
2017-04-07 08:46:42 +08:00
wing328
4aaf3ab353
update reserved word list for swift3 ( #5348 )
2017-04-07 08:36:02 +08:00
lukoyanov
a7652d508d
Updated CallAdapter & CallAdapterFactory for retrofit 2.2.0 ( #5345 )
2017-04-07 07:35:47 +08:00
wing328
6c745596d4
add beta to help text in scala client
2017-04-06 22:21:58 +08:00
wing328
627598fcc7
Merge remote-tracking branch 'origin' into 2.3.0
2017-04-06 17:01:49 +08:00
wing328
fd57b4c164
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-04-06 17:01:39 +08:00
wing328
90b14a996a
use original value of paramName in akka scala templates ( #5339 )
2017-04-06 17:01:25 +08:00
baartosz
13cccccb67
fixed error handling in async requests in python client ( #5308 )
2017-04-06 16:55:53 +08:00
wing328
4582cd874d
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-06 16:20:18 +08:00
weiyang
abffdca441
[Html2] Fix circular references ( #5313 )
...
* [html2] Fix circular references
Signed-off-by: weiyang <weiyang.ones@gmail.com >
* [samples][html2] Fix circular references
Signed-off-by: weiyang <weiyang.ones@gmail.com >
* Optimize code format
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2017-04-06 14:39:26 +08:00
wing328
f9825b01d3
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-06 11:58:20 +08:00
wing328
5de04fa612
omitted command line result
2017-04-05 21:49:06 +08:00
wing328
7dc27aaf96
results omitted from command line output
2017-04-05 21:46:15 +08:00
BenjenW
e7a3321b62
Update README.md ( #5330 )
...
Added my company (Individual Standard IVS) to the list of Swagger Codegen users
2017-04-05 20:32:43 +08:00
Paŭlo Ebermann
0c1ad9b2ba
Update security samples for Scala + typescript-node. ( #5325 )
2017-04-05 18:05:21 +08:00
Paŭlo Ebermann
be83329946
Update security samples for swift. ( #5324 )
2017-04-05 18:04:53 +08:00
wing328
5b16694afc
add example to use spec in online generator
2017-04-05 16:41:07 +08:00
Yohana Khoury
7ae0bb6e67
Update README.md ( #5328 )
...
Added GigaSpaces to Companies Using Swagger Codegen
2017-04-05 14:49:22 +08:00
wing328
956e7b4cb5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-04 23:04:25 +08:00
wing328
22c80588f6
fix retrofit2 rxjava2 script ( #5321 )
2017-04-04 22:58:03 +08:00
Paŭlo Ebermann
f0b0226e46
[Java][JaxRS][Spring-MVC] Update samples for jaxrs with Jersey 1/2 and for spring-mvc ( #5212 )
...
* Update samples for Spring-MVC.
* Update samples for Spring-MVC-Jav8-async.
* Update samples jaxrs/jersey1.
* Update samples jaxrs/jersey2.
* Update samples spring-mvc
* Update samples spring-mvc-j8-async
2017-04-04 21:41:22 +08:00
wing328
ad2552ace6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-04 15:27:17 +08:00
Paŭlo Ebermann
8bd67c9f7f
Fix template directory used by samples script. ( #5284 )
2017-04-04 14:47:22 +08:00
Paŭlo Ebermann
ffb4d52469
Update security samples: server ( #5285 )
2017-04-04 14:44:59 +08:00
Paŭlo Ebermann
41b04e0e01
Update security samples for typescript-clients (Angular1/2). ( #5288 )
2017-04-04 14:44:25 +08:00
Paŭlo Ebermann
ca976c524a
Update security samples for ObjectiveC client. ( #5286 )
2017-04-04 14:44:09 +08:00
Paŭlo Ebermann
35ce3f48b9
Updating security samples for C++/QT5. ( #5291 )
2017-04-04 14:43:52 +08:00
Paŭlo Ebermann
66bf83e911
Update security samples for Javascript clients ( #5289 )
2017-04-04 14:43:25 +08:00
Paŭlo Ebermann
0695a58f3c
Updating security samples for Python client. ( #5294 )
2017-04-04 14:42:48 +08:00
Paŭlo Ebermann
7462cf70cf
Updating security samples for PHP client. ( #5293 )
2017-04-04 14:42:01 +08:00
Paŭlo Ebermann
cac803351b
Updating security samples for Go-client. ( #5290 )
2017-04-04 14:41:43 +08:00
Paŭlo Ebermann
f44949db58
Update security samples for Ruby-Client. ( #5287 )
2017-04-04 14:41:22 +08:00
Paŭlo Ebermann
bebeac8ae8
Updating security samples for Perl. ( #5292 )
2017-04-04 14:40:58 +08:00
Paŭlo Ebermann
f7b39a85a5
Updating security samples for scala. ( #5295 )
2017-04-04 14:40:36 +08:00
Paŭlo Ebermann
eb3565b6c0
[C#] Fix guid for C# security samples ( #5283 )
...
* Issue #5196 : also fix the packageGuid for the C# security samples.
* Update C# security samples.
2017-04-04 14:38:47 +08:00
wing328
8eead58afc
add links to release
2017-04-04 13:59:00 +08:00
Ian O'Neill
f303183b44
[JaxrsResteasy] Fix JacksonConfig package and RestApplication imports ( #5302 ) ( #5303 )
...
This is for the EAP version specifically.
* The JacksonConfig class always used the io.swagger.api package
* The RestApplication class did not import the service implementations
from the correct package
* Added shell script for generating test applications
2017-04-04 00:43:40 +08:00
wing328
971a7d0fe8
Merge pull request #5307 from swagger-api/csharp_multi_query
...
[C#] Add support "multi" collectionFormat query string parametershttps://github.com/swagger-api/swagger-codegen/pull/2790
2017-04-03 17:32:39 +08:00
wing328
c5e6401b89
fix C# api client template for multi query parameter support
2017-04-03 16:55:55 +08:00
wing328
5453d61a4c
fix PrepareRequest method signature
2017-04-03 16:45:32 +08:00
Sean O'Hare
f102d675d6
Initial commit to support "multi" formatted collections as query strings in csharp.
2017-04-03 16:36:29 +08:00
wing328
3f8f13e3fd
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-03 15:49:44 +08:00
wing328
e5b3e3cdac
replace tab with 4space for ts jquery client ( #5299 )
2017-04-03 15:48:51 +08:00
baartosz
2315ef2a7f
Php client using guzzle6 & psr7 instead of curl ( #5190 )
...
* reimplemented basic requests with httpplug
* added returning headers
* added query params support
* removed constant reference to model class
* some extra @throws; form params
* form and query params encoding
* file upload / form multipart
* added missing response headers in WithHttpInfo calls
* removed Store test From PetApiTest class
* removed configuration overriding test as its now task of client adapters
* updated store tests with new client initialization code
* updated composer.json template
* not using json_decode if response is string
* renamed some variables to camelCase
* removed ApiClient and Configuration classes
* added HeaderSelector template
* added ObjectSerializer injection
* regenerated all samples
* added AuthConfig and readded support for custom api keys
* readded support for oauth tokens
* readded basic auth; moved auth tests to separate test class
* readded header params
* readded support for collections in paths
* readded config option; readded exception handling
* file downloading; readded some Configuration properties removed earlier
* readded default headers
* made responses and return types work same way as earlier
* made all methods static in ObjectSerializer
* updated test.php, replaced autoload.php with composer's autoloader
* updated api doc template
* removed classes used for testing; regenerated Fake_classname_tags123Api
* replaced httplug with guzzle6
* updated required php version to 5.5
* clean up
* readded missing userAgent feature; removed default headers from Configuration
* updated test.php
* downgraded phpunit back to 4.8 to work with php5.5; fixed client initialization in some tests
2017-04-03 15:47:57 +08:00
wing328
028cbc77b6
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-04-03 15:05:58 +08:00
wing328
d1350b006e
comment out scala test
2017-04-03 15:05:02 +08:00
clasnake
39bd0175b7
Pr4855 cherrypick ( #5115 )
...
* Add async support to scala client.
* Format api endpoints.
* Modify build.sbt.
* Change date format and pass StoreApis tests.
* Add StringReader and StringWriter to support string serialization/deserialization.
* update petstore samples for scala clients
* Update maven and gradle dependency. Update tests to pass compilation.
2017-04-03 15:01:43 +08:00
wing328
cf8a9a0de0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-03 14:54:50 +08:00
wing328
7db3388fdc
Update maven compiler plugin to the latest version (3.6.1) ( #5300 )
...
* update maven compiler plugin to the latest version
* update feign petstore
2017-04-02 21:39:48 +08:00
wing328
2e8eea9c18
add logic to camelize path variables for feign client ( #5301 )
2017-04-02 19:01:43 +08:00
Paŭlo Ebermann
ce41a343d8
Updating all samples (except feign) ( #5281 )
2017-04-02 17:01:15 +08:00
wing328
4916142450
Merge remote-tracking branch 'origin' into 2.3.0
2017-04-02 16:06:33 +08:00
wing328
071c012f85
Replace tab with 4 space in Java files ( #5298 )
...
* replace tab with 4 space in java files
* revise error message in shell script
* print result before checking
* revise grep expression
2017-04-02 16:05:40 +08:00
jfiala
ca6b5d09d0
[Jaxrs-cxf] Add check for useGenericResponse for jaxrs-cxf server + client ( #4779 )
...
* add check for useGenericResponse for jaxrs-cxf
* move check for genericresponse to cxf codegen #4713
2017-04-02 16:05:16 +08:00
wing328
dea01c6b70
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-01 21:14:16 +08:00
wing328
bc8e16e3f8
fix package name in mono test script ( #5278 )
2017-04-01 21:12:17 +08:00
wing328
bfa18a0ce8
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-01 16:39:54 +08:00
Granjow
64c7e23a04
TypeScript client API: Add public getter/setter for base path ( #5270 )
2017-04-01 16:33:29 +08:00
wing328
e96db74918
update java jersey2 petstore clients
2017-04-01 16:19:31 +08:00
zszugyi
22eb72791c
Specify copy option to overwrite existing temp file, otherwise Files.copy throws FileAlreadyExistsException ( #5268 )
2017-04-01 16:11:00 +08:00
Griffin Schneider
5de19e3214
[Swift3] Fix bug where non-camel-case path params didn't work. ( #5267 )
...
* [Swift3] Fix bug where non-camel-case path params didn't work.
* [Swift3] Fix bug where int enums generated non-compiling code. Swift3 integration tests now pass.
* [Swift3] Add a non-camel-case path parameter to petstore-with-fake-endpoints-models-for-testing. This would have caused the Swift3 tests to be broken before 7387e49fef56a624045aa52b65ffb9c19b3853ec.
2017-04-01 16:06:31 +08:00
wing328
22fcea1c91
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-01 15:57:43 +08:00
Benjamin Douglas
5c3fe23e9f
Support Swagger collectionFormat encodings in Feign ( #5266 )
...
* Support Swagger collectionFormat encodings in Feign
Feign only natively supports the "multi" collectionFormat for encoding lists
of parameter values. This change adds manual encoding of the other formats, such
as "csv" (the default for collections), "tsv", space-separated, and pipes.
* Fix typo in anchor tag.
2017-04-01 15:33:20 +08:00
wing328
21da8b6d9c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-31 22:46:31 +08:00
JC Casas
909f392745
fix mustache file for build.bat ( #5264 )
...
replace IO.Swagger for {{packageName}} where necessary
2017-03-31 16:30:40 +08:00
wing328
9c18c32b93
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-31 01:21:03 +08:00
wing328
b71fe61bb7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-31 00:37:05 +08:00
wing328
08be483dab
add new python files
2017-03-31 00:36:51 +08:00
David Guthrie
aa773dc7fd
Resource stream for file is no longer an option, it's the default for Spring
2017-03-30 12:34:22 -04:00
wing328
879edc3a9d
Added IBM to the company list
2017-03-30 23:16:02 +08:00
Paŭlo Ebermann
36d1406493
Update samples for javascript + javascript-promise. ( #5241 )
2017-03-30 23:04:49 +08:00
Sebastian Mandrean
7cc20cbeba
[C#][aspnetcore] Improve generated code ( #5257 )
...
* Migrate from Swashbuckle to Swashbuckle.AspNetCore
* Fix typo
* Add SwaggerResponse for all responses
* Remove model constructor
* Add required attribute if available
* Improve whitespace and remove some redundant code
* Remove redundant code from Dockerfile
* Add disable warning 1591 pragma for model utility methods for bringing down compiler warnings to zero
* Add proper model state validation before controller is called
* Regenerate AspNetCore PetStore sample
2017-03-30 22:58:25 +08:00
wing328
c9182ba00f
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 22:49:11 +08:00
niku
4e1d9ea010
[Elixir] Add documentation for functions ( #5260 )
2017-03-30 22:45:39 +08:00
wing328
b213193550
Merge branch 'Granjow-nodejs-server-improvements'
2017-03-30 22:40:17 +08:00
wing328
a15af0828c
update nodejs petstore samples
2017-03-30 22:39:53 +08:00
wing328
0baa6cf0e8
Merge branch 'nodejs-server-improvements' of https://github.com/Granjow/swagger-codegen into Granjow-nodejs-server-improvements
2017-03-30 22:31:17 +08:00
Usman Iqbal
833db27101
[Typescript - Angular2] Add support for multiple API Keys ( #5236 )
...
# Conflicts:
# modules/swagger-codegen/src/main/resources/typescript-angular2/configuration.mustache
# samples/client/petstore/typescript-angular2/default/configuration.ts
# samples/client/petstore/typescript-angular2/npm/configuration.ts
2017-03-30 22:27:39 +08:00
David Harrigan
fc01457d77
[JAVA][ #5172 ] Allow vendor json media types ( #5189 )
...
* [#5172 ] Allow vendor json media types
* Revert unnecessary diffs
* Update petstore sample
* Didn't run mvn after some edits
* Rerun ' ./bin/java-petstore-all.sh' and './bin/security/java-petstore-okhttp-gson.sh'
* Added more realistic test cases for isJsonMime
2017-03-30 22:23:24 +08:00
wing328
e4ca7744df
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 17:36:35 +08:00
wing328
040a25cc9b
fix typo in c# generator's help text
2017-03-30 10:22:13 +08:00
Paŭlo Ebermann
46cb158733
Updating C# samples. ( #5242 )
2017-03-30 10:02:42 +08:00
wing328
ad4de91d92
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 09:57:07 +08:00
Paŭlo Ebermann
db71d97370
Updating samples after #5232 . ( #5243 )
...
* Updating samples after #5232 .
* Fix tests after #5232 .
* Fix Javascript client tests.
* JaxRS server: set serverPort only when not given from outside.
* Update JaxRS sample creator scripts to fix serverPort.
* Preliminary test fix for JaxRS server generators.
* Updating samples for JaxRS with Jersey1/2.
* Updating JaxRS samples again.
2017-03-30 01:28:53 +08:00
Paŭlo Ebermann
2830fb1794
[JaxRS Server][Jersey1/2] Pass server port by cli ( #5246 )
...
* JaxRS server: set serverPort only when not given from outside.
* Update JaxRS sample creator scripts to fix serverPort.
* Preliminary test fix for JaxRS server generators.
* Updating samples for JaxRS with Jersey1/2.
2017-03-30 01:26:37 +08:00
wing328
8e29326eb5
add link to faq
...
https://github.com/swagger-api/swagger-codegen/wiki/FAQ#git
2017-03-29 22:24:49 +08:00
wing328
bed3cfcfdc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-29 18:48:57 +08:00
wing328
6debbdb652
[C#] Add C# v5.0 Petstore sample (.NET Standard 1.3 compatible) ( #5249 )
...
* add csharp .net standard petstore client, update appveyor to build the
client as part of ci
* add new files
2017-03-29 18:43:30 +08:00
wing328
8f37e68049
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-29 17:25:10 +08:00
James Paden
b91ff65204
Add DocRaptor to Companies Using Swagger list ( #5245 )
...
https://github.com/docraptor
2017-03-29 12:35:28 +08:00
wing328
996acc05f5
[Java][Retrofit2] update gradle, sbt build file with latest dependencies ( #5238 )
...
* update build.gradle for retrofit2
* update retrofit2 rx2 sample
* update gradle and sbt build file for retrofit2
2017-03-28 21:05:12 +08:00
Simon A. Eugster
99fd1b2281
Use __dirname for paths if server is started from a different directory
2017-03-28 13:31:47 +02:00
wing328
55e648c0b1
update retrofit2 dependencies ( #5235 )
2017-03-28 18:50:24 +08:00
Paŭlo Ebermann
dd883e4125
Issue #3084 : remove timestamps from undertow samples ( #5231 )
...
* Issue #3084 : Support hideGenerationTimestamp for Undertow.
* Issue #3084 : disable timestamp generation for undertow samples.
* Update samples for Undertow.
2017-03-28 16:55:08 +08:00
wing328
39fb77ad3e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-28 16:46:44 +08:00
wing328
32e9e7f63e
add port 80 to swagger spec ( #5232 )
2017-03-28 16:46:29 +08:00
wing328
e41dd761b5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-28 10:37:19 +08:00
wing328
ab9f5fa0c0
Merge branch 'fix_msf4j_sh'
2017-03-28 10:08:28 +08:00
wing328
05c671aa5a
fix msf4j bin script
2017-03-28 10:07:38 +08:00
wing328
d68859cfbc
fix c# docstring typo ( #5223 )
2017-03-27 18:06:34 +08:00
wing328
19b766ef04
add comments to csharp methods ( #5222 )
2017-03-27 17:29:07 +08:00
wing328
b32fe8230a
fix retrofit2 indentation ( #5221 )
2017-03-27 17:21:45 +08:00
wing328
f4d1261522
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-27 16:05:44 +08:00
Paŭlo Ebermann
b275b8f9da
Updating samples for spring-stubs, springboot-delegate, springboot-delegate-j8. ( #5211 )
2017-03-27 15:24:18 +08:00
Todd
3849d64c24
export top level enumeration types in typescript-fetch mode ( #4820 )
...
This change enables top level enumeratons to be written out as:
export type SortDirection = "Ascending" | "Descending";
vs.
export class SortDirection {
}
2017-03-27 15:15:36 +08:00
Paŭlo Ebermann
ec6248cbcf
[Erlang] pretty print swagger json ( #5215 )
...
* Pretty-print swagger.json.
(This was done via `jq`. In a later commit we'll generate it pretty-printed.)
* Erlang Server: pretty-print generated swagger.json.
* Update samples for Erlang-server.
2017-03-27 14:50:17 +08:00
wing328
1a1f5afddc
add ci test for msf4j server ( #5220 )
2017-03-27 14:37:42 +08:00
Paŭlo Ebermann
c0e42d2ae0
Updating samples for JaxRS servers: Spec + CXF-CDI. ( #5213 )
2017-03-27 14:31:46 +08:00
Paŭlo Ebermann
a505822b86
Update samples for JaxRS/RestEasy/Joda. ( #5205 )
2017-03-27 14:28:06 +08:00
Paŭlo Ebermann
c73c7ff3b9
Update samples for Undertow. ( #5207 )
2017-03-27 14:27:38 +08:00
Paŭlo Ebermann
ee1ef2c1f6
Update samples for okhttp-gson-parcelableModel. ( #5208 )
2017-03-27 14:22:56 +08:00
Paŭlo Ebermann
b3fac54df6
Update samples for Java Inflector. ( #5204 )
2017-03-27 14:10:15 +08:00
Paŭlo Ebermann
6fef9c5ce6
[java][msf4j] Update msf4j samples (and fix artifact name) ( #5210 )
...
* Fix MSF4J pom indentation.
* Set MSF4J sample artifactId in the generator script.
* Update MSF4J samples.
2017-03-27 14:09:36 +08:00
Paŭlo Ebermann
4ec23e6694
Update samples for Ruby-Client + Rails server. ( #5214 )
2017-03-27 13:27:13 +08:00
Paŭlo Ebermann
9875855f63
[ASP.NET] Issue #5196 : add packageGuid parameter to AspNetCoreServerCodegen. ( #5199 )
...
* Issue #5196 : add packageUid parameter to AspNetCoreServerCodeGen.
* Change .bat file, too.
2017-03-27 13:20:24 +08:00
Paŭlo Ebermann
9dfbe7ef85
[nancyfx] Issue #5196 : make package GUID nonrandom for nancyfx samples ( #5209 )
...
* Add packageGuid parameter to NancyFxServerCodegen.
* Use packageGuid parameter for nancyfx petstore samples.
2017-03-27 13:19:13 +08:00
wing328
05a3c8d5df
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-27 12:01:56 +08:00
Paŭlo Ebermann
200b10e2da
Update samples for QT5. ( #5216 )
2017-03-27 11:48:16 +08:00
Paŭlo Ebermann
356774ceb2
Update samples for clojure + dynamic-html. ( #5217 )
2017-03-27 11:47:56 +08:00
Paŭlo Ebermann
f0b9c2b761
[Go] #3084 : remove timestamps from go server ( #5218 )
...
* Issue #3084 : add hideGenerationTimestamp option to Go server generator.
* Issue #3084 : use hideGenerationTimestamp in go server sample script.
* Update Go server samples.
2017-03-27 11:47:15 +08:00
wing328
b37a7c81b0
add comments to csharp methods ( #5206 )
2017-03-27 11:43:14 +08:00
Paŭlo Ebermann
06ce5ff865
[C#] Issue #5196 : make package GUID non-random for the C# samples. ( #5198 )
...
* Issue #5196 : make package GUID non-random for the C# samples.
* Also change the .bat files for C#.
2017-03-27 11:43:00 +08:00
wing328
7e5f65340e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-26 23:19:25 +08:00
wing328
f719a743a0
update jaxrs-cxf sample
2017-03-26 23:16:39 +08:00
Matan Rubin
a1dbc53555
[JAXRS-CXF] Respect default values for query parameters ( #4778 )
...
* [JAXRS-CXF][#4776 ] Respect query params default values in generated interfaces
Before this change, the generated interface ignored default values of query
params. Now, it adds the proper @DefaultValue annotation.
See issue #4776 for example.
* [JAXRS-CXF] Update samples
2017-03-26 23:15:34 +08:00
wing328
20cc80d170
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-26 23:05:46 +08:00
Paŭlo Ebermann
9b113d5a19
Update samples flask connexion ( #5203 )
...
* Update samples for flaskConnexion-python2.
* Update samples for flaskConnexion.
2017-03-26 23:02:51 +08:00
Paŭlo Ebermann
c812d81e9a
Issue #3084 : remove timestamps from bash samples. ( #5192 )
2017-03-26 22:56:34 +08:00
Paŭlo Ebermann
9b25c0f529
Update samples for JaxRS/CXF. ( #5201 )
2017-03-26 22:55:55 +08:00
wing328
9acefcffdd
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-26 22:54:17 +08:00
Julien Dupouy
e50e653e3d
Binary support for javascript client ( #5194 )
2017-03-26 22:53:35 +08:00
Paŭlo Ebermann
a9c7030997
Issue #3084 : hide generation timestamp for HTML2 samples. ( #5193 )
2017-03-26 22:49:12 +08:00
Paŭlo Ebermann
a3e639ccee
Issue #3084 : remove timestamps from C# .NET2 samples. ( #5197 )
2017-03-26 22:48:20 +08:00
wing328
597ceae3da
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-26 22:47:32 +08:00
Paŭlo Ebermann
8c575b0f0c
Update samples for ObjC&core-data. ( #5202 )
2017-03-26 22:44:18 +08:00
Paŭlo Ebermann
f8c3a69ebe
Update samples for Swift3. ( #5200 )
2017-03-26 22:44:00 +08:00
wing328
41a505a1f8
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-25 14:37:59 +08:00
Jean-François Côté
282b22744c
[Java][PlayFramework] Added some CLI Options + many fixes ( #5180 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* - Add "wrapCalls" and "useSwaggerUI" CLI Options and updated what handleException does to follow Play Framework lifecycle more closely
- Updated all mustache files accordingly
- Updated the sample
- Updates Play Framework version to the latest 2.5.13
2017-03-25 14:36:01 +08:00
Tony Tam
dfbcb6394f
Merge pull request #5183 from swagger-api/issue-5182
...
fix generated operationId
2017-03-24 09:07:53 -07:00
Benjamin Douglas
65b6660c55
Fixes a bug in #5142 for multi-word parameters ( #5185 )
...
In the convenience class defined for generating a Map of query parameters, the
parameter name was mistakenly being set to the Java variable name, not the
actual parameter name. These are often the same, but can be different in the
case of multi-word parameters, such as in the sample API's `enum_query_string`
vs `enumQueryString`.
2017-03-24 22:04:11 +08:00
Val Polouchkine
ffbb96e98c
Update README.md ( #5184 )
...
Add Lyft to companies using Swagger Codegen
2017-03-24 18:01:05 +08:00
Tony Tam
0e64149f63
rebuilt sample
2017-03-23 11:05:08 -07:00
Tony Tam
417b69b98c
fix for #5182
2017-03-23 11:02:53 -07:00
Tony Tam
b3b392dc79
updated inflector version to latest
2017-03-23 11:02:43 -07:00
Joseph Moore
b7fc11b089
Modify retrofit OAuth templates for #5039 ( #5082 )
...
The updateAccessToken method returns `true` when it means `false` and
vice versa.
2017-03-23 23:27:04 +08:00
David Guthrie
58d4187054
Added a new additional option that allows one to replace the the 'file' generated class with org.springframework.core.io.Resource, which will allow returing file data from Urls or anything that can be converted to a stream.
2017-03-23 11:25:08 -04:00
wing328
7209731e45
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-23 20:50:26 +08:00
wing328
98d55ba7cd
commented out jdk7 test in shippable ci config
2017-03-23 20:49:54 +08:00
wing328
d4336bd294
sync swagger codegen pom.xml to 2.3.0
2017-03-23 19:42:16 +08:00
wing328
8aceed7557
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-23 18:26:07 +08:00
wing328
98f0ad598f
Merge branch 'add_back_play_ci'
2017-03-23 18:25:43 +08:00
wing328
3a0f8c4097
add back java play to travis ci
2017-03-23 17:52:37 +08:00
wing328
8fbe82a66b
replace tab with 4 spaces ( #5174 )
2017-03-23 17:18:01 +08:00
wing328
aa3a5c6347
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-23 16:54:49 +08:00
jfiala
43aa4a8569
[Jaxrs-cxf] Add method-level cascaded beanvalidation (@Valid) ( #4921 )
...
* add ApiResponse/s to operation #4718
* add method-level cascaded beanvalidation #4847
2017-03-23 15:56:23 +08:00
wing328
b89e2e6cc3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-23 15:22:24 +08:00
Paŭlo Ebermann
9dc8cf3fa6
Update samples for java/jersey2-java6 (and fix artifact ID) ( #5118 )
...
* Update samples for java/jersey2-java6.
* Let the sample generation script set the right name for jersey2-java6.
This is the equivalent change to #5095 , for jersey2-java6.
* Update samples for Java/Jersey2-java6.
2017-03-23 15:22:14 +08:00
wing328
a30c5cbe70
include bin/java-petstore-jersey2-java6.sh in java-petstoreall.sh
2017-03-23 15:21:46 +08:00
David Biesack
5f27fcab18
Add support for Markdown in -l html ( #5144 )
...
* Sync with upstream/master
* Support Markdown in -l html
Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)
Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml
* Support Markdown in -l html
Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)
Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml
2017-03-23 15:15:01 +08:00
Benjamin Douglas
55b7db3456
#5142 : Add @QueryMap support for Feign API ( #5143 )
...
* use builder pattern for operations
* @QueryMap parameter only for query parameters
The previous iteration had replaced all parameters (body, path, query, etc)
within a single @QueryMap. But Feign only supports this style of parameter
passing for query parameters. Besides, for the case of a body parameter (like
soxhlet uses) it only added extra verbosity. With this change, the query
parameters are gathered together in a single @QueryMap and the other parameters
are left alone.
* Adding template for generating test code
* Make javadoc consistent with rest of file's conventions/indents
* Update samples
The files in src/main were generated by running
$ bin/java-petstore-feign.sh
The files in src/test were manually fixed.
* Correct capitalization of @QueryMap class in feign
Adds a field operationIdCamelCase (a la operationIdLowerCase) to the
CodegenOperation container and uses it in the feign-generated classes
with @QueryMap parameters. Also re-generated the feign samples.
* Adding hyphen to javadocs for extra readability.
* Adding (not replacing) api method with @QueryParam overload.
In order to keep backwards compatibility, switched to adding a new method to
the interface instead of replacing the old call.
* Adding newline to generated source for readability.
2017-03-23 15:01:07 +08:00
wing328
bd81dfd08e
use base name for parameters in the curl command ( #5173 )
2017-03-23 14:51:00 +08:00
wing328
004cf6611e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-23 14:15:10 +08:00
wing328
264c9d615f
use unescaped path in server stub templates ( #5157 )
2017-03-23 11:59:04 +08:00
Mark Symons
1733916d48
Update maven-bundle-plugin version in POM ( #5158 )
...
Update maven-bundle-plugin to 3.3.0 to fix CVE-2012-2098, per issue #5148
2017-03-23 00:57:29 +08:00
Simon Marti
375e34fe12
Fix selective generation in successive Maven plugin executions ( #5152 )
...
Options passed as system properties are properly reset when
disabled in the execution configuration.
Fixes #5151
2017-03-23 00:49:57 +08:00
wing328
bf7a2b22cd
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2017-03-22 23:03:20 +08:00
wing328
c206086abe
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-22 23:03:02 +08:00
wing328
2b0efda3bd
[Java][Play] Remove swagger play dependency, cleanup ( #5159 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Add an CLI option to generate interface. These interfaces are implemented by the controllerImp and help to generate the code with an IDE like IntelliJ because on updates of the code the controllerImp must follow the contract of the interface. If it don't, IDE will provide support to generate missing functions or parameters. I also did some cleanup of options we don't use in Play Framework.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
* Small fixes
* Remove everything related to swagger-play. No need for annotation anymore because we export the swagger.json directly and show the documentation using swagger-ui with the direct path. Also added the sample.
* Remove/Rename paramsX mustache because there is no more documentation. Remove unused file. updated sample
* Fix the problem with default values that was not set correctly.
* Small fix related to bad merging
* Add handleException CLI options
* Fix default values once and for all!
* Update sample files + fix bug
* Fix bug with body that is required and have a list as a parameter + add bean import for interface to prevent compilation error
2017-03-22 23:00:30 +08:00
baartosz
8b891be7d7
[Python] remove singleton ( #5012 )
...
* updated tests relying on configuration's singleton
* regenerated samples
* removed singleton from templates
* regenerated samples
* removed broken sample and its test
* reverted accidental change
* regenerated security/ samples
* removed singleton from RESTClientObject
* removed unused Configuration import
* reverted unrelated change
* updated usage examples in api_doc template
2017-03-22 22:25:46 +08:00
wing328
bea9e265e9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-22 20:52:26 +08:00
wing328
f064d29e82
Use unescaped path in API client templates ( #5154 )
...
* use unescaped path in api client templates
* use unescape basePath in API client templates
2017-03-22 20:49:06 +08:00
wing328
a4d4b0f0bd
fix pattern in python flask ( #5155 )
2017-03-22 20:41:12 +08:00
Paŭlo Ebermann
e3d8dabef0
fix missing code marker in README.md ( #5145 )
2017-03-22 16:19:34 +08:00
wing328
df2f406849
update csharp generator help text ( #5140 )
2017-03-22 16:18:59 +08:00
wing328
1ee0f4fbad
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-22 16:06:22 +08:00
wing328
186f943076
Merge branch 'techlogix-master'
2017-03-22 16:06:13 +08:00
wing328
439dbb1121
syn master pom.xml to 2.3.0
2017-03-22 16:02:35 +08:00
wing328
4f6b3bd48b
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-22 15:55:56 +08:00
wing328
1209cdb194
delete model return file to clear incorrect git status
2017-03-22 00:09:03 +08:00
wing328
1c329483e4
[TypeScript] fix class filename in TS Angular2 template ( #5131 )
...
* fix class filename in ts angular2 template
* remove trailing comma in ts angular2 template
2017-03-21 23:48:35 +08:00
wing328
3c308ca40e
update sample for spring boot
2017-03-21 23:30:54 +08:00
wing328
52e42701bd
Merge branch 'master' of https://github.com/techlogix/swagger-codegen into techlogix-master
2017-03-21 23:29:08 +08:00
Fábio Franco Uechi
0afa084158
Add docker support to python flask ( #5133 )
...
* added supporting files for Dockerfile and dockerignore generation for python-flask lang
* documenting how to build the docker image and how to spin up a container
* updating pet store sample
2017-03-21 23:21:53 +08:00
wing328
6708cc50eb
[Java][Play] update CI (travis) to cover Play framework petstore server ( #5130 )
...
* add test to cover play framework
* add sample for java play framework
* add script to test only if running sdk8 for play petstore
2017-03-21 22:49:05 +08:00
wing328
26ae4c3a99
update dynamic html sample
2017-03-21 22:09:12 +08:00
wing328
9eed412fb6
update html2 sample
2017-03-21 22:07:42 +08:00
wing328
a3482d2454
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-21 22:05:24 +08:00
wing328
a51dc80c61
Merge branch 'add_gradle_cache'
2017-03-21 22:05:13 +08:00
wing328
e45284806f
add gradle cache
2017-03-21 21:48:40 +08:00
Yao Yao
d217c5c1fd
add json-formatter-js library. ( #5125 )
2017-03-21 21:44:28 +08:00
wing328
3ebee288ad
add back missing changes from #4539 ( #5109 )
2017-03-21 16:17:28 +08:00
Ben Herila
42a7110d90
Fix Bug/4952 by explicitly implementing IValidatableObject ( #4954 )
...
* Explicitly implement IValidatableObject interface to avoid conflict with potential ValidationResult classes
* Missed one
* Rebuilt tests
2017-03-21 15:57:56 +08:00
Sebastian Mandrean
58198939c7
[C#][aspnetcore] Fix broken Docker build option & documentation ( #5128 )
...
* Use lower-case packageName for README.md docker build example
* Use dotnet:1.0.3-sdk instead of just "latest"
* Regenerate Petstore server sample
2017-03-21 14:39:24 +08:00
Paul English
59fe50dd74
Ensure identifiers get sanitized; Ensure model names also have the same formatting ( #5098 )
2017-03-21 14:35:38 +08:00
Paŭlo Ebermann
9e38621266
Update samples for javascript-closure-angular. ( #5117 )
2017-03-21 14:31:18 +08:00
wing328
439563bd70
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-21 14:30:10 +08:00
Fábio Franco Uechi
7325650f2d
solves issue #4752 ( #5127 )
2017-03-21 14:25:10 +08:00
fumito_ito
c1a9b7313e
fix #2159 dataformatter error for iOS Swift ( #5008 )
...
* fix #2159 dataformatter error for iOS Swift
When trying to parse 24-hour time to 12-hour time, date formatter throws fatal error.
It's caused by lack of settings locale for date formatter.
* update sample code
2017-03-21 14:22:18 +08:00
wing328
6fe38e8383
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-20 22:12:57 +08:00
eblis
21657f80cf
Not using files from template folders with libraries inside them ( #4628 )
...
* #4627 - When looking for template files also look in the libraries subfolder of the supplied templateFolder, before checking the embedded locations.
* Reworked the order in which template files are searched for:
- 1st the code will check if there's a <template folder>/libraries/<library> folder containing the file
- 2nd it will check for the file in the specified <template folder> folder
- 3rd it will check if there's an <embedded template>/libraries/<library> folder containing the file
- 4th and last it will assume the file is in <embedded template> folder.
Added unit test to test template dir overloading.
2017-03-20 22:12:29 +08:00
wing328
321c7cb2ca
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-20 21:16:02 +08:00
Gronsak
580745ef43
[C#] Adding support for generating .NET Standard 1.3 client library ( #4955 )
...
* [CsharpNetStandard] Added C# .NET Standard Client Generation
Added language CsharpNetStandard.
Everything copied from csharp Client Generator.
Dependancies switched from Restsharp to Restsharp.Portable.
Changes made where nececary to replicate Restsharp functionallity.
Project type changed to .NET Standard protable library.
* [CsharpNetStandard] Removed client prop validation due to incompability
* [CsharpNetStandard] Minor fixes
Changed leftover RestSharp.Method to Method
Changed to .Net Standard 1.3 for compability reasons
Changed excludeTests to default to true due to tests not being implemented yet
Removed unnecessary targetFramework property
Removed leftover UWP stuff
* [CsharpNetStandard] More fixes
Added correct dependencies to Readme
Added correct supported frameworks to Readme
Added slightly better placeholder for installation instructions in Readme
Removed leftover dependencies from project.json
Removed leftover SupportsAsync stuff
Removed references to build.bat/-.sh since they're not yet being generated
Todo implement test generation
* [CsharpNetStandard] Added forgoten git_push.sh
* [C#-netstandard] Renamed option to csharp-netstandard
Also added .bat file for test generation
* [C# Net Standard] fixed path in .bat file
* [C# NET Standard] fixes to enum generation
Fixed issues with enum generation due to tired programmer
* [C# NET Standard] Generated sample client library
Sample library generated
Fixes:
Class actually works again
.bat - minor inconsistency fixed
* [C# NET Standard] Error corrected in how timeout is set
Configuration Timeout property changed to TimeSpan type and code corrected around that
* [C#] Merged .NET Standard generator into csharp generator
Functionallity of csharp-netstarndard generator has been moved into standard csharp generator under the targetFramework option as "v5.0"
2017-03-20 17:21:44 +08:00
Paŭlo Ebermann
7ab746d355
Updating samples for swift. ( #5120 )
2017-03-20 15:40:27 +08:00
Paŭlo Ebermann
d3f365fd29
Fix (partially) #4898 for elixir ( #5021 )
...
* fix (partially) #4898 for Elixir
* Update petstore samples (after fix for elixir for #4898 )
2017-03-20 15:24:24 +08:00
wing328
08d4545947
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-20 15:07:43 +08:00
foxx1337
090d80b42c
[JAVA][jaxrs-spec] Add @DefaultValue for query parameters in API ( #5023 ) ( #5024 )
...
This was previously missing and I don't think it was intentional.
It appears that swagger-codegen is already correctly processing
the yaml and the placeholder in the template was the only thing
missing.
2017-03-20 15:04:27 +08:00
wing328
f477ae83aa
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-19 15:56:30 +08:00
Oliver Teichmann
2d21bfa21c
Updated feign library to use latest version of OpenFeign and Jackson. ( #5114 )
2017-03-19 15:15:06 +08:00
wing328
11d899c9cd
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 23:05:12 +08:00
wing328
eee5cc061c
fix path with {{{ .. }}} in c# api mustache file ( #5112 )
2017-03-18 23:02:20 +08:00
wing328
6c2304ace5
add petstore sample for jaxrs-cxf-client, update travis ci ( #5111 )
2017-03-18 22:48:38 +08:00
jfiala
2048defe7b
add jackson dependencies to pom for cxf-client #4924 ( #5032 )
2017-03-18 22:13:44 +08:00
rcilia
d5cb70f03e
Swift3 enum: number variable names fix ( #5060 )
...
* Swift3 enum: number variable names fix
Swift3 generator: added 'number' prefix to enum variable names that start with a number
* Fixed Swift3 enum variable names starting with number (prefixed with '_') and added test cases
* Swift3 enum var names: made sure to keep the next word after a number in lower case
2017-03-18 17:29:52 +08:00
wing328
645c5fc1ba
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 17:15:29 +08:00
Paŭlo Ebermann
4706f4da3e
Update samples for C#/SwaggerClientWithPropertyChanged. ( #5095 )
2017-03-18 17:08:17 +08:00
wing328
045f265224
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 16:50:06 +08:00
Paŭlo Ebermann
426660206d
Fix sample script to set the correct artifact ID in the generated POM ( #5094 )
...
* Update samples for akka.
* Have akka-scala-petstore scripts set the correct artifact names
* Update akka-scala samples again.
2017-03-18 16:49:46 +08:00
wing328
0f53fa80f8
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 16:46:10 +08:00
Paŭlo Ebermann
1b973d2c43
Update petstore samples for scala client. ( #5092 )
...
* Update petstore samples for scala client.
* Fix missing dependency problem.
2017-03-18 16:44:53 +08:00
wing328
9749585886
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 15:47:15 +08:00
Brian Towles
0895e292c4
Add Selective Generation support to the Maven plugin. ( #5036 )
...
* Updated maven plugin to allow for selective generation
* Documentation of Selective generation options.
2017-03-18 15:46:10 +08:00
wing328
1010ecc8d5
Merge remote-tracking branch 'origin' into 2.3.0
2017-03-18 15:39:10 +08:00
wing328
98e8e55281
Merge pull request #5065 from ibm-bluemix-mobile-services/issue-4764
...
[Swift] Fix issue #4764
2017-03-17 21:53:44 +08:00
wing328
d2adccbb95
Merge pull request #5079 from ePaul/new-sync-master-to-2.3.0
...
New sync master to 2.3.0
2017-03-17 17:58:41 +08:00
Sebastian Mandrean
5ed94a002c
[Haskell] Fix broken client/server compilation errors ( #5097 )
...
* Remove dead legacy code
* Update cosmetics according to Haskell standard practices
* Fix failing pattern matching for lookupEither
* Bump to latest dependencies without any breaking changes
* Remove duplicate instance declarations already existing in Servant.API.Verbs
* Fix double Java/Haskell escapement bug
* Re-generate Petstore sample client/server
2017-03-17 16:55:11 +08:00
wing328
65d5b5001f
add https://github.com/inaka/erlang_guidelines
2017-03-17 16:44:21 +08:00
wing328
436cbb6b3d
add https://github.com/christopheradams/elixir_style_guide
2017-03-17 16:43:08 +08:00
Tony Tam
9ddf28ff75
Update wordnik.yaml
2017-03-16 16:04:59 -07:00
Tony Tam
20580f9b1b
Update wordnik.yaml
2017-03-16 16:01:34 -07:00
wing328
64c2eed972
fix link to Cummins
2017-03-17 01:05:14 +08:00
Paul Ebermann
c74eec27ca
Merge branch 'update-scala-client-samples' into new-sync-master-to-2.3.0
2017-03-16 17:53:39 +01:00
Paul Ebermann
2ecb4955ff
Fix missing dependency problem.
2017-03-16 17:50:07 +01:00
Paul Ebermann
60e80b726f
Update petstore samples for scala client.
2017-03-16 17:27:37 +01:00
Paul Ebermann
21b70a2dad
Fix broken okhttp-gson merge.
2017-03-16 14:49:49 +01:00
Paul Ebermann
f907af6f31
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-15 18:43:12 +01:00
Paŭlo Ebermann
1c160df338
Fix Issue #5063 (deleting wrong sample files) ( #5064 )
...
* Update samples for springboot, spring-delegate, spring-delegate-j8.
* Issue #5063 : delete samples in the correct directory.
2017-03-16 01:36:25 +08:00
Paul Ebermann
5bb0f7a933
Update all samples.
2017-03-15 18:25:40 +01:00
wing328
917306aa10
override escape quotation mark in async scala generator ( #5078 )
2017-03-16 01:14:43 +08:00
Paul Ebermann
784169bc3f
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-15 16:41:33 +01:00
Paul Ebermann
08ea36b13d
Merge remote-tracking branch 'upstream/2.3.0' into new-sync-master-to-2.3.0
2017-03-15 16:34:27 +01:00
wing328
878b390ab6
Merge pull request #5049 from jostick/fix-scala-listbuffer
...
Fixes ListBuffer import-mapping for scala clients
2017-03-15 23:33:00 +08:00
wing328
c1f422b965
Merge pull request #5072 from swagger-api/sync_master_230
...
Sync master to 2.3.0 branch
2017-03-15 23:09:31 +08:00
wing328
2da2a2631d
add ci for akka-scala client ( #5073 )
2017-03-15 23:08:40 +08:00
wing328
2770d00a2c
Merge pull request #5076 from sebastianhaas/patch-1
...
Add practicebird.com to companies/projects using swagger codegen
2017-03-15 23:04:31 +08:00
Sebastian Haas
f0cd13a5c4
Updated companies/projects using swagger codegen
2017-03-15 15:33:39 +01:00
wing328
e5c289c247
fix shippable using oracle jdk8 instead of openjdk8
2017-03-15 18:07:28 +08:00
wing328
e363b431ac
Merge pull request #5056 from ePaul/merge-2.3.0
...
Merge 2.3.0 into sync_master_230
2017-03-15 17:49:38 +08:00
Sebastian Mandrean
55508d9c24
[Haskell] Bump dependencies ( #5061 )
...
* Bump haskell-servant dependencies
* Update haskell-servant petstore sample
2017-03-15 17:42:08 +08:00
wing328
c651aacfe3
add ci for ts jquery petstore ( #5070 )
2017-03-15 17:15:54 +08:00
Paŭlo Ebermann
31f29be2a0
Use deterministic randomness in ExampleGenerator. ( #5068 )
...
* Update samples for nodejs + nodejs-google-cloud-functions.
* Fix example generator to use deterministic randomness.
This avoids changing results after each generation, and makes diff reviews easier.
* Update NodeJS samples.
This is the last "randomness" update. From now on the samples should only change if either the generator, the input or parameters change.
2017-03-15 17:15:13 +08:00
Matt Alleman
b2aa877ce0
Allow for UUID types in akka-scala ( #5069 )
...
* allow for UUID types
* update sample libs
2017-03-15 17:02:42 +08:00
Paŭlo Ebermann
e1b1edf958
Merge branch 'merge-2.3.0' into new-sync-master-to-2.3.0
2017-03-14 21:04:47 +01:00
Anthony Oliveri
88a755f368
[Swift] Detect file type in Swift codegen
2017-03-14 15:02:34 -05:00
wing328
bbe3fd4c71
add jquery template creator
2017-03-15 00:29:45 +08:00
Ben Herila
eea58c55b4
Add support for typescript-jquery (typescript-based API calls using jquery ajax in the browser) ( #4953 )
...
* Typescript jquery client wip
* typescript-jquery wip
* Fix typo
* typescript-jquery wip
* Fix formatting
* Petstore sample for typescript-jquery
* Petstore sample for typescript-jquery
* wip
2017-03-15 00:17:04 +08:00
Paul Ebermann
26b618241a
Merge branch 'update-samples-for-sync_master_230' into merge-2.3.0
2017-03-14 13:11:24 +01:00
Paul Ebermann
aba5abd15e
Update samples again after swagger-parser bump.
2017-03-14 12:54:11 +01:00
Tony Tam
7e30116b20
Updated parser to release version 1.0.28
2017-03-14 12:29:36 +01:00
Tony Tam
61917723e1
matched key to actual value
2017-03-14 12:29:36 +01:00
Tony Tam
689b7321f7
added type check
2017-03-14 12:29:36 +01:00
Paŭlo Ebermann
9be178b26a
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-13 21:42:41 +01:00
Paŭlo Ebermann
22de105895
Merge remote-tracking branch 'upstream/2.3.0' into merge-2.3.0
2017-03-13 21:26:39 +01:00
Paŭlo Ebermann
3a48ba8bfd
Update all the samples.
...
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
2017-03-13 19:50:10 +01:00
Paŭlo Ebermann
8ce4563afc
Update samples for okhttp-gson.
2017-03-13 19:27:38 +01:00
wing328
2133861e1f
fix retrofit2rx sample due to bad merge
2017-03-14 02:01:02 +08:00
wing328
1f7374957e
fix java retrofit2 apiclient due to bad merge
2017-03-14 01:11:50 +08:00
wing328
f1e237f76f
resolve java okhttp issue due to merge conflicts
2017-03-14 00:09:01 +08:00
Johannes Stickel
02f2fde65e
Fixes ListBuffer import-mapping for scala
2017-03-13 16:43:47 +01:00
wing328
b5be3f4a04
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-13 22:07:18 +08:00
wing328
9b281b2180
make bin/java-play-framework-petstore-server.sh executable
2017-03-13 22:06:45 +08:00
wing328
ebfc39e435
use oracle jdk instead in shippable config ( #5045 )
2017-03-13 22:05:36 +08:00
Paŭlo Ebermann
a2d1edc6f5
Fix (partially) #4898 for groovy ( #5030 )
...
* Fix (partially) #4898 for groovy.
This also adds some TODOs for the missing path, form and body parameters.
* Update Groovy samples (after partial fix for #4898 )
2017-03-13 21:46:28 +08:00
wing328
722bbb8e1f
update clojure test cases after restoring to petstore.json ( #5043 )
2017-03-13 19:43:09 +08:00
Jeff Haynes
ba380c9dda
Issue 4759: Import complex type for body parameters ( #4775 )
2017-03-13 15:35:21 +08:00
Arne Jørgensen
79e21d98c6
Fix wrong Docker Hub repo in README ( #5033 )
2017-03-13 13:11:57 +08:00
wing328
6308613012
fix shippable config due to JAVA_HOME issue in openjdk8 ( #5031 )
2017-03-13 01:53:04 +08:00
wing328
9d64e792a3
add ivy2 to cache sbt install
2017-03-13 00:52:10 +08:00
wing328
a73c735d7e
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-13 00:49:15 +08:00
wing328
9f5da506fc
Merge branch 'jdupouy-2-call-visibility2'
2017-03-13 00:49:04 +08:00
wing328
01eba1872e
update java okhttp petstore sample
2017-03-13 00:23:55 +08:00
wing328
7733dba002
Merge branch '2-call-visibility' of https://github.com/jdupouy/swagger-codegen into jdupouy-2-call-visibility2
2017-03-13 00:21:22 +08:00
wing328
366f66d822
Update link to maven jar
...
update link with http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.2/swagger-codegen-cli-2.2.2.jar instead
2017-03-12 23:05:27 +08:00
Arne Jørgensen
0b9aaad1c2
Build and upload Swagger Codegen CLI Docker image on release ( #4912 )
...
* Run mvn in batch-mode to be less verbose on download
* Build and upload Swagger Codegen CLI Docker image on release
* Ensure we only push master and tags to Docker Hub
2017-03-12 17:09:47 +08:00
Paŭlo Ebermann
c76f006067
fix (partially) #4898 for dart. ( #5019 )
2017-03-12 17:08:48 +08:00
jfiala
39eba39625
[Jaxrs-cxf] add ApiResponse/s to operation #4718 ( #4920 )
...
* add ApiResponse/s to operation #4718
* use spaces instead of tabs #4718
* fix alignment issues #4920
* fix alignment issues #4920
* replace tabs with spaces #4920
* updated samples #4920
2017-03-12 16:58:19 +08:00
Paŭlo Ebermann
16adc7b373
Fix (partially) #4898 for flash ( #5022 )
...
* Fix (partially) #4898 for flash.
This fixes path, query and header parameters.
* Update samples for flash (after partial fix for #4898 ).
2017-03-12 16:53:18 +08:00
Tony Wang
f9683166f3
[Swift3] null enumerations should not cause failure ( #4762 )
...
* [Swift3] fix format warnings
* [Swift3] null enumerations should not cause failure
success or failure on numm enumerations should be decided by users
* update petstore
* handle type mismatch and null respectively
2017-03-12 16:36:28 +08:00
Kyle Maxwell
a201b01adc
Ultra minor spelling fix ( #5029 )
2017-03-12 14:11:53 +08:00
ravinikam
c4bd4c9e91
Add missing number type mapping ( #5013 )
...
number to float or double type mapping was missing, added number to double to accommodate both.
2017-03-11 23:03:37 +08:00
wing328
4bf0fd6ad4
Merge branch 'ravinikam-patch-2'
2017-03-11 20:40:42 +08:00
wing328
82ccbc09f7
update cpprest petstore sample
2017-03-11 20:40:22 +08:00
wing328
3dfa423151
Merge branch 'patch-2' of https://github.com/ravinikam/swagger-codegen into ravinikam-patch-2
2017-03-11 20:36:45 +08:00
wing328
0ce6c7e3a8
do not map UUID as model in java ( #5026 )
2017-03-11 20:32:46 +08:00
Paŭlo Ebermann
2b9b0f31dc
remove indentation of the comment ( #5011 )
...
This template seems to lead to people wrapping their code with indented code markers, which won't work.
Hopefully not indenting it here helps a bit.
2017-03-11 17:29:59 +08:00
XuXinkun
3c1a8daaf9
fix handleResponse to not leak okhttp connections ( #4997 )
2017-03-11 17:02:49 +08:00
wing328
8fb71b46db
cache module directory to improve CI performance ( #5025 )
2017-03-11 16:59:17 +08:00
Tony Tam
dfc0b7e3f8
Updated parser to release version
2017-03-10 20:53:03 -08:00
Tony Tam
429c2113a0
Merge pull request #5017 from swagger-api/issue-5016
...
null out the string `null` in examples. Rebuilt java clients
2017-03-10 13:06:05 -08:00
Tony Tam
0dcd91adbf
null out the string null in examples. Rebuilt java clients and made a whole bunch of changes
2017-03-10 11:07:30 -08:00
ravinikam
a29c8c937a
Update exception message to use operationId
...
Update ApiException to use {{operationId}} variable to correct typo
2017-03-10 12:41:15 -06:00
Tony Tam
3ff4c988b8
Merge pull request #4999 from swagger-api/issue-4998
...
updated parser
2017-03-10 09:46:12 -08:00
Tony Tam
f9835a4b37
matched key to actual value
2017-03-10 09:31:02 -08:00
Tony Tam
db4945fdbf
added type check
2017-03-10 09:30:49 -08:00
Julien Dupouy
3da8654336
Change build call visibility
2017-03-10 18:05:27 +01:00
wing328
d9ee34e250
Update travis.yml to cover Java-related server stubs ( #4992 )
...
* update travis to cover more test cases
* update artifactid
* update artifactid for msf4j
* update pom for better test naming
2017-03-10 22:22:40 +08:00
Jean-François Côté
20c8f9a831
Java Play Framework Server Generator ( #4943 )
...
* First commit of the Java Play Framework server generator. It is highly based on Spring so there might me a couple of things that don't make sense (like options or parameters) for the Play Framework.
* Fix suggestions in the PR discussion + add .bat and .sh file as requested.
* Updated Readme.md file
* Remove unused mustache file + fix baseName vs paramName in all the mustache files.
* Fix the compilation error when we have a body which is a list or map. Doesn't fix the problem with the annotation itself.
* Fix the problem with the Http.MultipartFormData.FilePart
2017-03-10 22:10:49 +08:00
David Biesack
ec3b338988
Improve HTML output for model titles, default responses ( #4991 )
...
Render "default" instead of 0 for response code when Swagger uses "default" (#4982 )
Add title for models to TOC and each model's section
Render model description only conditionally.
Remove extraneous Up link
Regenerate samples/html/index.html
2017-03-10 21:47:20 +08:00
Tony Tam
dc8d04eb1c
updated parser
2017-03-09 23:41:31 -08:00
Bernhard Döbler
bfa8d350b3
JS files were replaced in the lib folder; include new ( #4985 )
...
Fix https://github.com/swagger-api/swagger-codegen/issues/4983
2017-03-09 23:18:11 +08:00
pablograna
fb75996527
Make java spring controller constructor public. ( #4972 )
...
* Make java spring controller constructor public.
This lets users manually create the controller and inject the delegate in the
spring configuration file, instead of letting spring scan for controllers and
autowire the delegate.
* Ran spring-all-pestore.sh.
2017-03-09 23:11:44 +08:00
Rohit Sood
11856e9712
Update Spring Fox dependency version to 2.6.1. This fixes a defect where Swagger and Feign clients do not conflict when registration occurs with Eureka.
2017-03-09 09:54:49 -05:00
wing328
bfb4390a1c
[TypeScript][Angular2] better code indentation, update Petstore sample ( #4990 )
...
* fix query parameter indentation, update ts angular2 sample
* update ts angular2 sample
2017-03-09 22:27:29 +08:00
baartosz
cffaaa027a
minor improvements to Configuration php template ( #4989 )
2017-03-09 17:28:19 +08:00
wing328
4fe79f0078
Remove default format (JSON) from API operations ( #4987 )
...
* remove default format (json) and update ruby petstore
* update python petstore sample
* update php petstore sample
* update android petstore sample
* update java petstore sample
* update objc sample
* remove default format (json) from perl
2017-03-09 11:12:01 +08:00
wing328
b6d6356c46
remove default format (json) from c# api ( #4980 )
2017-03-08 22:43:59 +08:00
baartosz
d21e156071
[PHP] error when deserializing enums #4032 ( #4886 )
...
* fixed enum template; added enum handling to ObjectSerializer
* regenerated templates
* improved InvalidArgumentException message
* regenerated sample client
* added value check of OuterEnum during sanitization
* regenerated samples
2017-03-08 19:08:42 +08:00
Michael Kourlas
2bb7626202
[Java] Fix for issue #3365 : Support for gzip compression ( #4967 )
...
* Fix for issue 3365 for Java
* Added tests
* Convert CRLF to LF
* Convert CRLF to LF in tests
2017-03-08 19:00:50 +08:00
wing328
89ad5e59b8
use convertPropertyToBooleanAndWriteBack in some generators ( #4975 )
2017-03-08 17:39:22 +08:00
wing328
5dbcf6e8e4
[JavaScript] fix issues with boolean CLI options ( #4974 )
...
* remove commented code
* fix issue with boolean clioption in js codegen
2017-03-08 16:57:29 +08:00
delenius
5935e2e6d9
Add support for saving/returning cookies ( #4192 )
...
This adds a `saveCookies` boolean flag to ApiClient. If set to true,
the client will save and return cookies to the server.
This is useful for supporting @SessionScoped beans in Java servers.
Works both in Node.js desktop apps, and in the browser.
2017-03-08 15:26:46 +08:00
Kyle Maxwell
3e3d360027
Add proxy support to fix #4639 ( #4946 )
...
* Add proxy support to fix #4639
* Update sample app for testing
* Fix indentation and remove leftover code
* Update sample for new rest template
2017-03-08 12:03:45 +08:00
jfiala
871b3ceef7
update templates and samples for spring-boot #4719 ( #4736 )
2017-03-07 23:35:21 +08:00
jfiala
2f43f98cfa
update beanvalidation templates and samples jersey2 #4719 ( #4732 )
2017-03-07 23:35:06 +08:00
jfiala
6a7340378a
update beanvalidation templates + samples #4719 ( #4733 )
2017-03-07 23:34:40 +08:00
jfiala
1e8312782b
[Jaxrs-spec] Merge beanValidation/beanValidationParams.mustache ( #4731 )
...
* update beanvalidation templates #4719
* update jaxrs-sample #4719
2017-03-07 23:26:30 +08:00
jfiala
c4475861b0
update beanvalidation templates #4719 ( #4734 )
2017-03-07 23:26:06 +08:00
jfiala
6383872b5f
update beanvalidation templates and sample for jersey2 #4719 ( #4735 )
2017-03-07 23:25:21 +08:00
wing328
f236b08877
minor formatting fix
2017-03-07 23:23:38 +08:00
stevecookform3
290cb7c331
fix path/query parameters ( #4959 )
2017-03-07 22:23:55 +08:00
Paŭlo Ebermann
404a9999a7
Fix (partially) #4898 for swift3 ( #4916 )
...
* fix (partially) #4898 for swift3.
* Update petstore samples for swift3 (after fix for #4898 )
2017-03-07 17:28:08 +08:00
Paŭlo Ebermann
0f88e4a721
fix (partially) #4898 for MSF4J. ( #4917 )
2017-03-07 17:26:57 +08:00
wing328
913d05c17c
[Python][Flask] Fix inconsistency between model name and file name ( #4958 )
...
* fix inconsistence between model name and file name in python flask
* add object as primitype type in python flask
2017-03-07 15:32:41 +08:00
dhuning
6ea3315b3e
Implicit headers for SpringCodegen ( #4858 )
...
* Add a new option implicitHeaders with default false
* Change JavaSpring templates and codegen to handle implicit headers
* Add script to generate sample for implicitHeader option
* Add generated implicitHeader sample
* Fix alignment
2017-03-07 14:54:15 +08:00
Jacobo de Vera
7de1eeb987
[python] Triple quote strings with new lines in default values ( #4941 )
...
* Triple quote python strings in defaults
When the model contains a string with a default value with new lines in
it, simply quoting generates invalid python code. Using triple quotes
for all string defaults makes sure the generated code will be a valid
python string.
Fixes #4862
* Wrap default string in triple quotes when it contains new lines
* Add newly generated python sample files
2017-03-07 14:46:38 +08:00
Val Polouchkine
122194c30e
Fix typo ( #4956 )
...
Authorizatoin should be Authorization
2017-03-07 13:49:42 +08:00
Josiah Peters
ab4c5f2003
Updated readme with latest maven URL ( #4945 )
...
Changed the direct download link for swagger-codegen-cli jar that is hosted in Maven from the previous releases file to the latest one.
2017-03-07 00:11:40 +08:00
Egor Masalitin
722b96bcec
In case if basePath equals to / we should not append it to url, behaviour was changed to fit this requirements ( #4942 )
2017-03-06 23:48:20 +08:00
Paŭlo Ebermann
a710149cdd
Fix #4898 for jaxrs ( #4918 )
...
* fix #4898 for JavaJaxRS (including all libraries).
* Updated samples for jaxrs (after fix for #4898 ).
2017-03-06 20:04:31 +08:00
wing328
f12554fd83
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-03-06 17:24:04 +08:00
wing328
273079bee7
Merge branch 'Daxten-topic/swagger_fix'
2017-03-06 17:23:50 +08:00
wing328
2dee8381e8
update petstore sample for swift3
2017-03-06 17:23:32 +08:00
wing328
0838c1a448
Merge branch 'topic/swagger_fix' of https://github.com/Daxten/swagger-codegen into Daxten-topic/swagger_fix
2017-03-06 17:20:42 +08:00
wing328
f7b5eb85ce
[Swift] add batch files for swift 2,3 to generate petstore samples ( #4934 )
...
* add bat files for swift 2,3 to generate petstore samples
* remove -t from swift3 batch file
* remove -t from swift batch files
2017-03-06 17:16:41 +08:00
Zhanwei Wang
4b7a50c6a5
Add hashdata to user list ( #4935 )
2017-03-06 16:58:57 +08:00
wing328
643aa5a720
Merge branch 'fortiumant-fixqt5cppstaticlib'
2017-03-06 15:50:51 +08:00
wing328
7782c32140
Merge branch 'fixqt5cppstaticlib' of https://github.com/fortiumant/swagger-codegen into fortiumant-fixqt5cppstaticlib
2017-03-06 15:44:24 +08:00
Zhanwei Wang
10950db2dd
[JavaScript] Do not parse null and undefined as type. ( #4933 )
...
* [JavaScript] Do not parse null and undefined as type.
* update pet store example for #4932
2017-03-06 15:01:19 +08:00
Paul English
5d327e66a1
Port the optional/enum template logic from async-scala to the regular scala client ( #4849 )
...
* Port the optional/enum template logic from async-scala to the regular scala client
* oops, accidently pulled template from akka-scala which has custom logic for enum
Just going to avoid enum for now, considering I'm not sure what scala client
will be official
* Update tests to use option
2017-03-06 14:50:21 +08:00
Paŭlo Ebermann
e477ac9472
Fix #4898 for spring-cloud. ( #4919 )
...
Somehow I omitted this in #4875 .
2017-03-06 14:47:52 +08:00
Matan Rubin
899ef8f1ef
[JAXRS-CXF] [bug #4422 ] use java.util.Date when selecting dateLibrary=legacy ( #4724 )
...
according to the help message setting dateLibrary to 'legacy' should
make the code generator use java.util.Date.
before this change, when setting dateLibrary to 'legacy' made the
generator use javax.xml.datatype.XMLGregorianCalendar.
now, the generator uses java.util.Date such that the documentation and
behavior are consistent.
2017-03-06 14:25:15 +08:00
Paŭlo Ebermann
6c9b0ce257
Update samples for Scalatra after 2.2.2. ( #4910 )
...
* Update samples for Scalatra after 2.2.2.
* [scalatra] Revert changes to build.sbt
Changes were made in conjunction with the new finch generator. This
reverts those changes to Scalatra's previous build.sbt.
* Update scalatra samples again after revert of part of #3905 .
2017-03-06 14:23:02 +08:00
Tony Tam
b9d9629a65
Merge pull request #4925 from jfiala/cxf_swagger-core_4924
...
[Jaxrs-cxf] Fix compile errors after update of swagger-core / add jackson dependencies to pom #4924
2017-03-05 10:31:02 -08:00
Johannes Fiala
f72340fb17
change jackson jaxrs version to 2.8.4 #4924
2017-03-05 19:17:27 +01:00
jsone-studios
7800641db2
Fixes #4913 ( #4914 )
2017-03-06 01:15:56 +08:00
Paŭlo Ebermann
7b559b4422
Update samples for MSF4J after 2.2.2. ( #4915 )
2017-03-06 01:12:29 +08:00
Tony Tam
15a0bf5df5
Refactor nodejs generated code structure ( #4909 )
...
* read directly from templates
* refactor nodejs structure
* dont inject into global scope
* move to 2 spaces consistently
2017-03-06 01:10:01 +08:00
Viktor Chukhantsev
35d3fb82ce
[Ruby] Can only use content-type application/json with ruby-client #4867 ( #4893 )
...
* Fix ruby-client work with modern content types, like application/api.vnd+json
* Add specs.
* Fix regexp.
* Regenerate petstore client.
2017-03-06 00:44:15 +08:00
Paŭlo Ebermann
a91cbbe387
Update samples after 2.2.2 ( #4901 )
...
* Update petstore samples for Groovy.
* Update samples for JaxRS.
* Update samples for cpprest.
* Update samples for dart.
* Update samples for flash.
* Update samples for go.
* Update samples for html2.
* Update samples for lumen.
* Update samples for nancxfx.
* Update samples for objc.
* Update samples for sinatra.
* Update samples for tizen.
* Update samples for java-inflector.
2017-03-06 00:33:57 +08:00
Johannes Fiala
165076a427
add jackson dependencies to pom #4924
2017-03-05 17:30:17 +01:00
Jonathan Leitschuh
66a510c9d3
Make the CodegenConfigurator serializable ( #4890 )
...
Closes #4887
2017-03-03 22:57:57 +08:00
wing328
061f4d07d8
fix issue with pom dep in jaxrs jersey1 ( #4904 )
2017-03-03 22:25:59 +08:00
wing328
82090c218b
add product hunt page
2017-03-03 21:48:57 +08:00
Bart Kummel
30c2b6f262
Improved ExampleGenerator ( #4797 )
...
* Improved ExampleGenerator:
- Now takes into account enum and uri/url formats for strings.
- Uses example for referenced objects if available.
- Proper examples get generated for specific numeric formats, because more specific formats now get checked before generic format.
- Honors min and max values for numerical properties, if set.
* Ran script `bin/nodejs-petstore-server.sh`.
* Renamed log to logger to conform to coding standard.
2017-03-03 18:38:19 +08:00
Vlad Frolov
9516c81ebb
[JavaScript] Added *WithHttpInfo methods in 'usePromises' mode to provide a way to get access to HTTP response object (e.g. headers or status code) ( #3654 ) ( #4902 )
2017-03-03 18:20:52 +08:00
patulacci
e23a24c138
replaced SWG by classPrefix and ran tests ( #4871 )
2017-03-03 17:29:16 +08:00
Gábor Berényi
39a42d014b
Feature/issue 4698 rxjava2 support ( #4743 )
...
* rx2 support
* NO_NOT_USE_RX is for internal use only; plus sanity check if both v1 and v2 are specified
* minor fixes
* one more small fix
2017-03-03 17:00:20 +08:00
wing328
dbe99c3af9
fix path variable in ts angular2 ( #4756 )
2017-03-03 16:59:23 +08:00
gigo1980
fa803d5cf5
Adjust Date ISO Dateformat for Query Parameters: ISSUE 4745 ( #4812 )
...
* Adjust Date ISO Dateformat for Query Parameters: ISSUE 4745
* Run Sample Model
2017-03-03 16:58:24 +08:00
wing328
835c7c0e0c
[PHP][Silex] use original path name for path variable naming ( #4817 )
...
* use original path name in php silex
* fix path variable naming by camelizing the name
2017-03-03 16:49:00 +08:00
Hamed Ramezanian Nik
b894dc3827
Encode form paramerers properly\n ( #4836 )
...
Superagent doesn't encode form parameters properly. For example it doesn't encode objects which contain array. The following is a failed test case:
var my_opts = {
'storyId': 65441,
'id': [56, 352]
};
2017-03-03 16:48:11 +08:00
wing328
6c63558acc
better python flask readme ( #4844 )
2017-03-03 16:45:43 +08:00
Paŭlo Ebermann
88c9b6062d
Fix for #1219 ( #4875 )
...
* Update spring samples with current code.
This is done so I can see my own changes better.
* Regenerate samples after 2.2.2.
* use baseName instead of paramName for spring annotations.
* update spring petstore samples to show the effects.
2017-03-03 16:35:12 +08:00
Paŭlo Ebermann
0dab200f28
Update spring samples with current code. ( #4874 )
...
* Update spring samples with current code.
This is done so I can see my own changes better.
* Regenerate samples after 2.2.2.
2017-03-03 16:34:07 +08:00
Alexej Haak
195ff25f43
fixes progress for file upload with alamofire / swift3
2017-03-02 17:16:10 +01:00
Oliver Trosien
55b64fcbfd
Remove maven-api dependencies on swagger-codegen module ( #4840 )
...
* Remove maven-api dependencies
* Use org.apache.commons.lang3.StringUtils
2017-03-02 18:05:21 +08:00
Bartek Kryza
1b1767e489
[Bash] Bugfix default curl options fix ( #4832 )
...
* Fixed default cURL parameter handling
* Fixed iterator increments in JSON body Bash generator
* Added tests for content type and default cURL params
* Fixed generated Dockerfile Bash script access rights
* Generated test sample client
* Updated Bash generator README
2017-03-02 17:48:30 +08:00
wing328
167b2f59b8
add 2.2.3 to the table
2017-03-02 16:56:56 +08:00
wing328
775f108d4e
update version to 2.2.3-SNAPSHOT ( #4894 )
2017-03-02 16:54:37 +08:00
baartosz
26257daec3
fixed ApiException's methods return types ( #4845 )
2017-03-02 16:45:42 +08:00
wing328
1029b692e5
update url to 2.2.2 release
2017-03-02 15:25:38 +08:00
Tony Tam
ff209ada22
Merge pull request #4889 from swagger-api/release-prepare
...
update to release versions
2017-03-01 14:51:05 -05:00
Tony Tam
8504c12ce0
update to release versions
2017-03-01 14:22:34 -05:00
Tony Tam
021e6cdad2
Merge pull request #4888 from swagger-api/remove-inflector-timestamp
...
Remove inflector timestamp
2017-03-01 14:16:12 -05:00
Tony Tam
b43b3771b1
rebuilt
2017-03-01 14:14:52 -05:00
Tony Tam
b941fcfdb6
remove timestamp
2017-03-01 14:14:30 -05:00
Tony Tam
01f5c1bf0f
Merge pull request #4881 from swagger-api/swagger-lib-versions
...
updated core versions
2017-03-01 14:12:57 -05:00
Tony Tam
60f0dcb573
Merge branch 'swagger-lib-versions' of github.com:swagger-api/swagger-codegen into swagger-lib-versions
2017-03-01 13:21:43 -05:00
Tony Tam
a27a76adf4
fixed missing dep
2017-03-01 13:21:14 -05:00
wing328
9e40700478
update jackson dependency and fix closing xml tag in jaxrs pom
2017-03-02 02:16:13 +08:00
wing328
f15267c717
add missing dependency to jaxrs pom
2017-03-02 01:56:27 +08:00
Tony Tam
d9fb6f8846
trigger a build
2017-03-01 10:58:33 -05:00
Tony Tam
655ba95b94
rebuilt
2017-03-01 10:04:39 -05:00
Tony Tam
4499a3c74c
rebuilt
2017-03-01 10:02:42 -05:00
Tony Tam
40da4769b0
rebuilt
2017-03-01 10:01:50 -05:00
Tony Tam
89168d5e89
rebuilt
2017-03-01 09:59:27 -05:00
Tony Tam
9aeedca4c3
rebuilt
2017-03-01 09:58:53 -05:00
Tony Tam
c9c9d9a258
rebuilt
2017-03-01 09:58:17 -05:00
Tony Tam
2cec6192a4
rebuilt
2017-03-01 09:57:38 -05:00
Tony Tam
af2749325d
rebuilt
2017-03-01 09:56:42 -05:00
Tony Tam
041da8998a
rebuilt
2017-03-01 09:55:42 -05:00
Tony Tam
3b65515140
Merge branch 'master' into swagger-lib-versions
2017-03-01 09:53:37 -05:00
Tony Tam
b8caead193
Merge pull request #4880 from swagger-api/update-parser
...
updated parser version
2017-03-01 09:51:51 -05:00
Tony Tam
894f272f89
updated core versions
2017-03-01 08:51:18 -05:00
Tony Tam
35be2bc123
updated parser version
2017-03-01 08:46:42 -05:00
wing328
77c5b90b00
add creator of JAX-RS RestEasy (JBoss EAP)
2017-03-01 12:17:01 +08:00
jfiala
de727d7d60
[JaxrsResteasy] Improvements for Resteasy for Jboss EAP 4512 ( #4712 )
...
* add language for resteasy eap #4512
* first implementation of jaxrs-resteasy-eap #4512
* add support for joda and java8 datetime types #4512
* add new file JacksonConfig and new sample eap-joda #4512
* add dynamic swagger support to jaxrs-resteasy-eap #4512
* adapt readme for eap #4512
* add tests for jaxrs-resteasy-eap #4512
* cleanup tabs #4512
* cleanup tabs #4512
* cleanup tabs #4512
* cleanup tabs / regenerate without joda #4512
* regenerate with updated templates #4512
* fix test (wrong setter invoked) #4512
* fix test #4512
* fix no invocation #4512
* replace tabs with spaces #4512
2017-03-01 00:20:35 +08:00
Antoine Kurukchi
471598359a
Added include to qt5cpp to fix library compile
...
While creating a static library from the generated files, compilation issues arose due to QDateTime only being forward declared. Adding the include resolves the issue.
2017-02-22 09:53:43 +00:00
wing328
d11d0f88bb
fix warning in swagger json/yaml generator ( #4827 )
2017-02-20 16:51:31 +08:00
jsone-studios
6746632834
Fix for #1940 - Show response headers ( #4825 )
2017-02-20 16:18:09 +08:00
Tristan Sokol
23d114e1eb
Fix minor spelling mistake in readme ( #4818 )
2017-02-20 15:13:06 +08:00
wing328
bb81fc130a
remove unused files for nodejs gcf ( #4808 )
2017-02-16 17:39:06 +08:00
Paul English
accd176382
Ensure that ApiInvoker.scala can support UUID types ( #4807 )
2017-02-16 17:00:26 +08:00
gcernier
09e2bbe1ee
Fix of #3371 , to have a correct @ApiResponse's response type.
...
@ApiResponse's 'response' property now refers to its relative 'baseType', if defined.
2017-02-15 17:18:32 +01:00
wing328
a4e96b3be4
Merge branch 'update_ts_fetch_sample'
2017-02-15 16:43:39 +08:00
wing328
26b1aa2b60
update ts fetch petstore samples
2017-02-15 16:24:57 +08:00
Adnan Baruni
24474126e1
Issue 4742 ( #4763 )
...
* add boolean datatype flags to CodegenResponse and logic to set them in DefaultCodegen
* use Boolean.TRUE.equals to check for isResponseBinary or isResponseFile
2017-02-14 14:20:13 +08:00
clasnake
ee23f8e50c
Fix finch package name. ( #4755 )
2017-02-13 22:33:55 +08:00
Igor Khomenko
56251bf214
added QuickBlox to 'Companies/Projects using Swagger Codegen' section ( #4786 )
2017-02-13 21:47:51 +08:00
Igor Khomenko
7df1f8e200
Update DefaultGenerator.java ( #4760 )
2017-02-13 20:59:36 +08:00
Sreenidhi Sreesha
9cf147f215
[Java] Change Boolean fields of CodegenParameter and CodegenResponse to boolean. ( #4747 )
...
CodegenOperation and CodegenProperty classes have boolean fields instead of Boolean.
This fix changes Boolean fields of CodegenParameter and CodegenResponse to boolean as well.
Boolean fields are not necessary. Other classes interacting with them have to check for null
before interacting with them which is unnecessary and leads to ugly code.
2017-02-13 19:45:42 +08:00
wing328
8f2e9bce6d
remove trailing whitespaces in java api client ( #4784 )
2017-02-13 18:53:34 +08:00
Clem
74da89c6ac
Fix issue when the swagger model contains an 'Object' class ( #4695 )
...
If the swagger model contains a class named 'Object' some mustache templates
will generate non compiling **Java** code.
2017-02-13 18:07:00 +08:00
BastiOfBerlin
a956966ff2
Update gitignore ( #4767 )
...
ignore dist folder
2017-02-13 18:03:48 +08:00
Matthew Davis
1d52c62565
Added Fotition as a company using swagger-codegen ( #4773 )
2017-02-11 22:50:12 +08:00
wing328
0e1460fc22
show travis master status
2017-02-11 22:47:07 +08:00
wing328
ef40bdb7b0
remove invalid java file
2017-02-11 00:10:43 +08:00
wing328
fd19d8a813
comment out test for java8 in spring
2017-02-11 00:02:49 +08:00
wing328
acd10318f7
Merge remote-tracking branch 'origin' into sync_master_230
2017-02-10 23:31:36 +08:00
Tony Tam
93a63dbd26
Merge branch 'jimschubert-dockerfiles'
2017-02-09 13:17:32 -05:00
Tony Tam
8fa2ef8ec2
merged
2017-02-09 13:17:22 -05:00
wing328
ef31efe8d9
remove default temp folder during initalization ( #4749 )
2017-02-09 12:22:13 +08:00
Jan
0d14496bd6
[Java-retrofit] Fix for #4750 String comparison with equals ( #4751 )
...
* [Java-Feign] Fixed String comparison using equals instead of == operator
* [Java-Feign] Updated ApiClient with ./bin/java-petstore-feign.sh
* [Java-retrofit] Fix for #4750 String comparison with equals
2017-02-08 21:54:56 +08:00
wing328
d91135ec8f
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-02-08 17:00:01 +08:00
wing328
08aef9513f
Merge branch 'MatanRubin-uuid-type'
2017-02-08 16:59:45 +08:00
wing328
beadd6d740
update java server stub samples with new uuid mapping
2017-02-08 16:39:02 +08:00
wing328
882c3ecba5
update java petstore with new uuid mapping
2017-02-08 16:07:09 +08:00
wing328
7998a30b92
Merge branch 'uuid-type' of https://github.com/MatanRubin/swagger-codegen into MatanRubin-uuid-type
2017-02-08 16:02:27 +08:00
Jan
2179b44413
[Java-Feign] Fixed String comparison using equals instead of == operator ( #4740 )
...
* [Java-Feign] Fixed String comparison using equals instead of == operator
* [Java-Feign] Updated ApiClient with ./bin/java-petstore-feign.sh
2017-02-08 15:56:40 +08:00
wing328
69edf282f3
add SPINEN
2017-02-08 01:18:30 +08:00
wing328
bdf6957c08
update jaxrs spec petstore sample (mac)
2017-02-08 01:07:18 +08:00
jfiala
e9823a81a5
[Jaxrs-spec] fix usage of Jersey templates in shellscript ( #4722 )
...
* remove jersey templates #4720
* regenerate sample with jaxrs-spec templates #4720
2017-02-08 00:41:36 +08:00
Tony Tam
73cfc8459f
Merge pull request #4487 from wy-z/dockerfile_update_base_image
...
[dockerfile] Replace 'maven:3.3-jdk-7' with 'maven:3-jdk-7-alpine'
2017-02-07 10:35:30 -05:00
Bartek Kryza
73395bce44
[Bash] Bash generator improvements ( #4730 )
...
* Removed trailing spaces
* Fixed autocomplete support for bash-completion < 1.4
* Added mime type autocomplete for Zsh
* Fixed Bash url autocompletion
* Fixed Zsh space after operation arguments and added trim to descriptions
* Added generation of Dockerfile for packaging Bash rest clients
* updated test samples for Bash client generator
2017-02-07 23:15:05 +08:00
Matan Rubin
1339222bbc
[Java][Issue #1806 ] generate using java.util.UUID for UUIDs
...
Before this change if a model had a property of type=string and
format=uuid, it would be generated as a Java String.
Now, it generates the property as java.util.UUID.
2017-02-07 13:38:20 +02:00
wing328
a123dd7ef1
Revert "rx2 support" ( #4737 )
2017-02-07 17:52:47 +08:00
Gábor Berényi
d12f428f42
rx2 support ( #4708 )
...
* rx2 support
* NO_NOT_USE_RX is for internal use only; plus sanity check if both v1 and v2 are specified
2017-02-07 17:44:22 +08:00
wing328
b415852dc6
add https and change order for HPE
2017-02-07 13:43:54 +08:00
wing328
8110b13b33
add Hewlett Packard Enterprise (hpe.com)
2017-02-07 13:42:42 +08:00
Michael Kourlas
7aebcfa7c7
[JavaScript] Fix for issue #4654 : do not encode commas in CSV collection query parameters ( #4725 )
...
* Fix for issue #4654
* Update tests for fix for issue #4654
2017-02-06 23:53:13 +08:00
Joshua Helm
099abf4b23
Add "Simpfony" to list of companies using Swagger ( #4726 )
2017-02-06 23:02:40 +08:00
wing328
e8f11bc219
add https://www.slamby.com/
2017-02-06 17:40:42 +08:00
Jim Schubert
96b0d155b5
[csharp] Fix enum default value ( #4681 )
...
* [csharp] Prevent enum assign to string
see swagger-api/swagger-codegen#4670
* [csharp] Regenerate client sample
2017-02-06 17:33:10 +08:00
Joshua Helm
b891a4a4cf
fix issue #4672 - XmlExampleGenerator does not properly handle properties of several numeric types ( #4673 )
...
* fix issue #4672 and bring XML default example values in-line with ExampleGenerator
* converted tabs to spaces
2017-02-06 17:30:29 +08:00
wing328
c0fc66ebec
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-02-06 15:33:11 +08:00
wing328
fd7d251241
Merge branch 'jfiala-jaxrs_beanval_final_4091'
2017-02-06 15:32:52 +08:00
wing328
509a156879
Merge branch 'jaxrs_beanval_final_4091' of https://github.com/jfiala/swagger-codegen into jfiala-jaxrs_beanval_final_4091
2017-02-06 15:13:03 +08:00
Markus
4900427bf5
[JAXRS-CXF] Issue 4569 - Re-added usage of contextPath in api.mustache (basePath) ( #4580 )
...
* jaxrs-cxf: Re-added usage of contextPath in api.mustache (basePath)
* jaxrs-cxf: Added useAnnotatedBasePath and generateNonSpringApplication flags
* useAnnotatedBasePath=true uses the @Path annotation in the generated interface to set the basePath, default is false
* generateNonSpringApplication=true generates a web.xml with CXFNonSpringJaxrsServlets. If useAnnotatedBasePath=true only one servlet will be created, otherwise one for each API
* jaxrs-cxf generateNonSpringApplication: removed creation of multiple servlets
Multiple servlets were generated if useAnnotatedBasePath was false.
This is not necessary as there is only ONE basePath per contract
* jaxrs-cxf: added sample generation for useAnnotatedBasePath and generateNonSpringApplication
2017-02-06 14:11:41 +08:00
jfiala
a52a84a7d7
[Jaxrs-cxf-cdi] merge beanvalidation templates to single one #4719 ( #4723 )
...
* merge beanvalidation templates to single one #4719
* add beanValidationCore #4723
2017-02-06 14:03:26 +08:00
jfiala
38c879683a
[Jaxrs-cxf-cdi] Add beanvalidation annotations updated ( #4615 )
...
* add check for hideGenerationTimestamp #4091
* update generated sample with no generated timestamps #4091
* add beanvalidation to jaxrs-cxf-cdi #4091
* add beanvalidation to jaxrs-cxf-cdi #4091
* update crlf
* replace tabs
* add check for hideGenerationTimestamp #4091
* update generated sample with no generated timestamps #4091
* add beanvalidation to jaxrs-cxf-cdi #4091
* add beanvalidation to jaxrs-cxf-cdi #4091
* update crlf
* replace tabs
* re-generate samples after rebasing #4091
* fix handling of inner enum templates #4091
* fix InputStream/Multipart imports and fileInputStream variable #4091
* fix paramName for files #4091
* consolidate beanValidationParams #4091
* add paramNameDetail #4615
* fix indentation and regenerate samples #4615
* reset samples jaxrs-spec to master
* update generated samples
* adapt Min/Max/DecimalMin/DecimalMax handling for int/long/else
* add ModelApiResponse
2017-02-06 00:55:30 +08:00
wing328
64d0c403d0
[Python] Fix issue with CI due to dependency ( #4716 )
...
* Issue 4637 Fix for ci build (#4643 )
* [Python] update python requirement.txt and use single quote for safe characters (#4702 )
* update python requirement
* update petstore sample
2017-02-05 23:51:35 +08:00
Markus
a83f8d0449
[JAXRS-Spec|Resteasy|CXF] Issue 4315 - Fixed bug generating arrays of enums ( #4582 )
...
* jaxrs-cxf: Fixed returning of enum arrays generating non-compiling code
* jaxrs-spec/resteasy: Fixed returning of enum arrays generating non-compiling code
* jaxrs-cxf: Switched to petstore-with-fake-endpoints-models-for-testing.yaml contract for sample generation
* Fixed escape char issue in ApiOperation summary
* Fixed code generation for non String-type enums
* Fixed @PATCH annotation import
* jaxrs-spec: Switched to petstore-with-fake-endpoints-models-for-testing.yaml contract for sample generation
2017-02-05 23:01:18 +08:00
Tino Fuhrmann
8e036f24f9
Typescript Property Renaming Fix ( #4264 )
...
* Implemented fix for missing json to property mapping in typescript-node
The previous version did not parse the JSON-Response at all, so that
properties, which where renamed (e. g.due to modelPropertyNaming config
option), were not correctly parsed.
E. g.: modelPropertyNaming=camelCase & property 'mounted_at' in json,
would be renamed to mountedAt in the model.
This was not parsed at all in the typescript-node client api, so that
the actual model still had the mounted_at property, but not mountedAt.
See #2766 for additional details
* Updated samples for typescript-node
* Reverted initial changes to api.mustache
* Draft for object serializer for typescript-node
* Fixed missing variable error in ObjectSerializer in typescript-node
* Fix for body return type
* Fixed attributeTypeMaps when polymorphism is used
* Added ObjectSerializer support for polymorphism
* Code formatting in typescript-node api.mustache
* Fixed primitive type bug & added tests for ts-node
- primitives were serialized as strings instead of their respective type
- added test case for pet
* Code Formatting in ts-node client test
See samples/client/petstore/typescript-node/npm/client.ts
* Replaced tabs with 4 spaces and improved code formatting
* Recreated security test for typescript-node
* Read sample.png with fs.readFileSync instead of a stream
2017-02-05 22:54:00 +08:00
Johannes Herrnegger
95a8192c25
[Typescript-Angular2] Fixes #4703 ( #4704 )
...
* fix issue #4703
* run petstore
2017-02-04 13:00:26 +08:00
eamon316
23aee52bcd
Feature/4606 ( #4607 )
...
* Issue #4606 (Spring) SubClass annotations are missing from the base class
* Issue #4606 (Spring) SubClass annotations are missing from the base class
* Commit updated samples from ./bin/spring-all-pestore.sh
2017-02-03 22:30:32 +08:00
asgerjensen
4ba0ea9dc5
fix(jax-rs): fix package name in generated StringUtil.java to match where file is generated ( #4677 )
2017-02-03 21:46:29 +08:00
wing328
5282987851
[Python] update python requirement.txt and use single quote for safe characters ( #4702 )
...
* update python requirement
* update petstore sample
2017-02-03 21:35:40 +08:00
Jon Hartlaub
c366f139e2
ISSUE#4391 - https://github.com/swagger-api/swagger-codegen/issues/4391 ( #4392 )
...
This change removes '/' from the set of "safe" characters for the python urllib quote function.
When using PathParams containing a '/' character, the Python client does not encode the '/'. As a result, the / is interpreted as a path separator rather than a parameter value. PathSegments must encode the / character for proper transfer of information. e.g. 'my/string' should be encoded to 'my%2Fstring' for correct transmission of a PathParam argument. Path separators must only be used between path segments.
2017-02-03 19:24:15 +08:00
wing328
695417699c
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-02-03 18:59:25 +08:00
wing328
4c6aa929fe
Merge branch 'toomuchpete-php-client-invokerpkg-fix'
2017-02-03 18:59:03 +08:00
wing328
db2d9df5ea
Merge branch 'php-client-invokerpkg-fix' of https://github.com/toomuchpete/swagger-codegen into toomuchpete-php-client-invokerpkg-fix
2017-02-03 18:44:05 +08:00
David Biesack
d1766e3fdf
Fix Issue #4611 by using {{unescapedDescription}} ( #4641 )
...
* Use {{unescapedDescription}} in html, html2
This addresses https://github.com/swagger-api/swagger-codegen/issues/4611
Replace {{description}} with {{unescapedDescription}}
This is an improvement but because of issue #1203 and/or #3436 (fix not
yet impleented), Markdown is not being processed and converted to HTML.
* Add generated petstore samples index.html
* Copy unescapedDescription
2017-02-03 17:46:11 +08:00
Jim Schubert
9032b8c1f8
[aspnetcore] resolve source/packageName issues ( #4699 )
...
Outputs warnings about ASP.NET Core's src/ requirement, and adjusts
sourceFolder if the input doesn't start with src/.
As a consequence of this change, apiFileFolder and modelFileFolder may
possibly return different values if users are setting both sourceFolder
and packageName. This could be considered a breaking change in those
sceanrios.
2017-02-03 16:25:56 +08:00
wing328
a128c075ac
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-02-02 23:30:06 +08:00
wing328
f4fee61e83
update go petstore sample
2017-02-02 23:29:41 +08:00
Adnan Baruni
4b2c4f051b
Issue 3914 ( #4678 )
...
* issue 3914, removed logic that remove header parameters. update template files to handle header parameters in the same manner as other parameters
* update swift and swift3 samples
2017-02-02 23:17:48 +08:00
Valentin Valchev
cd34885b02
Fixed issue #4664 : [go] incorrect code generated, if there are more than 1 array parameters ( #4683 )
2017-02-02 00:20:12 +08:00
Valentin Valchev
96ed41a29c
Fixed issue #4665 [go] required object parameters are marked omitempty. ( #4682 )
...
* Fixed issue #4665 [go] required object parameters are marked omitempty.
* Run ./bin/go-petstore.sh as suggested by @wing328.
Please note, that there are quite few changes, that doesn’t come from the diff I’ve applied. Seems the script wasn’t run on the previous commit.
2017-02-01 23:56:22 +08:00
Sreenidhi Sreesha
f62a7e2144
Copy dataformat if property field is an array. ( #4661 )
...
If a type's field is an array or map, dataFormat of the innerProperty was not copied
into encapsulating property. This change fixes it.
2017-02-01 23:45:21 +08:00
Matan Rubin
8042f5ca3e
[JAXRS-CXF] [issue #4386 ] add builder-style methods to model classes ( #4468 )
...
* [JAXRS-CXF] [issue #4386 ] add builder-style methods to model classes
before this change, model classes had only a default constructor and
setter methods, resulting in code like this:
myModel = MyModel();
myModel.setFirstField(firstField);
myModel.setSecondField(secondField);
return myModel;
this change adds builder style methods, such that the above code can be
written more compactly:
return MyModel().firstField(firstField).secondField(secondField);
this is consistent with other JAVA generators in swagger-codegen.
* update jaxrs-cxf sample code
2017-01-31 23:07:12 +08:00
wing328
ee857d1be3
escape unsafe characters/quotes in elixir generator ( #4676 )
2017-01-30 21:24:21 +08:00
wing328
2cffa097f0
add elixir to api client list
2017-01-30 17:42:57 +08:00
wing328
ca1ef4914c
add elixir template owner
2017-01-30 17:42:00 +08:00
niku
f77bee8b8a
[WIP] Add elixir client ( #4675 )
...
* Add elixir client
* Add test for elixir client
* Add shell script for generating sample codes for elixir client
It just copied from bin/bash-petstore.sh
* Make elixir-petstore.sh to generate sample codes for elixir client
* Add sample codes for elixir client
2017-01-30 17:40:55 +08:00
megaboich
d82c2bbae7
Fix Typescript errors with 'strictNullChecks' mode enabled ( #4658 )
...
error TS2454: Variable 'contentTypeHeader' is used before being assigned.
error TS2345: Argument of type 'FetchAPI | undefined' is not assignable to parameter of type 'FetchAPI'.
2017-01-29 23:22:48 +08:00
wing328
1d7ba4cacc
add core team for scala finch
2017-01-29 12:20:59 +08:00
wing328
7be4dc67f6
add finch
2017-01-29 12:18:49 +08:00
wing328
ae8a123484
[WIP][Scala] Finch generator ( #3905 )
...
* Feature/objc tasks 2.3.0 (#3522 )
* change api and ApiClient to return cancellable NSURLSessionTasks instead of NSNumber
* define a configuration protocol for custom configurations, which can be passed to api clients instead of a global configuration, provide a default implementation with a singleton option
* integrate a workaround for a current JSONModel concurrency bug
* update to new ISO8601 pod
* add missing call to super
* integrate new templates into codegen
* updates documentation templates
* updates petstore objc generated code
* fixes objc client tests
* [ObjC] Add version define and share default headers of each client
* add finch generator and resource
* update license, add errros
* Fix problem with multitheard api client
* fix some errors for finch
* [finch] Remove license header
* [finch] Remove finatra stuff, fix a few issues
* WIP: Finch server generator
* [finch] WIP: server generator impl
This puts parameters (input/output) in the right format. Currently, this
is done in the generator class using vendorExtensions, but should be
refactored to imported templates to clean up.
Previous commits of the server generator output to appropriate
models/api directories. I've made no changes to this logic, but code
currently generates to the root scala package directory. This will need
to be fixed.
There's also an issue with circe's and Option[Date] in the Order type.
This issue will need to be resolved. As well, there's some unused
imports to clean up.
Initial implementation lacks support for custom imports, type mappings,
etc.
* [finch] Update api/model package and imports
* [finch] Explicit import/type mappings
* [finch] Regenerate example
2017-01-29 12:15:39 +08:00
Vlad Frolov
6890ef9755
[JavaScript] Fixed handling of empty arrays/empty strings/booleans/single numbers as valid API responses ( #4653 ) ( #4666 )
2017-01-28 16:08:04 +08:00
wing328
7e1e9743da
add https://kurio.co.id
2017-01-28 15:52:32 +08:00
Frode Danielsen
3236ade09d
[Python] Improve model equality implementation ( #4663 )
...
* [Python] Improve model equality implementation
The model equality implementation template blindly tried accessing the
`__dict__` attribute of the variable to compare equality against. This
attribute does not exist for a lot of Python built-in types (`None`,
`str` etc.) and the equality check would simply crash.
This adds a simple guard to only continue with equality check if the
variable to compare is an instance of the model being compared against.
* Remove wrong auto-update of Python requirements
2017-01-28 00:42:53 +08:00
eblis
869374125f
#4625 - Check if configOptions are set before trying to get the source folder, otherwise assume null/empty. ( #4626 )
...
(reworked pr)
2017-01-27 17:04:32 +08:00
wing328
a45579d35e
fix issue with pom.xml (spring cloud, boot)
2017-01-27 00:39:25 +08:00
jfiala
8952815b5f
[Spring] Add beanvalidation annotations ( #4600 )
...
* update generated sample for spring boot #4091
* add beanvalidation annotations to spring #4091
* add tests for spring #4091
* cleanup spring-cloud (client lib) #4091
* update client sample spring-cloud #4091
* replace tabs
* add beanvalidation annotations to spring #4091
* add tests for spring #4091
* cleanup spring-cloud (client lib) #4091
* update client sample spring-cloud #4091
* replace tabs
* update spring-cloud sample
2017-01-26 23:45:36 +08:00
Ainun Nazieb
05eea2436c
[PHP] Validate parent's model first, if any ( #4659 )
...
* if model has parent, valid() & listInvalidProperties() will check the parents' first
* Run the ./bin/security/php-petstore.sh
2017-01-26 22:49:38 +08:00
wing328
c0fb30d491
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-01-26 17:14:23 +08:00
wing328
e0adb97850
Merge branch 'karnik-master'
2017-01-26 17:13:57 +08:00
wing328
658b650285
Merge branch 'master' of https://github.com/karnik/swagger-codegen into karnik-master
2017-01-26 16:30:51 +08:00
Amin Shah Gilani
347d477166
Fixes #4655 ( #4656 )
2017-01-26 12:03:16 +08:00
wing328
f19cb9c48e
add kubernetes
2017-01-26 01:59:59 +08:00
jaz-ah
f592fdb23e
[Swift] two fixes to latest param mapping code ( #4587 )
...
* two fixes: 1) extra ?'s at end of some url's 2) enums not being called out w/ rawValue to get the proper string name
* update samples
* one step closer
* closer implementation
2017-01-26 01:17:58 +08:00
wing328
2b030a768d
add https://mailmojo.no/
2017-01-26 00:41:36 +08:00
Tony Tam
ecaa8b1ede
tests, fix for #4647 . Proper escaping project name per npmjs ( #4648 )
2017-01-25 17:08:54 +08:00
Jonathan Leitschuh
78f38f1a1f
Add support for read-only values in spring model ( #4629 )
2017-01-25 16:34:55 +08:00
wing328
6e2ee4be06
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-01-25 16:31:03 +08:00
wing328
9a79f13a6e
new batch file to exec all JS petstore batch files
2017-01-25 16:30:33 +08:00
wing328
f584f94425
Merge branch 'davidteixeira-master'
2017-01-25 16:24:13 +08:00
wing328
3be04e8a18
update JS petstore client
2017-01-25 16:08:22 +08:00
wing328
d239a4c06e
Merge branch 'master' of https://github.com/davidteixeira/swagger-codegen into davidteixeira-master
2017-01-25 13:35:48 +08:00
wing328
128872564c
Merge branch 'master' of https://github.com/johnluan/swagger-codegen
2017-01-25 13:01:58 +08:00
Jonathan Leitschuh
efd0732a3e
Fix the rm to remove the correct file in two spring generation bash scripts ( #4630 )
...
Related #4439
2017-01-25 12:54:07 +08:00
Tony Tam
3476e83a36
fix for allowable values, #4645 ( #4646 )
...
* fix for allowable values, #4645
* fixed string values
* rebuilt for #4645
2017-01-25 12:11:49 +08:00
Scott Williams
6e846e7463
Issue 4637 Fix for ci build ( #4643 )
2017-01-25 12:09:33 +08:00
David Teixeira
6d5da3f2ef
Added single quotes -- fixes bug where generated client throws an 'Uncaught Reference Error'.
2017-01-24 17:24:35 +00:00
Johannes Fiala
3ffc4bfa9d
backport support DecimalMin/DecimalMax #4091
2017-01-23 21:26:42 +01:00
Johannes Fiala
c0bea5ead9
move beanvalidation code to AbstractJavaJAXRSServerCodegen.java #4091
2017-01-23 21:18:01 +01:00
Pete Holiday
02dcd0eaf7
Update petstore samples; these appear to have been added by #4616
2017-01-23 15:14:18 -05:00
Pete Holiday
b5de3a446f
Prefix apiPackage and modelPackage with invokerPackage.
...
Fix #4538 : Ensure that generated API and Model classes are available to the
autoloader. Change generator behavior to match documentation for
invokerPackage, which reads "The main namespace to use for all classes."
2017-01-23 15:09:50 -05:00
wing328
014cfe746b
add https://pagertree.com/
2017-01-24 01:14:33 +08:00
wing328
5877ceb43e
add https://neverfail.com/
2017-01-23 22:50:15 +08:00
davidteixeira
0ae61a5d26
Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue #4608 . ( #4624 )
2017-01-23 21:02:11 +08:00
David Teixeira
117e1ea53e
Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue #4608 .
2017-01-23 11:29:49 +00:00
wing328
9f8a1e27dd
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-01-23 19:00:31 +08:00
wing328
697366c82e
Merge branch 'gigo1980-master'
2017-01-23 19:00:18 +08:00
wing328
9abaab6bcf
update ts angular2 petstore samples
2017-01-23 18:40:59 +08:00
wing328
921328999c
Merge branch 'master' of https://github.com/gigo1980/swagger-codegen into gigo1980-master
2017-01-23 18:38:39 +08:00
wing328
4fcef31b6b
[typescript-angular2] Feature/angular2 file post ( #4623 )
...
* Merge branch 'www2k-feature/file-response'
* Merge pull request #4421 from wing328/fix_isfile_boolean
Fix `isPrimitiveType` for file property
* roll back to latest working version of swagger paresr for codegen
* enable typescript-angular2 to upload file
* update typescript-angular2 samples
2017-01-23 18:28:13 +08:00
keysolutions
933cc1ce9a
Enum constructFromObject should return value ( #4613 )
...
When constructing an enum through constructFromObject the original value provided by the API response should be returned rather than extracting the value from the enum name. This resolves an issue where the constructed value is undefined when the name and value are not equivalent.
2017-01-23 16:45:38 +08:00
wing328
e83646064f
update js promise petstore sample
2017-01-23 16:00:23 +08:00
tharders
30315c8570
Fix Issue 4554 - handle 204 server response in javascript ( #4604 )
...
* issues 4554: Handle 204 response and handle deserialize exceptions
* issue-4554: generate javascript client updated template
Used petstore-with-fake-endpoints-models-for-testing.yaml
* use petstore-with-fake-endpoints-models-for-testing.yaml like sh script
2017-01-23 15:14:06 +08:00
wing328
8e71dfb512
Fix model prefix/suffix with incorrect camelization ( #4621 )
...
* fix camelized name with suffix/prefix in java client
* fix php model name with prefix, suffix
* fix indentation in ts abstrat generator
* replace tab with spaces in ts abstract generator
2017-01-23 01:29:11 +08:00
wing328
2e50a65a1c
better handling of reserved words in models, operationId ( #4620 )
2017-01-22 17:41:35 +08:00
Tony Tam
7936cfc206
Merge pull request #4619 from swagger-api/issue-4618
...
Fix name mangling for JSON processing with QT5
2017-01-21 20:31:18 -08:00
wing328
5306b11b4a
[java] Improve pom.xml to qualify for publishing to Maven central ( #4616 )
...
* [java] Attach Javadoc to artifact generation.
* [java] Attach source to artifact generation.
* [java] Add gpg signing to artifact publishing.
* [java] Add artifact URL to pom.xml .
* [java] Add artifact description to pom.xml .
* [java] Add artifact URL and description params to Jax RSS.
* [java] Add developer info to pom.xml .
* [java] Parameterise SCM info in generated pom.xml .
* [java] Move GPG signing to verify phase so that .asc files are uploaded during deploy phase.
* [java] Change GPG signing to be an optional via Maven profile. Can't assume all users will perform a release/deploy from an environment with correct GPG key/pass.
* update java petstore smaples
* camelize tag name, remove invalid file
* add back missing files for okhttp-gson
* fix docstring in java feign client
* fix docstring with various java api clients
2017-01-22 11:40:59 +08:00
Tony Tam
62caf7dac5
rebuilt samples
2017-01-21 16:33:14 -08:00
Tony Tam
728544cc03
use baseName instead of name to avoid sanitized name in json processing
2017-01-21 16:33:09 -08:00
wing328
4d19fb6b2f
hide generation timestamp for perl ( #4614 )
2017-01-21 19:12:51 +08:00
Damien Pontifex
1f0ecb5180
Updating typescript-angular to export api classes ( #4589 )
...
* Updating typescript-angular to export api classes
* Fixing tsconfig for typescript-angular test case
2017-01-21 17:02:11 +08:00
wing328
22688f57c0
add embeddedTemplateDir to some generators ( #4603 )
2017-01-20 15:07:16 +08:00
eblis
3b3f2d2fd6
Options to allow unicode character in identifier names ( #4508 )
...
* Added option to allow unicode identifiers in class names, method names etc.
Added option to allow keeping of underscore characters in class names, methods names, etc.
Unicode identifiers are supported by some languages, like Java, but the codegen will remove all non ASCII letters by default. Users might want to separate different parts of names using extended punctuation connector characters, like "_, ‿, ⁀, ⁔, ・, ︳, ︴, ﹍, ﹎, ﹏, _, ・".
Underscores cannot be used to separate different parts of the name as they're removed by default by the codegen, the second option allows underscore characters if the user so desires.
Both options can be used separately if needed, for example one might allow extended punctuation connector characters, but still disallow underscore.
* Added new command line options to all required unit tests.
* Added KEEP_UNDERSCORES and ALLOW_UNICODE_IDENTIFIERS to Bash tests.
* When KEEP_UNDERSCORES is set don't camelize the names, keep the identifier case as is (you probably don't want camel case + snake case, just snake case when KEEP_UNDERSCORES is set).
Added unit tests to verify how the case is computed for various scenarios.
* Reworked pull request to only include changes related to supporting unicode characters in identifiers (removed references to keep underscores).
* These methods and classes can be static again.
2017-01-20 14:42:08 +08:00
John Luan
81e930a752
change html2 mustache to fix parameter name
2017-01-20 10:38:56 +11:00
wing328
029728d851
[maven-plugin] allow for ignore file override ( #4597 )
...
* [maven-plugin] allow for ignore file override
The .swagger-codegen-ignore file is beneficial for existing source
directories to provide pattern-based exclusion rules for existing source
to be ignored by swagger codegen. Until now, there's been no utility
other than skipOverwrite to modify the initial generation of code
(either via CLI or maven plugin).
This commit adds support for an ignoreFileOverride option to both the
CLI and the maven plugin.
Example CLI usage:
```
java -jar swagger-codegen.jar generate \
-i swagger.json -l csharp \
-o target --ignore-file-override /path/to/ignore-file
```
Example Maven Plugin configuration:
```
<build>
<plugins>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.2.2-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/swagger.yaml</inputSpec>
<language>csharp</language>
<invokerPackage>io.swagger</invokerPackage>
<modelPackage>io.swagger.models</modelPackage>
<apiPackage>io.swagger.apis</apiPackage>
<ignoreFileOverride>/Users/jim/projects/swagger-codegen/.sample-ignore</ignoreFileOverride>
<configOptions>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
```
* [maven-plugin] update new javadocs
* fix bad merge due to missing }
2017-01-19 23:17:25 +08:00
wing328
59c189e3c9
Merge branch 'maik-kulbe-feature/php-proxy-support'
2017-01-19 21:44:30 +08:00
wing328
9a8ede4189
update php sample
2017-01-19 21:22:20 +08:00
Maik Kulbe
d4c96c97c1
Merge with Upstream
2017-01-19 13:53:06 +01:00
Maik Kulbe
e82f3c53b4
Added support for cURL proxy configuration to PHP client
2017-01-19 11:48:55 +01:00
Albert Morlan
ccb3385081
Set embedded templates directory when generating Javascript code ( #4585 )
2017-01-19 18:07:58 +08:00
Jonathan Leitschuh
36c3fa05e0
Allows for generation of spring controller code using the delegate pattern ( #4439 )
...
* Allows for generation of spring conroller code using the decorator pattern
* Change Decorator to Delegate in spring codegen
2017-01-19 17:58:39 +08:00
jfiala
6f4e82dc03
[Jaxrs-Resteasy] Add beanvalidation annotations ( #4506 )
...
* add beanvalidation to jaxrs-resteasy #4091
* replace tabs
2017-01-19 17:45:17 +08:00
wing328
3b6ae1971a
Merge branch 'jfiala-jaxrs_jersey_beanval2'
2017-01-19 17:12:53 +08:00
wing328
157fcbc4aa
fix invalid spec, update petstore samples (jaxrs, ruby)
2017-01-19 16:54:16 +08:00
wing328
5f1b11827a
Merge branch 'master' into master
2017-01-19 16:03:15 +08:00
wing328
a8afaa8f77
remove /r from templates
2017-01-19 15:53:51 +08:00
wing328
ccecc2aac0
new file for jaxrs jersey1
2017-01-19 15:31:24 +08:00
wing328
1ae60b1f61
Merge branch 'jaxrs_jersey_beanval2' of https://github.com/jfiala/swagger-codegen into jfiala-jaxrs_jersey_beanval2
2017-01-19 15:30:54 +08:00
jfiala
ee7f9fc56c
[Jaxrs] Add beanvalidation annotations and fix outer Enums ( #4492 )
...
* add beanvalidation to jaxrs and add support for outer Enums #4091
* cleanup Codegen #4091
* cleanup samples #4091
* cleanup tabs
* updated samples to petstore.yaml (before petstore.json)
* add support for DecimalMin/DecimalMax/Min/Max #4091
* add check for hideGenerationTimestamp #4091
* replace tabs
* correct line endings to lf
2017-01-19 15:13:11 +08:00
wing328
c7ecb3c445
update https://www.webever.de
2017-01-18 18:16:41 +08:00
wing328
5db75d885e
add Webever GmbH
2017-01-18 18:01:03 +08:00
Jim Schubert
da6b57f3fc
[aspnetcore] use default in model constructors, supports enums ( #4573 )
...
* [aspnetcore] Use default rather than null in ctor
See original issue #3608
This adds same model constructor logic to aspnetcore as what was added
to csharp generator by PR #4145 .
This doesn't include NancyFX because model construction relies more on
object initialization in that generator.
* [aspnetcore] ctor defaults + enum support
This follows up to #4145 , and modifies model constructors to use
default(x) instead of initializing to nulls. default(x) works in all
cases using intuitive default values it is intended to support.
Example:
csharp> public enum Color { RED = -1, BLUE = 0, GREEN }
csharp> var color = default(Color)
csharp> color
BLUE
In the above example, The default of BLUE=0 is expected. For nullable
enums, this would be null as a default.
The aspnetcore generated code is also updated to support enums and
nested enums to account for changed to the petstore.yaml used to
generate the sample.
* [aspnetcore] Regenerate sample
2017-01-18 16:43:12 +08:00
Sreenidhi Sreesha
da01b2e71a
Add title field to CodegenProperty ( #4590 )
...
Earlier CodegenProperty did not have title field.
'title' information of the property was lost while converting from Property to CodegenProperty.
This change fixes it.
2017-01-18 15:27:56 +08:00
Alec Hill
4034ee0e3e
4498 - fixed typescript-fetch issues caused by conflicting request options and auth config. Both now play nicely together, and tests are fixed. ( #4572 )
2017-01-17 23:38:02 +08:00
Dan Mikita
0a559f0dd2
Add support for modifier within the Jaxb XMLElement annotation ( #4433 )
...
* fixes #4432 Adding support for the modifier within the Jaxb XMLElement annotation. Updated README with JaxbAnnotations configuration option.
* #4432 Running the Petstore files
2017-01-17 15:26:30 +08:00
wing328
a846a571b3
add tips about windows class path
2017-01-17 14:44:40 +08:00
Jim Schubert
4c7d1338dc
[csharp] Client nuspec ( #4576 )
...
* [csharp] Client nuspec
* [csharp] remove carriage returns from nuspec
2017-01-17 11:59:31 +08:00
Damien Pontifex
55443daebc
Extends obj using Object.assign ( #4562 )
2017-01-17 10:52:33 +08:00
Bartek Kryza
545ee0c338
Moved bash version detection to top and improved logic ( #4578 )
2017-01-17 10:36:12 +08:00
Brian Shamblen
713e6bba24
[html2] Add python and perl examples ( #4575 )
...
Fixes #4358
2017-01-17 10:35:55 +08:00
wing328
691d89adeb
add link to zend-expressive
2017-01-16 22:13:31 +08:00
wing328
033a588c75
add zend expressive
2017-01-16 22:12:12 +08:00
wing328
3b3ded0290
fix bash test package name ( #4566 )
2017-01-16 19:09:25 +08:00
wing328
410f6d74c8
add Articus as php expressive creator
2017-01-16 16:16:14 +08:00
wing328
0ea506e970
Add http://htc-cs.com
2017-01-16 13:22:53 +08:00
Jim Schubert
d97b1da90c
[csharp] Support internal access of generated code ( #4560 )
...
Allows users to specify 'nonPublicApi' additional property (and C#
client CLI switch) to reduce visibility of classes created by the
generator. This includes API and Models as well as supporting code like
ApiClient and other infrastructure.
The requirement is to support codegen generated code to be embedded
within other applications where the generated code is not intended to be
publicly consumable or publicy exposed. An example would be an SDK which
internally consumes an API via the generated code; we wouldn't want the
internal API implementation exposed as part of that SDK.
Reducing visibility of the classes effectively makes the entire
implementation internal, regardless of the public modifier on methods or
static members. To fully make all members internal it would require
explicit interface implementation, which is not ideal.
see #4401
2017-01-16 01:19:10 +08:00
Jim Schubert
23c5376ed6
[csharp] Fix interfacePrefix sensitivity + default ( #4561 )
...
After merging the fix with another C# change, noticed case sensitivity
issue for the true/false checks. Also noticed my original implementation
wasn't setting the default I- prefix as intended. This commit resolves
those three issues.
2017-01-16 01:12:03 +08:00
wing328
2d8715f42c
Minor update to ze-ph batch script
...
- use petstore-with-fake-endpoints-models-for-testing.yaml
- output to samples\server\petstore\ze-ph
2017-01-16 01:10:35 +08:00
Articus
4001503e63
PHP server generator ze-ph (Zend Expressive + Path Handler) ( #4559 )
...
* Server generator ze-ph (Zend Expressive + Path Handler)
* Command line scripts for new ze-ph generator
2017-01-16 01:05:04 +08:00
Tomek Cejner
f0cddd21fd
Swift3 Clener template of client methods ( #4552 )
...
* Swift3 template properly uploads files, making mustache template little cleaner
* [swift3] moved URL parameter encoder helper function to APIHelper.swift
* Swift3 - regenerated sample
2017-01-16 01:01:50 +08:00
Jim Schubert
663b471d1a
[nancyfx/csharp] Customize interface prefix ( #4557 )
...
Per #4486 , this allows user to specify the use of a standard or custom
prefix for interfaces. For C# based languages, this follows Microsoft's
Framework Design Guidelines and uses an I- prefix. However, to avoid
breaking changes with existing nancyfx generated code, the default is
unset.
The option supports true, false, or a custom prefix.
2017-01-15 23:35:43 +08:00
eamon316
d7e6a3da6a
Add a useTags flag to allow tags to be used to generate interface / controller classnames ( #4396 )
2017-01-15 23:25:30 +08:00
Gene Chang
95987fc132
Added support for datetime query parameters in cpprest ( #4556 )
...
* Added support for datetime query parameters in cpprest
Signed-off-by: Gene Chang <gene.chang@anyconnect.com >
* Update petstore sample app for cpprest using bin/cpprest-petstore.sh
Signed-off-by: Gene Chang <gene.chang@anyconnect.com >
2017-01-14 00:07:06 +08:00
Richard Naeve
2e7e25801d
Issue 4531 ( #4539 )
...
* ISSUE-4531
Arrays are now serialized according to the different collection formats. All api classes are also exported in a const array to make handling of large api libraries easier.
* Added petstore samples
* Fixed indentations and coding style
2017-01-13 23:41:54 +08:00
Joseph Moore
d40f7a41b6
Add triple-mustache to all instances of vendorExtensions.extraAnnotation. ( #4553 )
...
This covers the usages that weren't fixed in #3825
Triple mustache is required because annotations may contain chars like
"=" that would be mistakenly encoded.
2017-01-13 23:01:15 +08:00
Philippe Latulippe
2faad6497d
[Swift3] Don't crash on invalid responses ( #4547 )
...
* [Swift 3] Return an error when dealing with invalid responses, instead of crashing.
Compatiblity: ErrorResponse.Error becomes ErrorResponse.HttpError
* Cleanup and work around existing swift3 generator bug/missing feature
* Generate PetStore samples for swift3
2017-01-13 11:29:25 +08:00
wing328
39b76ece22
add space before C# in readme
2017-01-13 00:30:56 +08:00
eblis
af4319015e
When reading mustache template files assume UTF-8 encoding, fixes #4544 . ( #4545 )
2017-01-13 00:11:07 +08:00
wing328
9bb58d2040
add git tip
2017-01-12 23:36:43 +08:00
Bartek Kryza
0fb154e9a2
[Bash] Bash client script generator ( #4541 )
...
* Initial commit
* Remormatted petstore tests
* Added Bash codegen to main README.md
* Added bash to integration tests
* Fixed stdin detection in generated script
* Added back ruby module
2017-01-12 16:48:25 +08:00
Pete Holiday
2e4de0ca1e
Remove unnecessary call to setHost() in the constructor ( #4525 )
...
* Remove unnecessary call to setHost() in the constructor
The default host will be automatically set on the client by the ApiClient constructor.
* Updated PHP API Classes corresponding to template updates in #4525 .
* Additional changes generated by the petstore update unrelated to #4525 , but seem to have not been included yet.
* Add test to prevent regressions of #4525
2017-01-12 16:17:17 +08:00
wing328
d7eeb069f2
update 2016 to 2017
2017-01-11 15:55:51 +08:00
J. Fiala
a6b0518bf0
replace tabs
2017-01-10 18:03:51 +01:00
Krisztian Lachata
c1f854f7da
Overriden objectmapper wasn't used in deserialisation (Scala) issue #4532 ( #4534 )
...
* Overriden objectmapper wasn't used in deserialisation
Use previously provided apiInvoker instead of creating a instance at deserialision stage
* update scala sample
2017-01-11 00:27:48 +08:00
Griffin Schneider
5f6dcf07b2
[Swift3] Make extracting info from errors easier. ( #4502 )
...
* [Swift3] Make ErrorResponse a struct for cleaner useage. Specify Errors that are always ErrorResponse as ErrorResponse type to avoid casting.
* [Swift3] Regenerate Petstore after ErrorResponse changes.
2017-01-10 23:48:07 +08:00
Yuta HIGUCHI
de5ea8a9d6
[JAX-RS/jersey2] Fix for incorrect JSON field name capitalization ( #4458 )
...
* Fix for all capital field name
* Cosmetic: remove trailing spaces
* Adding ./bin/jaxrs-petstore-server.sh output.
2017-01-10 23:37:25 +08:00
wing328
4d4af71446
[CI] Add scripts to detect carriage return and tab ( #4526 )
...
* add script to detect carriage return
* add check for generator as well
* add fail fast to travis config
* remove tab
* move scripts under bin/utils
* remove carriage return
* move scripts to bin/utils
2017-01-09 18:29:41 +08:00
Jeff Haynes
380bed15d3
Issue 4244 - Add x-discriminator-value ( #4252 )
...
* Fixes for issue 4226. Detects and warns about more than one inline object; sets discriminator on CodegenModel; Adds templates to other Java languages
Changes to be committed:
modified: modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
modified: modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
new file: modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
new file: modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
new file: modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache
* Add vendor extension for x-discriminator-value
Changes to be committed:
modified: modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache
* Add "visible = true" to @JsonTypeInfo jackson annotations for Java languages
Changes to be committed:
modified: modules/swagger-codegen/src/main/resources/Java/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaInflector/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaJaxRS/typeInfoAnnotation.mustache
modified: modules/swagger-codegen/src/main/resources/JavaSpring/typeInfoAnnotation.mustache
2017-01-09 18:28:27 +08:00
Alex Nolasco
26ead9b58f
Issue 4416 (Assist escapeReservedWord with custom mappings) ( #4480 )
...
* Preliminary implementation for issue-4416
* Updated README.md with reserved-words-mappings parameter.
2017-01-09 18:22:25 +08:00
Sreenidhi Sreesha
81b5b78fc2
Enable support for vendor extensions in CodegenResponse. ( #4517 )
2017-01-08 17:58:07 +08:00
Tony Tam
ccf6f020d9
Merge pull request #4521 from swagger-api/issue-4478
...
updated version
2017-01-07 17:37:07 -08:00
Tony Tam
69b1e50a95
updated version
2017-01-07 17:08:04 -08:00
Tomek Cejner
1e8c7180c5
[swift3] allow POST with both body and query parameters ( #4490 )
...
* [swift3] allow POST with both body and query parameters
* Correctly support non-string and optional query parameters.
2017-01-07 22:40:07 +08:00
Kevin Locke
409e1a504c
Fix Gson parsing of Joda DateTime without millis ( #4473 )
...
* Fix Gson parsing of Joda DateTime without millis
The DateTimeFormatter returned by ISODateTimeFormat.dateTime() only
parses dates with millisecond values, and throws
IllegalArgumentException when milliseconds are not present. The
date-time construct from RFC 3339 Section 5.6 referenced by the
Swagger/OpenAPI spec allows fractional second values to be omitted.
This results in valid date-time values being rejected by the generated
code.
This commit fixes the problem by using .dateOptionalTimeParser() for
parsing, which correctly handles date-time values without fractional
seconds. A previous version of this commit used .dateTimeParser(),
which accepted a time without a date and was considered too liberal.
Note that .dateTime() must still be used for printing, which is not
supported by .dateTimeParser().
Signed-off-by: Kevin Locke <kevin@kevinlocke.name >
* Fix akka-scala date-time parser with Joda
As in the previous commit, which fixed Java generators,
ISOISODateTimeFormat.dateOptionalTimeParser() should be used for
date-time parsing and ISOISODateTimeFormat.dateTime() for printing.
Apply the same change to akka-scala.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name >
2017-01-07 21:56:14 +08:00
J. Fiala
6b17b92bb6
add check for isInteger (integer/decimal)
2017-01-06 16:46:59 +01:00
J. Fiala
24f486164a
add test for options #4091
2017-01-06 16:18:14 +01:00
J. Fiala
5b532fd10e
update language jaxrs (Jersey2) and samples
2017-01-06 15:16:39 +01:00
J. Fiala
dde24eb9c2
update jaxrs jersey1 templates and sample output #4091
2017-01-06 15:10:40 +01:00
JasonNorth
5686109cc9
Allow templates to use maxItems and minItems for Arrays ( #4309 )
...
Issue 3925
2017-01-06 19:57:28 +08:00
Frédéric Rodrigo
c0f1716fe7
[html2] Open the description field that contains the description and required switch, in place of only show the field type by default ( #4489 )
2017-01-06 19:40:06 +08:00
Kevin Locke
df0c54d043
Support the empty string as an enumeration value ( #4450 )
...
When a string enumeration has the empty string as one of its available
values, the generated code for many languages is invalid because the
empty string can not be used as an identifier. As with numbers and
symbols, provide a mapping to an English name which can be used as a
replacement. In this case, "empty" for the empty string/empty value.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name >
2017-01-06 19:30:47 +08:00
Brian Voss
43ab14b200
Adding Curl connect timeout configuration to PHP generation templates ( #4500 )
2017-01-06 19:14:39 +08:00
Simon Morris
aa1dc0fdd2
Updated Nancy from 1.4.1 to 1.4.3 ( #4482 )
2017-01-06 01:09:32 +08:00
Brian Shamblen
b224474a43
Fixes #4481 ( #4493 )
2017-01-06 01:03:18 +08:00
wing328
a541ecc2c5
Merge pull request #4497 from swagger-api/2.3.0_sync_master
...
Merge the latest master into 2.3.0
2017-01-06 01:00:08 +08:00
Takuro Wada
6a080d3a0c
add safe argument to quote method in python template to avoid unquoted parameter in path parameter ( #4457 )
...
Closes #4391
2017-01-06 00:55:55 +08:00
wing328
864d22b2a4
comment out ts fetch default test
2017-01-05 23:41:28 +08:00
wing328
27b53478e9
resolve merge conflicts in ts fetch test cases
2017-01-05 22:52:27 +08:00
William Cheng
15cdbccf08
fix code styling in ts
2017-01-05 22:34:43 +08:00
William Cheng
b8f9985b8a
fix ts fetch missing , before options
2017-01-05 22:20:33 +08:00
William Cheng
52ee4ac984
fix ts fetch method signature
2017-01-05 22:06:07 +08:00
wing328
7335816826
remove problem class files from java api clients
2017-01-05 21:25:23 +08:00
William Cheng
a8bc09056b
update feign pom version
2017-01-05 20:55:38 +08:00
William Cheng
a7e4f542fb
fix feign pom
2017-01-05 19:54:08 +08:00
William Cheng
aae7e2ccca
fix optional parameters and collection format in go api client
2017-01-05 19:32:00 +08:00
William Cheng
db03c35973
fix pom for feign and okhttp-gson java api client
2017-01-05 18:56:14 +08:00
William Cheng
ce899e3776
Merge remote-tracking branch 'origin/master' into 2.3.0
...
Conflicts:
appveyor.yml
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptAngular2ClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/libraries/feign/pom.mustache
modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/pom.mustache
modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache
modules/swagger-codegen/src/main/resources/go/api.mustache
modules/swagger-codegen/src/main/resources/objc/api-body.mustache
modules/swagger-codegen/src/main/resources/objc/api-header.mustache
modules/swagger-codegen/src/main/resources/typescript-angular2/configuration.mustache
modules/swagger-codegen/src/main/resources/typescript-angular2/tsconfig.mustache
modules/swagger-codegen/src/test/java/io/swagger/codegen/swift/SwiftModelTest.java
modules/swagger-codegen/src/test/java/io/swagger/codegen/swift3/Swift3ModelTest.java
modules/swagger-codegen/src/test/java/io/swagger/codegen/typescript/typescriptangular2/TypeScriptAngular2ModelTest.java
samples/client/petstore-security-test/typescript-angular2/configuration.ts
samples/client/petstore/go/go-petstore/docs/FakeApi.md
samples/client/petstore/go/go-petstore/fake_api.go
samples/client/petstore/go/go-petstore/pet_api.go
samples/client/petstore/java/feign/pom.xml
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/jersey1/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/RFC3339DateFormat.java
samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/model/Animal.java
samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/model/EnumTest.java
samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/model/FormatTest.java
samples/client/petstore/java/jersey2-java8/src/main/java/io/swagger/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/JSON.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/FakeApi.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.h
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGPetApi.m
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.h
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGStoreApi.m
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.h
samples/client/petstore/objc/core-data/SwaggerClient/Api/SWGUserApi.m
samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGApiClient.h
samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGConfiguration.h
samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.h
samples/client/petstore/objc/default/SwaggerClient/Api/SWGPetApi.m
samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.h
samples/client/petstore/objc/default/SwaggerClient/Api/SWGStoreApi.m
samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.h
samples/client/petstore/objc/default/SwaggerClient/Api/SWGUserApi.m
samples/client/petstore/objc/default/SwaggerClient/Core/SWGApiClient.h
samples/client/petstore/objc/default/SwaggerClient/Core/SWGConfiguration.h
samples/client/petstore/objc/default/SwaggerClient/Core/SWGJSONResponseSerializer.h
samples/client/petstore/qt5cpp/client/SWGPetApi.h
samples/client/petstore/qt5cpp/client/SWGStoreApi.h
samples/client/petstore/qt5cpp/client/SWGUserApi.h
samples/client/petstore/typescript-angular2/default/configuration.ts
samples/client/petstore/typescript-angular2/npm/README.md
samples/client/petstore/typescript-angular2/npm/configuration.ts
samples/client/petstore/typescript-angular2/npm/package.json
samples/client/petstore/typescript-angular2/npm/tsconfig.json
samples/client/petstore/typescript-fetch/builds/default/api.ts
samples/client/petstore/typescript-fetch/builds/es6-target/api.ts
samples/client/petstore/typescript-fetch/builds/with-npm-version/api.ts
samples/client/petstore/typescript-fetch/tests/default/test/PetApiFactory.ts
samples/client/petstore/typescript-fetch/tests/default/test/StoreApiFactory.ts
samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApi.java
samples/server/petstore/jaxrs-resteasy/default/src/gen/java/io/swagger/api/PetApiService.java
samples/server/petstore/jaxrs-resteasy/joda/src/gen/java/io/swagger/model/User.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/FakeApi.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/FakeApiController.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/FakeApi.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/FakeApiController.java
2017-01-05 17:44:39 +08:00
wing328
42a0491696
add https://www.fastly.com/
2017-01-05 16:30:04 +08:00
Johannes Fiala
1a1d0aebc8
add beanvalidation to jersey1 and jersey2 #4091
2017-01-04 17:36:28 +01:00
Ashish Jain
3f66e27a92
Only updated README.md file ( #4485 )
...
Added reference to snapcx website, as we provide swagger 2.0 specs public APIs.
2017-01-04 22:47:14 +08:00
weiyang
6b0b7a1587
[dockerfile] Replace 'maven:3.3-jdk-7' with 'maven:3-jdk-7-alpine'
...
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2017-01-04 15:06:08 +08:00
Jim Schubert
cb9a1b3b53
[csharp] Use default rather than null in ctor ( #4145 )
2017-01-03 18:31:26 +08:00
Jim Schubert
c94e18abd8
[codegen ignore] normalize path separator for Windows, add *.ext tests ( #4476 )
...
* [codegen ignore] Fix windows paths for ignore processing
* [codegen ignore] Add missing glob rule tests
2017-01-03 16:56:50 +08:00
Tony Tam
0252d1a534
Update to latest swagger-core, parser versions ( #4472 )
...
* updated to release versions
* fixed defaultValue objects to strings
* added top-level jackson version
* added missing dependency, removed from swagger-core
2017-01-03 16:41:16 +08:00
wing328
fb3d4e61bb
roll back to latest working version of swagger paresr for codegen
2016-12-29 23:45:59 +08:00
Gayathri Sharma
4452fdbc02
Resteasy changes
2016-12-27 21:33:27 -06:00
mkarnik
45002ec1fd
[JAX-RS RESTEasy][issue #4447 ] Updated RESTEasy petstore samples
2016-12-23 10:37:17 +01:00
mkarnik
ababec69dd
[JAX-RS RESTEasy][issue #4447 ] Added swagger annotations to model and api templates
2016-12-22 22:18:39 +01:00
wing328
aed21bba73
better code format for nodejs server ( #4411 )
2016-12-23 02:05:10 +08:00
Jun Mukai
27f1b6ee98
Introduce NodeJS codegen for Google Cloud Functions. ( #4406 )
...
* Another approach: extending NodeJS server to support GCF.
This does not add a new language, but adding some client options
to support Google Cloud Functions (GCF).
* Add URLs for how to deploy the generated code.
Adds the client options help message and the README.md file.
2016-12-22 23:11:52 +08:00
Anton Vasin
41701a15b0
Fix typo. Creactor -> Creator ( #4443 )
2016-12-22 23:08:06 +08:00
Ezekiel Templin
e189388371
[Ruby] Add Rakefile and Gemfile ( #4448 )
...
* Add Rakefile, Gemfile, and update client generator
* Update sample
2016-12-22 21:37:12 +08:00
wing328
d52f5a3133
update swagger pasrer to 1.0.25-SNAPSHOT
2016-12-22 21:11:34 +08:00
Michael Fulton
d7afb22f1f
Fix Integer stub value defaulting to String in nodejs-server if format not specified ( #4436 )
...
* check if property is a BaseIntegerProperty. This can occur when format is not specified in Swagger definition
* Change coding style to be more consistent
2016-12-21 15:08:14 +08:00
wing328
ba285759e1
Merge pull request #4438 from gregra81/patch-1
...
Added Autodesk as a swagger codegen user
2016-12-21 11:05:24 +08:00
Greg Rashkevitch
79fa53a4d8
Added Autodesk as a swagger codegen user
2016-12-20 20:22:43 +02:00
wing328
204c05442d
[ObjC] minor code style enhancement to ObjC API client ( #4437 )
...
* minor code style enhancement to objc api client
* update petstore sample
* remove datatype from docstring (objc)
2016-12-20 19:13:03 +08:00
wing328
c4ccf49064
Merge branch 'd0x-Ignore_Javatypes_On_ModelPre_and_Suffixes'
2016-12-20 17:47:03 +08:00
wing328
4870cf4ab1
Merge branch 'Ignore_Javatypes_On_ModelPre_and_Suffixes' of https://github.com/d0x/swagger-codegen into d0x-Ignore_Javatypes_On_ModelPre_and_Suffixes
2016-12-20 17:46:52 +08:00
Vincent Giersch
7f980cd9dd
fix(swift3): lowercase enum value before checking reserved words ( #4357 )
...
Signed-off-by: Vincent Giersch <vincent@giersch.fr >
2016-12-20 16:35:03 +08:00
Dan Wilson
774dd33af0
Add optional parameters to go client using map[string]interface{} ( #4415 )
...
* Add VSCode to the list of ignores.
* Move optional parameters into a map[string]interface{}
Refactor tests to new API and add concurrency test.
* Add optional check to postBody.
The pet-store does not create this scenario.
2016-12-20 16:32:44 +08:00
Greg Rashkevitch
36b97c22af
Fix warning docs return type ( #4429 )
...
* Objective C: Fix compilation warnings
If returnType is not provided, set the @return as void
* Run the `./bin/objc-petstore.sh`
* OBJECTIVE C SDK: Remove the return line for methods that return nothing all together
* obj-c sdk: Updated petstore sample
2016-12-20 16:10:47 +08:00
Johan Nystrom
ff70105484
Fix CSV collection parameter issues for scalatra server ( #4426 )
...
* Fix scalatra handling of CSV query parameters
* Ran petstore for scalatra server
2016-12-20 16:02:45 +08:00
wing328
4c398a4cba
Merge pull request #4434 from chasetec/master
...
Update DefaultGenerator.java to call close()
2016-12-20 15:52:00 +08:00
wing328
43ff85db76
Merge pull request #4421 from wing328/fix_isfile_boolean
...
Fix `isPrimitiveType` for file property
2016-12-20 15:48:55 +08:00
Matthieu Chase Heimer
da1e07af21
Update DefaultGenerator.java to call close()
...
Need to call out.close() after IOUtils.copy(in, out); when writing supporting files.
2016-12-19 13:25:10 -06:00
wing328
7fd895b37d
fix isPrimitiveType for file
2016-12-18 19:02:26 +08:00
wing328
8ccf9828e4
[Python] add hasConsumes/hasProduces to Python API template ( #4419 )
...
* add hasConsumes/hasProduces to python api template
* remove unused code in python
* fix isFile in the api doc (python)
2016-12-18 17:20:10 +08:00
Hamed Ramezanian Nik
7e67307bb4
Add AYLIEN company to the list ( #4412 )
2016-12-17 10:58:08 +08:00
wing328
537dcbe036
fix https://github.com/airbnb/javascript/
2016-12-17 00:40:56 +08:00
wing328
6bf721f2e3
add parameter as reserved keyword ( #4410 )
2016-12-17 00:29:06 +08:00
wing328
41c49341f2
rename api documentation generator
2016-12-16 22:28:32 +08:00
wing328
2172cfef84
add warning message for null inner type (map/array) ( #4408 )
2016-12-16 19:41:54 +08:00
Hamed Ramezanian Nik
6af43dc720
[csharp] Escape special characters in the API doc ( #4183 )
...
Special characters like <> should be HTML escaped.
2016-12-16 19:07:00 +08:00
Nicholas DiPiazza
c6c8ffe4e0
Do not NPE when array properties items are not specified ( #4063 )
2016-12-16 19:04:13 +08:00
wing328
2bf3d051a9
update html2 sample
2016-12-16 18:14:55 +08:00
Brian Shamblen
bd81f3264d
[html2] Fix import statements for most languages ( #4243 )
...
* [html2] Clean up namespace issues in code samples
* pull c# and php package namespace from --additional-properties arg
phpInvokerPackage arg now sets the PHP namespace and packageName sets
the CSharp namespace. invokerPackage still works for Java and Android
namespace.
2016-12-16 18:06:28 +08:00
Christoph Keller
6ade001663
CodegenResponse.isListContainer is false for array types. ( #4400 )
...
CodegenResponse's isListContainer property is always false for "array" types. Don't know where the check for "list" comes from but in CodegenOperation, there's a check for "list" and "array".
No mustache file makes use of isListContainer inside responses yet, so should not change any existing behavior.
2016-12-16 12:08:24 +08:00
Yohana Khoury
91af8066cd
boolean values from JSON are treated as strings ( #4229 )
...
* Change the value types in additionalProperties and dynamicProperties to Object instead of String.
Change methods that insert values to these maps to use Object as the type of the value instead of String.
* Fix run-all-petstore run: use toString instead of casting
2016-12-16 11:56:38 +08:00
wing328
37570882f9
Merge pull request #4364 from zhenwenc/typescript-angular2-build-to-dist-folder
...
[typescript-angular2] build to dist folder
2016-12-15 23:35:51 +08:00
wing328
733cdb08f0
formatting for list of api clients/servers
2016-12-15 22:18:09 +08:00
wing328
218d106014
list all supported clients/frameworks/doc
2016-12-15 22:08:40 +08:00
wing328
ffbead3f9d
Merge branch 'master' into typescript-angular2-build-to-dist-folder
2016-12-15 21:40:48 +08:00
wing328
c383cfb0f3
Merge pull request #4403 from wing328/cherrypick_4380
...
[Java] Add license to pom
2016-12-15 19:54:41 +08:00
wing328
131cbeb350
remove generation timestamp
2016-12-15 19:34:15 +08:00
wing328
870c745e6f
minor fix to java client options test
2016-12-15 19:30:35 +08:00
Cliffano Subagio
3bc3a40073
[java] Add licenseName and licenseUrl options.
2016-12-15 19:30:35 +08:00
wing328
7fc8b24001
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-15 00:42:51 +08:00
wing328
c1f498f24f
Merge branch 'SamuelBeliveau-angular2-standalone-enums-support'
2016-12-15 00:42:27 +08:00
wing328
f63d962258
update ts angular2 sample
2016-12-15 00:42:08 +08:00
wing328
7b7e5e25ee
Merge branch 'angular2-standalone-enums-support' of https://github.com/SamuelBeliveau/swagger-codegen into SamuelBeliveau-angular2-standalone-enums-support
2016-12-15 00:09:34 +08:00
wing328
a143e9c10c
add int/long check for @min/@max in java model ( #4395 )
2016-12-14 22:21:52 +08:00
lukoyanov
a13dee7167
[Java] Play! Framework 2.4 WS client support + retrofit2 ( #4270 )
...
* implemented core integration with play 2.4 ws
* added shell script to test on CI
* added shell script to composite file for all java generators
* added some comments
changed promise param to Response<T> to allow access to http status code and raw response if needed
* removed unnecessary whitespace changes
* added java7 compatibility, play ws deps to pom.xml
* added generated play24 client
* fixed imports
2016-12-14 17:32:49 +08:00
wing328
0df8bd2140
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-14 16:27:14 +08:00
wing328
43515ba79b
Merge branch 'www2k-feature/file-response'
2016-12-14 16:26:50 +08:00
wing328
3957a1db1a
Merge branch 'feature/file-response' of https://github.com/www2k/swagger-codegen into www2k-feature/file-response
2016-12-14 16:26:34 +08:00
Matan Rubin
5867728724
[JaxRS-CXF][bug #4330 ] support containers in return types ( #4339 )
...
* [JaxRS-CXF][bug #4330 ] support containers in return types
before this commit if a method returned a container (List or Map) of
THING (i.e. List<THING> or Map<String, THING>) the generated return type would
drop the container and only leave THING.
this commit fixes this issue such that the container type is properly
generated.
* regenerate jaxrs-cxf petstore sample
2016-12-14 13:58:56 +08:00
Bruno Santos
90cf1cab53
Date type should not include time ( #4385 )
...
Removed time section from Date type in example generators.
Issue #4359
2016-12-14 11:51:14 +08:00
Chris Putnam
4fa3595a41
[typescript-angular2] Fix syntax error ( #4383 )
...
* allow function so access token can be derived for each api call
* update tests
* update type for accessToken to be string or function that returns string
* fix syntax error
2016-12-14 11:50:02 +08:00
wing328
dbb66af73d
[C#] Add auto-generated doc for c# 2.0 generator ( #4354 )
...
* add auto-generated doc for c# 2.0 generator
* update readme for c# 2.0
* update readme
* update namespace in the doc
2016-12-14 11:49:15 +08:00
Leonardo Pacheco
83adcf5c06
Update README.md ( #4390 )
...
Included "Prill Tecnologia" to the list of companies using swagger-codegen.
2016-12-14 11:23:51 +08:00
wing328
a291d3113a
[Android] better code format for Android (volley) API client ( #4384 )
...
* better code format for android volley
* better code format for apiinvoker, add docstring
* use 2-space indentation for pair class
* use 2 spaces indentation for other classes in android
2016-12-14 00:40:21 +08:00
wing328
b33d4ec30c
add enum_outer_doc.mustache for android ( #4381 )
2016-12-13 17:54:23 +08:00
Dan Wilson
e55664cdc9
Remove invalid code from mustache for arrays. ( #4266 )
...
Rewrite ParameterToString to handle other slice types other than just string.
2016-12-13 16:13:06 +08:00
wing328
5818f2c882
[C++] better code format for cpprest templates ( #4379 )
...
* replace tab with 4-space in cpprest templates
* remove trailing whitespaces from templates
* fix code indentation in cpprest templates
* remove empty block in cpprest templates
2016-12-13 16:09:56 +08:00
wing328
7719bc8f1d
add https://github.com/bbatsov/clojure-style-guide
2016-12-13 16:09:15 +08:00
weiyang
beeb02a2dc
[html] Add type anchor to body param block ( #4368 )
...
* [html] Add type anchor to 'bodyParam' block
Signed-off-by: weiyang <weiyang.ones@gmail.com >
* [html][samples] Add type anchor to 'bodyParam' block
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2016-12-13 15:52:22 +08:00
Scott Richter
da9d64d053
Fix for issue #4370 - Cpprest does not set Content-Type header on POST requests. ( #4374 )
...
* Fixed cpprest generator to include Content-Type header in requests.
* Fixing indent to use spaces.
2016-12-13 15:01:47 +08:00
Dmitry Solovyov
15a84259aa
added Upwork to users list ( #4378 )
2016-12-13 11:08:14 +08:00
Chris Putnam
0b5a6f25da
[typescript-angular2] access token function ( #4361 )
...
* allow function so access token can be derived for each api call
* update tests
* update type for accessToken to be string or function that returns string
2016-12-13 00:39:09 +08:00
Paul Vollmer
77b92d7d11
Fix go client auth UserName var issue ( #4245 )
2016-12-13 00:19:20 +08:00
wing328
62aabfc6c1
Merge branch 'jfiala-beanval_2549'
2016-12-13 00:05:03 +08:00
wing328
d9de3b540d
Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-codegen into jfiala-beanval_2549
2016-12-13 00:01:44 +08:00
Dmitry Solovyov
bf50ea1366
fix the value for @Generated java annotation ( #4366 )
...
com.my.Generator.class.toString() returns "class com.my.Generator", and this value is then used in the javax.annotation.Generated annotation like that: @Generated(value = "class com.my.Generator").
Should use Generator.class.getName() instead, so we end up with @Generated(value = "com.my.Generator")
2016-12-12 18:38:39 +08:00
wing328
f4fb79822f
Add CircleCI configuration in preparation for CI test migration ( #4367 )
...
* add codeship yml
* rename ci config
* show rvm version
* use ruby-2.1.0
* check ruby version
* use rvm default
* fix host name
* set node version
* test mvn clean install
* use -q for mvn
* set memory limit
* add export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"
* run test only
* update MaxPermSize to 256mb
* run mvn verify
* remove -q
* add comment
* add more comment
* restore ruby model order
2016-12-12 17:42:08 +08:00
wing328
562ff1a4e1
Minor fix to issue with Appveyor ( #4365 )
...
* show current folder in appveyor ci
* remove cache
* comment out folder delete
2016-12-12 17:13:20 +08:00
wing328
c2a4c558c8
add delete cmd for appveyor
2016-12-12 15:44:15 +08:00
wing328
516c21cd62
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-12 15:42:14 +08:00
Frederick Cai
8e200970d4
[typescript-angular2] build to dist folder
2016-12-11 23:39:18 +13:00
wing328
2e6eb43c26
add SRC
2016-12-11 14:26:58 +08:00
Cliffano Subagio
78e2435f42
Add Shine Solutions to list of companies using Swagger Codegen ( #4363 )
2016-12-11 14:25:33 +08:00
wing328
130161fc43
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-10 01:02:22 +08:00
Sreenidhi Sreesha
c83c813865
Refactor Boolean properties to boolean. ( #4326 )
...
There is no good reason to use Boolean instead of boolean.
Using Boolean will lead to handling "null" state which is confusing.
This change removes changes the type of Boolean properties to boolean.
2016-12-10 00:37:50 +08:00
wing328
56eda63c70
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-09 23:52:53 +08:00
wing328
6e578f437f
add keyword (sdk generation)
2016-12-09 23:21:45 +08:00
wing328
b68e4b05d9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-09 17:43:56 +08:00
Thomas Hoffmann
7a97c3c375
Still respect super.equals even for models without own vars ( #4259 )
2016-12-09 17:27:55 +08:00
Vlad Frolov
4d2a13018b
[Python] Make the code look Pythonic ( #4352 )
2016-12-09 17:26:23 +08:00
wing328
2e80d2fb40
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-09 15:56:06 +08:00
Jens Oberender
c3571b28a5
Some code cleanings of problems reported by SonarQube. ( #4324 )
...
* Some code cleanings of problems reported by SonarQube.
* Updated changes to the petshop sample.
2016-12-09 15:55:33 +08:00
wing328
73bf589ad0
add swagger codegen evangelist
2016-12-09 15:18:55 +08:00
wing328
ceb9cb79cd
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-12-09 00:34:19 +08:00
wing328
a0f2b235f1
[C#] fix build.sh for PropertyChanged feature in C# API client ( #4349 )
...
* fix build.sh for PropertyChange in C#
* add new csharp files
* manual fix to enum ref in c# client
2016-12-09 00:03:38 +08:00
wing328
9051848ffa
minor fix to petstore test spec
2016-12-08 23:24:20 +08:00
wing328
af2db27a83
remove trailing space in ts fetech api, add npm test to ci ( #4348 )
2016-12-08 18:09:20 +08:00
Josh Williams
535b233ff7
Fix for #4344 - update compile.mustache with new dependencies ( #4345 )
...
* Fix for #4344 - update compile.mustache with new dependencies
* Fix compile.mustache to use generatePropertyChanged flag for DLLs
2016-12-08 16:14:25 +08:00
Christopher Chiche
a3d3082105
[Typescript/Fetch] Fix tslint issues in generated code ( #4313 )
...
* [Typescript/Fetch] Fix tslint issues in generated code
* Add security generated files.
* Use tslint version that doesn't require typescript 2
* Run build scripts
2016-12-08 16:01:50 +08:00
wing328
a0c4b58b53
add guid mapping for c# 2.0 ( #4347 )
2016-12-08 15:59:06 +08:00
wing328
939a8052f3
[Java] Uncomment @Max @Min syntax in bean validation files ( #4340 )
...
* uncomment max min syntax in bean validation files (java)
* remove eol at the end of the file
2016-12-08 15:22:55 +08:00
Sergey Kondratov
a2c2a77a93
Added Saritasa to list of Companies ( #4343 )
2016-12-08 10:22:01 +08:00
wing328
56d5b54599
add tests for swift3 client in travis objc/swift config
2016-12-07 23:23:40 +08:00
wing328
162352cb4b
Fix maximum, minimum for Integer ( #4335 )
...
* fix int/long max, min value (removing decimal)
* fix integer min/max in parameter
2016-12-07 19:29:36 +08:00
wing328
f781f1df5b
comment out xctool installation
2016-12-07 18:39:45 +08:00
Alvin
b7984e55a7
[Swift3][bug#4318] Bug when handling java date ( #4332 )
...
* fix bug #4318
* swift3 samples update
2016-12-07 17:58:21 +08:00
wing328
8153f0e89b
Fix test spec issue ( #4334 )
...
* fix issue with swagger spec (number => integer)
* remove space from spec
2016-12-07 16:46:41 +08:00
Jim Schubert
8e1eeaa737
[csharp] Remove generatePropertyChanged when explicitly false ( #4280 )
2016-12-07 01:04:13 +08:00
Sebastian Haas
1ee7907aaa
Fix for missing headers (2.3.0) ( #4329 )
...
* Fix for #4322
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
* Run typescript-angular2-petstore-all.sh
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
2016-12-07 00:00:43 +08:00
Sebastian Haas
648f8df235
Fix for missing headers ( #4328 )
...
* Fix for #4322
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
* Run typescript-angular2-petstore.sh
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
* Run typescript-angular2-petstore.sh
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
2016-12-06 23:59:59 +08:00
Tadhg Pearson
79a71fd697
Update docs for Java code generation ( #4303 )
...
* Updated documentation to support Java code generation
* Tabs to spaces in example pom
2016-12-05 17:34:37 +08:00
Alec Henninger
2b240a4eb9
Use JavaScript codegen in JavaScript test (instead of Java) ( #4316 )
2016-12-05 10:56:03 +08:00
Samuel Beliveau
964a9a9696
Support for standalone enums in Typescript-Angular2
...
Improved typescript primitive detection for tagging type with models namespace
2016-12-02 10:24:32 -05:00
wing328
18420dd7f9
add serialVersionUID to java model ( #4311 )
2016-12-02 17:59:35 +08:00
wing328
31d31b9466
[Ruby] use hasConsumes, hasProduces in ruby client ( #4310 )
...
* use hasConsumes, hasProduces in ruby client
* add new ruby files
2016-12-02 17:22:46 +08:00
wing328
fdb6d3020c
Merge pull request #4305 from wing328/android_object_reserved_word
...
[Android] add Object as reserved keyword in Android generator
2016-12-01 19:29:43 +08:00
wing328
87cb779fd4
[Typscript][Angular2] Remove tab in TS Angular2 template ( #4294 )
...
* remove tab in ts angular2 template
* update petstore sample after basing on master
2016-12-01 19:09:22 +08:00
wing328
564e061da6
add Object as reserved keyword in Android
2016-12-01 17:34:38 +08:00
Sreenidhi Sreesha
af0d217c38
Fix basePath set to null when generating API files. ( #4304 )
2016-12-01 15:46:44 +08:00
jaz-ah
0a97b9c568
make sure to camelize properly before checking for reserved words ( #4302 )
2016-12-01 11:49:56 +08:00
wing328
fbe4feedd4
Merge pull request #4299 from alanrenouf/patch-1
...
Added VMware to list of Companies
2016-12-01 09:46:10 +08:00
Alan Renouf
12c75a9225
Added VMware to list of Companies
...
Added VMware to list of Companies using Swagger Codegen
2016-11-30 11:26:47 -08:00
wing328
9bd685dfe4
add davidkiss as template creator
2016-11-30 23:31:21 +08:00
wing328
c6aea46fa0
fix import in sample code (dart) ( #4292 )
2016-11-30 18:30:30 +08:00
wing328
1658111345
add swagger codegen evangelist program
2016-11-30 17:43:58 +08:00
wing328
a603ccb595
[Dart] add auto-generated documentation ( #4291 )
...
* new files for dart client
* update doc for dart
* update api and model doc for dart
* update dart petstore sample
* update dart doc
* update dart petstore sample
* update dart petstore sample
* update dart client installation instruction
2016-11-30 17:41:55 +08:00
Christopher Chiche
b733334eee
[Typescript/fetch][Issue4284] Handle query parameters containing colons ( #4287 )
...
Put query parameters between quotes and access object keys using square
brackets to make sure special characters are handled in parameter
names.
Closes #4284
2016-11-30 15:22:38 +08:00
wing328
1925928efa
Merge pull request #4038 from alechill/4025-typescript-fecth-request-options
...
[TYPESCRIPT] Support passing custom RequestInit options in typescript-fetch client…
2016-11-29 22:32:03 +08:00
wing328
32daf055f9
Merge pull request #4286 from kpradeepkumarreddy/patch-2
...
added my company name to the list of companies.
2016-11-29 22:07:30 +08:00
K Pradeep Kumar Reddy
67e0c92720
added my company name to the list of companies.
...
added my company name to the list of companies. My company name is LXL Tech. It is a startup company working on mobile apps
2016-11-29 16:13:29 +05:30
wing328
7c5b70321c
Merge pull request #4283 from ChrisJamesC/cc-readme
...
Fix typo in the README
2016-11-29 18:08:51 +08:00
ChrisJamesC
d2e08835d0
Fix typo in the README
2016-11-29 10:12:23 +01:00
wing328
ae0851741a
Merge pull request #4277 from ChrisJamesC/cc-fix-typo
...
Fix typos in CONTRIBUTING.md
2016-11-29 15:38:30 +08:00
wing328
5b4f81f13a
Merge pull request #4276 from ChrisJamesC/cc-fix-lint
...
Typescript-fetch - fix linting issues
2016-11-29 08:52:20 +08:00
ChrisJamesC
6472baa44e
Fix typos in CONTRIBUTING.md
2016-11-28 16:57:10 +01:00
ChrisJamesC
e7397d208e
Fix linting issues
...
Add missing semicolons and remove trailing space in generated code.
2016-11-28 16:48:30 +01:00
wing328
5b90276dae
Merge pull request #4202 from gierschv/fix-swift3-inheritance
...
fix(swift3): multi-level inheritance support
2016-11-28 22:21:32 +08:00
wing328
4785451bf8
Merge pull request #4272 from swagger-api/pr_4223_b
...
[Typescript][Angular2] update to angular2 release version
2016-11-28 21:51:22 +08:00
Kristof Vrolijkx
764b4c8423
fixing whitespace
2016-11-28 19:11:50 +08:00
Kristof Vrolijkx
2050624298
running sample generation
2016-11-28 19:11:21 +08:00
wing328
9bc41c458d
disable AbstractIntegrationTest
2016-11-28 18:23:10 +08:00
wing328
60083abd87
disable appveyor cache
2016-11-28 18:12:58 +08:00
Kristof Vrolijkx
b35e4c99c6
exposing api.module in index.ts
2016-11-28 18:10:21 +08:00
Kristof Vrolijkx
dc256e5554
removing postinstall to fix problems when installing published api in other project
2016-11-28 18:10:07 +08:00
Kristof Vrolijkx
24c23d748c
updating versions of package.json + ignoring build files + adding basePath to ConfigurationObject and giving de ConfigurationObject an easy constructor
2016-11-28 18:09:54 +08:00
Kristof Vrolijkx
68bda09cd8
fixing integration tests
2016-11-28 18:09:39 +08:00
Kristof Vrolijkx
0faac57423
fixing import problems and updating integration tests
2016-11-28 18:08:51 +08:00
Sebastian Haas
7ea419dc5d
Added Angular 2 module structure.
2016-11-28 18:03:40 +08:00
wing328
0f8ce8b8e2
Merge pull request #4216 from ButterflyNetwork/swift-3-iso-date
...
[Swift 3] Use ISOFullDate for date format
2016-11-28 10:27:26 +08:00
wing328
a61f98afa7
add travis test file for objc, swift ( #4268 )
2016-11-28 10:26:10 +08:00
wing328
8cd881f6a8
disable appveyor cache (which seems broken) ( #4260 )
2016-11-25 23:26:56 +08:00
wing328
97525b9ec6
add http://leica-geosystems.com
2016-11-25 23:14:43 +08:00
Robert Biehl
1ea9865a44
[PHP] Fix discriminator handling ( #4246 )
...
* [PHP] Fix discriminator handling
* [PHP] Fix discriminator handling (Update examples)
2016-11-25 16:12:41 +08:00
Daniel
c15743bfe6
Issue4254 ( #4255 )
...
* Issue 4254 - Added mechanism for cache bursting
* Issue 4254 - Updated petstore samples
2016-11-25 00:14:59 +08:00
wing328
a7ecaa27df
Merge pull request #4249 from cbornet/flask_package
...
[Flask] Add packaging support
2016-11-24 19:43:34 +08:00
cbornet
bcc7e69fcc
[Flask] Add packaging support
2016-11-23 18:40:37 +01:00
wing328
5f372ef15e
Merge pull request #4219 from jordanyaker/master
...
fix(javascript): add check to see if the parsed response is really empty.
2016-11-23 17:23:52 +08:00
wing328
44ca30df63
Merge pull request #4215 from cbornet/flask_param_name
...
[Flask] fix parameter naming
2016-11-23 15:42:42 +08:00
Sreenidhi Sreesha
2f80568658
Refactor code to make it more readable. ( #4224 )
2016-11-23 15:13:15 +08:00
Nick Maynard
4c05d5f098
Allow Java source formatting mvn formatter:format ( #4214 )
...
Uses Eclipse formatting tools with a configuration matching Google's style guide (plus our customisations).
2016-11-23 15:07:25 +08:00
plankswert
ba194ba361
Added support for string responses ( #4057 )
...
* Added support for string responses
When a method/URL/response is defined to return string:
- If no content types are define, default to 'text/plain' instead of
'application/json'
- Add response handler, that returns the reponse string as-is if response
content-type is 'text/plain'
* Removed use of unused tag vendor tag
- The tag was vendorExtensions.x-codegen-response.isPrimitiveType
2016-11-23 14:31:31 +08:00
wing328
932dc5fba5
add [Riffyn]( https://riffyn.com )
2016-11-23 01:14:52 +08:00
menchauser
6ebc2fc051
Fix support for 'class' properties in Java codegen ( #4237 )
...
* Fix support for 'class' properties in Java codegen
Currently Java codegen works successfully for property named 'class' but
fails on '_class', '__class', etc, because of 'Object.getClass()'
overloading.
This fix is intended to avoid all Object method overloading cases.
* Regenerated samples for Java petstore-security-test
2016-11-23 00:18:40 +08:00
wing328
4e2c037e21
[Java] fix Java (Jersey1.x) test case ( #4239 )
...
* fix java jersey 1 test case
* fix test for java jersey2.x api client
2016-11-23 00:16:28 +08:00
wing328
58b66a0b0a
python code style enhancement ( #4238 )
2016-11-22 23:01:41 +08:00
wing328
fbc0315628
add Balance Internet
2016-11-22 10:44:32 +08:00
wing328
474dae08cf
update NodeJS readme to remove oudated doc ( #4232 )
2016-11-22 10:42:15 +08:00
wing328
1104ce8587
add docker image for swagger-codegen-cli
2016-11-22 10:02:29 +08:00
Ewan Mellor
9dc809bdc7
Add two override points inside AlamofireRequestBuilder in the Swift 3 template. ( #4170 )
...
* Add two override points inside AlamofireRequestBuilder in the Swift 3 template.
These allow the caller to control the request configuration (e.g.
to override the cache policy) and to control the Content-Type that is
given to an uploaded form part.
* Regenerate with ./bin/swift3-petstore-all.sh to match recent changes.
This includes a few minor changes that weren't made in this branch, so this
apparently wasn't run on master after some other recent changes.
2016-11-22 00:19:17 +08:00
Martin McWhorter
515e723fae
Allow TypeScript noImplicitAny: true ( #4205 )
...
* Allow TypeScript noImplicitAny: true
* Update typescript-angular2 examples
2016-11-21 19:39:07 +08:00
szakrewsky
76965594b9
Issue #2449 SubClass annotations are missing from the base class ( #4085 )
...
* petstore up to latest
* Issue #2449 SubClass annotations are missing from the base class
* include child in all its super types
2016-11-21 17:03:26 +08:00
wing328
1968bead43
Merge pull request #4221 from wing328/swift_generator
...
[Swift] add ErrorResponse as reserved word in Swift generators
2016-11-21 01:00:17 +08:00
wing328
6ad38874c5
[ObjC] version update for ISO8601 ( #4220 )
...
* remove php apache license
* update iso8601 version for objc client
2016-11-21 00:43:41 +08:00
wing328
e7e99eb69f
add ErrorResponse as reserved word in Swift generators
2016-11-21 00:38:01 +08:00
cbornet
9322c8fb0e
[Flask] fix parameter naming
2016-11-20 11:21:09 +01:00
Jordan Yaker
5a2ec03549
fix(javascript): added check to see if the parsed response is really empty.
2016-11-19 15:06:36 -05:00
jfiala
e4f27bc7a7
make test invocations compileable #2549
2016-11-19 11:55:22 +01:00
jfiala
89ee2b1c91
fix JDK 1.7 issue with generics by casting to Set #2549
2016-11-19 11:41:59 +01:00
wing328
4ae3e57932
Merge branch 'beanval_2549' of https://github.com/jfiala/swagger-codegen into jfiala-beanval_2549
2016-11-19 16:39:31 +08:00
Christophe Bornet
df15799839
[Flask] Add generated tests ( #4209 )
2016-11-19 16:31:31 +08:00
jfiala
b02d505ad9
Refine CXF Add Spring Annotation-Config + Jboss flag for CXF/Resteasy + fix OuterEnum ( #4164 )
...
* add json annotations
* add cli flag to check for jaxb annotations
* add CLI-flag for switching Spring-XML or annotation config #4088
* add cli flag for generating jboss depl. descriptor #4088
* add JbossFeature CLI flag to Resteasy #4088
* update/add tests #4088
* cleanup tabs #4088
* improve api formatting #4088
* refine formatting #4088
* refine formatting again #4088
* add separate CLI-flags for controlling junit test features #4088
* add json annotations
* add cli flag to check for jaxb annotations
* add CLI-flag for switching Spring-XML or annotation config #4088
* add cli flag for generating jboss depl. descriptor #4088
* add JbossFeature CLI flag to Resteasy #4088
* update/add tests #4088
* cleanup tabs #4088
* improve api formatting #4088
* refine formatting #4088
* refine formatting again #4088
* add separate CLI-flags for controlling junit test features #4088
* add check for void methods + assertNotNull(response) #4088
* add spaces for @Produces #4088
* allow build with no web.xml config #4088
* comment invocations of tests #4088
* update petstore sample jaxrs-cxf server with gen/java first #4088
* re-generate jaxrs-cxf with src/gen/java #4088
* add client jaxrs-cxf #4088
* add switch to load SwaggerUI automatically #4088
* update to CXF 3.1.8 including supportSwaggerUi flag #4088
* update to cxf 3.1.8 and swagger-core 1.5.10 #4088
* update generated petstore for jaxrs-cxf #4088
* change Spring Boot urls to root #4088
* fix spring xml config #4088
* fix external enum usage for jaxrs-cxf #4160
* cleanup jaxrs-annotations in impl class
* fix handling of multiparts #4088
* fix @Min/@Max comments in beanValidationQueryParams #4088
* add swagger-codegen-ignore file+add src/test/resources #4088
* add cli-flag for produces/consumes json in api #4088
* add test case for outerEnum #4160
2016-11-19 16:09:13 +08:00
Chester Husk III
95ac238026
[Typescript] Add Error to the list of reserved words that must be escaped ( #4203 )
...
* Add Error to the list of reserved words that must be escaped for Class-generation
This fixes a part of #2456 .
* add in special casing for the model names to not clobber existing language type names
* address formatting issues to be in line with language convention
2016-11-19 15:51:14 +08:00
Chester Husk III
7a7eb113b3
address unused parameters and possible-nullity warnings ( #4210 )
...
* address unused parameters and possible-nullity warnings that newer versions of typescript give for this file
* update example generated clients using the new nullability code
2016-11-19 15:50:22 +08:00
www2k
ed1b6075e9
Add file response support for typescript-node
2016-11-19 07:49:48 +09:00
www2k
e14be8bab9
Support file response schema
2016-11-19 07:49:48 +09:00
www2k
0a5b0bb8ce
Add test for file response schema
2016-11-19 07:49:48 +09:00
wing328
9c6fbad73d
add Flat ( https://flat.io )
2016-11-19 00:03:57 +08:00
Vineet Shah
993f9eec65
[Swift 3] Use ISOFullDate for date format
2016-11-18 10:55:21 -05:00
RaphC
a260636a48
#3908 make a copy of vendorExtensions map instead of copying the reference ( #4093 )
...
* #3908 make a copy of vendorExtensions map instead of copying the
reference
* using 4-space instead of tab.
* make a copy of vendorExtensions map instead of copying the reference
2016-11-18 16:52:42 +08:00
wing328
cde24f1113
Merge pull request #4189 from cbornet/spring_cloud_operations
...
[Spring] Use tag operation grouping for spring-cloud
2016-11-18 16:51:36 +08:00
wing328
da136135af
add http://www.intenthq.com
2016-11-18 16:46:54 +08:00
wing328
359e52b173
Merge pull request #4188 from cbornet/flask_operations
...
[Flask] Use x-swagger-router-controller in for operation routing
2016-11-18 14:23:45 +08:00
Vincent Giersch
9e08b637ec
fix(swift3): rename reserved enum values ( #4201 )
...
Example:
- case public = "public"
+ case _public = "public"
Signed-off-by: Vincent Giersch <vincent@giersch.fr >
2016-11-18 14:21:17 +08:00
James Hitchcock
5baa715603
Remove opening PHP tag from PHP code sample ( #4212 )
2016-11-18 14:16:35 +08:00
Nick Maynard
b7e9603e63
jaxrs-cxf-cdi :: Add a basic JAX-RS Application and CDI fixes ( #4196 )
...
* Add a basic JAX-RS Application and CDI fixes
* jaxrs-cxf-cdi :: Fix samples generation template dir
* jaxrs-cxf-cdi :: Regenerate samples
* jaxrs-cxf-cdi :: Clean up some checkstyle warnings
2016-11-18 14:00:53 +08:00
wing328
3d476debaf
Merge pull request #4178 from cbornet/flask
...
[Flask] Add models support to Flask Connexion codegen
2016-11-18 13:56:59 +08:00
Sanjeewa Malalgoda
61f6c94351
update readme description ( #4207 )
2016-11-18 13:43:11 +08:00
Herman Schistad
2dafdffce5
Allow multiple requests in parallel in Python client ( #4187 )
...
* Allow multiple requests in parallel in Python client
If you tried to do two parallel calls to the same API object in the
Python client you would get an error from urllib3 connection pool:
Connection pool is full, discarding connection: ***
Because the default maxsize=1:
f9409436f8/urllib3/connectionpool.py (L162)
By defaulting to a higher maxsize we mitigate for the common use case
where a user is running a couple of requests in parallel.
Ideally, in the future, this should be a configuration paramater
together with the pool size.
* Add sample code after changing maxsize
2016-11-18 13:38:32 +08:00
cbornet
1e6cab8a03
[Flask] Use x-swagger-router-controller in swagger.yaml for operation routing
...
Fix #4106
2016-11-17 19:21:05 +01:00
cbornet
e5daa6855c
add models support to flask
2016-11-17 18:30:59 +01:00
wing328
d548a8078c
add taskdata
2016-11-17 21:49:57 +08:00
wing328
d6e8fb0194
Merge pull request #4204 from bshamblen/master
...
[html2] Add missing enums to parameters
2016-11-17 16:23:33 +08:00
Brian Shamblen
97722437c4
Add missing enums to properties
2016-11-16 15:42:27 -08:00
Vincent Giersch
bd06a629c6
fix(swift3): multi-level inheritance support
...
Supports multi-level inheritance to avoid having the variables from
the parents of level > 2
This commit also fixes the comparison of the variables when skipping
the variables in the children classes by only comparing their names
(in some cases some parent variables were present in children classes)
Signed-off-by: Vincent Giersch <vincent@giersch.fr >
2016-11-16 19:01:22 +01:00
wing328
88227e08e3
Remove Apache license from server stub generators ( #4200 )
...
* remove php apache license
* remove license in sample code, update nodejs to use unlicnese
* remove license from jaxrs generator
* remove license from server generator
* update pom.xml for jaxrs resteasy joda server
2016-11-17 00:37:21 +08:00
wing328
63c3133e88
Remove Apache license from document generator ( #4199 )
...
* remove php apache license
* remove license from doc generator
2016-11-16 23:45:55 +08:00
wing328
90512e6326
Remove Apache license from API client generators ( #4197 )
...
* remove php apache license
* remove apache license from C#
* remove apache license in objc code
* remove license from swift 3 code
* remove apache license from perl code
* remove license from scala code
* remove license from ts, go, android, cpp, scala
* remove license from java api client
* restore clojure petstore files
* remove license from travis file
* clean up apache-related terms in php, ruby, python mustache tempaltes
* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
wing328
43af07a2d4
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-16 16:44:39 +08:00
wing328
39ffc0ae62
[Ruby] remove apache2 license from ruby api client ( #4149 )
...
* remove apache2 license from ruby api client
* remove license from gem spec
2016-11-16 16:38:15 +08:00
wing328
113843bb88
Merge pull request #4191 from cbornet/fix_import_order
...
Fix order of imports in operations
2016-11-16 11:02:40 +08:00
wing328
2425a35f45
Merge pull request #4193 from mbohlool/plugin-fix
...
Add gitUseID and gitRepoID flags to maven plugin
2016-11-16 10:46:17 +08:00
mbohlool
355e694fb2
Add gitUseID and gitRepoID flags to maven plugin
2016-11-15 17:35:13 -08:00
cbornet
c386da6ded
fix order of imports in operations
2016-11-15 21:45:15 +01:00
cbornet
4a196a9187
[Spring] Use tag operation grouping for spring-cloud
...
Instead of basepath based grouping that is used by Spring boot/MVC
2016-11-15 18:46:48 +01:00
wing328
97924c78a0
update objc samples
2016-11-15 16:16:20 +08:00
wing328
07bec36deb
[ObjC] AFNetworking pinnedCertificates API usage fix ( #4143 )
...
* Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray
* Petstore updated
2016-11-15 16:10:19 +08:00
jfiala
a7252e7560
update check for performBeanValidation #2549
2016-11-12 23:31:49 +01:00
jfiala
9d8c419698
update generated petstore for ok-http-gson #2549
2016-11-12 23:20:03 +01:00
jfiala
1d305b1faf
add tests for java client performBeanValidation #2549
2016-11-12 23:09:57 +01:00
jfiala
a9069e8360
add perform beanvalidation flag to ok-http-gson #2549
2016-11-12 22:47:31 +01:00
Tony Tam
cafcf51e3f
Merge pull request #4175 from bshamblen/master
...
Fixes for html2 template
2016-11-11 14:11:15 -08:00
Brian Shamblen
9e309bbfeb
Update pet store example
2016-11-11 12:27:32 -08:00
Brian Shamblen
1e85ffaf04
Fixes #4097
2016-11-11 12:25:32 -08:00
Brian Shamblen
265d635eee
Add markdown support to descriptions
2016-11-11 11:41:08 -08:00
mbohlool
876669cd31
[Python] Add support for request timeout ( #4173 )
...
* [Python] Add support for request timeout
* Update python petstore api
* [Python] Add test for request timeout
2016-11-11 23:48:53 +08:00
Chakrit Wichian
f6a02f4339
[ruby] Make sure super is always called for ApiError class. ( #4168 )
...
* [ruby] Make sure super is always called for ApiError class.
* Add test for Petstore::ApiError
2016-11-11 17:39:45 +08:00
wing328
98a26c3922
Merge pull request #4172 from mbohlool/preload_content
...
testcase for _preload_content flag
2016-11-11 11:47:26 +08:00
mbohlool
cfd8add825
Add test for _preload_content flag
2016-11-10 14:24:06 -08:00
wing328
7b45c9ccd8
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-11 00:23:36 +08:00
mbohlool
ba9e449fd4
Support _preload_content flag in python client ( #4166 )
...
* Modify python client templates to support _preload_content flag
* Update python petstore
2016-11-10 23:43:32 +08:00
wing328
5899554d9d
Merge pull request #4159 from ircecho/origin/iso8061date
...
fix[dart]: send ISO8601 dates
2016-11-10 00:24:05 +08:00
wing328
15b216d47b
fix feign gradle build file
2016-11-09 18:36:16 +08:00
wing328
d572b08bf1
fix feign threepane version
2016-11-09 17:09:34 +08:00
wing328
255bc02b83
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-09 16:37:11 +08:00
wing328
68e1afdc9e
Merge pull request #4158 from wing328/java_null_response_type
...
[Java][JAX-RS] add vendor extension to handle void response in jaxrs-cxf
2016-11-08 21:42:45 +08:00
Anton WIMMER
6d6cfb4984
fix[dart]: send ISO8601 dates
2016-11-08 14:29:27 +01:00
wing328
cce410c463
add vendor extension to handle void response in jaxrs-cxf
2016-11-08 21:06:38 +08:00
Roman Truba
73276fd63a
Merge branch 'master' into afnetworking-pinned-certificates-fix
2016-11-08 15:48:46 +03:00
wing328
d5ced7df38
Merge pull request #4155 from wing328/produce_consume_exception
...
Better handling of */*
2016-11-08 16:43:20 +08:00
wing328
935bdfe628
better handling of */*
2016-11-08 16:17:51 +08:00
wing328
77d3c0cb20
Merge pull request #4125 from ircecho/multiword
...
DART: multi-word class names work properly now, fixes #4117
2016-11-08 15:48:29 +08:00
wing328
c54797bcef
Merge pull request #4152 from mbohlool/fix_python_client
...
Select application/json content-type in python generated client, if */* is in the list of content-types
2016-11-08 11:11:06 +08:00
mbohlool
37460ee833
Select application/json content-type in python generated client, if */* is in the list of content-types
2016-11-07 11:54:01 -08:00
wing328
7f31763273
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-11-07 23:55:13 +08:00
wing328
46c4eb3869
update mxf4j sample
2016-11-07 23:54:47 +08:00
wing328
7dd774ffa3
Merge branch 'msf4j' of https://github.com/sanjeewa-malalgoda/swagger-codegen
2016-11-07 23:51:45 +08:00
Roman Truba
a1cd01916e
[ObjC] Fix deprecated JSONModel API usage ( #4133 )
...
* Fixed deprecated usage -[JSONKeyMapper initWithDictionary:]
* Petstore regenerated
* Change minimal required version of JSONModel
2016-11-07 23:47:09 +08:00
wing328
e78ce6fb1e
Merge pull request #4059 from markus-wa/issue-4045
...
[JAXRS-CXF] Issue 4045 - Fixed enum marshalling & fromValue()
2016-11-07 23:42:29 +08:00
wing328
7ba60afa71
Merge pull request #4131 from wienczny/patch-1
...
Update pojo.mustache to repair broken merge
2016-11-07 16:14:08 +08:00
wing328
7db5391a3e
Merge pull request #4134 from wienczny/patch-2
...
Default sourceFolder to src/main/java
2016-11-07 16:13:17 +08:00
Jim Schubert
ad1765475d
[aspnet5] Fix broken template directory for deprecated lang ( #4142 )
2016-11-07 16:12:59 +08:00
Roman Truba
0c7ab63912
Petstore updated
2016-11-05 22:11:09 +03:00
Roman Truba
b355cc7381
Fixed afnetworking API usage: pinnedCertificates now declared as NSSet, not as NSArray
2016-11-05 22:10:52 +03:00
keysolutions
ab9ea5b2c3
Add constructFromObject to Javascript enum generation. ( #4120 )
...
* Add constructFromObject to Javascript enum generation.
Generated code calls constructFromObject on enum types, but enum did not define the necessary function. Returns the value of the enum.
* Update Petstore JS API client
2016-11-05 23:14:48 +08:00
Roman Truba
1a2b345c57
[Obj-c] Generated code documentation fixes ( #4130 )
...
* Fixed missing parameters names for obj-c generated code
* Obj-c sample regenerated
2016-11-05 23:13:51 +08:00
wing328
3f19ccaf17
Merge pull request #4141 from apls777/patch-1
...
Added QAdept to companies list
2016-11-05 23:12:13 +08:00
Oleg Polosin
2f1f62e384
Added QAdept to companies list
2016-11-05 12:11:58 +00:00
Tony Tam
93b6099cb2
Merge pull request #4140 from swagger-api/issue-4138
...
Added clarification to license of generated code
2016-11-04 16:59:33 -07:00
Tony Tam
a624729d70
added clarification for #4138
2016-11-04 15:16:04 -07:00
Stephan Wienczny
9436ba106c
Default added sourceFolder to src/main/java
...
Fallback to "src/main/java" for added source folder instead of a NullpointerException when no source folder ist configured in the pom
2016-11-04 15:35:48 +01:00
Stephan Wienczny
f25f6c265a
Update pojo.mustache
...
Repair vendorExtensions due to broken merge.
2016-11-04 14:59:04 +01:00
Christophe Bornet
901a981f26
[feign] Use feign-form ( #4124 )
...
* [feign] Use feign-form
Fix #4108
* [feign] Convert java.util.Date params to rfc3339 with an Expander
2016-11-04 21:13:18 +08:00
wing328
5b0b52df38
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-04 19:18:37 +08:00
wing328
636623d0e9
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-04 19:17:35 +08:00
ircecho
51b941cf88
DART: Removed the 'justIgnoreThisFlag' flag ( #4116 )
...
* feat[dart]: remove unused argument 'justIgnoreThisFlag'
* chore[dart]: petstore rebuild
2016-11-04 19:17:23 +08:00
Anton WIMMER
096cbd57f5
fix[dart]: multi-word class names work properly now
2016-11-04 11:48:53 +01:00
Christophe Bornet
70d93883cf
[Java] Threetenbp dates support ( #4029 )
...
* [feign] add threetenbp support for feign clients
* [okhttp] add threetenbp support for okhttp clients
* [jersey] add threetenbp support for jersey clients
* [retrofit2] add threetenbp support for retrofit2 clients
* [spring] add threetenbp support for spring generators
* add a workaround in tests for a bug in the petstore
The petstore doesn't manage fractional digits of dates correctly when there are less than 3
2016-11-04 17:55:16 +08:00
wing328
a2d924d863
Merge pull request #4122 from iCEAGE/ruby_api_array_validation
...
[ruby] Validate array correctly
2016-11-04 17:54:55 +08:00
Hamed R. Nik
af4b32178f
[ruby] Validate array correctly
...
It never throws error with any values in array. Every element should be validated against the enum.
2016-11-03 17:03:48 +00:00
wing328
c2ca59e677
Merge pull request #4115 from wwn/issue#4077
...
Added String.length() > 0 check to avoid IndexOutOfBoundException
2016-11-03 15:33:47 +08:00
sanjeewa-malalgoda
60c7d90d22
remove glassfish dependencies and use MSF4J internal implementation for the simplicity and reduce dependencies
2016-11-03 10:39:52 +05:30
Tony Tam
deb526440c
Merge branch 'master' of github.com:swagger-api/swagger-codegen
2016-11-02 16:56:10 -04:00
Tony Tam
088ba97967
updated to next development version
2016-11-02 16:55:22 -04:00
wwn
8eefe863bf
Added isEmtyString check to avoid IndexOutOfBoundException
2016-11-02 18:45:25 +01:00
Simon Morris
8fb33980dc
Nancy fx work ( #4107 )
...
* Added switch to config to toggle use of yaml base path as module paths
* NancyFX template updated to return collections as array to allow framework to find views by type name for text/html mime type
* Added some more parser fixes for NancyFX
* Refactored collection parsers in Parameters.cs and changed some to return nullable collections to match the parameter mappings in AbstractCSharpCodegen
* re-ran petstore build
2016-11-02 21:35:01 +08:00
wing328
e26a7632c1
Merge pull request #4112 from swagger-api/spring_model_setter
...
[Spring] add back setter to read-only attributes in Spring models
2016-11-02 16:19:02 +08:00
wing328
c1e6f00242
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-11-02 15:43:00 +08:00
wing328
4eb75f8088
add back setter to spring model (readonly attr)
2016-11-02 15:40:00 +08:00
wing328
52736ddaeb
Merge pull request #4111 from wing328/update_dart_lib
...
[dart] updated intl library version
2016-11-02 14:34:19 +08:00
wing328
5c0ce022e9
update dart intl version
2016-11-02 11:17:04 +08:00
sutdisi
819a8648d5
Jersey2 Patch Support ( #4110 )
...
* Fix for issue 2848 Adding support for PATH in jersey2
* Updating petstore sample for PATCH update
2016-11-02 09:43:29 +08:00
wing328
1ef9480ecf
Merge branch 'Rajmohan-retrofit2-vendor-mime-type'
2016-11-01 21:40:36 +08:00
wing328
0eaab90ba5
Merge branch 'retrofit2-vendor-mime-type' of https://github.com/Rajmohan/swagger-codegen into Rajmohan-retrofit2-vendor-mime-type
2016-11-01 21:40:22 +08:00
Cliffano Subagio
5c53513a30
[python] Add packageUrl option, replacing infoUrl in setup.py ( #4101 )
...
* [python] Add packageUrl option, replacing infoUrl in setup.py .
* [python] Regenerate Python petstore sample.
* [python] Regenerate Python petstore security test sample.
2016-11-01 18:21:53 +08:00
Nick Maynard
0c1b1aa749
Add Checkstyle to POM with Google settings advice ( #4047 )
...
* Add Checkstyle to POM with Google settings advice
* Add note re. changes for swagger-codegen
* Use Checkstyle 6.19 - v7 removed JDK 7 runtime support
* Add a link to the original config
2016-11-01 17:34:28 +08:00
Maciej
c2780abd70
fixing issue#4037 - ts ng2 response type is always json ( #4060 )
...
* fixing issue#4037 - default response is always json
* updated documentation for new method
* updated comment for new method
2016-11-01 17:02:40 +08:00
wing328
b3f3edda33
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-11-01 16:59:23 +08:00
wing328
c908425200
Merge branch 'schnabel-issue-4051'
2016-11-01 16:59:01 +08:00
wing328
66ebdf3e3d
Merge branch 'issue-4051' of https://github.com/schnabel/swagger-codegen into schnabel-issue-4051
2016-11-01 16:58:26 +08:00
wing328
e230ef9f50
Merge pull request #4072 from cbornet/spring_response_wrappers
...
[spring] add an option to choose the response wrapper type
2016-11-01 16:41:07 +08:00
scannerscan
a5eff7e571
Jdk6 jersey2 support ( #4074 )
...
* hashCode and equals support for jdk6 for jersey2
* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?
* fix for the build.
* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?
* fix for the build.
* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/pom.mustache
* add msf4j author
* [Java] Fix outputFolder in java-related server stub generators (#4076 )
* fix outputFolder in java-related server stub generator
* fix style in JavaJAXRSCXFCDIServerCodegen
* hashCode and equals support for jdk6 for jersey2
* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?
* fix for the build.
* supportJava6 moved to the base abstract class to support server side code generation,
supportJava6 flag was added to the server side model classes generators,
licenseInfo ttemplate was added to JavaJaxRS section,
javaJaxRS templates jdk6 suport was added,
shouldOverride method was commented out to allow server classes to be overriden - what if new methods or signatures changes?
* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/pom.mustache
* Merge remote-tracking branch 'remotes/origin/master' into jdk6-jersey2-support
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractJavaCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/pom.mustache
2016-11-01 16:36:56 +08:00
wing328
a23aacc21e
Merge pull request #4062 from AndrewRademacher/fix-haskell-servant-cas
...
Fixed toUpper and toLower usage in haskell-servant gen.
2016-11-01 16:30:59 +08:00
Robert Biehl
6963bf8748
[Swift] Swift3 inheritance support ( #4052 )
...
* Swift3 inheritance support
* Mode inheritance support
* Handle 204 No Content without crashing
* Added some new reserved words for Swift (Error, URL)
* Update swift3 pet store example
* PR feedback fixes
* removed unnecessary newline from Models.swift
* removed unnecessary code comments
* ~~public~~ open
* Typo
* Fix review feedback
* fixed comment
2016-11-01 16:25:43 +08:00
Denis Bazhenov
7e7ca01aa4
Newline escaping disabled for HTML and HTML2 generators ( #4099 )
...
* Newline escaping disabled
Newline escaping disabled for HTML and HTML2 generators. Escaping
failing Markdown processors to work correctly on descriptions
* HTML examples updated
2016-11-01 16:21:30 +08:00
Tony Tam
950a3eb2e8
Update pom.xml
2016-10-31 19:14:32 -07:00
Tony Tam
31b32a8dc3
Merge pull request #4094 from swagger-api/issue-4090
...
update parser, core versions
2016-10-27 13:56:34 -07:00
Tony Tam
2651e83c0b
added trim
2016-10-27 12:59:57 -07:00
Tony Tam
92af2cf821
updated versions
2016-10-27 12:59:51 -07:00
wing328
4a1ef9dec9
[Java] Fix outputFolder in java-related server stub generators ( #4076 )
...
* fix outputFolder in java-related server stub generator
* fix style in JavaJAXRSCXFCDIServerCodegen
2016-10-26 16:31:47 +08:00
Albert Pastrana
7fc17a26c7
[TypeScript Fetch] Fixes typo in FetchParamCreactor ( #4075 )
...
There was a typo, just changing `FetchParamCreactor` to `FetchParamCreator`
2016-10-26 15:52:24 +08:00
wing328
07c6fe9d0d
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-26 15:42:59 +08:00
wing328
e8063b0b5e
add msf4j author
2016-10-26 14:41:44 +08:00
wing328
1c2a298ca0
Merge branch 'sanjeewa-malalgoda-msf4j'
2016-10-26 12:02:38 +08:00
wing328
983aec6250
add sample for java-msf4
2016-10-26 11:31:43 +08:00
wing328
6c439168a4
Merge branch 'msf4j' of https://github.com/sanjeewa-malalgoda/swagger-codegen into sanjeewa-malalgoda-msf4j
2016-10-26 10:33:00 +08:00
schnabel
32edf04b8e
fixed unwanted remove
2016-10-25 20:37:55 +02:00
schnabel
f57e7c0933
bugfix: issue-4051
2016-10-25 20:09:24 +02:00
cbornet
21ec2bc866
[spring] add an option to choose the response wrapper type
...
Also generate the spring-cloud sample with a HystrixCommand wrapper
2016-10-25 15:40:51 +02:00
wing328
14bca6cd89
[Java] BeanValidation + JAXRS CXF server generator ( #4068 )
...
* add pom-file to cxf including cxf-client #2017
* adapt pom sourceFolder in pom.mustache to gen/java #2017
* add test templates for CXF #2017
* optimize mustache template structure, remove tabs #3280 #2549
* refined dependency to swagger-jaxrs #2017
* refined annotations and line breaks #2549
* fix tabs instead of spaces...
* move annotations from getter to field for server model
* cleanup tabs
* add example for gzipping #2017
* add complete WAR to cxf-server #2017
* add readme + rework pom #2017
* add cli switch for beanvalidation #2549
* move beanvalidation into separate subtemplate and reuse for cxf
* add beanValidation java template
* corrected path to mustache file
* fix AbstractOptionsTest, add default false for USE_BEANVALIDATION
* add pom-file to cxf including cxf-client #2017
* adapt pom sourceFolder in pom.mustache to gen/java #2017
* add test templates for CXF #2017
* optimize mustache template structure, remove tabs #3280 #2549
* refined dependency to swagger-jaxrs #2017
* refined annotations and line breaks #2549
* fix tabs instead of spaces...
* move annotations from getter to field for server model
* cleanup tabs
* add example for gzipping #2017
* add complete WAR to cxf-server #2017
* add readme + rework pom #2017
* add cli switch for beanvalidation #2549
* move beanvalidation into separate subtemplate and reuse for cxf
* add beanValidation java template
* corrected path to mustache file
* fix AbstractOptionsTest, add default false for USE_BEANVALIDATION
* add beanvalidation to okhttp-gson library #2549
* cleanup api.mustache for cxf #3281
* temporary fix for invalid BeanValidation-pattern with / #2549
* temporary fix for invalid BeanValidation-pattern with / #2549
* remove jaxrs-annotations from implementation classes #3281
* add configuration to generate spring web application #4003
* clean up unnecessary @Path annotation (part of method level!)
* add support for minItems/maxItems #2549
* add support for BeanValidation for query params #2549
* add imports for bean validation #2549
* add switches for various cxf server features #2017
* fix tests #2549 #2017
* re-create bin folder
* cleanup
* cleanup
* Revert "temporary solution for pattern - move to AbstractJavaCodegen #2549 "
This reverts commit 82df5e657f31303bcb7d38f1dc013183d3509da2, reversing
changes made to 65e87f23a6804a0d5c0926c916a9cd6866e7fee0.
Conflicts:
bin/akka-scala-petstore.sh
bin/android-petstore-all.sh
bin/android-petstore-httpclient.sh
bin/android-petstore-volley.sh
bin/android-petstore.sh
bin/aspnet5-petstore-server.sh
bin/clojure-petstore.sh
bin/cpprest-petstore.sh
bin/csharp-dotnet2-petstore.sh
bin/csharp-petstore-all.sh
bin/csharp-petstore.sh
bin/csharp-property-changed-petstore.sh
bin/cwiki-petstore.sh
bin/dart-petstore.sh
bin/dynamic-html.sh
bin/erlang-petstore-server.sh
bin/flash-petstore.sh
bin/flaskConnexion-python2.sh
bin/flaskConnexion.sh
bin/go-petstore-server.sh
bin/go-petstore.sh
bin/groovy-petstore.sh
bin/haskell-servant-petstore.sh
bin/html-petstore.sh
bin/html2-petstore.sh
bin/java-inflector-petstore-server.sh
bin/java-petstore-all.sh
bin/java-petstore-feign.sh
bin/java-petstore-jersey1.sh
bin/java-petstore-jersey2.sh
bin/java-petstore-okhttp-gson-parcelable.sh
bin/java-petstore-okhttp-gson.sh
bin/java-petstore-retrofit.sh
bin/java-petstore-retrofit2.sh
bin/java-petstore-retrofit2rx.sh
bin/java-undertow-petstore-server.sh
bin/java8-petstore-jersey2.sh
bin/javascript-closure-angular.sh
bin/javascript-petstore-all.sh
bin/javascript-petstore.sh
bin/javascript-promise-petstore.sh
bin/jaxrs-cxf-cdi-petstore-server.sh
bin/jaxrs-cxf-petstore-server.sh
bin/jaxrs-jersey1-petstore-server.sh
bin/jaxrs-petstore-server.sh
bin/jaxrs-resteasy-joda-petstore-server.json
bin/jaxrs-resteasy-joda-petstore-server.sh
bin/jaxrs-resteasy-petstore-server.sh
bin/jaxrs-spec-petstore-server.sh
bin/jmeter-petstore.sh
bin/lumen-petstore-server.sh
bin/nancyfx-petstore-server.sh
bin/nodejs-petstore-server.sh
bin/objc-petstore-all.sh
bin/objc-petstore-coredata.sh
bin/objc-petstore.sh
bin/perl-petstore.sh
bin/php-petstore.sh
bin/python-petstore.sh
bin/qt5-petstore.sh
bin/rails5-petstore-server.sh
bin/ruby-petstore.sh
bin/run-all-petstore
bin/scala-async-petstore.sh
bin/scala-petstore.sh
bin/scalatra-petstore-server.sh
bin/security/csharp-petstore.sh
bin/security/go-petstore.sh
bin/security/java-petstore-okhttp-gson.sh
bin/security/javascript-closure-angular.sh
bin/security/javascript-petstore.sh
bin/security/lumen-petstore-server.sh
bin/security/objc-petstore.sh
bin/security/perl-petstore.sh
bin/security/php-petstore.sh
bin/security/python-petstore.sh
bin/security/qt5cpp-petstore.sh
bin/security/ruby-petstore.sh
bin/security/run-all-petstore-security-test
bin/security/scala-petstore.sh
bin/security/silex-petstore-server.sh
bin/security/slim-petstore-server.sh
bin/security/swift-petstore.sh
bin/security/typescript-angular.sh
bin/security/typescript-angular2.sh
bin/security/typescript-fetch.sh
bin/security/typescript-node.sh
bin/silex-petstore-server.sh
bin/sinatra-petstore-server.sh
bin/slim-petstore-server.sh
bin/spring-all-pestore.sh
bin/spring-cloud-feign-petstore.sh
bin/spring-mvc-petstore-j8-async-server.sh
bin/spring-mvc-petstore-server.sh
bin/spring-stubs.sh
bin/springboot-petstore-server.sh
bin/swift-petstore-all.sh
bin/swift-petstore-promisekit.sh
bin/swift-petstore-rxswift.sh
bin/swift-petstore.sh
bin/tizen-petstore.sh
bin/typescript-angular-petstore.sh
bin/typescript-angular2-petstore-all.sh
bin/typescript-angular2-petstore-with-npm.sh
bin/typescript-angular2-petstore.sh
bin/typescript-fetch-petstore-all.sh
bin/typescript-fetch-petstore-target-es6.sh
bin/typescript-fetch-petstore-with-npm-version.sh
bin/typescript-fetch-petstore.sh
bin/typescript-node-petstore-all.sh
bin/typescript-node-petstore-with-npm.sh
bin/typescript-node-petstore.sh
bin/typescript-petstore-npm.json
bin/windows/akka-scala-petstore.bat
bin/windows/android-petstore.bat
bin/windows/aspnet5-petstore-server.bat
bin/windows/async-scala-petstore.bat
bin/windows/clojure-petstore.bat
bin/windows/cpprest-petstore.bat
bin/windows/csharp-petstore.bat
bin/windows/dart-petstore.bat
bin/windows/dynamic-html-petstore.bat
bin/windows/flash-petstore.bat
bin/windows/go-petstore.bat
bin/windows/html-petstore.bat
bin/windows/java-petstore-okhttp-gson.bat
bin/windows/java-petstore.bat
bin/windows/javascript-petstore.bat
bin/windows/objc-petstore.bat
bin/windows/perl-petstore.bat
bin/windows/php-petstore.bat
bin/windows/python-petstore.bat
bin/windows/qt5cpp-petstore.bat
bin/windows/rails5-petstore-server.bat
bin/windows/ruby-petstore.bat
bin/windows/scala-petstore.bat
bin/windows/spring-mvc-petstore-j8-async-server.bat
bin/windows/spring-mvc-petstore-server.bat
bin/windows/springboot-petstore-server.bat
bin/windows/swift-petstore.bat
bin/windows/tizen-petstore.bat
bin/windows/typescript-angular.bat
bin/windows/typescript-angular2.bat
bin/windows/typescript-fetch.bat
bin/windows/typescript-node-with-npm.bat
bin/windows/typescript-node.bat
* Revert "cleanup"
This reverts commit c752ba85d8a795ebcaf902a0eb06ab0c5755d128.
* Revert "re-create bin folder"
This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.
Conflicts:
bin/windows/spring-mvc-petstore-j8-async-server.bat
bin/windows/spring-mvc-petstore-server.bat
bin/windows/springboot-petstore-server.bat
* Revert "re-create bin folder"
This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.
Conflicts:
bin/windows/spring-mvc-petstore-j8-async-server.bat
bin/windows/spring-mvc-petstore-server.bat
bin/windows/springboot-petstore-server.bat
* re-create bin from master
* Revert "re-create bin from master"
This reverts commit d4b5c9aac54d62dfb3790c1bf2829472be2ec8fd.
* Revert "Revert "re-create bin folder""
This reverts commit 4369b35dbe9d21f8a93e7632fd92a9a760256db5.
* Revert "re-create bin folder"
This reverts commit 8a6d41314784a2ae5ce29ae54d7db1ebec418751.
* Revert "temporary solution for pattern - move to AbstractJavaCodegen #2549 "
This reverts commit 82df5e657f31303bcb7d38f1dc013183d3509da2, reversing
changes made to 65e87f23a6804a0d5c0926c916a9cd6866e7fee0.
* correct @Path to re-activate Swagger support #
* change sourceFolder to default
* re-activate unittest generator + support gzip switch #2017
* add switch to support Spring Boot + integration tests
* add cxf client generator, rename cxf server generator #2017
* add interfaces for language feature support #4003
* add comments #2017
* correct reference to context.xml.mustache #4003
* use dynamic sourceFolder path #2017
* replace tabs with spaces #4003
* use hard-coded sourceFolder #4003
* rename language for backwards compatibility
* cleanup todo comment #4003
* move convertPropertyToBooleanAndWriteBack to DefaultCodegen #4003
* change reference to beanValidation.mustache to local copy for cxf
* cleanup client-side beanvalidation (currently not working in CXF)
* add support for tags #4003
* fix instantiiation of method parameters
* move commonValidationFeature from bus to endpoint #4003
2016-10-25 18:15:15 +08:00
wing328
d8d5b57262
Merge branch 'mauricedb-throw-error-not-string'
2016-10-25 16:52:50 +08:00
wing328
aa46aca7cf
update JS petstore samples
2016-10-25 16:52:32 +08:00
wing328
37bb66c436
Merge branch 'throw-error-not-string' of https://github.com/mauricedb/swagger-codegen into mauricedb-throw-error-not-string
2016-10-25 16:47:13 +08:00
AndrewRademacher
40ec83a091
Fixed toUpper and toLower usage in haskell-servant gen.
2016-10-24 16:12:10 -05:00
Simon Morris
5855b479aa
nancyfx basePath => modulePath toggle ( #4053 )
...
* fix NancyFX string parser
parser needs to access the Value parameter to enable the direct cast at line 102 when handling string parameters
* Updated nancyfx sample
* Added switch to config to toggle use of yaml base path as module paths
2016-10-24 23:07:16 +08:00
walthema
1e975637c9
Fixed enum marshalling & fromValue()
...
Added toString() to enums
2016-10-24 15:07:46 +02:00
sanjeewa-malalgoda
80bb564092
Introducing swagger MSF4J support for swagger code generator
2016-10-24 12:00:36 +05:30
Maurice de Beijer
75d04d8be7
Throw an Error object instead of a string
2016-10-23 17:15:15 +02:00
wing328
af16601654
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-22 23:08:36 +08:00
wing328
92c474b2c2
Merge pull request #4050 from mbohlool/issue2657
...
Fix sanitizeTag to retain numbers and underscore in tag names
2016-10-22 22:59:09 +08:00
Mathieu MARACHE
8bee0de4e9
[Qt5/C++] Arrays of primitive types fix ( #4046 )
...
* Corrects issue #3410 when trying to create Arrays of primitive types
* Use c++11 nullptr keyword and various indentation issues resolved
* ran petstore on new mustaches
2016-10-22 22:58:39 +08:00
Simon Morris
27be0ed197
fix NancyFX string parser ( #4048 )
...
* fix NancyFX string parser
parser needs to access the Value parameter to enable the direct cast at line 102 when handling string parameters
* Updated nancyfx sample
2016-10-22 22:53:56 +08:00
mbohlool
aeadd7678b
Fix sanitizeTag to retain numbers and underscore in tag names
2016-10-21 14:00:57 -07:00
wing328
4f9ee0f93d
Merge pull request #4035 from wing328/update_undertow_readme
...
[Java] Update undertow readme
2016-10-20 22:22:53 +08:00
wing328
a839a6803f
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-20 18:40:19 +08:00
wing328
9036dfdb3a
[Typscript][Fetch] add configuration to support authentication ( #4008 )
...
* add configuration to typescript fetch
* fix issues reported by the CI
* fix header parameters in ts fetch client
* add new configuration file for ts fetch
* skip if check for configuration in ts fetch
* Fix `this.configuration` issue in paramsCreator
* update ts fetch samples
* Fix typescript fetch tests to work with Configuration
* Add dictionary to store apikeys (#8 )
* Add dictionary to store apikeys
* Type apikey with expected params rather than Dictionary - typescript-fetch
* Update test samples to new typescript-fetch api
* Fix tests for typesript-fetch api
* update typescript sample using petstore.yaml
2016-10-20 18:38:32 +08:00
wing328
d6197faca3
Merge pull request #4041 from wing328/jersey2_java6
...
[Java][Jersey2] add CI tests for Java client (jersey2, java6)
2016-10-20 11:28:42 +08:00
wing328
d1eca76974
add test for java6 jersey2 client
2016-10-20 11:12:31 +08:00
scannerscan
aeb33e4b6e
hashCode and equals support for jdk6 for jersey2 ( #4039 )
2016-10-20 10:20:12 +08:00
raj k
23fee386f2
Vendor Mime-type support in retrofit2
2016-10-19 16:19:41 -07:00
Alec Hill
41a7aaffcc
Support passing custom RequestInit options in typescript-fetch client, to enable fetch API specific options (eg including credentials, enabling CORS etc)
2016-10-19 18:03:58 +02:00
Ragnis Armus
c73e499c5d
[Qt5 C++] Actually use the model name prefix in the Qt5 generator ( #3981 )
...
* Actually use the model name prefix
* Update the petstore sample
2016-10-19 23:08:14 +08:00
wing328
f70569987a
Merge branch 'Ragnis-fix-model-package'
2016-10-19 16:43:53 +08:00
wing328
bbb0cdc8c3
update gitignore to include PetStore.pro.user
2016-10-19 16:43:11 +08:00
wing328
b688a7f443
Merge branch 'fix-model-package' of https://github.com/Ragnis/swagger-codegen into Ragnis-fix-model-package
2016-10-19 16:38:13 +08:00
wing328
e458b5c13a
Merge branch 'Ragnis-fix-api-paths'
2016-10-19 16:35:22 +08:00
wing328
7f36dd7852
increase timeout value for qt5 petstore test
2016-10-19 16:34:26 +08:00
wing328
5c129b2869
Merge branch 'fix-api-paths' of https://github.com/Ragnis/swagger-codegen into Ragnis-fix-api-paths
2016-10-19 16:26:17 +08:00
wing328
91923311e0
update undertow readme
2016-10-19 16:23:18 +08:00
wing328
c7efb7000c
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-19 15:45:15 +08:00
k1w1m8
60a52ee729
Java6 support for jersey2 ( #4033 )
2016-10-19 10:45:14 +08:00
wing328
c3a12cb3f9
Merge pull request #4027 from diega/patch-1
...
[java] Allow setting test folder
2016-10-18 23:22:09 +08:00
Diego López León
c26833fd64
[java] Allow setting test folder
...
To keep consistency between `sourceFolder` and `testFolder` access
2016-10-18 09:28:30 -03:00
wing328
f3456007c6
Merge pull request #4024 from wing328/fix_3846
...
[Ruby][Sinatra] Fix reserved word handling in model file name
2016-10-18 19:47:23 +08:00
wing328
b50b33e891
fix reserved word handling in model name (sinatra)
2016-10-18 18:51:08 +08:00
wing328
5e7fa144bf
Merge pull request #4023 from wing328/fix_3846
...
[Sinatra][Dart] better handling of reserved words for sinatra, dart generators
2016-10-18 18:22:36 +08:00
wing328
702344ed75
better handling of reserved words for sintatra, dart
2016-10-18 17:58:19 +08:00
wing328
52ffc7869e
improvements based on #3568 ( #4021 )
2016-10-18 16:32:35 +08:00
Jim Schubert
6a7b9240a2
[csharp] add missing anchor tags in readme ( #4019 )
2016-10-18 10:15:03 +08:00
Martin
727038a186
Issue 3651 ( #4014 )
...
* added method summary under the method name
* added batch file for html2 generation on windows
* regenerated html2 example
* changed the html2 windows batch to use yaml instead of json and regenerated sample
* fixed encoding issues
2016-10-17 22:48:12 +08:00
mn288
66215f7a28
Added company ( #4015 )
...
Added carpolo as a project using Swagger
2016-10-17 19:58:10 +08:00
Jim Schubert
689da8f915
[csharp] Fix apiPackage,modelPackage,excludeTests ( #4010 )
...
* [csharp] Fix apiPackage,modelPackage,excludeTests
The apiPackage, modelPackage, and excludeTests values were not being
populated correctly from external configs (passing -c filename to
generator).
This commit allows those properties to work correctly with the Csharp
client generator. Previously the Api and Model namespaces were hard
coded after additionalProperties for these were evaluated.
The files which generate test files for models and api classes
didn't honor the excludeTests option.
* [csharp] Regenerate sample
* [csharp] Fix modelPackage in README template
2016-10-17 16:26:28 +08:00
wing328
12bcb2dd15
Merge pull request #4011 from jimschubert/aspnet5-rename
...
[aspnetcore] Deprecating aspnet5 for aspnetcore
2016-10-17 16:17:30 +08:00
wing328
f5ead2ecb2
Merge pull request #4013 from jaz-ah/jaz/fixswift3
...
fix some swift3 references
2016-10-17 15:38:18 +08:00
Joseph Zuromski
3e8e5e2091
fix some swift3 references
2016-10-16 22:49:51 -07:00
wing328
3362578595
Merge pull request #4009 from wing328/change_source_folder
...
[Maven] Correct source folder for generated files
2016-10-17 09:48:31 +08:00
Jim Schubert
c70a2a7481
[aspnetcore] Deprecating aspnet5 for aspnetcore
...
This moves previous aspnet5 functionality to aspnetcore, aspnet5 now
derives from the aspnetcore generator and logs a warning that it's
deprecated.
This will help resolve any confusion because ASP.NET 5 is terminology
referring to the project of around a year ago. ASP.NET Core 1.0 is the
new name for the technology, and further enhancements should target .NET
Core 1.0 rather than any old vNext or preview stuff.
2016-10-16 21:22:34 -04:00
wing328
1e57ba96d7
Correct source folder for generated files
2016-10-17 00:48:14 +08:00
wing328
6ac9f0f351
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-16 16:04:17 +08:00
wing328
2075204950
Merge pull request #4005 from wing328/ts_fix_header
...
[Typescript][Fetch] fix header parameters in TS Fetch API client
2016-10-16 15:43:25 +08:00
wing328
5719307799
Merge pull request #4004 from cbornet/spring_templates
...
Fix issues in spring templates
2016-10-16 15:33:38 +08:00
wing328
5a5d3fd5e5
fix header parameter in ts fetch
2016-10-16 15:27:11 +08:00
Ragnis Armus
dee2dd8d36
[Qt5 C++] Replace illegal characters in param names for Qt5 generator ( #3978 )
...
* Fix illegal characters in param names
* Re-generate the petstore sample
2016-10-15 18:23:36 +08:00
wing328
7b092122d6
fix typo swift 3
2016-10-15 18:18:10 +08:00
wing328
80fbe2dc78
add swift3 template owner
2016-10-15 18:17:07 +08:00
wing328
20db774418
Merge pull request #4002 from hexelon/swift3-generator-master
...
[Swift] Adding Swift3 generator
2016-10-15 18:13:01 +08:00
wing328
ce1cf4606a
[Java][jersey1] add Java6 support to Java (jersey1) API client ( #3919 )
...
* add java6 support to java jersey1
* properly handle boolean value in mustache tag
* add test for supportJava6 option
2016-10-15 17:11:34 +08:00
cbornet
12a0fd6471
fix issues in spring templates
...
Wrong indentation and extra lines in api templates
Java8 default methods are used if dateLibrary is java8
Fix #3408
2016-10-14 17:57:20 +02:00
Max Stoliar
0838523a35
[Swift] Adding Swift3 generator
...
* This address #3788
* Contains all changes made in #3823
* Also contains many changes made by @ewanmellor, thanks!
2016-10-14 18:32:47 +03:00
wing328
5de338d781
[Python] fix tags with underscore for python ( #3995 )
...
* fix tag with underscore for python
* remove log
2016-10-14 17:49:43 +08:00
wing328
2dcddb79bc
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-14 17:01:05 +08:00
wing328
03ed192b98
[Android] fix URL encoding for Android API client ( #3992 )
...
* fix url encoding for android
* add exception handling for url encoding in android
2016-10-14 11:12:37 +08:00
Brian Shamblen
6199c5d1c3
Updates to html2 templates to use security headers in curl examples ( #3987 )
...
* Fixes #3974
* Update petstore example for html2
2016-10-14 09:22:08 +08:00
wing328
7bbe3dcb53
Merge pull request #3982 from wing328/ruby_check_required_attr
...
[Ruby] fix required property check in Ruby models
2016-10-13 23:25:58 +08:00
feda12
7df89e6ff4
Added OrderCloud.io to list of companies using swagger-codegen ( #3971 )
...
* Added OrderCloud.io to list of companies using swagger-codegen
* Fixed alphabetical order for OrderCloud.io
2016-10-13 22:43:53 +08:00
Enrico Hofmann
98aaa1f163
Adjust Date ISO Dateformat for Query Parameters
2016-10-13 15:34:03 +02:00
wing328
2780be1117
Merge pull request #3985 from xpavlic4/patch-1
...
typo relesae -> release
2016-10-13 20:54:50 +08:00
Radim
e101d22bc3
typo relesae -> release
2016-10-13 13:46:37 +02:00
wing328
5b58afff1c
Merge pull request #3984 from wing328/fix_query_parameter_tag
...
Fix hasHeaderParams mustache tag
2016-10-13 19:26:30 +08:00
Ragnis Armus
273f4adf5e
Re-generate the petstore sample
2016-10-13 13:28:00 +03:00
Ragnis Armus
dbe286c611
Fix setting of model package
2016-10-13 13:27:59 +03:00
wing328
4b0d58abfd
fix hasHeaderParams tag
2016-10-13 18:15:04 +08:00
Ragnis Armus
f61d49bc39
Re-generate the petstore sample
2016-10-13 11:48:18 +03:00
wing328
47c387470c
fix required prop check for ruby client
2016-10-13 16:38:39 +08:00
wing328
f63cae8aae
Merge pull request #3977 from wing328/python_fix_doc
...
[Python] fix missing () in python doc
2016-10-13 16:27:42 +08:00
Ragnis Armus
6fa7b0fa05
Fix API file paths
2016-10-13 11:16:13 +03:00
wing328
d0f3cd642d
fix missing () in python doc
2016-10-13 15:28:11 +08:00
Hamed Ramezanian
34f1e36146
Sanitize tuples properly ( #3949 )
...
* Sanitize tuples properly
In Python, Tuples are fixed size in nature whereas lists are dynamic. So
they should be sanitize as same as lists.
Failure case here is when you have a query or post parameter as
Datetime.
* Update the Petstore sample
* Skip file sanitization
* Return tuple instead of list
* Sanitize all tuples, no exceptions
2016-10-13 14:41:40 +08:00
wing328
b3caf1d0c0
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-12 17:54:16 +08:00
wing328
a70321e47f
Merge pull request #3893 from 0xced/objc-no-custom-security-policy
...
[objc] Remove the custom security policy
2016-10-12 17:53:24 +08:00
weiyang
a76d69513c
[html]Group api index by operations.baseName ( #3953 )
...
* [html]Group api index by operations.baseName
Signed-off-by: weiyang <weiyang.ones@gmail.com >
* [html][samples]Group api index by operations.baseName
Signed-off-by: weiyang <weiyang.ones@gmail.com >
2016-10-12 17:14:36 +08:00
wing328
3fe45622e7
Merge pull request #3968 from swagger-api/revert-3898-feature/php-improved-code-quality
...
Revert "[WIP] Improve PHP client emitted code quality"
2016-10-12 16:08:22 +08:00
wing328
0efa5cab35
Revert "[WIP] Improve PHP client emitted code quality"
2016-10-12 16:07:37 +08:00
wing328
59502bb92b
Merge pull request #3963 from olivervidovic/issue-890
...
issue-890 correct fix for deprecated Jersey method
2016-10-12 16:05:09 +08:00
wing328
acfd2578dc
Merge pull request #3965 from ButterflyNetwork/swift-enum
...
[Swift] Add / as enum separator
2016-10-12 15:59:15 +08:00
wing328
bd696eb0c1
Merge pull request #3898 from dkarlovi/feature/php-improved-code-quality
...
[WIP] Improve PHP client emitted code quality
2016-10-12 15:56:30 +08:00
wing328
12ccdcddcd
Merge branch 'punksta-master'
2016-10-12 15:49:30 +08:00
wing328
47d3c3a767
update retrofit1,2 samples
2016-10-12 15:48:34 +08:00
wing328
a276c51cd8
Merge branch 'master' of https://github.com/punksta/swagger-codegen into punksta-master
2016-10-12 15:46:22 +08:00
Nick Maynard
823ce72e2e
jaxrs-cxf-cdi POM template ( #3958 )
...
* Don't refer to missing class in Impl classes
* Add POM for jaxrs-cxf-cdi
* Correct jaxrs-cxf-cdi artifactId
* Update samples for jaxrs-cxf-cdi
* Regenerate jaxrs-cxf-cdi samples
2016-10-12 15:43:44 +08:00
Jason Gavris
0a2d62a8ba
[Swift] Add / as enum separator
2016-10-11 13:13:59 -04:00
Oliver Vidovic
da6e829c8e
issue-890 correct fix for deprecated Jersey method
...
additionally
- fixed EnumValueTest to the directory structure based on the declared package
- regenerated samples/client/java/jersey1
2016-10-11 11:43:54 -04:00
wing328
a73ad79b9b
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-11 11:52:26 +08:00
ClayAtWork
504f8f1f21
2208 fix Objc Mapping Generation ( #3894 )
...
* Change test to test valid compileable code. This is not a Objective-C Generic, but a protocol. This is what the JSONModel mapping library expects
* Update implementation to properly render NSDictionaries that will work with JSONModel
2016-10-11 11:45:59 +08:00
wing328
d48ce8b503
Merge branch 'cbornet-resteasy_dates'
2016-10-11 00:51:50 +08:00
wing328
d921a2b0c5
Merge branch 'resteasy_dates' of https://github.com/cbornet/swagger-codegen into cbornet-resteasy_dates
2016-10-11 00:51:34 +08:00
wing328
ba3f2eafd5
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-10-11 00:48:08 +08:00
wing328
11d0c87c8c
Merge branch 'cbornet-jersey_dates'
2016-10-11 00:47:51 +08:00
wing328
671f73b97f
Merge branch 'jersey_dates' of https://github.com/cbornet/swagger-codegen into cbornet-jersey_dates
2016-10-11 00:47:02 +08:00
Christophe Bornet
6f2c139ff8
[Spring] Format datetime in rfc3339 ( #3777 )
...
* [spring-boot] format datetime in rfc3339
See #3727
* [spring-mvc] format datetime in rfc3339
2016-10-11 00:43:28 +08:00
Christophe Bornet
2680995825
[Java/Jackson] use a jdk6 compatible DateFormat for java.util.Date ( #3768 )
...
* [feign] use a jdk6 compatible serializer for java.util.Date
See #3727
Fix #3753
* [jersey] use a jdk6 compatible DateFormat for java.util.Date
2016-10-11 00:42:52 +08:00
wing328
3d0800399f
Merge branch 'cbornet-gson_date' into 2.3.0
2016-10-11 00:36:25 +08:00
wing328
21dec4dbbc
Merge branch 'gson_date' of https://github.com/cbornet/swagger-codegen into cbornet-gson_date
2016-10-11 00:32:20 +08:00
wing328
522e27b752
add template owner jax-rs cxf cdi
2016-10-10 21:10:52 +08:00
Stas Shakirov
26faf6cf4e
remove newline char in *.mustache; added generated code
2016-10-10 14:42:08 +03:00
Nick Maynard
dc2b8c29e2
Add a new JAX-RS server generator - jaxrs-cxf-cdi ( #3940 )
...
* Generate a JAX-RS server that assumes an Apache CXF framework on a Java EE server supporting CDI
* Samples for jaxrs-cxf-cdi
* Don't refer to missing class NotFoundException
* Update samples without missing NotFoundException reference
2016-10-10 17:18:27 +08:00
Stas Shakirov
1006b0ca0a
added package paths for retrofit class names
2016-10-10 09:57:28 +03:00
wing328
0712ebc33d
Merge pull request #3954 from jimschubert/aspnet/3680
...
[aspnet] Fix .sln/.xproj guids
2016-10-10 09:17:49 +08:00
Jim Schubert
a94a27307d
[aspnet] Fix .sln/.xproj guids
...
The AspNet5 generator was originally written to support project.json.
The Project.xproj was implemented without a valid project guid or root
namespace. During the transition period from project.json to
Project.xproj, VS2015 would fallback to project.json. Newer versions of
VS2015 don't seem to do this any longer.
This commit defines the project's guid correctly, and sets the project's
root namespace.
See: #3680
2016-10-09 08:31:35 -04:00
wing328
c1a6bbb86a
[Python][Flask] fix python2 support in Flask ( #3952 )
...
* flask python2 petstore sample
* fix python2 support in flask
2016-10-09 14:06:55 +08:00
wing328
666c885f72
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2016-10-09 12:26:46 +08:00
wing328
59ec339679
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-09 12:26:29 +08:00
Andreas Franzén
d21613c6ab
Bugfix/3929 do not set multipart ( #3932 )
...
* Do not set Content-Type to multipart/form-data
It causes superagent to not add the boundary in the Content-Type
* Run shell-scripts
2016-10-08 12:36:56 +08:00
wing328
04070b32c1
Merge pull request #3944 from wing328/python_fix_required_check
...
[Python] fix python required property check and validation for optional properties
2016-10-07 17:25:51 +08:00
wing328
b2f6dffb83
Merge pull request #3945 from wing328/swift-date
...
[Swift] Use ISOFullDate for 'date' format
2016-10-07 17:08:14 +08:00
wing328
b09f4b66ff
remove dateOfBirth from petstore.json
2016-10-07 16:48:01 +08:00
Jason Gavris
f639a312e8
[Swift] Use ISOFullDate for date format
2016-10-07 16:46:16 +08:00
wing328
65f925f45c
fix python required property check and validation for optional properties
2016-10-07 15:50:57 +08:00
vishal khawarey
0ca60352e2
required tag is used in model, allows null values ( #3923 )
...
* required tag is used in model, allows null values
* updated petstore api for CI
* dont raise exception for 0 or false
2016-10-07 15:26:05 +08:00
wing328
7aaa837d82
Merge pull request #3941 from wing328/swfit_fix_num_enum
...
[Swift] support number value for enum
2016-10-07 11:27:55 +08:00
wing328
9f9875b246
Merge pull request #3942 from wing328/fix_dart_number
...
[Dart] fix number format for Dart's model
2016-10-07 11:26:46 +08:00
wing328
574349570a
fix number format for dart model
2016-10-07 00:47:05 +08:00
wing328
81a2b2c36f
support number enum for swift
2016-10-07 00:20:50 +08:00
sylvain-abadie
94cd2cb6a0
[Objc] Added support for lower case discriminator ( #3927 )
...
* [Objc] Added support for lower case discriminator
* Updated Objc petstore samples
* Fixed code style
2016-10-06 23:29:55 +08:00
wing328
24b1dc87c1
Merge pull request #3903 from alexandern/issue-3829
...
Issue#3829. Objective-C client code, discriminator generated in both …
2016-10-06 23:28:46 +08:00
wing328
cd6b5fec20
[Android][Volley] add serializeModel support to Android ( #3933 )
...
* add serializeModel support to Android
* add test for new android option
2016-10-06 17:35:33 +08:00
wing328
515fe33c2c
add more info about test with latest master
2016-10-06 15:16:04 +08:00
Jonathan Leitschuh
40610373f6
Update JavaJaxRS/resteasy/api.mustache to have swagger annotations ( #3924 )
...
* Update JavaJaxRS/resteasy/api.mustache to have swagger annotations
The annotations should now appear on generated resteasy API classes.
* Re-generate resteasy petstore sample
* Add swagger-annotations to rest-easy samples as a dependency
* Regenerat pom.xml and build.gradle files for resteasy
2016-10-06 13:18:50 +08:00
wing328
41772a11a8
Merge pull request #3928 from wing328/parcelable-models
...
[Java][okhttp-gson] Add Parcelable model support for Android
2016-10-06 00:31:59 +08:00
wing328
6ef0209dea
add back java okhttp petstore client
2016-10-05 22:55:01 +08:00
wing328
8db0ec8b73
fix pom duplicated id issue
2016-10-05 22:55:01 +08:00
wing328
c915f8ecdc
update pom to test java okhttp-gson parcelable models
2016-10-05 22:55:01 +08:00
wing328
8ce8082f7f
fix bug with parcelable
2016-10-05 22:54:17 +08:00
Griffin Schneider
0844496bad
[Java] Fix bug in generated code if parcelableModel and serializableModel are both true.
2016-10-05 22:53:05 +08:00
Griffin Schneider
1aeceead99
[Java] Make generated models Parcelable for okhttp-gson if the -DparcelableModel=true option is provided.
2016-10-05 22:53:05 +08:00
wing328
71b2d5c942
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-05 16:07:18 +08:00
wing328
ed4200f5c6
add http://onedata.org
2016-10-05 10:51:54 +08:00
wing328
677f5f913f
Merge pull request #3909 from apanzerj/apanzerj/fixupRails5Server
...
WIP: Fixup rails5 server
2016-10-05 01:16:47 +08:00
wing328
3ca9893013
add undertow
2016-10-04 11:18:10 +08:00
Adam Panzer
2aadbee8ed
validate(s)_presence_of
...
Migration should create pluralized table names
Change controller filenames
2016-10-03 14:47:01 -07:00
wing328
00cc060827
Merge pull request #3637 from cbornet/fix_multi_inheritance
...
[All] Fix some inheritance/composition issues and add allOf unit tests
2016-10-03 23:18:43 +08:00
Miguel García
e633073082
Add a new cli command to output version information (2nd attempt) #3892 ( #3899 )
...
* Properly git-ignore all nbactions.xml files.
* Add a command line action to print the program version (#3892 ).
I am using maven resource filtering capabilities so that an existing version.properties resource file
gets filtered upon build and populated with the project version tag. This resource is then read
at runtime as required.
* Using a different version tag when unreadable.
2016-10-03 17:14:54 +08:00
wing328
1840956320
Merge pull request #3913 from wing328/python_flask_no_tags
...
[Python][Flask] fix python flask controller issue without tag
2016-10-03 09:56:49 +08:00
wing328
4a74e788ec
fix python flask controller without tag (default_controller)
2016-10-03 09:32:20 +08:00
Jim Schubert
b7708a44bf
[aspnet5] Fix basePath application to operations ( #3911 )
...
* [aspnet5] Fix basePath application to operations
* [aspnet5] Regenerate sample
2016-10-02 21:56:19 +08:00
wing328
a6287bed1d
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2016-10-02 17:24:37 +08:00
wing328
62b6cf4609
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-10-02 17:24:17 +08:00
Bartek Kryza
40a1879797
Bugfix/issue 3723 ( #3726 )
...
* Extended request generation logic with support for serialized body content types other than Json
* Updated the Petstore Python client tests
* Fixed body content type identification for strings
2016-10-02 17:02:03 +08:00
Charles
d4f9a16cf6
Cgardens nested object regex ( #3879 )
...
* stop parsing key of object at first comma.
* update samples
2016-10-02 16:32:17 +08:00
Scott Richter
b2e2643fd2
[Cpprest] Fixing issue #3773 ( #3876 )
...
* Fixed errors with cpprest client generation when generating a client that uses arrays of primitive types (vector) and file responses (HttpContent).
* Updated the petstore sample using script.
* Removed debug code.
* Removed extra newline to match master.
* Fixed binary file handling in cpprest. Updated petstore samples.
* Update readme to add Cummins to list
* Cleaning up for pull. Removing unnecessary changes.
* Fixing petstore
* Fixing error in build.
* Fixed error in stream copy for binary data
* Replaced tab with 4 spaces in all modified files.
Replaced tab with 4 spaces in all modified files.
2016-09-30 10:31:24 +08:00
Alex Nolasco
07df71e959
Issue#3829. Objective-C client code, discriminator generated in both base and child.
2016-09-29 09:28:44 -04:00
wing328
3d231e4e4b
Merge pull request #3900 from wing328/escape_callback
...
[Java][Python] Escape callback parameter for java(okhttp) and python
2016-09-29 17:45:30 +08:00
wing328
f59c28d08a
escape callback parameter for java(okhttp) and python
2016-09-29 17:41:47 +08:00
Dalibor Karlović
19f1c7e095
feature(PHP QA) add initial PHP client template tweaks to improve emitted code quality
2016-09-29 08:48:24 +02:00
wing328
34525853b6
Merge pull request #3897 from wing328/fix_html_warnings
...
[Doc] Fix warning in HTML generators
2016-09-29 11:35:11 +08:00
wing328
a7ed1ad202
fix warning in html generator
2016-09-29 11:09:54 +08:00
Cédric Luthi
4325e5cca1
[objc] Remove the custom security policy
...
There are several issues with the security policy:
* The security policy is created with `AFSSLPinningModeNone` which means that even if pinned certificates are set (if config.sslCaCert is not nil), they will be ignored. Pinning will not work at all with this security policy.
* The configuration wrapper for the security policy is a bad idea.
* `verifySSL` controls both invalid certificates and domain validation. A vanilla `AFSecurityPolicy` clearly exposes both `allowInvalidCertificates` and `validatesDomainName`.
* `sslCaCert` only allows for a single pinned certificate. A vanilla `AFSecurityPolicy` clearly exposes a set of pinned certificates and makes it very convenient to load them with either `+[AFSecurityPolicy policyWithPinningMode:]` or `+[AFSecurityPolicy certificatesInBundle:]`
Since the security policy does not work at all and adds confusion, it is better to just remove it and let the user configure a security policy that fits their needs.
2016-09-29 00:23:22 +02:00
Dalibor Karlović
10d3dea89e
[PHP] fix PHPUnit invocation, add basic phpunit.xml.dist ( #3864 )
...
* feature(phpunit) fix PHPUnit invocation, add basic phpunit.xml.dist
* fix(phpunit) add proper paths relative to phpunit.xml.dist
2016-09-28 19:44:07 +08:00
wing328
ec25bd793f
[Java] Remove duplicated model description in Spring, JAX-RS models ( #3887 )
...
* fix duplicated description in spring model
* fix duplicated description in jaxrs models
* fix resteasy dependency
2016-09-28 19:34:38 +08:00
wing328
a090ce07e5
Merge pull request #3875 from arnested/mention-security-script-in-pull-request-template
...
Mention security script in pull request template
2016-09-28 18:48:32 +08:00
Dalibor Karlović
70fa2fb78e
[PHP] Better PSR2 compatibility ( #3863 )
...
* feature(php-cs-fixer) add php-cs-fixer support
* feature(php-cs-fixer) tweak Mustache templates to fit PSR2
* feature(php-cs-fixer) bin/php-petstore.sh output
2016-09-27 08:23:44 +08:00
wing328
0f25501746
Merge pull request #3873 from ButterflyNetwork/swift-thread-safe-manager
...
[Swift] Use thread safe manager dictionary
2016-09-27 07:48:20 +08:00
Arne Jørgensen
8b681df0e6
Mention security script in pull request template
2016-09-26 22:21:09 +02:00
Jason Gavris
9e54dce92f
[Swift] Use thread safe manager dictionary
2016-09-26 11:27:07 -04:00
wing328
fa12cd3787
Replace ^M with new line (\r) in mustache template ( #3865 )
...
* fix jaxrs line break
* fix java gradle bat line break
* fix scala gradle line break
* fix undertow crt line break
* fix spring line break
* fix undertow line break in pom
* rollback undertwo petstore to use petstore.yaml
2016-09-26 16:49:44 +08:00
wing328
1dc09f3619
Merge pull request #3868 from wing328/swift_fix_url_param
...
[Swfit] fix path parameter with baseName mustache tag
2016-09-26 11:33:29 +08:00
wing328
bee27aee9b
[swfit] fix url param with base name
2016-09-26 11:01:02 +08:00
Yuta HIGUCHI
2155b7b09e
[JaxRS]Show correct default value on CLI option description ( #3862 )
...
* Show correct default value on CLI option description
Fixes #3861
* Changes after ./bin/jaxrs-petstore-server.sh
2016-09-24 15:11:15 +08:00
David Biesack
fedb0cc352
add title, description to HTML output ( #3860 )
...
* add schema title, description to HTML output
* Include title, description in petstore sample (and HTML output)
2016-09-24 11:14:36 +08:00
wing328
b2344e10cb
Merge pull request #3857 from wing328/go_fix_trailing_comma
...
[Go] fix trailing comma in go api client
2016-09-24 01:16:32 +08:00
wing328
dce532e8c7
fix trailing comma in go api client
2016-09-24 00:57:01 +08:00
wing328
f47208a75b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-09-24 00:17:54 +08:00
wing328
84f03e67f5
Merge branch 'neilotoole-issue-3690-additional-fields'
2016-09-24 00:17:42 +08:00
wing328
110c22ea98
Merge branch 'issue-3690-additional-fields' of https://github.com/neilotoole/swagger-codegen into neilotoole-issue-3690-additional-fields
2016-09-24 00:17:18 +08:00
wing328
83916f23d0
Merge pull request #3855 from wing328/ts_fetch_basepath_fix
...
[Typescript] fix typescript-fetch base path by removing ending slash
2016-09-23 19:59:25 +08:00
wing328
d1c1c9d08f
fix typescript-fetch base path by removing ending slash
2016-09-23 19:12:40 +08:00
Kamil
9301db60e6
redundant quotation mark ( #3837 )
...
* Removed redundant quotation mark
This additional quotation mark is causing problems in out project and should be removed.
ngrep output:
```
Content-Disposition: form-data; name="file"; filename="file""
..Content-Transfer-Encoding: binary..Content-Type: image/jpg..Content-Length: 27855..........JFIF....
```
* updated petstore sample
* removed line break
2016-09-23 18:33:27 +08:00
Sergii Rustamov
fee23f2230
Support cpprest on Linux ( #3847 )
...
* Support cpprest on Linux
* Update petstore code
2016-09-23 18:32:33 +08:00
wing328
569997b073
Merge pull request #3853 from mattalexx/proposed
...
Fix custom generator execution example in README template
2016-09-23 13:27:38 +08:00
wing328
116bf3ff88
Merge pull request #3854 from jvosantos/patch-1
...
Update README.md
2016-09-23 09:17:18 +08:00
Vasco Santos
b8843ab466
Update README.md
...
Added a new company to the company list
2016-09-23 02:06:12 +01:00
Matt Alexander
12fb4becd7
Fix custom generator execution example
2016-09-22 14:36:08 -05:00
wing328
e3b891a924
Merge pull request #3850 from wing328/fix_swift_pod_file
...
[Swift] add default value to swift podspec
2016-09-22 19:26:24 +08:00
wing328
9f75f8d3cb
Merge pull request #3813 from mwgray/unwrapRequired-init-optional-parameters
...
add optional parameters to init when unwrapRequired is true
2016-09-22 18:51:52 +08:00
Kim Sondrup
9bb097fcf5
[PHP] Correct Composer license identifier ( #3848 )
...
* [PHP] Correct Composer license identifier
* Update petstore PHP
2016-09-22 18:49:08 +08:00
Kim Sondrup
aad80b94c5
[PHP] Change APIException to expect headers as array ( #3838 )
...
* [PHP] Change APIException to expect headers as array
* Update petstore PHP
2016-09-22 18:47:07 +08:00
wing328
70ed52cee0
add default value to swift podspec
2016-09-22 18:41:53 +08:00
wing328
cfed530997
Merge pull request #3843 from wing328/fix_ts_angular2_model_optional
...
[Typescript][Angular2] Fix required properties in the model
2016-09-21 20:32:04 +08:00
wing328
d11c7ad09a
fix typescript angular2 model - optional/required
2016-09-21 20:08:27 +08:00
wing328
ff90954dc6
Merge pull request #3840 from 0xced/fix-oauth-flow-npe
...
Fix NullPointerException when the oauth flow is missing
2016-09-21 10:39:52 +08:00
Cédric Luthi
72058c2638
Fix NullPointerException when the oauth flow is missing
2016-09-21 00:48:16 +02:00
wing328
6ac5a2c306
Merge pull request #3825 from wienczny/tripleMustacheExtraAnnotation
...
Use triple mustache for vendorExtensions.extraAnnotation
2016-09-20 21:12:16 +08:00
wing328
14bcbcbb29
Merge pull request #3834 from vkotovv/readme-typo-fix
...
Fixed typo in Readme
2016-09-20 21:11:28 +08:00
wing328
f69d1500c3
[Python][Flask] use tags to organize Python Flask controllers ( #3767 )
...
* use tag to organize flask controller
* fix typo in python flask code gen
* fix operationId for flask generator
2016-09-20 21:11:06 +08:00
Vadim Kotov
daa068aa4d
Fixed typo in Readme
...
Fixed Swaagger -> Swagger
2016-09-20 12:38:00 +03:00
wing328
3073ed0042
add gotransverse
2016-09-20 10:32:58 +08:00
Steve Hu
d74a1fbed4
Add a new language generator for undertow-server framework ( #3820 )
...
* add undertow generator
* add apiException
* add undertow server code gen
* reovery sprintboot sample
* update handler
* output swagger.json and handler template change
* remove api template
* remove api.mustache
* update pom.xml
* update readme
* add config files
* add basePath to the handler and upgrade to 0.1.1 framework
* add additional files for release
* fixed the mvn verify issue
* update one template to fix compile error for fake petstore
2016-09-19 22:45:10 +08:00
Stephan Wienczny
e96b177305
Use triple mustache for vendorExtensions.extraAnnotation
...
Triple mustache is required because annotations may contain chars like "=" that
would be mistakenly encoded.
2016-09-19 16:24:51 +02:00
wing328
4293dff3a4
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-09-19 16:26:51 +08:00
wing328
1d748e47da
fix copmile for C# model annotation
2016-09-19 16:25:47 +08:00
wing328
8a61f92061
Merge pull request #3822 from wing328/jmeter_bin
...
[JMeter] add JMeter petstore sample
2016-09-19 15:24:49 +08:00
wing328
1be134facf
Merge branch 'csharp/property-validations' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp/property-validations
2016-09-19 15:19:58 +08:00
wing328
e4792555df
add petstore jmeter sample
2016-09-19 14:59:48 +08:00
wing328
76d3ec9be2
Merge pull request #3801 from richardfriedman/issue-3800
...
[jmeter] #3800 Fixing testCases and paramName
2016-09-19 11:50:47 +08:00
wing328
f41a3b82a9
Merge pull request #3809 from j4velin/master
...
Fix NullPointerException if there are no other properties
2016-09-19 11:44:14 +08:00
Anton Savchenko
945c9a1406
[typescript-angular2] npm publish missing files ( #3791 )
...
* [typescript-angular2] npm publish missing files
* [typescript-angular2] build to dist folder
2016-09-19 10:41:29 +08:00
wing328
d5c88ae64b
Merge pull request #3741 from cvent/cvent-2.3.0
...
Java: Fix UUID mapping to a UUID instead of a string
2016-09-18 16:42:24 +08:00
Brent Ryan
d334524adc
Re-apply fix after major conflicts upstream
2016-09-17 16:06:23 -04:00
Matthew Gray
c2aa8d2871
add optional parameters to init when unwrapRequired is true
2016-09-16 10:38:22 -07:00
wing328
d5e4b24416
Merge branch '2.3.0' of https://github.com/swagger-api/swagger-codegen into 2.3.0
2016-09-16 23:45:44 +08:00
wing328
cb63c937e1
Merge pull request #3798 from mateuszmackowiak/objc/fix/remove_interface_method_duplicate
...
[Objc] Remove interface method duplicate
2016-09-16 23:31:11 +08:00
Thomas Hoffmann
61bd023e3d
Fix NullPointerException if there are no other properties
...
Change-Id: I6711e96d4b119b2cf78860d4eb43fc178edae372
2016-09-16 12:36:59 +02:00
geetikagupta16
1e4f30eb16
Fixed bug for handling optional header parameters ( #3776 )
...
* Fixed #3774
Refactored code to handle optional header parameters.
* Changed null check with pattern matching
2016-09-15 23:28:01 +08:00
timadamson
fe7acabc4b
add authentication to typescript-angular2 ( #3781 )
...
* add authentication to typescript-angular2
* updated typescript-angular2 petstore example
* update typescript-angular2 with simplified conditionals
2016-09-15 00:35:14 +08:00
Richard Friedman
5aff601eac
[jmeter] #3800 Fixing testCases and paramName
2016-09-14 12:25:39 -04:00
cbornet
b7f2b28534
[resteasy] configure jackson to use rfc3339 dates
2016-09-14 17:37:04 +02:00
Mateusz Maćkowiak
4bb288c253
[Objc] Remove interface method duplicate
2016-09-14 16:10:19 +02:00
wing328
e6049d6d30
Merge pull request #3797 from xaviapa/bugfix/issue-3783
...
Added !is_null condition in setter conditions for non-required proper…
2016-09-14 20:54:05 +08:00
Xavi Aparicio
31a3436a8e
Added !is_null condition in setter conditions for non-required properties
2016-09-14 13:41:05 +02:00
Mateusz Maćkowiak
086ee13e90
[Objc] CoreData builders remove old array data ( #3787 )
2016-09-14 18:46:30 +08:00
wing328
1dd9ee39af
[C#] Add CI tests to cover C# Petstore client with "PropertyChanged" ( #3796 )
...
* add c# api client with proeprty changed to CI
* add shell script to update all C# petstore sample
2016-09-14 18:43:13 +08:00
cbornet
1b1fe95855
[jersey] configure jackson to use rfc3339 dates
2016-09-14 12:17:33 +02:00
cbornet
f5f959716e
[retrofit2] use gson ISO8601Utils to parse dates
...
See #3727
2016-09-13 21:29:02 +02:00
cbornet
2a0574a3ad
[okhttp] use gson ISO8601Utils to parse dates
...
this allows to remove a lot of code in the ApiClient.
Tests for the ApiClient thus have been move to JSONTest.
Also allow to configure the date formatter of all date types individually.
An assertion in testCreateAndGetPetAsync() is removed because it's useless and makes the test fail randomly.
See #3727
2016-09-13 16:11:47 +02:00
wing328
19047c2eec
[C#] fix the location of FodyWeavers.xml ( #3782 )
...
* fix fody weavers xml location
* update c# petstore sample
2016-09-13 18:05:42 +08:00
wing328
07eff7116b
Merge branch 'wing328-csharp_fix_enum'
2016-09-13 16:46:40 +08:00
wing328
e14cf8a526
Merge branch 'csharp_fix_enum' of https://github.com/wing328/swagger-codegen into wing328-csharp_fix_enum
2016-09-13 16:46:27 +08:00
Christof Vollrath
1c8e07a944
Fix order of generated classes for typescript
2016-09-13 10:44:34 +02:00
wing328
0cba285cac
Merge branch 'jimschubert-csharp/INotifyPropertyChanged'
2016-09-13 15:59:26 +08:00
wing328
907db0dd5b
[Scala] enhancement to indention and null check ( #3775 )
...
* fix scala api null check and indention
* minor format fix
2016-09-13 09:56:06 +08:00
wing328
766b04a2bd
Merge remote-tracking branch 'origin/master' into 2.3.0
2016-09-12 23:30:15 +08:00
wing328
153397e799
Merge pull request #3778 from wing328/update_ts_angular2_petstore
...
[Typescript][Angular2] Update typescript-angular2 petstore sample
2016-09-12 17:07:11 +08:00
wing328
3e0a1be8aa
update typescript-angular2 petstore sample
2016-09-12 16:44:35 +08:00
stevedenman
314bfdece2
Add last response code and headers ( #3760 )
...
* Add last response code and headers
Apply same workaround as https://github.com/swagger-api/swagger-codegen/pull/1127 to typescript-angular2 template.
* Add WithHttpInfo() methods to return raw response.
* Revert change to http method formatting
2016-09-12 16:24:12 +08:00
Zheng Can
0c59aefe90
Make InlineModelResolver resolve vendorExtensions correctly for Schema Object ( #3719 )
...
* Fix InlineModelResolver to ensure the vendorExtensions could be accessed via schema object or inline model.
* format the code
* Copy vendor extension to property only.
2016-09-12 16:09:07 +08:00
Richard
bc2f614b92
apiInvoker : in getInstance, if instance is null initialize instance ( #3766 )
...
* apiInvoker : in getInstance, if instance is null initialize instance
build : replace the deprecated volley library by the android one
jsonUtil : Add in gsonBuider an adapter to deserialize Date class
And update petstore sample for volley library
* Update apiInvoker.mustache
Add a space after if, to stick to the code style.
* Update ApiInvoker.java
Add a space after if, in petstore samples, to stick to the code style.
2016-09-12 15:56:35 +08:00
wing328
5bb203504c
Merge pull request #3772 from wing328/scala_model_indent
...
[Scala] better format of model properties
2016-09-12 11:27:02 +08:00
wing328
77d31300a1
Merge pull request #3757 from ePaul/feature/#3738-add-sourceFolder-property
...
Feature/#3738 add source folder property
2016-09-12 11:10:28 +08:00
Bartek Kryza
6d6832e7a6
Fix for #3712 - invalid enum array validation in Python client mustache model ( #3713 )
...
* Fixed invalid enum array validation in Python client mustache model
* Updated the Petstore Python client tests
* Removed superfluous array enum test
* Added test cases for Python client array and map enums
* Improved map enum error message
2016-09-12 11:00:49 +08:00
Paŭlo Ebermann
72e051ab47
Feature/remove unused variables in html codegens ( #3739 )
...
* Remove unused variables/constants in StaticHtml[2]Generator.
It looks like those were remainders from copy+paste.
* run html-petstore.sh
2016-09-12 11:00:02 +08:00
Paul Ebermann
d3eedafe84
Issue #3738 : introduce the sourceFolder property for all Scala "languages".
2016-09-11 20:10:51 +02:00
ataraxus
1d7d37409a
Fix for issue #3743 ( #3744 )
...
* fix map usage in api generation #3694
* fix map usage in api generation #3695
* close impl gap between queryParam and formParam, to be more consistent
* use working copy constructor
2016-09-11 23:11:35 +08:00
wing328
ac69f45ddc
better format of model properties
2016-09-11 18:44:36 +08:00
Paŭlo Ebermann
bd3a15e273
Feature/#3738 extract abstract scala codegen ( #3755 )
...
* Issue #3738 : extract AbstractScalaCodegen.
This seems to not change anything in the output, at least for the Petstore samples.
* Issue #3738 : move languageSpecificPrimitives initialization to the super class
* Issue #3738 move CliOptions to AbstractScalaCodegen.
* Issue #3738 update samples.
Only one change, remove of unnecessary imports.
2016-09-11 18:00:38 +08:00
wing328
f9d1f24726
Fix appveyor maven environment variable ( #3769 )
...
* fix maven env variable in appveyor
* fix maven home
2016-09-11 14:52:46 +08:00
wing328
b6e2c5a301
Update CONTRIBUTING.md
2016-09-10 00:23:49 +08:00
wing328
81e9bd0d73
add tips for filing better PR
2016-09-10 00:23:00 +08:00
wing328
f55a9cee2f
Merge pull request #3756 from lunat/csharp_documentation_relative_anchor
...
Added anchor tag in README.mustache issue #3748 .
2016-09-09 17:26:03 +08:00
wing328
8af3396a2e
Merge pull request #3763 from wing328/erlang_server_improve
...
[Erlang] update readme, add petstore samples
2016-09-09 17:04:35 +08:00
wing328
dcdea19cb8
erlang update readme, add petstore samples
2016-09-09 16:42:26 +08:00
wing328
7850ecd767
rearrange erlang server
2016-09-09 15:49:27 +08:00
wing328
f05c7aa8d3
add Erlang Server | @galaxie
2016-09-09 15:46:06 +08:00
Artem Ocheredko
f90626ac81
[Erlang] Add Erlang server generator ( #3758 )
...
* Initial erlang generation
* Recfactor erlang codegen to make a minimal working example
* ft/erlang_codegen Separate handlers by resourse, add minor codegen fixes and refactoring
* Test commit
* ft/erlang_codegen Modify reouting generation
* ft/erlang_codegen Remove parsed request concept. Add minor refactoring and bugfixes
* ft/erlang_codegen Use swagger spec from an internal directory instead of a provided path
* ft/erlang_codegen Add basic response validation
* ft/erlang_codegen Moved all the req validators to a separate file for test needs
* ft/erlang_codegen Add basic param validation
* Add refactoring:
OperationIDs are atoms now
Fix schema validation
Add todo list
* CAPI-23 Add auth context to request handling (#2 )
* CAPI-23 Fix routing to support different paths in one handler. Add auth context to request handling. Add an opportunity to pass custom middlewares to the server
* CAPI-31 Add enum validation and some minor fixes (#4 )
* CAPI-31 Fix turbo fuck up with additional params (#5 )
* Capi 23/fix/basic logging (#6 )
* CAPI-23 Add understandable messages in case of bad requests. Add specs to shut up dialyzer and add some minor code refactoring
* CAPI-23 Fix missed bracket in auth module (#7 )
2016-09-09 15:44:54 +08:00
lunat
a553d47507
Added anchor tag in README.mustache issue #3748 .
2016-09-08 18:01:18 +02:00
wing328
ce9dd26b10
Merge pull request #3742 from cvent/pom-bump
...
Bump version of pom to 2.3.0-SNAPSHOT for the 2.3.x release
2016-09-08 23:45:22 +08:00
wing328
c171ca5f57
Merge pull request #3752 from ePaul/feature/#3738-regenerate-scala-samples
...
Issue #3738 : regenerate Scala samples (no code changes).
2016-09-08 21:13:32 +08:00
Paul Ebermann
65ca059221
Issue #3738 : regenerate Scala samples (no code changes).
2016-09-08 13:00:40 +02:00
wing328
ddd0b8685a
Merge pull request #3750 from wing328/fix_jaxrs_cxf_model
...
[JAX-RS][CXF] To fix enum value issue
2016-09-08 17:54:34 +08:00
Ville Skyttä
735390f633
[Python, Ruby, PHP] Validate min/maxItems ( #3734 )
...
* python: Validate min/maxItems
* ruby: Validate min/maxItems
* lumen: Validate min/maxItems
* php: Validate min/maxItems
2016-09-08 17:33:59 +08:00
wing328
4f0f128ddb
fix enum value issue for jaxrs cxf
2016-09-08 17:30:20 +08:00
Brent Ryan
95d63a6f1f
Bump version of pom to 2.3.0-SNAPSHOT for the 2.3.x release
2016-09-07 09:22:56 -04:00
wing328
47e75cb7b1
Merge pull request #3740 from wing328/android_fix_result
...
[Android] fix property name 'result' for android using "this"
2016-09-07 19:12:07 +08:00
wing328
326b8020d2
fix property name 'result' for android using "this"
2016-09-07 18:55:19 +08:00
wing328
892c9e017a
Merge pull request #3730 from scop/python-maxlength-msg
...
python: Fix model maxLength validation error message
2016-09-07 17:12:28 +08:00
Ville Skyttä
b8e8c7cdb5
Various code cleanups ( #3709 )
...
* For/while to foreach loop conversions
* Don't instantiate Booleans
* Remove redundant String.toString calls
* Remove redundant String instantiations
* Don't concatenate StringBuilder.append args
* Replace dangling javadoc comments with blocks
* Combine identical catch branches
* Remove redundant catch branch
* Remove unnecessary boxing
* Remove redundant casts
* Remove redundant null checks
2016-09-07 16:41:51 +08:00
wing328
111d90558e
Merge pull request #3725 from mateuszmackowiak/objc/fix/core_data_ordered_set
...
[Objc] Fix core data unordered array content
2016-09-07 15:55:30 +08:00
wing328
3d1f621f8b
Merge pull request #3729 from scop/spelling
...
Spelling fixes
2016-09-07 15:43:17 +08:00
Cliffano Subagio
92eb722ced
[ruby] Add gemspec required_ruby_version setting. ( #3718 )
...
* [ruby] Add gemspec required_ruby_version setting.
* [ruby] Add gemspec required_ruby_version setting.
* Add gemRequiredRubyVersion option to Ruby client code generator.
2016-09-06 22:25:39 +08:00
Ville Skyttä
f436f0eee2
python: Fix model maxLength validation error message
2016-09-06 14:49:00 +03:00
Ville Skyttä
91b7494e3e
Spelling fixes
2016-09-06 14:45:04 +03:00
wing328
23283cb0c0
Merge pull request #3728 from wing328/java_default_test
...
[Java][jersey1] Add back test cases for Java (jersey1) client
2016-09-06 19:14:04 +08:00
wing328
fb3b91550c
add back test cases for java jersey1 client
2016-09-06 18:51:28 +08:00
Mateusz Maćkowiak
9ca27a760e
[Objc] Fix core data unordered array content
2016-09-06 10:38:06 +02:00
Ville Skyttä
ddc5b80438
[Lumen, PHP, Python, Ruby] Implement exclusiveMinimum/Maximum ( #3717 )
...
* Ignore exclusiveMinimum/Maximum in setting hasValidation
* python: Implement exclusiveMinimum/Maximum
* ruby: Implement exclusiveMinimum/Maximum
* lumen: Implement exclusiveMinimum/Maximum
* php: Implement exclusiveMinimum/Maximum
2016-09-06 14:57:35 +08:00
ataraxus
59891c7f66
fix map usage in api generation #3694 ( #3714 )
...
* fix map usage in api generation #3694
* fix map usage in api generation #3695
* close impl gap between queryParam and formParam, to be more consistent
2016-09-06 10:59:54 +08:00
Neil O'Toole
f751e50e2e
Issue #3687 silence resty logging [Go] ( #3705 )
...
* disabling resty logger
* #3687 updating go-petstore
2016-09-05 17:11:34 +08:00
wing328
730eda05d2
Merge pull request #3721 from wing328/update_ruby_re
...
[Ruby] update regular expression to use \A instead of ^
2016-09-05 16:32:39 +08:00
wing328
e68b364479
update ruby regular expression to use \A
2016-09-05 16:06:38 +08:00
Masahiro Saito
92aa8ed767
[Ruby] Fix ambiguous regex ( #3716 )
...
* ruby: Fix ambiguous regex
* ruby: Add test for strict regex
2016-09-05 15:37:54 +08:00
wing328
43bac10bb3
Merge pull request #3700 from scop/php
...
php: Fix syntax error when pattern contains a single quote
2016-09-03 16:37:40 +08:00
Kim Sondrup
1539986984
[PHP] Corrected PHPDoc type declarations ( #3710 )
...
* [PHP] Corrected PHPDoc type declarations
* Update petstore PHP
2016-09-03 16:06:07 +08:00
Neil O'Toole
8183d96088
#3690 adding RequestURL, Method, Operation and Payload fields to APIResponse
2016-09-02 06:49:39 -06:00
wing328
7a4a430c43
Merge pull request #3702 from scop/ruby
...
ruby: Fix syntax error when pattern contains a single quote
2016-09-02 16:22:47 +08:00
Ville Skyttä
c43286c569
Python collection formatting fixes/support ( #3697 )
...
* python: Rework form data collection formatting support
* python: Add/fix support for query string collection formatting
* python: Add/fix support for path collection formatting
* python: Add/fix support for header collection formatting
2016-09-02 16:17:46 +08:00
Ville Skyttä
2af822677f
php: Fix syntax error when pattern contains a single quote
2016-09-02 10:42:08 +03:00
Ville Skyttä
6bb0ea2e8a
ruby: Fix syntax error when pattern contains a single quote
2016-09-01 20:45:52 +03:00
wing328
b909252bb8
Merge pull request #3699 from scop/java
...
java: Javadoc fixes
2016-09-02 00:44:53 +08:00
wing328
11ae12b09d
[Scalatra] replace {} with : in scalatra path ( #3694 )
...
* replace {} with : in scalatra path
* remove unused var in scalatra code gen
2016-09-02 00:25:07 +08:00
wing328
5467c41dad
Merge pull request #3698 from scop/spelling
...
Spelling fixes
2016-09-02 00:24:06 +08:00
Ville Skyttä
0363858672
java: Javadoc fixes
2016-09-01 18:07:35 +03:00
Ville Skyttä
e52a8e34cb
Spelling fixes
2016-09-01 17:39:30 +03:00
Arpit Suthar
e7ec360ba8
Added 'modelPropertyNaming' option for Scala ( #3685 )
...
* Closed #3675
1. Added 'modelPropertyNaming' option for scala
2. Executed ./bin/scala-petstore.sh (no changes).
* Removed unwanted code #3675
2016-09-01 18:22:03 +08:00
Jyotsna Karan
062e6fc3ac
Added functionality to handle optional parameters for Scala ( #3683 )
...
* 1. Modified api.mushtache to handle optional paramters for scala (#3665 )
2. Updated petstore sample for scala
* Generated scala-petstore.sh (#3665 )
* 1. Updated api.mustache to handle optional thing with headers and file parameters
2. Generated petstore sample for the above changes
2016-09-01 18:11:23 +08:00
Ville Skyttä
8e7d3d1a72
Python fixes ( #3689 )
...
* python: Fix unsupported method exception message
* python: Implement form data collection formatting
2016-09-01 15:05:52 +08:00
wing328
e044f9d9bf
Remove unnecessary change when generating API clients ( #3684 )
...
* remove unnecessary changes for python codegen
* remove unnecessary change for ruby codegen
* remove unnecessary changes for php codegen
* add hided timestamp option to swfit codegen
* remove unnecesary change in JS codegen
* remove unnecessary change in JS closure codegen
* remove unnecessary change for c# codegen
* fix JS auth issue due to missig comma
2016-08-31 18:12:04 +08:00
wing328
d464bfbd59
fix JS auth issue due to missig comma
2016-08-31 17:50:56 +08:00
wing328
eb59e2945e
remove unnecessary change for c# codegen
2016-08-31 17:31:55 +08:00
wing328
8523c57f8c
remove unnecessary change in JS closure codegen
2016-08-31 17:13:35 +08:00
wing328
5804fbc1dd
remove unnecesary change in JS codegen
2016-08-31 16:52:46 +08:00
wing328
322862c4b6
add hided timestamp option to swfit codegen
2016-08-31 16:45:12 +08:00
wing328
da45cb7ff5
remove unnecessary changes for php codegen
2016-08-31 16:38:30 +08:00
wing328
4ea4488212
remove unnecessary change for ruby codegen
2016-08-31 15:57:04 +08:00
wing328
ebfddd0a58
remove unnecessary changes for python codegen
2016-08-31 15:49:22 +08:00
wing328
2ced9e1deb
Don't HTML escape PHP pattern output ( #3672 )
...
* php: Do not HTML escape patterns
* php: Update petstore
* lumen: Do not HTML escape pattern
* lumen: Update petstore
2016-08-31 14:07:29 +08:00
wing328
3ec6ee1995
Merge branch 'scop-python-patterns'
2016-08-31 13:55:23 +08:00
wing328
429bc46a79
Merge branch 'python-patterns' of https://github.com/scop/swagger-codegen into scop-python-patterns
2016-08-31 13:54:47 +08:00
wing328
9c8e4f60aa
clearer wording
2016-08-31 12:51:09 +08:00
wing328
afe028b243
Merge branch 'zbiro-issue-3647'
2016-08-31 00:25:23 +08:00
wing328
343ca03512
Merge branch 'issue-3647' of https://github.com/zbiro/swagger-codegen into zbiro-issue-3647
2016-08-31 00:25:06 +08:00
Ville Skyttä
fa0e0f4fcc
python: Update petstore
2016-08-30 08:07:35 +03:00
Ville Skyttä
cdcc61b038
python: Do not HTML escape patterns
2016-08-30 08:06:02 +03:00
Ville Skyttä
a4dbd761f8
python: Fix escaping of quote in patterns
2016-08-30 08:06:02 +03:00
Ville Skyttä
77a2973da4
lumen: Update petstore
2016-08-30 08:05:04 +03:00
Ville Skyttä
cfe1b7a2b4
lumen: Do not HTML escape pattern
2016-08-30 08:05:04 +03:00
Ville Skyttä
a95ade6d2a
php: Update petstore
2016-08-30 08:05:04 +03:00
Ville Skyttä
8f98a6d6f5
php: Do not HTML escape patterns
2016-08-30 08:05:04 +03:00
Daniel Ge
dd1ed12318
Make connection failures visible with generated Ruby SDKs ( #3640 )
...
* Make connection failures visible in Ruby SDK
The underlying HTTP library, Typhoeus, requires you to be explicit about
error handling. Unfortunately, this also means that we can't assume that
`response.success?` will be false only when the HTTP status code is not
a 200; it could also be false when the request fails (timeouts, TLS
verification issues, etc.). This commit adds explicit error handling for
these cases.
* Update samples
2016-08-30 10:28:07 +08:00
Ville Skyttä
224fd208e7
Various python cleanups ( #3650 )
...
* python: Let logging format messages on demand
* python: Use six more
* python: Remove unused imports
* python: flake8 fixes
* python: Make examples compatible with Python 3
* python: Spelling fixes
2016-08-30 10:16:17 +08:00
wing328
9fa14d954d
Merge pull request #3666 from akhilkedia/tizen-client-codegen
...
[Issue #3076 ] [Tizen] Updating the Tizen Client Generation Code
2016-08-30 00:45:45 +08:00
wing328
d8406c0dd0
add PR template ( #3669 )
2016-08-29 23:21:28 +08:00
Zoltan Biro
646c4faa62
fixing python code formatting issue
2016-08-29 16:53:38 +02:00
Zoltan Biro
b050ba9dc3
regenerate petstore sample
2016-08-29 16:47:22 +02:00
Zoltan Biro
10aa68c6b7
Fix empty model object serialization in python client
2016-08-29 16:08:45 +02:00
akhilkedia94
8b967239c4
[Issue #3076 ] [Tizen] Updating the Tizen Client Generation Code
...
Updated Tizen Client Codegen to remove calls to obsolete/deprecated system APIs.
The new templates are based on json-glib and libcurl.
The produced code also contains scripts for auto-generation of the documentation of the produced client library using Doxygen.
Included test cases for Petstore in /samples/client/petstore/tizen/PetStoreTest/
Signed-off-by: akhilkedia94 <akhil.kedia@samsung.com >
2016-08-29 20:27:36 +09:00
sidhantgoyal
8dfe230b7c
[android] volley socket timeout configurable ( #3646 )
...
* [android] volley socket timeout configurable
* Updated Android Volley Petstore sample
2016-08-29 16:31:49 +08:00
wing328
d93ef8531b
Merge pull request #3645 from guohuang/compile_issue2
...
[Go] fixing code gen not recognizing 'object' type issue
2016-08-29 15:39:25 +08:00
wing328
04ce4ef867
Merge pull request #3657 from cvent/cvent-fixes
...
Fix to case of propertyClass which pukes on most checkstyle rules in …
2016-08-29 15:23:42 +08:00
Brent Ryan
46c3bef40f
Fix to case of propertyClass which pukes on most checkstyle rules in java
2016-08-28 20:49:30 -04:00
wing328
4164726b07
Merge pull request #3656 from scop/spelling
...
Spelling fixes
2016-08-28 22:57:54 +08:00
Ville Skyttä
2fbec6d9eb
Spelling fixes
2016-08-28 17:05:34 +03:00
wing328
10b360c4a7
Merge pull request #3655 from scop/perl-user-agent
...
perl: Sync default user agent with other languages
2016-08-28 21:13:49 +08:00
Ville Skyttä
9c92bcb693
perl: Sync default user agent with other languages
2016-08-28 15:11:32 +03:00
Sebastian Haas
4337f050f5
Angular2 rc5 ( #3603 )
...
* Changes due to changes in Angular's http module.
* Added link to issue re Headers clone. Removed use-strict since its emitted by default from TypeScript 1.8 on.
* Added missing import for ResponseContentType.
* Added null check fix for Angular http issue.
* Updated package.json and typings
Signed-off-by: Sebastian Haas <sebastian@haas.tech >
2016-08-28 18:30:11 +08:00
wing328
0ca9e2921e
Merge pull request #3630 from mateuszmackowiak/objc/fix/multit_thread_apiclient
...
Objc/fix/multit thread apiclient
2016-08-28 16:51:57 +08:00
wing328
440b7211de
Merge pull request #3653 from scop/java
...
java: Fix model package import in example
2016-08-28 16:23:57 +08:00
wing328
598c21b06e
add new perl petstore files
2016-08-28 16:02:09 +08:00
wing328
72d0cd7eb4
update petl sample
2016-08-28 15:57:50 +08:00
Ville Skyttä
85c7e7697a
Perl example fixes ( #3652 )
...
* perl: Add configuration and classname imports to examples
* perl: Fix list container syntax in examples
2016-08-28 15:56:00 +08:00
Ville Skyttä
756f7a96f6
java: Fix model package import in example
2016-08-28 01:00:34 +03:00
wing328
a6fd8442b2
Merge pull request #3649 from scop/spelling
...
Spelling fixes
2016-08-27 14:57:53 +08:00
Ville Skyttä
b4c139f19b
Spelling fixes
2016-08-27 02:34:33 +03:00
Guo Huang
be0233c609
[Go] fixing code gen not recognizing 'object' type issue
2016-08-25 21:44:57 -07:00
wing328
c0a72fdcd6
add QuantiModo
2016-08-26 10:46:18 +08:00
wing328
2a77dbdd4c
add emc
2016-08-26 00:10:10 +08:00
wing328
419c3165ea
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-08-25 23:14:58 +08:00
wing328
e1ae348db4
Merge branch 'mikesol-mikesol-patch-android-classVarName'
2016-08-25 23:13:06 +08:00
wing328
81f947e723
update android petstore sample, add this to volley's model
2016-08-25 23:12:23 +08:00
wing328
12fbbfbd6d
Merge branch 'mikesol-patch-android-classVarName' of https://github.com/mikesol/swagger-codegen into mikesol-mikesol-patch-android-classVarName
2016-08-25 23:05:09 +08:00
wing328
d590b849cc
Merge pull request #3626 from medallia/flatten-composed-model
...
Adds flattener for ComposedModel
2016-08-25 23:04:01 +08:00
Tony Wang
beaf1fc7aa
fix #3477 , add RxSwift support for Swift ( #3490 )
...
* fix #3477 , add RxSwift support for Swift
* make the SwaggerClient scheme shared
2016-08-25 19:34:12 +08:00
wing328
8c2267cd3d
Merge pull request #3624 from ButterflyNetwork/swift-better-errors
...
[Swift] Include HTTP status code and body data in response errors
2016-08-24 23:39:37 +08:00
cbornet
194c389a06
fix some inheritance/composition issues and add allOf unit tests
...
Fix #3629 #3544 #3474 #3636
2016-08-24 17:11:45 +02:00
wing328
f7b1d45f51
Merge pull request #3604 from mateuszmackowiak/feature/objc/apiversion
...
[ObjC] Add version define and share default headers of each client
2016-08-24 23:02:00 +08:00
wing328
25a14f5d77
add http://www.plexxi.com/
2016-08-24 22:28:08 +08:00
Jason Gavris
e89f914e8b
[Swift] Handle String responses
2016-08-23 10:18:01 -04:00
Jason Gavris
3a457c6a7e
[Swift] Handle Void responses
2016-08-23 10:03:51 -04:00
Mateusz Maćkowiak
e40f9abdbb
Fix problem with multitheard api client
2016-08-23 14:12:58 +02:00
Diego de Estrada
84de96ef65
Adds flattener for ComposedModel
2016-08-22 17:54:30 -03:00
Ryan Martin
c1f3c51427
[Swift] Include HTTP status code and body data in response errors
...
This is useful when differentiating different error responses. Example:
if let e = error {
switch e {
case ErrorResponse.Error(400, _, _): responseLabel.text = "Unknown error"
case ErrorResponse.Error(403, _, _): responseLabel.text = "Not logged in"
default: responseLabel.text = "\(e)"
}
}
The existing error is straight from Alamofire and only includes the HTTP
status code in the body of the message (not broken out as a separate value).
It also does not include the response body, which may be useful.
2016-08-22 12:30:03 -04:00
Damien Pontifex
54fe7a731c
inject base_path opaque token for typescript angular2 ( #3514 )
...
* inject base_path opaque token for typescript angular2
* Readme note on providing base path to service
2016-08-22 21:40:51 +08:00
Yet Another Minion
9a77c48540
For Qt5 server generator, add BaseIntegerProperty to default values ( #3622 )
...
* For Qt5 server generator, add BaseIntegerProperty to default values
* move base property check to after checks of extended properties
2016-08-22 19:52:10 +08:00
wing328
dd52d666c5
Merge pull request #3623 from wing328/ruby_better_pattern
...
Add function to handle missing delimiter in regex
2016-08-22 19:12:03 +08:00
wing328
a58845bb0f
add function to handle missing delimiter in regex
2016-08-22 18:01:06 +08:00
regga-ws
4d94511935
Allowing generators to be aware of original inputSpec path ( #3592 )
...
* Enabling knowledge of inputSpec path for custom generators
* Enabling knowledge of inputSpec path for custom generators
* Enabling direct use of "inputSpec" property in templates
* Fixing spaces
2016-08-22 16:04:53 +08:00
wing328
44c8893ed5
update wording
2016-08-21 12:18:45 +08:00
wing328
4e20bd9bab
[Java][Spring][Inflector][Jax-RS] To fix various enum issues ( #3615 )
...
* fix spring enum deserialization issue
* fix enum class for spring
* update java inflector to fix enum tostring
* fix jaxrs jersey1 enum toString
* fix jaxrs jersey patch issue
2016-08-20 17:54:45 +08:00
Kevin Chabreck
64e03422c0
[Spring Boot] use port defined in spec file for server.port value ( #3605 )
...
* uncommented server.port property in application.mustache template and set it to serverPort value parsed from spec file
* update Petstore sample for Spring MVC and Boot
2016-08-19 17:29:36 +08:00
Mike Solomon
8536d7991c
Uses this.{{name}} to scope instance
...
Otherwise, if {{classVarName}} is the same as a class member name, the function will not work.
2016-08-19 10:11:31 +03:00
wing328
d7d351682f
Merge pull request #3610 from michalyao/master
...
update to version 2.2.2
2016-08-18 10:17:35 +08:00
wing328
2fe2ed2b51
Merge pull request #3602 from michalyao/patch-2
...
update to version 2.2.2
2016-08-18 10:17:13 +08:00
wing328
24c0038cce
[Java][Inflector] Fix enum issue with java inflector ( #3606 )
...
* fix enum issue with java inflector
* update pom to test java-inflector
2016-08-18 09:48:50 +08:00
Yao Yao
52125c33ad
update to version 2.2.2
2016-08-18 09:10:16 +08:00
wing328
1587caf9a6
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-08-17 23:05:41 +08:00
wing328
77d3131e7e
Merge branch 'neilotoole-issue-3461-configurable-transport'
2016-08-17 23:05:20 +08:00
wing328
535de68701
update go petstore sample
2016-08-17 23:05:03 +08:00
wing328
661c911d27
Merge branch 'issue-3461-configurable-transport' of https://github.com/neilotoole/swagger-codegen into neilotoole-issue-3461-configurable-transport
2016-08-17 22:52:44 +08:00
Yao Yao
712672ff0e
Modify the url of the swagger-codegen-cli.jar ( #3600 )
...
* Modify the url of the swagger-codegen-cli.jar
The jar which I download from the current url can't run the command properly.
* fixed the url
* fixed the url
2016-08-17 18:18:35 +08:00
Mateusz Maćkowiak
a893168291
[ObjC] Add version define and share default headers of each client
2016-08-17 10:21:24 +02:00
wing328
0196cfad55
Merge pull request #3599 from ggood/okhttp-gson-template-path-fix
...
Don't escape path in generated okhttp-gson client code
2016-08-17 15:21:37 +08:00
Yao Yao
262dc14143
update to version 2.2.2
2016-08-17 15:16:56 +08:00
wing328
c166609438
Merge pull request #3595 from MikeRalphson/patch-1
...
Fix typo, descripton -> description
2016-08-17 11:21:13 +08:00
Gordon Good
534e4db527
Don't escape path in generated okhttp-gson client code
...
The mustache templates for the other Java clients (e.g
Java/api.mustache) use 3 curly brackets around the path variable
so the path is not escaped. Make the okhttp-gson template
consistent with them.
2016-08-16 17:12:37 -07:00
Tony Tam
a6ae8fbd3a
Merge pull request #3598 from swagger-api/issue-3597
...
added configuration for swagger-yaml output file
2016-08-16 16:30:14 -07:00
Tony Tam
7bc9c4041b
added configuration for swagger-yaml output file, #3597
2016-08-16 15:59:47 -07:00
Mike Ralphson
f6a91db2d3
Fix typo, descripton -> description
2016-08-16 22:42:00 +01:00
Wolfgang Berger
500f41902e
Feature/objc tasks 2.3.0 ( #3522 )
...
* change api and ApiClient to return cancellable NSURLSessionTasks instead of NSNumber
* define a configuration protocol for custom configurations, which can be passed to api clients instead of a global configuration, provide a default implementation with a singleton option
* integrate a workaround for a current JSONModel concurrency bug
* update to new ISO8601 pod
* add missing call to super
* integrate new templates into codegen
* updates documentation templates
* updates petstore objc generated code
* fixes objc client tests
2016-08-16 21:15:23 +08:00
wing328
7a49f96a03
Merge pull request #3591 from scottrw93/read-only-fix
...
Create setter for models inline with Issue 3210
2016-08-16 16:03:14 +08:00
wing328
9858403f2e
Merge pull request #3582 from regga-ws/compiler-customization
...
Adding support for JMustache compiler customization
2016-08-16 14:21:20 +08:00
Scott Williams
68d63ec783
Create setter for models inline with Issue 3210
2016-08-15 23:31:30 +01:00
Nekrasov Aleksander
91675c97e2
Fix resteasy offsetdatetime provier ( #3332 )
...
* Fix offsetDateTime and remove unnecessary override annotations
* Update petstore samples to CI for resteasy testing
* fix resteasy templates path
* add ability to hide generated annotations
* Update petstore resteasy samples
* Deduplicate artifact names in resteasy projects
2016-08-15 23:46:52 +08:00
Alexandre Estela
9d5e2c0224
Adding support for JMustache compiler customization
2016-08-12 12:21:10 +02:00
wing328
3d717bd874
add symbolic enum support to csharp
2016-08-12 16:27:47 +08:00
wing328
f7143727e7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-08-12 15:38:00 +08:00
wing328
2943177d06
Merge branch 'kartenkarsten-patch-1'
2016-08-12 15:37:46 +08:00
wing328
1c9c2eb09c
update java jersey1 sample
2016-08-12 15:37:31 +08:00
wing328
621dee30a8
Merge branch 'patch-1' of https://github.com/kartenkarsten/swagger-codegen into kartenkarsten-patch-1
2016-08-12 15:33:02 +08:00
wing328
f746a93da4
Merge branch 'csharp/INotifyPropertyChanged' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp/INotifyPropertyChanged
2016-08-12 15:04:04 +08:00
wing328
4fe0b3350c
Merge pull request #3576 from ModelSolv/issue-3572
...
Issue 3572 Remove duplicate CLI Options
2016-08-12 14:39:58 +08:00
wing328
1dd8c2be9d
Merge branch 'arikon-feature/js-fix-types'
2016-08-12 10:31:09 +08:00
wing328
0a5cd19e97
update JS test cases
2016-08-12 10:30:33 +08:00
wing328
02f43bc195
Merge branch 'feature/js-fix-types' of https://github.com/arikon/swagger-codegen into arikon-feature/js-fix-types
2016-08-12 10:08:24 +08:00
wing328
7cc494786f
Merge branch 'JackWink-feature/jack/update-swift-alamofire'
2016-08-12 09:18:24 +08:00
wing328
3c1e47c31d
Merge branch 'feature/jack/update-swift-alamofire' of https://github.com/JackWink/swagger-codegen into JackWink-feature/jack/update-swift-alamofire
2016-08-12 08:59:12 +08:00
Sergey Belov
e01095f53b
Fix Javascript types
2016-08-11 23:05:37 +03:00
Andy Lowry
90a113b441
Issue 3572 Remove dupe options in jaxrs-spec
...
Removed CLI option declarations in JavaJAXRSSpecServerCodegen that also
appear in AbstractJavaJAXRSServerCodegen.
2016-08-11 13:43:14 -04:00
Andy Lowry
933b2aa2c3
Merge pull request #1 from swagger-api/master
...
Update our fork
2016-08-11 11:25:14 -04:00
wing328
752ba61e67
[Go] Add more test cases and fix numeric form/header parameters ( #3574 )
...
* add more tests for go, fix numeric form/header parameters
* update go sample
2016-08-11 14:28:31 +08:00
wing328
f41264c958
Merge pull request #3573 from ivucica/ivucica_go_fix-username-capitalization
...
Go: Replace `.Username` with `.UserName` in generated API methods.
2016-08-11 12:19:41 +08:00
Ivan Vučica
cf0d9b48fd
Go: Replace .Username with .UserName in generated API methods.
...
Right now, any generated code where the http basic authentication is
required is broken, as it tries to access nonexistent field in the
generated `Configuration` struct.
The alternative is to fix `configuration.mustache` to replace the
`UserName` field with `Username` field.
2016-08-10 21:36:35 +00:00
Ado Nishimura
eefb2152e9
[htmlDoc2] curl sample - conditionally add 'apiKey'. ( #3561 )
2016-08-10 16:43:47 +08:00
wing328
d2d5553a45
[Go] prefix go local var with localVar ( #3570 )
...
* prefix go local var with localVar
* remove pom from go, minor fix to headerParams
2016-08-10 16:14:33 +08:00
wing328
7827298e56
[Go] Fix CI tests ( #3569 )
...
* show path
* install go
2016-08-10 15:34:48 +08:00
wing328
31fd1df26b
Merge pull request #3562 from wing328/add_enum_endpoint
...
[Java][Spring] Add enum test cases and fix formParam's enum value
2016-08-09 23:32:04 +08:00
wing328
dbeb82f976
Merge pull request #3564 from cliffano/fix-incorrect-param-update-params-for-auth
...
Fix unknown parameter on api_client's update_params_for_auth method.
2016-08-09 23:27:15 +08:00
Karsten Hinz
58f00efcc3
sample update
2016-08-09 15:09:48 +02:00
Karsten Hinz
03986761dc
typo
...
eleif zu else if
2016-08-09 15:06:26 +02:00
wing328
d626200479
fix form enum parameters for spring generator, add more test cases
2016-08-09 19:49:38 +08:00
wing328
453f80a1d3
add new java client files
2016-08-09 18:59:59 +08:00
wing328
4c8c969515
Merge pull request #3491 from beingcoder/top-enum-error-securityscope-newline-error
...
[JAVA][SPRING-MVC]Top enum and securityscope newline cause invalid auto-generated java code during springmvc code generation
2016-08-09 18:56:44 +08:00
wing328
8ef3b61228
Merge pull request #3559 from wing328/java_jersey_indent
...
[Java] minor indentation fix for java enum models
2016-08-09 17:39:02 +08:00
Cliffano Subagio
aba2d35a18
Fix unknown parameter on api_client's update_params_for_auth method.
2016-08-09 19:11:26 +10:00
wing328
d4fa88a2ef
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-08-09 17:09:09 +08:00
wing328
79385aa503
Merge branch 'beingcoder-top-enum-error-securityscope-newline-error'
2016-08-09 17:08:51 +08:00
wing328
efb68d153f
update sampel for spring petstore
2016-08-09 17:02:19 +08:00
wing328
817a78e3a7
minor indentation fix for java enum models
2016-08-09 16:50:21 +08:00
wing328
e1fd176ae2
Merge branch 'patch-1' of https://github.com/kartenkarsten/swagger-codegen into kartenkarsten-patch-1
2016-08-09 16:26:25 +08:00
wing328
87c31188b7
Merge pull request #3550 from jimschubert/aspnet/models-casing
...
[aspnet] Honor casing of properties from definition
2016-08-09 14:55:03 +08:00
rynger
3faee1f6ce
Amending Path annotation ( #3553 )
...
* Amending Path annotation
Changed the Path annotation value from "/" to "/{{baseName}}"
* jaxrs-cxf-petstore-server.sh script was not referencing cxf module directory. Included generated files following script run. Have amended Path annotation value to {{contextPath}} and removed public access modifier from template as this is redundant for Java interface definition.
2016-08-09 12:09:07 +08:00
wing328
c4835ea52e
[TypeScript] fix array enum ( #3538 )
...
* better enum support for typescript angular2
* fix enum property for TS
* fix non-array enum datatype for TS
* update build name for TS fetch petstore client
* restore TS fetch enum naming
* [TS fetch]add test cases, fix enum integer naming
2016-08-09 10:49:26 +08:00
wing328
529f45c337
add 2.2.2
2016-08-09 10:23:49 +08:00
wing328
cec072ecf4
update wget to 2.2.1
2016-08-08 23:56:04 +08:00
wing328
7a245e3189
[JavaScript] add enum tests cases for JS generator (java) ( #3546 )
...
* add enum tests cases for JS generator (java)
* fix typo quote
2016-08-08 18:52:24 +08:00
wing328
ad3d9cd3b4
Merge pull request #3529 from JackDanger/danger/allow-go-config
...
Restore ability to configure Go
2016-08-08 18:30:18 +08:00
wing328
39e0e22c57
Merge pull request #3534 from arnested/php-enums-in-containers
...
[PHP] Fix enum validation in container setters
2016-08-08 18:29:44 +08:00
wing328
aed66aeee9
Merge pull request #3524 from dmytrobr/bug/issue-3523
...
support Title as model name for any inline object
2016-08-08 18:28:57 +08:00
Cliffano Subagio
3f7127b042
[Java] Add maven-javadoc-plugin to all Java clients. ( #3503 )
...
* Add maven-javadoc-plugin to all Java clients.
* Update sample petstores for other Java clients.
* Fix unknown parameter on api_client's update_params_for_auth method.
* Revert "Fix unknown parameter on api_client's update_params_for_auth method."
To be moved to a separate PR.
This reverts commit 1ee186694241bb6d9a0dccefcdca5afe3f5a1dd2.
2016-08-08 18:27:05 +08:00
wing328
328eb5b9e3
Merge pull request #3548 from wing328/php_enum_test_cases
...
[PHP] add enum test cases for PHP generator (java)
2016-08-08 18:22:43 +08:00
Jim Schubert
c744e55217
[csharp] client property validations
2016-08-07 21:24:55 -04:00
Tony Tam
c4f3cb1d9e
updated dev versions
2016-08-07 23:03:44 +02:00
Tony Tam
371a021ef5
Merge pull request #3549 from swagger-api/release-prepare
...
updated versions for release
2016-08-07 23:02:24 +02:00
Tony Tam
be3a49183e
Merge branch 'master' into release-prepare
2016-08-07 18:41:16 +02:00
Tony Tam
5f67ec021d
Merge pull request #3551 from wing328/java_fix_okhttp_model
...
[Java] Fix @JsonCreator annotation issue with Java API clients using gson
2016-08-07 18:40:29 +02:00
wing328
d8cdcbf042
fix jsoncreator annotation issue with java api clients using gson
2016-08-08 00:16:12 +08:00
Jim Schubert
adc445a5ff
[aspnet] Honor casing of properties from definition
2016-08-07 09:14:07 -04:00
Tony Tam
c147cfde1b
updated release versions
2016-08-07 11:49:01 +02:00
Jim Schubert
3d7f6ad099
[csharp] documented help switch for generating property change
2016-08-06 21:38:52 -04:00
wing328
b547d56d29
add enum test case to php generator (java)
2016-08-07 06:39:56 +08:00
Jim Schubert
797afe9d15
[csharp] PropertyChanged support .NET 4.x+
2016-08-06 16:54:50 -04:00
wing328
e8095c6a04
Merge pull request #3543 from guohuang/compile_issue2
...
[GO] Fixing compilation issue when pathParams is not presented
2016-08-06 14:07:00 +08:00
wing328
c220dbb2f5
Merge pull request #3541 from expectedbehavior/configuration-misspelling
...
Fix spelling in ruby ApiClient: Configuraiton -> Configuration
2016-08-06 13:10:46 +08:00
Guo Huang
bef5c74da7
removed unneeded "errors" import
2016-08-05 21:34:04 -07:00
Guo Huang
ab96b318e2
[GO] Fixing compilation issue when pathParams is not presented
2016-08-05 14:53:05 -07:00
Joel Meador
950fb43fdf
fix spelling in ruby ApiClient: Configuraiton -> Configuration
2016-08-05 14:36:08 -04:00
Tony Tam
1f58526615
updated to release version of parser
2016-08-05 19:42:21 +02:00
wing328
148a842f3b
fix #2538 ( #3535 )
2016-08-05 18:09:00 +08:00
Arne Jørgensen
4008054209
[PHP] Regenerate petstore samples
2016-08-05 11:25:49 +02:00
Arne Jørgensen
03c7e3ea0b
[PHP] Fix enum validation in container setters
...
When the setter is taking an array as argument we cannot use
`in_array()` to validate if the values are part of the allowed enum
values. Instead we use `array_diff()` for containers now.
2016-08-05 10:53:02 +02:00
Tony Tam
b74c1b98a2
updated version
2016-08-05 10:32:06 +02:00
Tony Tam
e6f6e66167
Merge branch 'master' of github.com:swagger-api/swagger-codegen
2016-08-05 10:31:24 +02:00
wing328
47738f6cd6
[Sinatra][Nancyfx] fix enum in Sinatra and nancyfx ( #3532 )
...
* fix enum in sintra and nancyfx
* add isContainer check for sinatra allowable value
* fix EOL in nancyfx enum template
2016-08-05 16:30:59 +08:00
Tony Tam
f82d4fa033
updated version
2016-08-05 09:09:45 +02:00
Tony Tam
ce7a5682d5
version update
2016-08-05 08:54:36 +02:00
Tony Tam
125338a081
updated parser
2016-08-05 08:53:13 +02:00
wing328
41ffc70d93
Merge pull request #3531 from wing328/java_test_enum
...
[Java] add enum test cases for Jackson, Gson
2016-08-05 12:19:24 +08:00
wing328
d76c7cc5e8
add test cases for jersey1 enum
2016-08-05 11:49:34 +08:00
wing328
a2496df401
add test case for okthtp-gson enum
2016-08-05 11:45:51 +08:00
wing328
122af80881
better symbol mapping for enum name
2016-08-05 11:28:07 +08:00
Jack Danger Canty
6010c1e6d8
Restore ability to configure Go
2016-08-04 15:40:18 -07:00
wing328
89fe3403a7
add enum test case for jersey2
2016-08-05 01:57:34 +08:00
Dmytro Kryvoshei
fe5c235727
fixed InlineModelResolver to support Title as model name for any inline
...
object
InlineModels defined within MapProerty and ArrayProerty were not using
"title".
Added Unit Tests
2016-08-04 08:57:16 -04:00
wing328
5b4eb96ba1
Merge pull request #3519 from wing328/enum_name_mapping
...
[Java] better enum naming for symbol
2016-08-04 17:06:46 +08:00
wing328
670f103859
better enum naming for symbol (java)
2016-08-04 16:37:48 +08:00
Neil O'Toole
70d8041cb4
fixed config to support transport, and other options
2016-08-03 20:42:21 -06:00
wing328
d5bf43b824
Merge pull request #3511 from wing328/bug/3355
...
[Java][Spring] fix models with enum properties
2016-08-03 19:02:18 +08:00
wing328
3238fd2853
ignore 2 test cases in spring cloud client
2016-08-03 18:43:43 +08:00
wing328
0547f0d6d8
fix spring enum model
2016-08-03 16:38:02 +08:00
wing328
3dc31ced8e
update https to http for Germin8
2016-08-03 16:37:17 +08:00
wing328
7d8c9dc40a
add Germin8
2016-08-03 16:36:08 +08:00
wing328
81f981c54d
Merge pull request #3506 from wing328/fix_array_enum
...
[JaxRS][PHP] Fix issue with enum
2016-08-03 14:50:05 +08:00
wing328
26c33d344d
Merge pull request #3507 from chrislewis/gen-readme-typo
...
s/It's/Its
2016-08-03 12:14:36 +08:00
wing328
5103045246
Merge pull request #3504 from himanshu-mishra/issue-3502
...
Using baseName in place of paramName in request header. Closes #3502
2016-08-03 10:50:57 +08:00
Chris Lewis
3bd01b988e
s/It's/Its
2016-08-02 15:50:25 -04:00
wing328
811b5940eb
update jaxrs with better test, fix enum issue, patch operation
2016-08-03 01:36:34 +08:00
wing328
1fde95f997
fix java okhttp (array of enum property)
2016-08-03 01:36:34 +08:00
wing328
25fa3e86f9
add enumName to store the enum prefix
2016-08-03 01:36:13 +08:00
wing328
0b8acb5b0c
set allowablevalues of inner enum's allowablevalues
2016-08-03 01:35:58 +08:00
Himanshu Mishra
24d8c621c2
Using baseName in place of paramName in request header. Closes #3502
2016-08-02 21:38:26 +05:30
wing328
bbe422947f
Merge pull request #3501 from wing328/revert_3391_2
...
Revert "Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen "
2016-08-02 18:28:15 +08:00
wing328
ed9dea6a89
Revert "Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen "
...
This reverts commit 7c1daab896 , reversing
changes made to aa58497247 .
2016-08-02 17:49:55 +08:00
wing328
7bd37468bc
Merge pull request #3496 from Kvezon/jersey2-byte-array-deserialize
...
Support byte[] downloading in Java jersey2 client
2016-08-02 16:24:40 +08:00
wing328
390ec38ec7
Merge pull request #3482 from cliffano/master
...
[Java] Add maven-javadoc-plugin in pom.xml of generated Java client.
2016-08-02 16:19:29 +08:00
wing328
1886abb9f9
Merge pull request #3487 from szantopeter/master
...
fixing bug of rendering an extra spaces into @FeignClient annotation
2016-08-01 23:12:39 +08:00
Kvezon
ef526422e9
Support byte[] downloading in Java jersey2 client
2016-08-01 16:33:58 +03:00
Peter Szanto
9cc4e1fee0
updated readme.md
2016-08-01 15:16:00 +02:00
Peter Szanto
abd5b3f4de
regenerated the spring-cloud sample
2016-08-01 14:50:09 +02:00
wing328
103cc7410b
Merge pull request #3494 from osher/patch-1
...
NodeJS generator - Harken to the the warnings ...
2016-08-01 20:43:18 +08:00
osher
30776d75a9
NodeJS generator - Harken to the the warnings ...
...
2 types of warnings are emitted in bulk whenever using the nodeJS generator.
I did some guesswork: since JS is a c-type language like C# and Java - I looked there for reference, and followed their example.
2016-08-01 13:40:29 +03:00
wing328
f5e20b4e88
Merge pull request #3493 from arnested/php/Client_properties_validation-3480
...
[PHP] Fix invalid PHP syntax
2016-08-01 18:06:56 +08:00
Arne Jørgensen
aacc235665
[PHP] Regenerate petstore samples
2016-08-01 11:48:52 +02:00
Arne Jørgensen
cfe8dfc112
[PHP] Fix invalid PHP syntax
...
Fixes 3480.
2016-08-01 11:46:57 +02:00
wing328
df05295f40
add confluence wiki
2016-08-01 17:35:05 +08:00
wing328
61b86c74fb
Merge branch 'jhitchcock-feature/confluencewikidocs'
2016-08-01 17:30:04 +08:00
wing328
c6e6a6560a
add shell script for cwiki
2016-08-01 17:29:27 +08:00
wing328
1bdd15c55c
Merge branch 'feature/confluencewikidocs' of https://github.com/jhitchcock/swagger-codegen into jhitchcock-feature/confluencewikidocs
2016-08-01 17:25:20 +08:00
wing328
85c8eb3d76
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-08-01 17:25:13 +08:00
wing328
4895a35200
Merge pull request #3492 from wing328/ruby_optional_validation
...
[Ruby] fix validation for optional parameters/properties for ruby
2016-08-01 17:12:39 +08:00
wing328
8c357dd1d6
fix validation for optional parameters/properties for ruby
2016-08-01 16:50:11 +08:00
wing328
fa7bd21420
add template owner for html doc 2
2016-08-01 16:17:24 +08:00
wing328
434b4fd359
Merge pull request #3447 from jhitchcock/feature/static-docs-2
...
[WIP] - Html Docs 2 - API and Client Library Documentation - Feedback / Assistance wanted
2016-08-01 16:13:16 +08:00
Arne Jørgensen
0f8e1f8105
[PHP] Client properties validation #3457 ( #3480 )
...
* [PHP] Avoid validation of unset, optional parameters
Fixes #3457 .
* [PHP] Regenerate petstore samples
2016-08-01 15:24:47 +08:00
abcsun
d7c959fe42
[PHP] add AbstractPhpCodegen to be as the base class of PHP-related generators ( #3310 )
...
* add abstractPhpCodegen
* This base class should provide common functions to PHP-related generators so that the same enhancements or bug fixes can be applied to all clients.
Most source be moved from the PhpClientCodegen.
* change Lumen codegen to use the AbstractPhpCodegen
* remove the composerVendorName/composerProjectName. modify the LumenServerOptionsTest for unit test
* add context path
* reserve the apiDocPath and modelDocPath
* add the templateDir for lumen
2016-08-01 15:23:35 +08:00
Yao, Yao
62921e4eb4
issue fix: for top enum definition, either enum parameter or enum model definition, auto-generated code is invalid.
2016-08-01 14:40:35 +08:00
Yao, Yao
a772a855ee
issue fix: when security.scope. description has a precedent | ,newline in markdown, generated api will break as an extra newline is added.
2016-08-01 14:35:27 +08:00
wing328
3d7ff26c67
[C#] Add C# Petstore test to AppVeyor ( #3489 )
...
* update appveyor.yml to test c# petstore client
* update csproj file
* add docker version test
* add docker version
* add docker
* add cpuid.ps1
* comment out cpuid
* use start process
* remove mvn test
* remove comments related to docker
* fix appveyor to run local petstore, shippable caching turned on
* add comments to ci config
* remove cpuid.ps1
* update C# petstore sample
2016-07-31 22:37:06 +08:00
wing328
2d491dce71
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-07-31 10:33:47 +08:00
Peter Szanto
c91b004b0b
fixing bug of rendering an extra spaces into @FeignClient annotation properties
2016-07-31 04:16:22 +02:00
wing328
75cd4bf437
add shippable badge, update travis badge
2016-07-31 10:07:04 +08:00
Jack Wink
be6c661fa0
[Swift] Update samples to use latest Alamofire
...
In order to run the integration tests, we needed to generate updated
clients.
2016-07-30 12:19:06 -07:00
wing328
7c1daab896
Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagger-codegen
2016-07-30 16:17:08 +08:00
Jack Wink
f2ebb08b33
[Swift] Use the latest Alamofire (3.4.1)
...
This commit updates the Swift client templates to be compatible with the
latest version of Alamofire. It bumps the dependency version in the
podspec and names the argument when calling `responseData`. We found
that XCode was having trouble with the overloaded methods and needed the
named argument for hinting.
2016-07-29 21:57:08 -07:00
jhitchcock
c377153336
Confluence Wiki Documentation
2016-07-29 12:09:03 +02:00
wing328
aa58497247
add decentfox
2016-07-29 10:38:51 +08:00
wing328
293096f565
Merge pull request #3476 from philicious/qt5-generator-fixes
...
Qt5: Added missing datatype handlers for QByteArray for swagger-type "byte"
2016-07-29 09:43:50 +08:00
wing328
4e17221494
Merge pull request #3471 from cbornet/fluent_containers
...
[JAVA] Add fluent methods to add items to list and put items to maps
2016-07-29 09:33:31 +08:00
wing328
33b33cb384
add Skurt to company list
2016-07-29 08:04:46 +08:00
philicious
a67f168fa6
Qt5: add handling for swagger type-format "byte" to Qt5 generator
2016-07-28 19:34:45 +02:00
philicious
b2cb215741
Qt5: added missing data type handler for QByteArray to SWGHelper
2016-07-28 19:29:33 +02:00
Cliffano Subagio
8d4cfcae78
Add maven-javadoc-plugin in pom.xml of generated Java client.
2016-07-28 23:06:57 +10:00
wing328
46a222088e
update go petstore sample
2016-07-28 00:24:36 +08:00
wing328
c8764fe0d0
Merge pull request #3470 from neilotoole/issue-3469-unused-errors-import
...
[Go] removed unused import
2016-07-28 00:20:24 +08:00
cbornet
3b4465d999
add fluent methods to add items to list and put items to maps
2016-07-27 18:18:48 +02:00
Neil O'Toole
75403f1900
removed unused import
2016-07-27 09:35:04 -06:00
Karsten Hinz
926d4a2b76
improved Multipart/form-data file upload support
...
this code will fix #3389 ( change of content Type to MediaType.APPLICATION_OCTET_STREAM_TYPE)
+ possibility for multi file upload (as List)
2016-07-27 13:06:05 +02:00
wing328
34137c703b
Merge pull request #3467 from wing328/bug/fix_3396
...
[Haskell] fix casting issue with ModelImpl in Haskell generator
2016-07-27 18:40:49 +08:00
wing328
3cd37bf5e9
fix casting issue with ModelImpl in Haskell
2016-07-27 18:07:35 +08:00
wing328
c23b473636
[Go] update travis config to run Go Petstore tests ( #3465 )
...
* update pom to include go ci
* fix pom
* add gopath
* update GOPATH
* reorder pom client, server test sequence
* remove debug echo in travis
2016-07-27 16:19:23 +08:00
wing328
748eaa849e
Merge pull request #3463 from neilotoole/issue-3462-caseified-query-param
...
Issue 3462 caseified query param
2016-07-27 16:18:58 +08:00
wing328
0675f1686e
Merge pull request #3460 from neilotoole/issue-3459_bad_required_checking
...
Issue #3459 removed check for required params
2016-07-27 16:18:49 +08:00
Neil O'Toole
154d0fc9de
#3462 using base name in request instead of caseified paramName
2016-07-26 18:11:36 -06:00
Neil O'Toole
39228c7c94
#3459 removed check for required params
2016-07-26 15:07:57 -06:00
wing328
0beb4aa303
Merge pull request #3458 from wing328/go_fix_apikey
...
[Go] fix API key issue with Go client
2016-07-27 01:17:03 +08:00
wing328
743219aa08
fix apikey issue with go client
2016-07-26 23:05:08 +08:00
wing328
81f5108bac
[Scala][Scalatra] Include scalatra pestore in the CI tests ( #3456 )
...
* add CI coverage for scalatra server
* move scalatra test to the end
2016-07-26 16:04:54 +08:00
wing328
2b66128954
Merge pull request #3454 from wing328/bug/fix_3223
...
Clear import mapping for gnereators that do not use it
2016-07-26 15:47:34 +08:00
Yi
b3403015fd
fix scalatra path with basepath ( #1425 ) ( #3448 )
2016-07-26 14:49:33 +08:00
wing328
9489f7d3eb
clear import mapping for gnereators that do not use it
2016-07-26 14:40:29 +08:00
wing328
30c2503f9f
[C#][NancyFX] Better "Add" for Dictionary and using {{packageName}} for NancyFX ( #3449 )
...
* use square bucket for C# dictionary
* use packageName for nancyfx generator, update info to debug for log
* use packageName for nancyfx generator, update info to debug for log
2016-07-26 14:10:48 +08:00
wing328
8184732da2
Merge pull request #3442 from jimschubert/csharp/3441
...
[C#] RootNamespace/AssemblyName use packageName
2016-07-25 21:50:04 +08:00
jhitchcock
aaba4b9e82
Html Docs 2 - API and Client Library Documentation
2016-07-25 15:36:05 +02:00
Jim Schubert
52cfd0f86f
[C#] RootNamespace/AssemblyName use packageName
...
Uses packageName instead of packageTitle for RootNamespace and
AssemblyName in the C# generate client project. packageTitle is intended
to add additional information to AssemblyInfo.cs, and changing
packageTitle to non-FQN text breaks adding new files to the project.
packageTitle, per CodegenConstants description:
"Specifies an AssemblyTitle for the .NET Framework global assembly
attributes stored in the AssemblyInfo file."
2016-07-24 11:21:06 -04:00
Christian Loitsch
bf17a91275
dart codegen improvements ( #3440 )
...
* fix: query params may be ints as well
don't assume query params are Strings or List<String>s
* fix dart: use correct type for QueryParams
type is Iterable, not List
only check params for != null if they haven't been checked already
add some casts to make strong mode happy
update petstore
* feat dart: enable strong mode
* feat dart: generate both browser and vm library
move petstore client into subdirectory and reference
generated libraries using path in pubspec.yaml
* feat dart: refactor petstore test.
The new layout resembles a real project.
petstore test is now strong mode compatible.
* feat: add DateTimerParser transformer
* feat: improved exception reporting
* feat[dart]: handle patch requests
* fix[dart]: typo
* fix dart: remove findPetsByTag test; enable strong-mode
find pets by tag call is deprecated and returns 500
generated library is now strong mode compatible
2016-07-23 23:45:22 +08:00
wing328
a1e7c517d3
add 2.30 and 2.2.1 milestones
2016-07-22 11:23:45 +08:00
Tao Qian
55bf8b1f96
Stop Shortening Underscore in Enum Value ( #3401 )
...
* stop shortening underscore
* use 4 space indentation
* remove fake class and use anonymous class instead
* rename
2016-07-21 21:37:54 +08:00
ozialien
d5528e5d2a
jmockit-surefire-fix ( #3429 )
2016-07-21 21:36:56 +08:00
wing328
13ec3dc6bb
[C#] fix remaining reference to NUnit 3.2.1 ( #3433 )
...
* fix remaining reference to 3.2.1 of nunit
* fix nunit runner path
2016-07-21 21:23:40 +08:00
wing328
f74bf84017
download C# nunit to 2.x ( #3432 )
2016-07-21 18:17:43 +08:00
wing328
a916696f28
fix #3427 using String() ( #3431 )
2016-07-21 17:44:10 +08:00
guohuang
f6c523bcd6
fixed all routing to v2 ( #3428 )
2016-07-21 11:44:43 +08:00
delenius
c888434580
Improve jsdoc for API return values ( #3327 )
...
* Add jsdoc for usePromises, add @link for callbacks
* Update petstore samples
* Improve jsdoc for void return type + usePromises
* Add back curly brackets correctly in model template
* Add link to Promise doc in jsdoc comment
* Fix jsdoc annotation for callApi method
The return type annotation was also broken here.
2016-07-20 20:14:51 +08:00
Tao Qian
8818cf9ff4
raise Exception instead of str ( #3322 )
2016-07-20 20:06:48 +08:00
abcsun
bee6803bcb
add context path ( #3425 )
2016-07-20 19:06:14 +08:00
Chris Jang
9c7710e695
Factory interface for typescript-fetch ( #3398 )
...
* Added Factory interface for typescript-fetch
* added tests
* Removed 'this.'
* Added Factory interface for typescript-fetch
* added tests
* Removed 'this.'
2016-07-20 18:00:52 +08:00
Andy
dfe4944552
Fix #3400 - incorrect MinLength and MaxLength on partial_model_generic.mustache template ( #3415 )
...
* fix maxLength and Regexp issue
* more fix
* revert some changes
2016-07-20 16:52:07 +08:00
wing328
97855baf83
Merge pull request #3423 from wing328/bug/fix-3418
...
[PHP][Silex] fix contextpath for index.php
2016-07-20 16:30:47 +08:00
wing328
889549a352
fix contextpath for php silex
2016-07-20 16:13:06 +08:00
wing328
269c657471
Merge pull request #3422 from wing328/bug/fix-3418
...
[PHP][Slim] Add missing context path
2016-07-20 16:05:25 +08:00
wing328
9fcb8a310d
fix #3418 - slim missing contextpath
2016-07-20 15:49:41 +08:00
wing328
d16b761aaf
Merge pull request #3407 from lunat/csharp_api_key_header_issue_3295
...
Csharp api key header issue 3295
2016-07-20 15:29:53 +08:00
wing328
7fbb499ad1
Merge pull request #3266 from ButterflyNetwork/swift-binary
...
[Swift] Handle binary data types
2016-07-19 23:19:01 +08:00
Jason Gavris
4f0b7dfaed
[Swift] Handle binary data types
2016-07-19 11:05:40 -04:00
wing328
ef857176a6
Merge pull request #3397 from ButterflyNetwork/swift-podspec
...
[Swift] Fix pod authors in podspec
2016-07-19 23:00:52 +08:00
Jason Gavris
9e6896c8f0
[Swift] Fix pod authors in podspec
2016-07-19 10:37:20 -04:00
wing328
72be69d2ed
Run petstore.swagger.io locally ( #3411 )
...
* update travis to run petstore server locally
* fix docker command
* update travis with addon
* add comment to travis.yml
2016-07-19 22:36:10 +08:00
wing328
5001b54eca
update maintainer for spring-related generator
2016-07-19 20:50:22 +08:00
lunat
92e8efde1a
Csharp api key header issue 3295
2016-07-19 14:37:03 +02:00
lunat
41bab483e0
Issue #3295
...
[csharp] header problem due to static method for adding header
2016-07-19 12:45:52 +02:00
wing328
b8f6667f00
Merge pull request #3329 from ant3/JSR310-Clients
...
[Java] Add support for JSR310 in Jersey Clients (v4)
2016-07-19 17:40:02 +08:00
wing328
ca4a90d64d
Merge pull request #3404 from wing328/objc_fix_empty_desc
...
To set a default description if none is provided
2016-07-19 17:09:01 +08:00
wing328
37404909bf
to set a default description if none is provided
2016-07-19 16:55:39 +08:00
wing328
118fd4d84d
Merge pull request #3393 from cbornet/java_inheritance
...
Set supportInheritance to true for java based gens
2016-07-19 16:15:53 +08:00
wing328
207622a8f8
Merge pull request #3402 from wing328/ruby_fix_minlength
...
[Ruby] Fix minLength, maxLength
2016-07-19 15:58:51 +08:00
wing328
d780e3a5f5
fix #3400 (ruby minLenght, maxLength)
2016-07-19 15:16:07 +08:00
wing328
b9479ae8b7
Merge pull request #3271 from ButterflyNetwork/swift-uuid
...
[Swift] Add support for NSUUID
2016-07-19 14:16:45 +08:00
wing328
60af9e7a83
Merge pull request #3375 from ButterflyNetwork/swift-progress
...
[Swift] Expose NSProgress to RequestBuilder
2016-07-19 13:46:50 +08:00
wing328
77097ec76a
Merge pull request #3364 from michaelkourlas/michaelkourlas-patch-1
...
Correct reference to ApiClient default instance
2016-07-19 13:44:52 +08:00
wing328
323c778059
Merge pull request #3378 from ButterflyNetwork/python-flaky-test
...
[Python] Fix flaky test with id collisions
2016-07-19 13:30:46 +08:00
wing328
b3a6535d1e
Merge pull request #3385 from wing328/fix_mvn_warning
...
Fix maven warning and update maven plug-ins to the latest version
2016-07-19 13:10:49 +08:00
wing328
dc8eb8e8ad
Merge pull request #3394 from clasnake/3171/scalatra_petstore_error
...
Fix the scalatra petstore sample compile error.
2016-07-19 13:10:26 +08:00
Jason Gavris
cd79ae1ab4
[Swift] Add support for NSUUID
2016-07-18 23:30:01 -04:00
Jason Gavris
87b79e5946
[Swift] Expose NSProgress to RequestBuilder
2016-07-18 23:29:29 -04:00
Jason Gavris
be65a26db0
[Python] Fix flaky test with id collisions
2016-07-18 23:29:17 -04:00
wing328
3659767e0a
Merge pull request #3399 from cbornet/fix_jetty
...
Make jersey tests wait that jetty is closed before terminating
2016-07-19 11:18:46 +08:00
cbornet
34d3a5e8d0
make jersey tests wait that jetty is closed before terminating
2016-07-18 23:21:12 +02:00
clasnake
5e4e84ffe7
Fix the scalatra petstore sample compile error.
2016-07-18 23:58:03 +08:00
cbornet
421c462ba9
set supportInheritance to true for java based gens
2016-07-18 16:33:20 +02:00
wing328
0d9878373c
Merge pull request #3377 from ButterflyNetwork/maven-cache
...
[Travis] Cache maven directory
2016-07-18 22:18:00 +08:00
wing328
4da6ecf6a6
Merge pull request #3384 from keithballdotnet/patch-1
...
[Go] ParameterToString can panic
2016-07-18 22:17:12 +08:00
Wolfgang Berger
d4611e4645
remove custom codegen
2016-07-18 13:05:07 +02:00
Wolfgang Berger
f37bd4ab49
rename ApiClient to ApiSessionManager, return cancellable tasks instead of request IDs which greatly reduces state while offering real cancellation, change to a protocol-based configuration with a default implementation, include a workarount for current JSONModel concurrency issues, add missing super call in QueryParamCollection initWithValuesAndFormat
2016-07-18 13:01:57 +02:00
Wolfgang Berger
e73f2a5c64
Merge branch 'upstream-master' into feature/objc-sessionmanager-integration
...
* upstream-master:
update JAR URL to 2.2.0
updated dev versions
set interface with discriminator as parent
null check
updated readme
updated versions for release
update java petstore sample
derive invoker package name from api/modoel package name
2016-07-18 12:02:32 +02:00
Wolfgang Berger
749a17d292
cleanup
2016-07-18 12:00:22 +02:00
wing328
e6f08df30c
update JAR URL to 2.2.0
2016-07-18 17:32:29 +08:00
Wolfgang Berger
07d2e7245e
updates iso lib version requirement
2016-07-18 11:20:29 +02:00
Wolfgang Berger
e077e80dcb
add missing assignment to task
2016-07-18 10:45:22 +02:00
Tony Tam
39cb6a24db
updated dev versions
2016-07-17 15:43:30 -07:00
Tony Tam
46545c14da
Merge pull request #3388 from swagger-api/release-prepare
...
updated versions for release
2016-07-17 15:25:14 -07:00
cbornet
8740b4d0ea
set interface with discriminator as parent
...
If a composed model (allOf) doesn't have any parent and one of its interface has a discriminator field, then set this interface as parent.
See #2096
See https://github.com/swagger-api/swagger-parser/pull/246
2016-07-17 14:38:03 -07:00
Tony Tam
bd0340327b
Merge branch 'wing328-java_fix_apiclient' into release-prepare
2016-07-15 22:37:35 -07:00
Tony Tam
3346388056
null check
2016-07-15 21:39:58 -07:00
Tony Tam
fbada6ef11
Merge branch 'java_fix_apiclient' of https://github.com/wing328/swagger-codegen into wing328-java_fix_apiclient
2016-07-15 14:41:46 -07:00
Tony Tam
d9aa1dd985
updated readme
2016-07-15 13:46:47 -07:00
Tony Tam
c49db091ef
updated versions for release
2016-07-15 13:45:22 -07:00
Wolfgang Berger
d120902e4b
integrate latest objc changes into objc-sessionmanager
2016-07-15 15:36:24 +02:00
wing328
9056a5a56c
fix mvn warning, update mvn plug-in version
2016-07-15 21:21:58 +08:00
keithballdotnet
cb547c113a
ParameterToString can panic
...
Let the fmt package help convert the obj to a string. Previously this could panic if the obj was an int.
2016-07-15 14:55:11 +02:00
wing328
9e0c865c08
update java petstore sample
2016-07-15 17:45:06 +08:00
wing328
67a674bf3d
derive invoker package name from api/modoel package name
2016-07-15 17:42:05 +08:00
Wolfgang Berger
fab499e612
Merge branch 'upstream-master' into feature/objc-sessionmanager-integration
...
* upstream-master:
add more companies
added env variable override
add link to appveyor build
fix defeault rspec test for ruby, update security petstore
[Swift] Use ISO-8601 date format
2016-07-15 10:09:15 +02:00
wing328
bd7904d42a
add more companies
2016-07-15 12:20:19 +08:00
Jason Gavris
4d9b5feb77
[Travis] Cache maven directory
2016-07-14 21:57:24 -04:00
wing328
0405db7a97
Merge pull request #3264 from ButterflyNetwork/swift-iso-date
...
[Swift] Use ISO-8601 date format
2016-07-15 08:33:49 +08:00
Tony Tam
ac06825f08
Merge pull request #3373 from swagger-api/issue-3372
...
added env variable override
2016-07-14 13:02:24 -07:00
Tony Tam
20216a9418
added env variable override
2016-07-14 12:05:36 -07:00
wing328
ac3b60e390
add link to appveyor build
2016-07-14 22:47:38 +08:00
wing328
2d35743b0d
Merge pull request #3368 from wing328/ruby_fix_rspec
...
[Ruby] fix default rspec test cases for Ruby API client
2016-07-14 22:13:34 +08:00
Wolfgang Berger
fb68c6c93d
update naming
2016-07-14 15:38:05 +02:00
Wolfgang Berger
f14f4c1e93
Merge branch 'upstream-master' into feature/objc-sessionmanager-master-merge
...
* upstream-master: (1081 commits)
improve ts node enum naming
update ruby samples
update ruby sample
Update README to clean on mvn package
fix csharp enum naming
fix double hyphen in c# generator
Remove more Java String comparison using "=="
Not compare Java String with "=="
fix csharp code sample
feat dart: add pubName to all remaining library parts
fix[ruby]: Problem with List of Enum
feat dart: add pubName to library name.
feat dart: mv basePath to ApiClient
Add more security samples (#3344 )
Leverage Shipable.io to validate mustache templates (#3333 )
fix model name "client" issue
fix https://github.com/swagger-api/swagger-codegen/pull/3313/files#r70178399
#3285 replaced setModelNamePrefix by setModelNameSuffix
doc: explain how to run tests
feat: improve / fix deserialization by parsing type String
...
Conflicts:
modules/swagger-codegen/src/main/resources/objc/Object-body.mustache
2016-07-14 15:18:08 +02:00
Wolfgang Berger
83e7cdb6a3
Merge branch 'feature/objc-sessionmanager' into feature/objc-sessionmanager-merge
...
* feature/objc-sessionmanager:
updates templates with JSONModel workaround
updates for ISO8601 0.5.1
updates templates according to https://github.com/NYTimes/objective-c-style-guide
first version of session manager
2016-07-14 12:28:20 +02:00
wing328
069a6b2917
fix defeault rspec test for ruby, update security petstore
2016-07-14 18:22:01 +08:00
wing328
d3a1326405
Merge pull request #3367 from wing328/typescript_enum_naming
...
[Typescript][Node] Better enum naming
2016-07-14 17:34:42 +08:00
wing328
4f52cebf7a
improve ts node enum naming
2016-07-14 17:14:06 +08:00
wing328
748f4b21f4
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-07-14 16:44:34 +08:00
wing328
59a73a7732
Merge branch 'ircecho-patch-1'
2016-07-14 16:19:21 +08:00
wing328
7c8333e2f8
update ruby samples
2016-07-14 16:19:05 +08:00
wing328
4be11452ce
Merge branch 'patch-1' of https://github.com/ircecho/swagger-codegen into ircecho-patch-1
2016-07-14 16:11:29 +08:00
wing328
6a2ff14edb
Merge branch 'ircecho-patch-1'
2016-07-14 15:54:13 +08:00
wing328
c0491ccb1d
update ruby sample
2016-07-14 15:53:42 +08:00
wing328
3ae0ffa819
Merge branch 'patch-1' of https://github.com/ircecho/swagger-codegen into ircecho-patch-1
2016-07-14 15:32:41 +08:00
wing328
a07d602d78
Merge pull request #3361 from jdebbink/readme
...
Update README to clean on mvn package
2016-07-14 15:26:30 +08:00
Michael Kourlas
a4c589c346
Correct reference to ApiClient default instance
2016-07-13 13:56:43 -04:00
Justin Debbink
9fc7215d6d
Update README to clean on mvn package
2016-07-13 11:44:57 -05:00
wing328
0986acd2a6
Merge pull request #3359 from sinofool/master
...
Not compare Java String with "=="
2016-07-13 20:50:36 +08:00
wing328
cee45bc9aa
Merge pull request #3360 from wing328/csharp_escape_double_hyphen
...
[C#] fix double hyphen in c# generator
2016-07-13 20:44:55 +08:00
wing328
8da6e0a533
fix csharp enum naming
2016-07-13 19:11:22 +08:00
wing328
cf02d1700a
Merge pull request #3289 from d0x/Make_Pre_and_Suffix_Available
...
[MAVEN] #3284 : Made modelNamePrefix and -Suffix available through maven
2016-07-13 18:31:18 +08:00
wing328
e2d74de6ca
fix double hyphen in c# generator
2016-07-13 18:16:52 +08:00
Bochun Bai
f75a42f810
Remove more Java String comparison using "=="
2016-07-13 18:06:45 +08:00
Bochun Bai
6d4d81b652
Not compare Java String with "=="
...
Replaced with equals()
2016-07-13 17:27:11 +08:00
wing328
6e561e116b
Merge pull request #3358 from wing328/csharp_fix_doc
...
[C#] Fix C# sample code
2016-07-13 17:06:49 +08:00
wing328
9bfb52dbc1
fix csharp code sample
2016-07-13 16:22:58 +08:00
wing328
c873a52f84
Merge pull request #3325 from inc-cloitsch/rmCrypto_fixRequiredParams_useAsyncAwait_addMultiQueryParams
...
dart: fix required params. add 'multi' query params. better deserialization.
2016-07-13 16:13:41 +08:00
Christian Loitsch
8003156fd8
feat dart: add pubName to all remaining library parts
2016-07-12 19:42:11 +02:00
ircecho
66619b1a09
fix[ruby]: Problem with List of Enum
...
Fixes #3323
2016-07-12 18:21:34 +02:00
Christian Loitsch
a5351f7ec0
feat dart: add pubName to library name.
...
Otherwise projects may not use different apis generated by swagger,
because library names must be unique.
2016-07-12 18:05:40 +02:00
Christian Loitsch
0d0d353b9d
feat dart: mv basePath to ApiClient
...
Changing the basePath is pretty annoying otherwise, because
you would need to set the basePath for every Api.
2016-07-12 17:18:45 +02:00
wing328
394840e352
Add more security samples ( #3344 )
...
* add line break test to petstore-security-test.yaml
* add objc/swift security testing
* add go,scala,qt5cpp for security test
* add security test for typescript
* fix go security issue, fix consumes,produces line break
2016-07-12 19:51:28 +08:00
lunat
e6803aed97
Merge pull request #1 from lunat/CSharp-client-header-enhancement
...
CSharp client header problem
2016-07-11 14:22:11 +02:00
wing328
d4951bbf3c
Leverage Shipable.io to validate mustache templates ( #3333 )
...
* add run all petstore shell script
* add run all petstore batch file for windows tests
* better output for travis and appveyor
* add shippable config to test all petstore
* show log after test script
* remo all-petstore, update travis build
* update shiippable config
* add run-all-petstore
* failure test using ruby model
* use bash script for run-all-petstore
* update script permission
* fix html batch script
* fix missing doc in jaxrs spec generator
* fix missing api, model test in jaxrs spec generator
* rename licenseInfo for lumen
* remove ruby model failure (for CI test)
* fix "the input line is too long"
* update windows batch file to shorten the commands
* update appveyor config
* update shippable config
* add build script
* update batch file to remove args option
* fix window batch file for spring mvc/boot
* remove logging output to file
2016-07-11 13:54:18 +08:00
wing328
f536295c9d
Merge pull request #3331 from wing328/csharp_fix_client_model
...
[C#] to fix issues when the model name is "Client"
2016-07-10 19:01:36 +08:00
wing328
1c5210581e
fix model name "client" issue
2016-07-10 17:42:18 +08:00
wing328
0119a66479
fix https://github.com/swagger-api/swagger-codegen/pull/3313/files#r70178399
2016-07-10 16:55:36 +08:00
christian
8533ca43b4
#3285 replaced setModelNamePrefix by setModelNameSuffix
2016-07-09 23:50:23 +02:00
ant3
bf8e1ade56
Added tests to jersey2-java8 sample
...
These are the tests from the jersey2 sample - but adapted to use the
java8 time classes (rather than Joda time).
2016-07-09 11:31:25 +01:00
ant3
1ea80ab83a
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-07-08 23:54:14 +01:00
ant3
836aed999e
Merge remote-tracking branch 'refs/remotes/origin/master' into JSR310-Clients
2016-07-08 23:00:04 +01:00
Christian Loitsch
999ef42e81
doc: explain how to run tests
2016-07-08 15:45:53 +02:00
Christian Loitsch
9a65a5f0db
feat: improve / fix deserialization by parsing type String
...
* added api_helper.dart for a helper function.
* defaultApiClient is now a variable instead of a static field inside
ApiClient
* a lot of functions inside ApiClient are no longer static.
* optional params are now named params (needed to introduce a
justIgnoreFlag as hack)
* queryParams now support the multi format and are therefore no longer a
Map<String, String>, but a List<QueryParam>
* renamed apiException.mustache to api_exception.mustache to conform
with other file names.
* removed unused import: 'dart:html'
* removed 'package:crypto/crypto.dart' dependency. 'dart:convert' has a
base64 converter now.
* use null-aware operator for apiClient assignment in xxxApi
constructors.
* enable testStoreApi (which returned a Future nobody waited for)
* fix types in tests. Some ids were passed as Strings instead of ints.
* adapt tests to use the optional named arguments (for optional query
args)
* generate random ids in tests. Otherwise insertion will always succeed
if the test has been called once.
2016-07-08 15:02:28 +02:00
wing328
89741c75f7
Merge pull request #3276 from zhenjun115/issue2499
...
add more tips about npe;
2016-07-08 14:01:43 +08:00
wing328
cc91231f2a
Merge pull request #3216 from qtstc/add-default-value
...
Add DefaultValue Annotation to @FormParam
2016-07-08 13:51:32 +08:00
tao
638319db09
add DefaultParam annotation
2016-07-07 11:45:22 -07:00
wing328
aaeae3f0d3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-07-07 22:18:37 +08:00
wing328
82c3963f62
Merge branch 'maneeshsahu-master'
2016-07-07 22:17:59 +08:00
wing328
89befeb45b
fix long issue in python3
2016-07-07 22:17:27 +08:00
wing328
cb71c4ce31
Merge pull request #3313 from lunat/CSharp_documentation_with_anchor_link
...
CSharp Documentation with working anchor link within document
2016-07-07 21:15:58 +08:00
wing328
41e8273cb8
Merge branch 'master' of https://github.com/maneeshsahu/swagger-codegen into maneeshsahu-master
2016-07-07 19:13:29 +08:00
wing328
ef1666dd55
Merge pull request #3319 from wing328/word_full_java_util
...
[Java] update wording for fullJavaUtil option
2016-07-07 18:42:46 +08:00
wing328
1276941cc7
update wording for full util option
2016-07-07 18:31:18 +08:00
wing328
17793f49c8
Merge branch 'zhenjun115-issue3051'
2016-07-07 17:49:19 +08:00
wing328
2418448a3c
update swagger core to 1.5.9 for java feign client
2016-07-07 17:48:43 +08:00
wing328
6add9acfaf
Merge branch 'issue3051' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-issue3051
2016-07-07 17:35:45 +08:00
wing328
56951a2df4
update wording related to config.json
2016-07-07 17:25:54 +08:00
wing328
7fbe1aee07
Merge pull request #3317 from wing328/retrofit1_wording
...
[Java][Retrofit] update wording for java retrofit1
2016-07-07 17:05:30 +08:00
wing328
9c4d77ed1a
update wording for java retrofit1
2016-07-07 16:35:59 +08:00
wing328
b0313584d1
Merge pull request #3312 from wing328/java_okthtp_default
...
[Java] Set Java default library to "okhttp-gson"
2016-07-07 16:28:09 +08:00
wing328
c5cc0bbb2a
fix issue with java feign client
2016-07-07 15:53:17 +08:00
wing328
d4f9eefa94
update java-petstore-all.sh and regenerate all java petstore sample
2016-07-07 15:53:17 +08:00
wing328
ed7344d452
minor fix to pom.xml
2016-07-07 15:53:16 +08:00
wing328
3b780e30d8
change java default lib to okhttp-gson
2016-07-07 15:53:16 +08:00
wing328
d402f35711
Merge pull request #3163 from DanGe42/master
...
Improve error message for connection failures
2016-07-07 14:29:27 +08:00
wing328
d621021fb1
Merge branch 'vovan--issue-3193'
2016-07-07 13:51:17 +08:00
wing328
612afe1809
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-07-07 11:38:57 +08:00
wing328
61b2d21415
Merge branch 'jencodingatwork-master'
2016-07-07 11:38:35 +08:00
wing328
2d24e9971c
update jaxrs sample
2016-07-07 11:38:07 +08:00
wing328
4d76dd24eb
Merge branch 'master' of https://github.com/jencodingatwork/swagger-codegen into jencodingatwork-master
...
Conflicts:
modules/swagger-codegen/src/main/resources/JavaJaxRS/formParams.mustache
2016-07-07 11:34:36 +08:00
wing328
e1fead8ee5
update spring petstore sample
2016-07-07 11:32:05 +08:00
wing328
d70989c2b3
Merge branch 'issue-3193' of https://github.com/vovan-/swagger-codegen into vovan--issue-3193
2016-07-07 11:06:16 +08:00
wing328
9830e82add
Merge pull request #3294 from cbornet/spring_cloud
...
[Spring] Add a generator for spring cloud feign clients
2016-07-07 10:59:56 +08:00
wing328
b997dd15ad
Merge pull request #3306 from jimschubert/aspnet5_.NET_Core_1.0
...
[aspnet5] update to asp.net core 1.0
2016-07-07 10:59:01 +08:00
wing328
b97cedbaa7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-07-07 10:52:30 +08:00
wing328
bff9fb721f
Merge branch 'qtstc-use-base-name'
2016-07-07 10:52:07 +08:00
wing328
1f0f08f886
update jaxrs jersey1 sample
2016-07-07 10:51:42 +08:00
wing328
8f1cb33641
Merge pull request #3314 from reydelo/patch-1
...
Fix link typo in README.md
2016-07-07 10:43:30 +08:00
Reyna DeLoge
71289a1b71
Update README.md
...
Fix link!
2016-07-06 15:00:00 -07:00
christian
41df857573
#3285 Check for typeMapper types inside getSwaggerType instead of toModelName
2016-07-06 23:11:08 +02:00
Daniel Ge
b16eda17e8
Improve error message for connection failures
...
Previous ApiException message would simply print out the result of the
`curl_getinfo($curl)` call, which might be useful only if the developer
actually wanted very low-level information from curl about why a call
failed. The new message should print out a higher-level but more
informative, human-readable message. If necessary for debugging, the
ApiException's responseObject is set to the `curl_getinfo($curl)`.
2016-07-06 12:09:41 -07:00
Daniel Ge
20448dd9e3
Bump and regenerate PHP sample
2016-07-06 12:09:11 -07:00
tao
62d06f75b4
use baseName instead of paramName
2016-07-06 10:41:57 -07:00
Christian Loitsch
0466405fa5
fix: verification of requiredParams now works
...
other features:
- remove crypto dependency. base64 encoding is now part of
dart.convert.
- port Java query param handling to dart. → allows us to use 'multi'
collectionFormat for queryParams
- use async await where possible.
2016-07-06 17:45:39 +02:00
lunat
5648c5af88
CSharp Documentation with working anchor link within document
2016-07-06 16:26:59 +02:00
cbornet
e2c7dc0147
don't repackage as a spring boot app
2016-07-06 15:29:54 +02:00
vovan-
01e06c01eb
Fixed issue [Spring] Add support for the contextPath in Spring-boot gen #3193
2016-07-06 14:21:13 +03:00
wing328
d213dcd418
Merge pull request #3309 from wing328/python_better_test
...
[Python] improve test and better wording for incorrect enum value
2016-07-06 18:31:35 +08:00
cbornet
df7b694c4b
change spring-cloud petstore artifact-id
2016-07-06 11:51:56 +02:00
cbornet
57f518fe93
change spring-mvc petstore artifact-id
2016-07-06 11:47:48 +02:00
cbornet
5f15121fc2
add springboot and spring-cloud to verified samples
2016-07-06 11:26:16 +02:00
wing328
f7b223e1a9
fix test cases in python
2016-07-06 16:34:09 +08:00
cbornet
412022b852
add petstore samples and fix some issues
2016-07-06 10:30:10 +02:00
cbornet
a761682115
add a generator for spring cloud feign
2016-07-06 10:30:09 +02:00
wing328
3a3461f961
Merge pull request #3299 from wing328/android_volley_license
...
[Android][Volley] add Apache v2 license to Android Volley API client
2016-07-06 11:27:58 +08:00
wing328
c1d835dcfc
Merge pull request #3287 from lrimkus/patch-1
...
Python vnd content-type header support
2016-07-06 11:27:20 +08:00
Jim Schubert
4d5905c736
[aspnet5] Regenerate sample server
2016-07-05 22:22:20 -04:00
Jim Schubert
ae73bb7553
[aspnet5] Update to ASP.NET Core 1.0.0
...
This migrates the server generator for aspnet5 from 1.0.0-rc1-final to
1.0.0.
Changes are fairly significant in how Kestrel hosts the application, as
well as how Swagger finds XML comments for documentation. Changes are
only related to hosting, docker, and configuration.
2016-07-05 22:17:14 -04:00
jencodingatwork
c3a9d6c9c3
Modified JavaJaxrs resources to fix duplicated variable names. See issue
...
#3300 for full description.
2016-07-05 12:36:08 -04:00
laurynas
fa9cb66d75
./bin/python-petstore.sh after enhancement of content-type header parsing for vnd headers
...
note: looks like this was not run for some time, so it has changes from other commits too
2016-07-05 11:34:27 -04:00
laurynas
560f50ab9a
case insensitive search for "json" in content-type headers
2016-07-05 11:31:18 -04:00
wing328
fdde4baa9b
Merge pull request #3298 from wing328/java_add_license
...
[Java][Jersey1] add license header to Java default API client
2016-07-05 22:41:04 +08:00
wing328
6b4b2025ee
add license to android volley
2016-07-05 22:39:38 +08:00
wing328
b699fe57fc
add license header to java default client
2016-07-05 22:16:53 +08:00
wing328
7c05b902ac
Merge pull request #3293 from wing328/retrofit2_doc_warning
...
[Java][Retrofit2] remove javadoc, pom.xml warnings
2016-07-05 21:51:30 +08:00
lunat
43d1c5bffc
CSharp client header problem
...
CSharp client may cause an error adding an header because the header
list is static.
Added a check and a function tu set up the ApiKey
2016-07-05 14:42:43 +02:00
wing328
430f49aae6
fix javadoc error
2016-07-05 20:38:04 +08:00
wing328
5e6a6de351
fix javadoc error
2016-07-05 19:38:33 +08:00
wing328
9b2634787d
Merge pull request #3292 from RowanJKWalker/patch-1
...
Fix typo in README.md
2016-07-05 18:27:30 +08:00
wing328
5608c73938
update pom to cover gralde, sbt, javadoc test
2016-07-05 17:59:13 +08:00
wing328
dfc05f4bba
fix doc warning in java retrofit2 client
2016-07-05 17:49:50 +08:00
Rowan J.K. Walker
70376c8e63
Fix typo in README.md
...
On line 379 -DapiTest should be -DapiTests and -DmodelTest should be -DmodelTests.
2016-07-05 21:48:25 +12:00
wing328
907361cded
add merge commit message
2016-07-05 07:46:42 +08:00
christian
ceffa84cdf
#3285 ModelNamePre- and Suffixes should not be applied to Types.
2016-07-04 21:45:54 +02:00
Laurynas
23b81324d1
Python vnd content-type header support
...
Adding vendor header support like : "Content-Type: application/vnd.api+json" and "Content-Type: application/vnd.api+json; version=1"
2016-07-04 15:27:54 -04:00
Laurynas
df695ee2c4
Python vnd content-type header support
...
Adding vendor header support like : "Content-Type: application/vnd.api+json" and "Content-Type: application/vnd.api+json; version=1"
2016-07-04 15:22:54 -04:00
christian
0ada53435c
#3284 : Made modelNamePrefix and -Suffix available through maven
2016-07-04 19:51:38 +02:00
wing328
873e3974ed
add badge for windows test
2016-07-05 00:29:42 +08:00
wing328
4f69a2d788
update wording in overview
2016-07-05 00:03:08 +08:00
wing328
5da8b0cef3
Merge pull request #3275 from wing328/windows_ci
...
Add CI tests for Windows environment
2016-07-04 23:58:02 +08:00
wing328
6d6cfbfd5d
Merge pull request #3283 from wing328/ruby_verify_host
...
[Ruby] add option to set SSL/TLS host option in ruby client
2016-07-04 22:31:03 +08:00
wing328
785d1a5648
add option to set ssl host setting in ruby client
2016-07-04 22:13:25 +08:00
wing328
7de7c6de43
Merge pull request #3282 from wing328/objc_fix_typo
...
[ObjC] fix typo in readme doc
2016-07-03 22:16:31 +08:00
wing328
e98928a0a5
Merge pull request #3186 from ant3/JSR310-Clients
...
[Java] Add support for JSR310 in Jersey Clients (v3)
2016-07-03 21:56:13 +08:00
wing328
3f6f4bfd86
fix objc readme doc
2016-07-03 21:49:33 +08:00
wing328
82ee6bbb48
Merge pull request #3278 from wing328/escape_unsafe_2
...
Better handling of multi-line comments for all generators
2016-07-03 00:20:39 +08:00
wing328
8a3c2e754b
fix python flask to handle comment block
2016-07-02 17:14:13 +08:00
wing328
dd53f8478d
Merge branch 'arturdzm-master'
2016-07-02 17:00:43 +08:00
wing328
e2e0af1e6c
Merge branch 'master' of https://github.com/arturdzm/swagger-codegen into arturdzm-master
...
Conflicts:
README.md
2016-07-02 17:00:21 +08:00
wing328
2464633368
better handling of multiline comments for all lang
2016-07-02 16:25:55 +08:00
zhenjun115
4a71a4c290
add more tips about npe;
2016-07-02 16:16:50 +08:00
wing328
e013747535
add comments
2016-07-02 15:10:38 +08:00
wing328
f8362a56b3
failure test
2016-07-02 15:01:45 +08:00
wing328
4401e1bf8e
build test
2016-07-02 14:32:41 +08:00
zhenjun115
0117cbb29a
update the dependencies for Java Feign API clients to the latest versions;
2016-07-02 12:14:31 +08:00
wing328
3c9b172996
Merge pull request #3274 from wing328/fix_lumne
...
Remove security test from petstore-with-fake-endpoints-models-for-testing
2016-07-02 11:48:45 +08:00
wing328
393b44dcd2
remove security test from petstore-with-fake-endpoints-models-for-testing
2016-07-02 11:32:25 +08:00
wing328
691957875e
Merge pull request #3185 from cbornet/common_jersey
...
[Jax-rs][jersey] Mutualize jersey 1 and jersey 2 templates
2016-07-02 11:19:40 +08:00
wing328
3ff5dce25b
Merge pull request #3255 from arnested/php-security-tests-pom-xml
...
Add pom.xml for executing PHP Swagger Petstore Security Client tests
2016-07-02 11:03:13 +08:00
wing328
386d41db7f
fix duplciated artifact id
2016-07-01 21:56:11 +08:00
Jason Gavris
693c73171e
[Swift] Use ISO-8601 date format
...
- Also fix up Enum parameter generation for formParams by extracting _param partial
2016-07-01 09:55:32 -04:00
wing328
f5d3b65252
Merge branch 'chameleon82-fix_resteasy_gradle_definition'
2016-07-01 21:41:30 +08:00
wing328
c9d2bb8a96
add test for jaxrs resteasy joda
2016-07-01 21:40:34 +08:00
wing328
f18f81cce9
Merge branch 'fix_resteasy_gradle_definition' of https://github.com/chameleon82/swagger-codegen into chameleon82-fix_resteasy_gradle_definition
2016-07-01 19:54:43 +08:00
wing328
33e6be3ccd
Merge pull request #3268 from DenisBiondic/patch-1
...
Added my company (Conplement)
2016-07-01 19:45:51 +08:00
DenisBiondic
f69f5de0bd
Added my company (Conplement)
2016-07-01 12:32:08 +02:00
wing328
f8bf4387c3
Merge pull request #3252 from alexralko/master
...
add getHasExamples() method to support {{hasExamples}} tag in templates
2016-07-01 17:43:07 +08:00
wing328
33b4afc098
Merge pull request #3267 from wing328/swift_npe
...
[Swift] fix NPE for swift API client due to array of enum
2016-07-01 17:37:48 +08:00
wing328
8c754d234d
fix npe for swift due to array of enum
2016-07-01 16:58:18 +08:00
wing328
a18fb4ec8b
Merge pull request #3236 from cliffano/master
...
Disable path HTML-escaping in Ruby api template
2016-07-01 14:45:01 +08:00
wing328
021f554a6b
Merge pull request #3260 from gokl/format-field
...
Issue 3257: Add format field to CodegenParameter and CodegenProperty.…
2016-07-01 14:05:06 +08:00
Cliffano Subagio
6de6e93bab
Move generated ruby client test to java.io.swagger.codegen.ruby package.
2016-07-01 14:41:37 +10:00
gokl
1598fb2657
Issue 3257: Add format field to CodegenParameter and CodegenProperty. Add format to static html template.
2016-06-30 12:10:10 +02:00
wing328
45f13b28a0
Merge pull request #3258 from wing328/ruby_fix_test_case
...
[Ruby] minor update to ruby test cases
2016-06-30 16:48:35 +08:00
wing328
be4f4eb022
Merge pull request #3248 from cbornet/retrofit2_interceptor_issue
...
Use okttp builder instead of instance in retrofit2
2016-06-30 16:45:17 +08:00
wing328
7c5b583751
Merge pull request #3256 from arnested/php-expose-path-to-callapi
...
[PHP] Add path without expanded path parameters to callApi
2016-06-30 16:37:09 +08:00
wing328
4a3d9358ee
Merge pull request #3165 from abcsun/lumen
...
[PHP Lumen] sort the endpoints in ascending to avoid the route priority issure
2016-06-30 15:51:32 +08:00
wing328
c2f0397d5c
minor fix to ruby test cases
2016-06-30 15:40:35 +08:00
Arne Jørgensen
a4ec29000a
[PHP] Regenerate petstore samples
2016-06-30 07:12:28 +02:00
Arne Jørgensen
7d6ac31619
[PHP] Add path without expanded path parameters to callApi
...
In continuation of #3117 it could be useful to know the path of an
endpoint (without path parameters expanded) in the `callApi` method of
`ApiClient`.
This is for use cases where you would create a derived class from
`ApiClient` for manipulating responses from the server before further
processing (#3117 ) or add extended logging of the API calls.
2016-06-30 07:12:28 +02:00
wing328
75bd838d23
Merge pull request #3254 from delenius/jsdoc-paramtypes2
...
Generate type annotations in JS model constructors
2016-06-30 11:33:54 +08:00
wing328
9873953bdf
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-06-30 11:26:23 +08:00
wing328
183af97748
Merge branch 'chadrosen-update-ruby-sample'
2016-06-30 11:20:50 +08:00
wing328
3b022496cd
Merge branch 'update-ruby-sample' of https://github.com/chadrosen/swagger-codegen into chadrosen-update-ruby-sample
...
Conflicts:
samples/client/petstore/ruby/README.md
samples/client/petstore/ruby/docs/ArrayTest.md
samples/client/petstore/ruby/lib/petstore/models/array_test.rb
2016-06-30 11:20:28 +08:00
Cliffano Subagio
8bacbfb691
Only use Content-Disposition's filename as prefix when it exists.
2016-06-30 09:42:25 +10:00
Arne Jørgensen
52952e4ace
Add pom.xml for executing PHP Swagger Petstore Security Client tests
...
Following #3224 this adds a `pom.xml` for executing `mvn
integration-test` on the PHP Swagger Petstore Security Client tests.
The `pom.xml` is identical to the one in
`samples/client/petstore/php/SwaggerClient-php/pom.xml` with only name
and artifactId changed.
2016-06-29 22:56:27 +02:00
delenius
8a8e9432e1
Generate type annotations in JS model constructors
...
Fixes #3207
2016-06-29 13:53:33 -07:00
Chad Rosen
4a4151a751
update ruby samples by running the bin/ruby-petstore.sh
2016-06-29 13:19:37 -07:00
wing328
40e497088a
Merge pull request #3251 from wing328/fix_slim_path
...
[PHP][Slim] fix slim path in Windows
2016-06-30 00:55:14 +08:00
wing328
9ee10e2397
Merge pull request #3249 from wing328/csharp_security_fix
...
[C#] better code injection handling for C# API client
2016-06-29 23:59:24 +08:00
Alex Ralko
a862601482
add getHasExamples() method to support {{hasExamples}} tag in templates
2016-06-29 18:56:45 +03:00
wing328
cb53ea114a
Merge pull request #3246 from wing328/security_fix_javascript_closure
...
[Javascript][Closure] better code injection handling for Javascript (closure)API client
2016-06-29 23:25:04 +08:00
wing328
de6b3cea70
fix slim windows path
2016-06-29 23:24:27 +08:00
cbornet
f54b505704
use okttp builder instead of instance in retrofit2
...
Fix #3188
2016-06-29 17:07:39 +02:00
wing328
7951c06f55
unescape basepath in aspnet
2016-06-29 22:54:16 +08:00
wing328
d79274d548
better code injection handling for c#
2016-06-29 22:52:12 +08:00
wing328
90857e8988
Merge pull request #3245 from wing328/security_fix_javascript
...
[Javascript] better code injection handling for Javascript API client
2016-06-29 22:30:03 +08:00
wing328
8e43f7c2f6
add new JS files
2016-06-29 22:09:27 +08:00
wing328
f89333c8c3
better code injection handling for javascript closure client
2016-06-29 22:07:14 +08:00
wing328
1e596654cd
remove node_modeuls under petstore security test for js
2016-06-29 21:47:41 +08:00
wing328
73f88f0bff
update js promise petstore client
2016-06-29 21:44:13 +08:00
wing328
73e6626e15
comment out array of enum test case, fix JS enum partial template
2016-06-29 21:40:22 +08:00
wing328
aec2f4e27c
better code injection handling for js
2016-06-29 21:18:35 +08:00
wing328
acc28495e8
Merge pull request #3244 from wing328/java_fix_2d_array_enum
...
[Java] better default value for variable declaration (with inner enum type)
2016-06-29 19:39:01 +08:00
wing328
aaf7b99220
comment out test case for map of map of enum as many lang don't support
2016-06-29 17:46:45 +08:00
wing328
fd72409e3b
better default value for enum variable declaration
2016-06-29 17:30:33 +08:00
wing328
c5724a46d6
Merge pull request #3237 from wing328/java-security-fix
...
[Java] Better code injection handling for Java-related generators
2016-06-29 15:25:10 +08:00
wing328
cbaa577c64
add more info about vendor extensions
2016-06-29 14:32:23 +08:00
wing328
926e017402
add more info about updating petstore sample
2016-06-29 14:30:29 +08:00
wing328
f88b941d96
fix java okhttp sample
2016-06-29 11:49:40 +08:00
Cliffano Subagio
b6eb81cbef
Move path unescaping from DefaultGenerator to Ruby api template.
2016-06-29 09:46:41 +10:00
wing328
77c4164b3c
better code injection handling for java
2016-06-29 02:00:43 +08:00
wing328
48bdae8fe7
Merge pull request #3235 from cbornet/common_java_models
...
Mutualize jackson and gson models in java clients
2016-06-29 00:59:38 +08:00
cbornet
ac23b10f7a
remove dead code
2016-06-28 18:06:33 +02:00
cbornet
8d8858cc51
mutualize jackson and gson models in java clients
...
See #2182
2016-06-28 18:00:34 +02:00
Cliffano Subagio
344e1b12e4
Disable template data HTML-escaping on generated code files.
2016-06-29 01:57:08 +10:00
wing328
07a852fe78
Merge pull request #3231 from wing328/security_fix_ruby
...
[Ruby] better code injection handling for Ruby API client
2016-06-28 20:09:55 +08:00
wing328
37e1de6d72
Merge pull request #3230 from wing328/security_fix_python
...
[Python] better code injection handling for Python
2016-06-28 20:09:40 +08:00
wing328
f1f01041ed
update ruby sample
2016-06-28 17:36:58 +08:00
wing328
9e216c0ca2
better code injection handling for ruby
2016-06-28 17:36:00 +08:00
wing328
56b2b4f2eb
Merge pull request #3229 from wing328/security_fix_perl
...
[Perl] better code injection handling for perl client
2016-06-28 17:35:29 +08:00
wing328
3a41da42f0
better code injection handling for python
2016-06-28 17:07:50 +08:00
wing328
02864ed31a
better code injectino handling for perl client
2016-06-28 16:37:33 +08:00
wing328
8dc22d2bda
Merge pull request #3228 from cliffano/master
...
[Ruby] Add params_encoding configuration to be passed to api_client's request options
2016-06-28 15:31:33 +08:00
wing328
a71c072609
Merge pull request #3224 from wing328/security_fix
...
[PHP] Better code injection handling for PHP API client
2016-06-28 15:19:41 +08:00
wing328
41636ae149
revert petstore-with-fake-endpoints-models-for-testing.yaml
2016-06-28 14:38:50 +08:00
wing328
133c3abc57
add warning about code injection
2016-06-28 13:22:48 +08:00
Cliffano Subagio
af77d94750
[Ruby] Add params_encoding configuration to be passed to api_client's request options.
2016-06-28 15:22:34 +10:00
wing328
174222390a
Merge pull request #3190 from thebignet/asyncCompletableFuture
...
using CompletableFuture instead of Callable for asynchronous controller in Spring Boot
2016-06-28 12:34:23 +08:00
wing328
ec2abe78e3
apply security fix to php lumne, silex, slim
2016-06-28 12:21:41 +08:00
wing328
f38c8373cc
create new spec for security testing
2016-06-28 11:48:52 +08:00
wing328
12cd0c55a0
Merge pull request #3226 from sdavis-r7/patch-1
...
Update README.md
2016-06-28 09:27:02 +08:00
Scott Lee Davis
435b4d9be9
Update README.md
2016-06-27 14:22:38 -07:00
wing328
ebd6ffaa4c
better handle of single quote to avoid code injectio in php
2016-06-28 00:54:06 +08:00
wing328
1638adb79e
avoid code injection in php api client
2016-06-27 21:51:27 +08:00
wing328
31092585f0
Merge branch 'sdavis-r7-master'
2016-06-27 16:20:58 +08:00
wing328
f482132c66
Merge branch 'master' of https://github.com/sdavis-r7/swagger-codegen into sdavis-r7-master
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
modules/swagger-codegen/src/main/resources/php/model_generic.mustache
2016-06-27 16:20:44 +08:00
wing328
5a143ec485
Merge pull request #3220 from pjmolina/nodejs-update-sample
...
Update petstore sample for changes on PR #3212
2016-06-27 14:59:24 +08:00
wing328
e26416b351
Merge pull request #3073 from bitcloud/fix-datetime-example
...
fix date format in example generator
2016-06-27 14:39:03 +08:00
Pedro J. Molina
4eb1565fad
Update petstore sample for changes on PR #3212
2016-06-27 08:10:01 +02:00
wing328
9ec61ba887
Merge pull request #3189 from thebignet/tagName
...
add tags with API name to java @Api annotation
2016-06-27 13:54:06 +08:00
wing328
bee05f0086
Merge pull request #3219 from wing328/android_gradle_update
...
[Android][Volley] add http client dependency to android volley
2016-06-27 11:59:42 +08:00
wing328
b19527d395
Merge pull request #3158 from moanrose/Issue#3096
...
Changed check for required parameter to check for null or undefined
2016-06-27 11:45:46 +08:00
wing328
7f5b391f80
run ruby test first
2016-06-27 11:27:30 +08:00
wing328
95eb06e2e9
add http client dependency to android volley
2016-06-27 11:25:15 +08:00
wing328
f3bb4ea872
Merge pull request #3180 from cbornet/feign_java8
...
|Feign] Support jsr310 dates in feign client
2016-06-27 10:47:13 +08:00
wing328
5008de5f83
Merge pull request #3181 from cbornet/retrofit2_java8
...
[Retrofit] Add support for jsr310 dates to retrofit2 client
2016-06-27 10:01:36 +08:00
wing328
f707675e48
Merge pull request #3217 from wing328/php_enum_class
...
[PHP] add enum class support, merge test cases
2016-06-27 09:53:31 +08:00
wing328
81339ad98f
add editor.swagger.io
2016-06-27 09:50:54 +08:00
wing328
294d914a17
Merge pull request #3218 from wing328/bug/fix_3215
...
[Ruby ] To fix #3215 and enum array issue in parameter check
2016-06-27 09:34:12 +08:00
wing328
e8b22a771b
add http://kuroiwebdesign.com/
2016-06-26 23:34:54 +08:00
wing328
f04df9a163
fix #3215 and enum array issue in parameter check
2016-06-26 19:17:25 +08:00
wing328
74239c422b
add enum class support, merged test cases for php
2016-06-26 17:41:29 +08:00
Jean Detoeuf
4183bfc90c
updated Java8 spring sample with CompletableFuture feature #3190
2016-06-26 11:25:54 +02:00
wing328
d15c504fc9
Merge pull request #3214 from aranyia/patch-1
...
Added W.UP to companies using Swagger
2016-06-25 13:19:02 +08:00
aranyia
6f674e3a7f
Added W.UP to companies using Swagger
...
W.UP is using Swagger codegen extensively for multiple projects on the server-side and mobile clients.
2016-06-25 00:45:17 +02:00
wing328
89ab384d75
Merge pull request #3212 from pjmolina/master
...
nodejs-server: Added npm start scripts on package.json + update README
2016-06-25 00:17:44 +08:00
wing328
2dbbff6ddc
Merge pull request #3211 from petercoles/patch-1
...
Minor typos in docs
2016-06-24 18:27:17 +08:00
Peter Coles
add63009bf
Minor typos in docs
2016-06-24 09:48:24 +01:00
Pedro J. Molina
961cbb531e
nodejs-server: Added npm start scripts on package.json + update README
2016-06-24 09:13:25 +02:00
wing328
5095fe1018
Merge pull request #3199 from wing328/better_param_enum
...
[C#] Add array and map of enum support for C#
2016-06-23 23:49:49 +08:00
wing328
5047ab3b5c
Merge pull request #3182 from cbornet/okhttp_java8
...
[Okhttp-gson] Add support for jsr310 dates to okhttp-gson client
2016-06-23 22:12:29 +08:00
Scott Davis
80666394f6
CVE-2016-5641
2016-06-23 06:06:21 -07:00
wing328
244831b29f
add c++
2016-06-23 18:08:56 +08:00
wing328
908243b90d
fix docstring
2016-06-23 12:24:49 +08:00
wing328
c15992b420
add array and map of enum support for C#
2016-06-23 12:14:32 +08:00
Jean Detoeuf
2b22efcea9
using CompletableFuture instead of Callable for asynchronous controller
2016-06-22 09:19:21 +02:00
wing328
eda6d35b9f
add nancyfx template owner
2016-06-22 10:33:31 +08:00
wing328
e0d030d33a
Merge pull request #3139 from stunney/master
...
Issue #3138
2016-06-22 10:06:37 +08:00
Alex
0506b4ab76
Fix joda dependency in resteasy gradle file
2016-06-22 01:10:48 +06:00
Jean Detoeuf
1b71076c2d
add tags with API name to java @Api annotation
2016-06-21 18:08:28 +02:00
wing328
61015488d2
Merge branch 'FinderSystems-nancyfx-codegen'
2016-06-21 23:48:58 +08:00
wing328
c2f5d83d06
Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into FinderSystems-nancyfx-codegen
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/CodegenModel.java
2016-06-21 23:47:49 +08:00
wing328
f9cf78e03d
Merge pull request #3133 from cbornet/spring_unite
...
[Spring] put spring-mvc and spring-boot under the same language gen
2016-06-21 22:51:09 +08:00
wing328
7b51522392
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-06-21 22:27:56 +08:00
wing328
dfce0dad2c
Merge branch 'qtstc-master'
2016-06-21 22:24:11 +08:00
wing328
321dc0d41c
add test case for number (decimal)
2016-06-21 22:22:21 +08:00
cbornet
426cc6b6b4
better enums and dependency update
2016-06-21 16:19:37 +02:00
wing328
fa3aacf4aa
Merge branch 'master' of https://github.com/qtstc/swagger-codegen into qtstc-master
2016-06-21 22:13:48 +08:00
wing328
0f32837383
Merge pull request #3187 from swagger-api/model_propert_same_name
...
[C#] Fix model with only read-only attributes and model & property using the same name
2016-06-21 21:59:36 +08:00
wing328
be3eec1e28
Merge pull request #3169 from RowanJKWalker/feature/issue-3168
...
Issue-3168: [csharp] Allow additional-properties to set Assembly Info #3168
2016-06-21 20:46:00 +08:00
wing328
3e30291865
fix #3184
2016-06-21 16:16:05 +08:00
cbornet
10d3716cd1
fix allowableValues test
2016-06-21 09:20:44 +02:00
wing328
d7bfe5495e
add wealthfront, gravitate solution, Mporium
2016-06-21 10:26:28 +08:00
ant3
8b60a1e144
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-06-21 00:17:01 +01:00
ant3
274c3150a7
Rebuilt jersey2 client sample.
2016-06-21 00:16:39 +01:00
ant3
b7e4be77c6
Rebuilt jersey1 client sample
2016-06-21 00:16:17 +01:00
ant3
b107b4693d
Rebuilt jersey2-java8 sample
2016-06-21 00:15:34 +01:00
ant3
4ef10aa5ae
Upgraded dependency versions
...
Also switched from using JSR310Module (Deprecated) to JavaTimeModule.
2016-06-21 00:14:10 +01:00
ant3
e40ad8ce3c
Added sample build for Java8 Jersey2 client
2016-06-20 23:10:01 +01:00
cbornet
d4150d9a02
remove jersey2 sample as its now the jax-rs default
2016-06-20 23:48:42 +02:00
cbornet
5a489f334e
mutualize jersey 1 and 2 server templates
2016-06-20 22:59:32 +02:00
cbornet
d29a5537bc
add support for jsr310 dates to okhttp-gson client
2016-06-20 16:50:08 +02:00
wing328
d7ac136503
Merge pull request #3179 from areiter/dart-missing-dartson-property
...
Dart - Java compatibility
2016-06-20 22:46:43 +08:00
wing328
450eb844e9
add guohuang as go server owner
2016-06-20 22:42:24 +08:00
Marcin Stefaniuk
5b7ed41b1b
Extended list of generators.
2016-06-20 15:41:53 +02:00
cbornet
027ff93ae4
rename and remove dead code
2016-06-20 15:16:13 +02:00
cbornet
1062fa467e
fix issues
2016-06-20 15:13:17 +02:00
cbornet
ec6a9257e2
put spring-mvc and spring-boot under the same language gen
2016-06-20 15:12:03 +02:00
cbornet
48564079be
add support for jsr310 dates to retrofit2 client
...
See #2874
2016-06-20 14:32:18 +02:00
Andreas Reiter
9ec0e545c8
Updated dart petstore
2016-06-20 13:25:54 +02:00
Rowan Walker
6ca58cfaa4
Issue-3168: Adding a DESC for each of the new CodegenConstants introduced.
2016-06-20 23:12:05 +12:00
cbornet
3e9064b81e
support jsr310 dates in feign client
...
See #2874
2016-06-20 13:04:44 +02:00
Marcin Stefaniuk
897cd5c2ef
Updated readme section with enlisted companies using Swagger Codegen.
2016-06-20 11:44:25 +02:00
Andreas Reiter
dee8a7b924
Add dartson-@Property to enable out of the box compatibility with code generated for e.g. Java
2016-06-20 11:16:51 +02:00
wing328
79dc34266f
Merge pull request #3142 from cbornet/abstract_java
...
[Java] Refactor java codegen classes
2016-06-20 17:11:46 +08:00
cbornet
6c5def6936
fix missing java client library files
2016-06-20 10:32:02 +02:00
cbornet
d4c961798e
fix tests
2016-06-20 10:32:01 +02:00
cbornet
7aac639aad
refactor java codegen classes
2016-06-20 10:31:58 +02:00
Marcin Stefaniuk
0d9a490c17
Petstore sample for NancyFX.
2016-06-20 10:13:25 +02:00
wing328
07ce036a9a
Merge pull request #3177 from wing328/fix_java_class_property
...
[Java] fix property name "class"
2016-06-20 15:30:25 +08:00
wing328
8283b701e8
fix java property with the name "class"
2016-06-20 14:51:17 +08:00
wing328
514255c8b7
clean up toc
2016-06-20 14:16:22 +08:00
wing328
6fd1912b92
Merge pull request #3151 from mateuszmackowiak/objc/core_data
...
[Objc] Moved default petstore demo sample to default folder and created a new with core data sample
2016-06-20 14:02:34 +08:00
wing328
d67e4d73cc
Merge branch 'zhenjun115-new_python_with_http_info'
2016-06-20 13:12:35 +08:00
tao
90d61578d0
remove reformat
2016-06-19 21:39:06 -07:00
tao
6ac27fcafc
revert changes to imports
2016-06-19 21:36:08 -07:00
tao
4e45ef954d
better tests
2016-06-19 21:29:14 -07:00
wing328
50ef914db0
update test script for python
2016-06-20 12:24:53 +08:00
tao
a4eca5b05c
add import for types used by inner CodegenProperties
2016-06-19 21:19:21 -07:00
tao
bf9d015fc7
failing test
2016-06-19 20:58:47 -07:00
wing328
88ce868bd5
Merge branch 'new_python_with_http_info' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-new_python_with_http_info
...
Conflicts:
modules/swagger-codegen/src/main/resources/python/api.mustache
samples/client/petstore/python/swagger_client/__init__.py
samples/client/petstore/python/swagger_client/api_client.py
samples/client/petstore/python/swagger_client/apis/pet_api.py
samples/client/petstore/python/swagger_client/apis/store_api.py
samples/client/petstore/python/swagger_client/apis/user_api.py
samples/client/petstore/python/swagger_client/models/__init__.py
samples/client/petstore/python/swagger_client/models/name.py
2016-06-20 11:58:35 +08:00
ant3
4c1c009bd1
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2016-06-20 00:25:01 +01:00
ant3
7e867dc8ff
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-06-19 22:40:27 +01:00
ant3
5e3a877033
Reformatted templating tags
...
Turns out I didn't need to compact newlines so I have reverted to a more
readable format for the templates.
2016-06-19 22:39:00 +01:00
ant3
cf42b4166f
Fixed name of JSR310 module
...
Silly error, which resulted in code that didn't compile :-(.
2016-06-19 21:10:59 +01:00
wing328
b8c0569feb
Merge pull request #3172 from wing328/ts_gitignore
...
[Typescript] add .gitignore and license header
2016-06-19 23:14:18 +08:00
zhenjun115
8180a46a35
add test case for pet api method with http info returned;
2016-06-19 21:44:12 +08:00
wing328
fdff69de31
Merge pull request #3113 from taf2/patch-1
...
it's the future
2016-06-19 17:24:44 +08:00
zhenjun115
86c8647ace
add async method test case for pet api;
2016-06-19 12:31:10 +08:00
Rowan Walker
3606870f4b
Issue-3168
...
[csharp] Enabling Assembly Info to be set by the following command line's additional-properties:
- packageTitle
- packageProductName
- packageDescription
- packageCompany
- packageCopyright
2016-06-19 16:21:51 +12:00
wing328
409d5dabca
add license header to typescript API client
2016-06-19 12:03:50 +08:00
wing328
41a615e4eb
add gitignore to TS API client
2016-06-19 11:45:51 +08:00
wing328
977ea6e9e9
Merge pull request #3167 from wing328/cpprest_license
...
[C++][cpprest] add license header to cpprest files
2016-06-18 18:52:20 +08:00
wing328
2b7288d525
add license to cpprest files
2016-06-18 18:09:19 +08:00
wing328
77d0e121bf
Merge pull request #3065 from ant3/JSR310-Clients
...
[Java] Add support for JSR310 in Jersey2 Clients
2016-06-18 17:36:58 +08:00
abcsun
cff573f3dd
modify the file path with File.separatorChar base on os
2016-06-18 17:24:06 +08:00
wing328
cc5668c825
Merge pull request #3108 from JasonQuinn/master
...
Adding the ability to get and set the httpClient for jersey2
2016-06-18 16:56:01 +08:00
wing328
f4e90d50a0
Merge pull request #3166 from wing328/scala_license
...
[Scala] Add Apache2 license to auto-generated scala files
2016-06-18 16:10:49 +08:00
wing328
4aa9f1b5fa
add license header to scala files
2016-06-18 15:21:55 +08:00
wing328
6af40d6667
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-06-18 15:10:27 +08:00
wing328
517a189712
Merge pull request #3149 from jimschubert/scala_client_refactor
...
[scala] Add SBT buid support for scala client
2016-06-18 15:10:04 +08:00
wing328
2e8737908b
Merge branch 'jimschubert-scala_client_refactor'
2016-06-18 15:09:18 +08:00
wing328
04748484ba
remove println from scala test
2016-06-18 15:08:55 +08:00
wing328
04b15bab15
Merge branch 'scala_client_refactor' of https://github.com/jimschubert/swagger-codegen into jimschubert-scala_client_refactor
2016-06-18 14:54:56 +08:00
wing328
fe06fe30e0
Merge pull request #3156 from ferristseng/master
...
Fix result not defined error in javascript ApiClient
2016-06-18 14:53:29 +08:00
abcsun
3cb178cd14
sort the endpoints in ascending to avoid the route priority issure
2016-06-18 10:16:46 +08:00
ant3
c1a5839d44
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-06-17 21:25:35 +01:00
Ferris Tseng
c30c586f94
update petstore sample
2016-06-17 15:46:36 -04:00
Ferris Tseng
3852736b40
fix result not defined error in js client
2016-06-17 10:47:48 -04:00
Jakub Malek
6404d47f97
NancyFx:
...
- Fixed typo
2016-06-17 15:35:04 +02:00
Jakub Malek
82d290eeae
Merge with upstream
2016-06-17 15:22:17 +02:00
wing328
cc5e79cd0d
move server stub doc to wiki
2016-06-17 19:36:24 +08:00
moanrose
a9bd4f2b42
Changed check for required parameter to check for null or undefined
2016-06-17 13:10:45 +02:00
wing328
1bdaba5cdc
Merge pull request #3127 from abcsun/lumen
...
[PHP Lumen] add parameters validation and the Apache license
2016-06-17 18:58:57 +08:00
Jakub Malek
38298c3709
NancyFx:
...
- Sharpility version update
2016-06-17 09:35:53 +02:00
wing328
36264f3801
Merge pull request #3152 from salemXpresso/master
...
Fix Java CXF on parameter names containing '_' or '-'
2016-06-17 12:44:18 +08:00
wing328
8eff9188fb
Merge pull request #3153 from wing328/qtcpp_license
...
[Qt5 C++] Add apache2 license to qt5cpp files
2016-06-17 12:20:09 +08:00
abcsun
0effbae24b
add lumen api.mustache to generate controller & license update & resource dir restructure
2016-06-17 11:37:10 +08:00
wing328
c231474c4b
Merge pull request #3154 from wing328/python_travis_ci
...
[Python] add travis.yml to python api client
2016-06-17 09:23:42 +08:00
Jim Schubert
ee630337b9
[scala] Add SBT buid support for scala client
2016-06-16 20:43:58 -04:00
wing328
f9eef2c825
add travis.yml for python api client
2016-06-17 00:41:40 +08:00
wing328
6bdee2adb5
add apache2 license to qt5cpp
2016-06-17 00:04:05 +08:00
Remi Salembier
2d275b41e0
Java CXF petstore sample update
2016-06-16 17:13:02 +02:00
Remi Salembier
799b27b249
Fix Java CXF on parameter names containing '_' or '-'
2016-06-16 16:18:01 +02:00
Mateusz Mackowiak
f33b0a2942
[Objc] Moved default petstore demo sample to default folder and created a target with core data sample
2016-06-16 13:12:42 +02:00
Mateusz Mackowiak
fc43b8700b
[Objc] Moved default petstore demo sample to default folder and created a target with core data sample
2016-06-16 11:57:52 +02:00
wing328
77d1d97da5
Merge pull request #3015 from cbornet/java_instant
...
Use OffsetDateTime instead of LocalDateTime
2016-06-16 17:48:22 +08:00
wing328
dd379461e2
Merge pull request #3124 from mateuszmackowiak/objc/core_data_support_for_array_model
...
[Objc] - CoreData support for ArrayModels
2016-06-16 17:24:08 +08:00
wing328
b5f22ff5c8
Merge pull request #3109 from philicious/qt5-cpp-helpers-fix
...
Fixed several issues with Qt5 generator and Qt5 PetStore tests
2016-06-16 16:54:45 +08:00
wing328
2107758100
add swift-petstore-all.sh and partial_license for perl
2016-06-16 16:42:17 +08:00
wing328
6a68965308
Merge pull request #3131 from mateuszmackowiak/android/volley/post_null_body_fix_proper
...
[Android][Volley] fix support for post null body
2016-06-16 16:04:55 +08:00
wing328
e501287036
Merge pull request #3130 from taxpon/issue-3129-handle-204
...
Handle 204 response correctly in typescirpt-angualr2
2016-06-16 15:30:10 +08:00
ant3
ae67961f60
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2016-06-15 22:13:56 +01:00
Maneesh Sahu-SSI
6c350a7d2d
Added long to primitive data types supported in Python codegen
2016-06-15 13:43:36 -07:00
stunney
cb47bec293
Issue #3138
...
Continuation from original PR to update the pet store server auto gen
sample code based on previous commit.
2016-06-15 10:04:28 -04:00
stunney
0980261709
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2016-06-15 10:02:41 -04:00
wing328
89435850a6
Merge pull request #2979 from guohuang/go_server
...
issue#2970, [Go] add go server codegen template
2016-06-15 15:18:28 +08:00
wing328
e875ac6976
Merge pull request #3128 from wing328/cpprest_generator
...
[C++] add cpprest generator
2016-06-15 11:32:34 +08:00
wing328
d56eed898d
replace tab with 4-space
2016-06-15 10:50:06 +08:00
wing328
36325393bd
add C++ Danielku15
2016-06-15 10:44:04 +08:00
wing328
0b63206496
add windows batch file for cpprest-petstore
2016-06-15 10:41:35 +08:00
wing328
2362f77bbc
Merge pull request #3135 from wing328/js_license_header
...
[Javascript] add license header to JS cient, update sample
2016-06-15 10:28:37 +08:00
stunney
d21aa1f3a3
Issue #3138
...
https://github.com/swagger-api/swagger-codegen/issues/3138
Adds " virtual" to the controller moustache file so that the controllers
can be inheritted from.
2016-06-14 17:01:18 -04:00
wing328
8085e11063
add license header to JS cient, update sample
2016-06-15 01:18:04 +08:00
wing328
e2e90db863
Merge pull request #3134 from wing328/js_travis
...
[Javascript] Add auto-generated test files and .travis.yml to JS API client
2016-06-15 01:08:33 +08:00
wing328
9f3b8bab2b
add travis.yml for JS api client
2016-06-15 00:03:11 +08:00
wing328
4c277631e4
add auto-generated test cases for js api client
2016-06-14 23:50:38 +08:00
Jason Quinn
2903ec64a4
Merge branch 'master' of https://github.com/JasonQuinn/swagger-codegen
2016-06-14 15:03:24 +01:00
Jason Quinn
ed83ad3afd
Removing gradle dependency for jersey2 pom
2016-06-14 15:01:23 +01:00
Jason Quinn
54babeb5ed
Updating jersey2 sample
2016-06-14 15:01:10 +01:00
Mateusz Mackowiak
ac7a7503b4
[Android][Volley] fix support for requests null body
2016-06-14 16:00:40 +02:00
Jason Quinn
24b7f5c902
Adding the ability to get/set the httpClient for jersey2
2016-06-14 15:00:40 +01:00
Mateusz Mackowiak
54afae57c8
[Android][Volley] fix support for post null body
2016-06-14 15:49:41 +02:00
Takuro Wada
723f65b940
Fix typo in .swagger-codegen-ignore
2016-06-14 21:50:06 +09:00
Takuro Wada
2843c44401
Handle 204 response correctly in typescirpt-angualr2
2016-06-14 21:31:25 +09:00
wing328
ecd80a3d70
add cpprest and samples
2016-06-14 16:33:50 +08:00
wing328
b782dc0178
Merge pull request #3123 from mateuszmackowiak/android/volley/post_null_body_fix
...
[Android][Volley] fix support for post null body
2016-06-14 15:46:02 +08:00
wing328
db32c26cc5
Merge pull request #3126 from arnested/php-empty-array-response
...
[PHP] Handle empty array response correct
2016-06-14 15:29:38 +08:00
philicious
691ef88333
updated SWGHelpers in tests with output from 1b79734
2016-06-14 00:15:39 +02:00
philicious
9825dfc735
fixed Qt5 api-body template bug with form params
2016-06-14 00:13:12 +02:00
philicious
511971cf67
fixed wrong function parameter type in PetApiTest.cpp
2016-06-13 23:54:27 +02:00
philicious
6f85deeecd
added missing source/header for SWGApiResponse in Makefile
2016-06-13 23:53:01 +02:00
philicious
8fab73fff6
added missing systemIncludes for QMap, QDateTime, QDate
2016-06-13 23:52:13 +02:00
Arne Jørgensen
614e98a404
[PHP] Regenerate petstore sample
2016-06-13 23:22:31 +02:00
Arne Jørgensen
f5f4adac29
[PHP] Handle empty array response correct
2016-06-13 23:22:04 +02:00
wing328
871d5ddc5d
Merge pull request #3112 from cbornet/springboot_j8async
...
Add java8 and async options to Spring-Boot codegen
2016-06-14 01:02:52 +08:00
wing328
45c32fd57b
Merge pull request #3122 from clasnake/add_license_scalatra
...
Add Apache v2 license to auto-generated scalatra files.
2016-06-14 00:55:40 +08:00
wing328
e9938648ae
add scala and groovy style guide
2016-06-14 00:53:57 +08:00
wing328
d6b43d54cc
add haskell style guide
2016-06-14 00:52:34 +08:00
Mateusz Mackowiak
102226666f
[Objc] - CoreData support for ArrayModels
...
- Support for uuid and password types
2016-06-13 18:31:19 +02:00
wing328
12b16c1ff5
add android style guide
2016-06-14 00:18:48 +08:00
wing328
eb42f99bb5
Merge pull request #3056 from mateuszmackowiak/objc/core_data_unique-id-key
...
[Objc] Support for x-unique-id-key vendorExtensions
2016-06-13 23:47:31 +08:00
Mateusz Mackowiak
0816f315d3
[Android][Volley] fix support for post null body
2016-06-13 17:23:34 +02:00
clasnake
ce456fafdc
Add Apache v2 license to auto-generated scalatra files.
2016-06-13 22:55:18 +08:00
wing328
cfa40b1484
Merge pull request #3119 from wing328/java_travis
...
[Java] add travis.yml for Java API client
2016-06-13 17:42:49 +08:00
abcsun
ee024c40fb
add apache license to lumen
2016-06-13 17:37:19 +08:00
wing328
3295b24cc2
add travis.yml for java client
2016-06-13 17:06:49 +08:00
wing328
a97402d1ee
add http://www.lascaux.it/
2016-06-13 15:15:21 +08:00
abcsun
bffb0fb4d8
sync from origin master
2016-06-13 10:25:03 +08:00
Guo Huang
e39aa3ed3c
fix merge conflict
2016-06-12 14:15:55 -07:00
ant3
fecaf0673a
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-06-12 19:18:07 +01:00
ant3
56c6e081d5
Fixed Java 8 time in Jersey 1 Client
...
Made the Jersey 1 client work with java 8 time classes. Also tightened
up newlines in templates.
2016-06-12 19:15:38 +01:00
wing328
c5eda5557e
Merge pull request #3116 from wing328/csharp_travis
...
[C#] Add travis file to C# client for CI with travis-ci.org
2016-06-12 17:22:17 +08:00
wing328
16d89a47b7
add travis file for C# client
2016-06-12 16:45:49 +08:00
wing328
dda6c600ae
Merge pull request #3115 from wing328/csharp_add_mono_test
...
[C#] Add mono test script, various enhancements
2016-06-12 13:21:54 +08:00
wing328
bca3d24d20
fix test cases, fix warning in exceptionfactory, update
...
.swagger-codegen-ignore for c# to keep logo file (for upload test)
2016-06-12 12:41:35 +08:00
wing328
6ddf34ce8a
update nunit to 3.2.1
2016-06-12 01:56:31 +08:00
wing328
4b6d372bff
update C# json to 8.0.3
2016-06-12 00:39:56 +08:00
wing328
bc04ebed94
add mono script to nunit test csharp client
2016-06-11 23:44:48 +08:00
wing328
9102dce654
Merge pull request #3114 from wing328/python_ci
...
[Python] Update CI to cover Python2 and Python3 Petstore tests
2016-06-11 11:38:43 +08:00
wing328
661aa25c3d
sudo to install virtualenv
2016-06-11 10:38:22 +08:00
wing328
1221a83504
add python ci
2016-06-11 10:35:50 +08:00
wing328
cdc29d0dde
Merge pull request #3034 from taxpon/issue-3029-python-constructor
...
Update python constrouctor to provide arguments for instance initialization
2016-06-11 10:27:26 +08:00
Todd
cbfe23589c
it's the future
...
html5 is all the rage
2016-06-10 15:09:29 -04:00
cbornet
c2dbe44d08
add java8 and async options to springboot codegen
2016-06-10 18:21:19 +02:00
wing328
851f2ef688
Merge pull request #3107 from cbornet/default_joda
...
Set joda as default dateLibrary for java codegens that support it
2016-06-10 23:17:38 +08:00
wing328
fdae19b2a6
Merge pull request #3111 from swagger-api/perl_license
...
[Perl] add apache 2.0 license to perl api client
2016-06-10 23:02:35 +08:00
wing328
7de95c52c1
add apache 2.0 license to perl api client
2016-06-10 22:43:56 +08:00
wing328
5ea2e2f1a2
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-06-10 21:59:17 +08:00
wing328
7be14f00fa
Merge branch 'zlx-rails5-models'
2016-06-10 21:58:59 +08:00
wing328
d924a1411b
remove debugging flag, add batch file for rails5 generator
2016-06-10 21:58:16 +08:00
wing328
e7160ca78a
Merge branch 'rails5-models' of https://github.com/zlx/swagger-codegen into zlx-rails5-models
2016-06-10 21:56:22 +08:00
wing328
3051ca23b6
Merge pull request #3110 from jimschubert/bug/3106
...
[csharp] Include ExceptionFactory property on IApiAccessor interface
2016-06-10 21:32:46 +08:00
Jason Quinn
8ffe4c9e06
Removing gradle dependency for jersey2 pom
2016-06-10 14:12:13 +01:00
Mateusz Mackowiak
5a6daeed8f
[Objc] Moved x-is-unique: true to petstore-with-fake-endpoints-models-for-testing
2016-06-10 14:17:52 +02:00
Jim Schubert
c209cb25ef
[csharp] Regenerate petstore client
2016-06-10 08:10:50 -04:00
Jim Schubert
196930cf49
[csharp] Include ExceptionFactory property on IApiAccessor interface
2016-06-10 08:10:12 -04:00
philicious
1b7973404d
added missing data-type handlers for QDate and QDateTime in Qt5/CPP helpers
2016-06-10 13:06:53 +02:00
Jason Quinn
e57f039eb9
Updating jersey2 sample
2016-06-10 12:00:52 +01:00
Jason Quinn
df60cd2d8b
Adding the ability to get/set the httpClient for jersey2
2016-06-10 11:56:05 +01:00
cbornet
0f3569e982
set joda as default dateLibrary for java codegens that support it
...
Fix #3087
2016-06-10 12:17:36 +02:00
wing328
b859024840
Merge branch 'cbornet-joda_springboot'
2016-06-10 17:01:54 +08:00
wing328
a33eb3132e
add message about rmeoving files/folders under output folder
2016-06-10 17:01:27 +08:00
wing328
ad77062b11
Merge branch 'joda_springboot' of https://github.com/cbornet/swagger-codegen into cbornet-joda_springboot
2016-06-10 16:39:58 +08:00
wing328
c143937959
Merge pull request #2986 from jimschubert/cs/exception_factory
...
[csharp] Intercept hooks for req/res and ExceptionFactory
2016-06-10 16:37:51 +08:00
wing328
ffc9ed1414
Merge branch 'cbornet-joda_retrofit_1'
2016-06-10 16:35:33 +08:00
wing328
3f51ff3314
add wording about removing files and folders in the output folder
2016-06-10 16:34:59 +08:00
wing328
ff28988a67
Merge branch 'joda_retrofit_1' of https://github.com/cbornet/swagger-codegen into cbornet-joda_retrofit_1
2016-06-10 16:32:23 +08:00
wing328
216d4b8b23
Merge pull request #3083 from cbornet/joda_retrofit
...
Add joda support to retrofit2 clients and use it in samples
2016-06-10 15:18:00 +08:00
wing328
e32ccb24e4
Merge branch 'cbornet-jersey_joda'
2016-06-10 14:30:56 +08:00
wing328
b418719804
update sample, update shell script with messages about removing files
2016-06-10 14:30:32 +08:00
wing328
c6cc15f429
Merge branch 'jersey_joda' of https://github.com/cbornet/swagger-codegen into cbornet-jersey_joda
2016-06-10 14:04:15 +08:00
wing328
a6f0b2d296
Merge pull request #3101 from cbornet/joda_okhttp
...
Add joda support to okhttp-gson and use it in the samples
2016-06-10 11:41:54 +08:00
cbornet
d8eb708e23
add joda support to spring-boot and use it in sample
2016-06-09 22:09:47 +02:00
cbornet
2fe9cd2ba0
add joda support to retrofit 1 clients
2016-06-09 18:41:44 +02:00
cbornet
61884211bb
add joda support to okhttp-gson and use it in the samples
2016-06-09 18:20:52 +02:00
cbornet
3c252f264c
use joda in jersey1/jersey2 client sample
2016-06-09 17:10:57 +02:00
wing328
bd705a49d6
Merge pull request #3094 from karussell/patch-3
...
[Java] client: make all okhttp classes explicit to avoid conflict
2016-06-09 21:21:51 +08:00
wing328
a965b74073
Merge pull request #3095 from wing328/fix_okhttp_pom
...
[Java][okhttp-gson] fix okhttp pom to remove dependency on gradle, sbt test
2016-06-09 20:33:30 +08:00
Jakub Malek
33149c3a63
NancyFx:
...
- Missing namespace import
2016-06-09 13:27:01 +02:00
Jakub Malek
b604b1b80f
NancyFx:
...
- Fixed error message for unsupported enum value
- Fixed error message for Format and Overflow exceptions
- Added support for ZonedDateTime and LocalTime in Parameters utility
2016-06-09 13:21:59 +02:00
Marcin Stefaniuk
e823c12dc0
Rename inheritance property.
2016-06-09 13:04:31 +02:00
Marcin Stefaniuk
e52f991d72
Adding NodaTime types as primitives to keep them nullable.
2016-06-09 12:58:58 +02:00
Newell Zhu
b27022749f
Add debug support for rails5
2016-06-09 18:43:31 +08:00
Newell Zhu
f3e368c723
Add model & migrate support
2016-06-09 18:40:01 +08:00
wing328
4ee483dcc0
fix okhttp pom to remove dependency on gradle, sbt test
2016-06-09 18:23:19 +08:00
Peter
32cabcfb23
updated petstore with latest okhttp changes
2016-06-09 11:35:03 +02:00
Peter
1ff18c4ac6
make all okhttp classes explicit to avoid conflict
2016-06-09 11:31:15 +02:00
wing328
9d6aff18cf
Merge branch 'karussell-patch-1'
2016-06-09 17:07:59 +08:00
wing328
bc42d941ec
Merge branch 'patch-1' of https://github.com/karussell/swagger-codegen into karussell-patch-1
...
Conflicts:
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiException.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Configuration.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Pair.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/OAuth.java
2016-06-09 17:06:50 +08:00
wing328
0c7d5dfb7d
Merge pull request #3093 from wing328/add_license_okhttp
...
[Java][okhttp-gson] Add Apache license to Java (okhttp-gson) API client
2016-06-09 16:59:24 +08:00
wing328
0a3a47dbd4
add license to java okhttp client
2016-06-09 16:20:57 +08:00
wing328
2d170fd7a6
add license to
2016-06-09 16:07:36 +08:00
Peter
28bece0ce0
made response change to petstore
2016-06-09 08:56:42 +02:00
wing328
ae3a31fb79
Merge pull request #3086 from cbornet/feign_generated
...
Remove generated annotation from feign sample
2016-06-09 10:15:43 +08:00
wing328
92e4dc2248
Merge pull request #3091 from karussell/patch-2
...
Added new company using swagger
2016-06-09 10:14:49 +08:00
Takuro Wada
2ea37202a9
Omit @property.setter for readonly property
2016-06-09 08:00:42 +09:00
Takuro Wada
2c939b03b4
Apply readWriteVars to constructor in python/model.mustach
2016-06-09 07:57:52 +09:00
Takuro Wada
03f5619beb
Update python constructor to provide arguments for instance initialization ( #3029 )
2016-06-09 07:56:26 +09:00
Peter
6cab3a2a37
added GraphHopper to projects/companies
2016-06-08 22:53:58 +02:00
Peter
6df4ffab13
use explicit Response class from okhttp fixing #3071
2016-06-08 22:37:41 +02:00
cbornet
ec3a200c8c
remove generated annotation in feign sample
2016-06-08 19:53:00 +02:00
wing328
3165e1c39d
Merge pull request #3039 from cbornet/spring_interface
...
[Spring] Add an option to only generate stubs of the API and no server files
2016-06-09 01:38:17 +08:00
wing328
c11908824e
Merge pull request #3075 from cbornet/feign_joda
...
[Feign] Support joda dates in feign client and use it in petstore sample
2016-06-09 01:28:10 +08:00
cbornet
acf17c85ad
add joda support to retrofit clients and use it in samples
...
also adds back the petstore tests
2016-06-08 18:50:49 +02:00
wing328
691aa53d5a
[Java][okhttp-gson] fix java doc for okhttp-gson ( #3077 )
...
* fix java doc for okhttp-gson
* add ci test for javadoc
* fix return type for java doc
* fix warning/error with javadoc
* fix error/warning in javadoc
* fix 2 warnings related to docstring
* remove trailing space for okhttp tmeplate
2016-06-09 00:47:49 +08:00
Artur Dzmitryieu
0a9b888e7f
Update language description
2016-06-08 10:56:53 -04:00
wing328
baed578010
file an issue ticket
2016-06-08 21:21:39 +08:00
wing328
fccc30eb11
add info about pulling latest master
2016-06-08 21:20:03 +08:00
Wolfgang Berger
cd6a805910
updates templates with JSONModel workaround
2016-06-08 13:31:04 +02:00
cbornet
23278bb51d
fix test
2016-06-08 11:38:44 +02:00
cbornet
b4d521ca7b
add a java8-localdatetime dateLibrary option for leagacy app backward compatibility
2016-06-08 11:07:13 +02:00
cbornet
5fd948f234
use OffsetDateTime instead of LocalDateTime
...
Fix #2138
2016-06-08 10:18:49 +02:00
wing328
b978914c96
Merge pull request #3061 from taxpon/issue-3055
...
[Python] Fix bug of test files about packageName
2016-06-08 10:42:17 +08:00
Takuro Wada
df11034c46
Add venv and .python-version to .gitignore
2016-06-08 09:25:35 +09:00
Takuro Wada
7916f5243d
[Python] Fix bug of test files about packageName
2016-06-08 09:24:12 +09:00
cbornet
3ae39c9562
support joda in feign and use it in sample
2016-06-07 22:39:34 +02:00
wing328
6a73f29cef
Merge pull request #3038 from Landschaft/master
...
[Swift] #3036 Make APIHelper.convertBoolToString return nil for nil input
2016-06-08 00:26:55 +08:00
wing328
012797adf1
add naming convention for vendor extension
2016-06-07 23:53:41 +08:00
Jan Schmidle
10e970e707
fix date format in example generator
2016-06-07 17:46:06 +02:00
wing328
bd2250b6ca
Merge pull request #3058 from clasnake/3044/gradle_for_scala
...
Add gradle support for the scala client.
2016-06-07 23:45:27 +08:00
wing328
391cab5220
Merge pull request #3063 from ePaul/patch-1
...
[Github issue template] instructions about how to paste YAML or JSON code
2016-06-07 23:28:29 +08:00
wing328
27cd38ba61
Merge pull request #3043 from qtstc/master
...
Stop Reading Custom Template Files from subdirectory
2016-06-07 19:19:03 +08:00
wing328
70005a2ec6
Merge pull request #3066 from taxpon/issue-3064-python-configuration-bug
...
Fix 'isOauth' to 'isOAuth' in python template
2016-06-07 19:01:20 +08:00
wing328
dd52f01fc6
Merge pull request #3070 from wing328/remove_ignore_global_file
...
Replaced global license file with default LICENSE
2016-06-07 15:17:30 +08:00
wing328
3ae48b179a
replaced global license file with default LICENSE
2016-06-07 15:15:20 +08:00
wing328
127bac4790
Merge pull request #3067 from jimschubert/bug/3047
...
[swagger-codegen-ignore] Skip file case test Windows
2016-06-07 14:37:34 +08:00
Jim Schubert
483dba2aff
[swagger-codegen-ignore] Skip file case test Windows
...
There doesn't appear to be an excellent way to resolve a case sensitive
test on Windows, so conditionally skipping the test on Windows.
See #3047
2016-06-06 21:24:08 -04:00
Takuro Wada
3c919974a7
Fix 'isOauth' to 'isOAuth' in python template
2016-06-07 08:30:17 +09:00
Artur Dzmitryieu
ad25052223
Update a Readme and add sample output for petstore json
2016-06-06 15:03:44 -04:00
Paŭlo Ebermann
08f86ae0b6
instructions about how to paste YAML or JSON code
...
Hopefully that will make issues easier to read.
2016-06-06 20:30:44 +02:00
clasnake
5adb80bd1b
Delete the build folder.
2016-06-06 22:22:07 +08:00
Wolfgang Berger
e258fb97ca
updates for ISO8601 0.5.1
2016-06-06 16:17:39 +02:00
clasnake
92d4f5df22
Add build folder in the sample scala client into gitignore.
2016-06-06 22:11:16 +08:00
clasnake
4c9e7ae572
Add gradle support for the scala client.
2016-06-06 22:04:17 +08:00
cbornet
1836062e6f
don't put RequestMapping on the interface
...
as Spring-MVC will automatically consider it as a controller which is not necessarily the case (eg. for a spring-cloud FeignClient)
2016-06-06 14:40:11 +02:00
wing328
895f13cc11
Merge pull request #3050 from taxpon/issue-3041
...
[Python] Follow PEP8 rules ( Issue #3041 )
2016-06-06 18:18:36 +08:00
Mateusz Mackowiak
24ecf9d74f
[Objc] Support for x-unique-id-key vendorExtensions
2016-06-06 12:13:06 +02:00
cbornet
556f529933
add option to use single content-type produces/consumes
2016-06-06 11:45:07 +02:00
ant3
b8ebee1ec3
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into JSR310-Clients
2016-06-05 23:13:52 +01:00
ant3
9a9d5ebd9f
Allow generation of Jersey2 clients with JSR310 classes
...
If the -DdateLibrary=java8 option is set on the command line then
jersey2 client code will be generated using JSR310 classes rather than
Joda time. Because JSR310 requires java8 the java target version is
also changed in the build files.
2016-06-05 23:11:29 +01:00
wing328
eeb14ae936
Merge pull request #3018 from mateuszmackowiak/objc/binary_data
...
[Objc] Proper binary data handle
2016-06-05 22:28:56 +08:00
Takuro Wada
955d39f709
[Python] Follow PEP8 rules ( Issue #3041 )
2016-06-05 23:15:36 +09:00
wing328
286eae9577
Merge pull request #3049 from clasnake/gitignore
...
Add build folder under java sample clients into gitignore in sample.
2016-06-05 22:02:39 +08:00
wing328
2e60847f7f
Merge pull request #3045 from clasnake/3006/sbt_for_java_scala
...
Add sbt support for feign, retrofit, retrofit2 and retrofit2rx.
2016-06-05 22:01:17 +08:00
wing328
f2f6940006
Merge pull request #2987 from mbarclay/master
...
Added date format string #2935
2016-06-05 21:42:56 +08:00
clasnake
992a22f409
Add build folder under java sample clients into gitignore in sample.
2016-06-05 09:22:13 +08:00
Tony Tam
4f92194227
Merge branch 'dockerfiles' of https://github.com/jimschubert/swagger-codegen into jimschubert-dockerfiles
2016-06-04 15:27:39 -07:00
zhenjun115
67c3f98d96
enable python api client to return just data without http header info when need;
2016-06-04 23:30:10 +08:00
clasnake
f3cff97acc
Regenerate the sample client for feign.
2016-06-04 22:21:27 +08:00
clasnake
a84ed9cb57
Fix build.sbt.mustache for feign.
2016-06-04 22:18:23 +08:00
clasnake
4da829315f
Add sbt support for feign.
2016-06-04 21:51:49 +08:00
clasnake
503fb138f5
Add sbt support for retrofit2 and retrofit2rx.
2016-06-04 21:13:10 +08:00
clasnake
9ed290efea
Add sbt support for retrofit.
2016-06-04 20:53:21 +08:00
tao
83e8a2e90c
stop reading custom template file from subdirectories
2016-06-03 16:08:07 -07:00
Artur Dzmitryieu
2bbe26b41a
Add new jax-rs language that uses only 2.0 spec API's
2016-06-03 15:52:46 -04:00
Landschaft
17a639be75
[Swift] #3036 Make APIHelper.convertBoolToString return nil for nil input. This will prevent the creation of an empty body for GET requests.
2016-06-03 21:14:45 +02:00
wing328
34fed26e79
add epaul to the core team
2016-06-04 00:02:30 +08:00
cbornet
a452bbf039
add interfaceOnly option test
2016-06-03 16:25:02 +02:00
cbornet
3b37584c1f
update README
2016-06-03 16:21:37 +02:00
cbornet
fe8b0cf07b
add option to only generate stubs of the API and no server files
...
Fix #3025
2016-06-03 16:21:37 +02:00
wing328
ee5d2e99b1
Merge pull request #3035 from leonyu/typescript-fetch-update-typings-to-v1
...
Typescript fetch: update typings to 1.0.4
2016-06-03 18:05:44 +08:00
wing328
ac4c460338
Merge pull request #3027 from pablograna/fix-eclipse-errors
...
Use UnsupportedOperationException.
2016-06-03 15:48:28 +08:00
wing328
75de07d439
Merge pull request #3030 from clasnake/3006/sbt_for_java_scala
...
3006/sbt for java scala
2016-06-03 14:51:56 +08:00
Griffin Schneider
689841ce8e
[ObjC] Fix various bugs in generated code. ( #3031 )
...
* [ObjC] Fix bug where ApiClient.timeoutInterval didn't do anything.
* [ObjC] Fix bug where <AFNetworking.h> couldn't be found.
* [ObjC] Fix useages of 'SWG' instead of {{classPrefix}} in Sanitizer-body.mustache.
2016-06-03 14:47:59 +08:00
Leon Yu
a34373fe34
Update typings version
...
rebuild test target
2016-06-02 18:56:08 -04:00
clasnake
f4ba31964a
Merge branch 'master' into 3006/sbt_for_java_scala
...
Conflicts:
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiException.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Configuration.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Pair.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/OAuth.java
2016-06-03 00:43:43 +08:00
clasnake
f0d3bd8f21
Add sbt support for jersey2, fix dependency issue for okhttp-gson.
2016-06-03 00:37:53 +08:00
Jakub Malek
01145be00d
NancyFx:
...
- Moved model enum definitions to model class to avoid name duplications
2016-06-02 16:06:47 +02:00
Pablo Gra\~na
328787186c
Use UnsupportedOperationException.
...
Replaced NotImplementedException with UnsupportedOperationException. See
bug #3011 .
Eclipse was throwing some errors related to differences in package names
vs file path. I renamed the packages io.swagger.codegen.Go to
io.swagger.codegen.go, io.swagger.codegen.slim to package
io.swagger.codegen.lumen and io.swagger.codegen.springBoot to
io.swagger.codegen.springboot in some test files.
2016-06-02 08:20:10 -03:00
Jakub Malek
460f8130db
NancyFx:
...
- Fixed Query and Headers parameters parsing
2016-06-02 13:12:16 +02:00
Jakub Malek
9c8373aea2
NancyFx:
...
- Fixed model template
2016-06-02 11:53:25 +02:00
wing328
a3610f1c12
[Java] fix warning in pom.xml (java okhttp-gson) ( #3023 )
...
* fix warning in pom.xml
* minor fix to pom (okhttp-gson)
2016-06-02 17:37:11 +08:00
Jakub Malek
adb02a030f
NancyFx:
...
- Skipping parsing nulls of nullable types
2016-06-02 11:18:51 +02:00
Jakub Malek
a458e53e25
NancyFx
...
- Detailed exception of not expected parse error
2016-06-02 11:14:05 +02:00
Jakub Malek
d1cf803e49
NancyFx:
...
- Yet another fix for nullable enums parsing
2016-06-02 11:05:40 +02:00
Jakub Malek
4c69e02a21
NancyFx:
...
- Fixed parsing nullable enums
2016-06-02 11:00:16 +02:00
Jakub Malek
d201d6331c
NancyFx:
...
- Details exception for error of dynamic value of parameter
2016-06-02 10:52:21 +02:00
Jakub Malek
0996f8c930
NancyFx:
...
- Detailed exception of get parameter error
2016-06-02 09:53:42 +02:00
Jakub Malek
da5804d583
NancyFx:
...
- Using nullable enum types in API
2016-06-02 08:57:49 +02:00
Takuro Wada
91c35509b8
set 'None' to body for request if given body is 'None' ( issue #3020 ) ( #3021 )
2016-06-02 14:51:13 +08:00
wing328
23d2c56096
[JAX-RS] fix library setting "jersey2" ( #3016 )
...
* to fix #2981
* update sample, update ci to include jaxrs (jersey1, 2)
* avoid duplicated artifactId in pom (jaxrs jersey1)
* update jetty dependency for jersey1 jaxrs
* update bin to set proper artifact-id
* fix jersey1 jaxrs pom.xml
* fix dependency in jaxrs jersey2 pom
* downgrade jetty plugin to 9.3.0.v20150612
* update petstore sample for jaxrs jersey 1
* restore jetty to previous version. update test order
* downgrade jetty maven plugin version
* restore original version of jetty plugin
2016-06-02 14:33:08 +08:00
Jakub Malek
1cfb3d1c9c
NancyFx:
...
- Changed enum class name format
- CodegenProperty parent and parentClass replaced by Booolen flag isInherited
2016-06-02 08:14:49 +02:00
wing328
85550285a1
Merge pull request #3017 from mateuszmackowiak/objc/user_agent
...
[Objc] Add customizable user-agent #2715
2016-06-02 14:11:15 +08:00
wing328
36a8ed2c37
Merge pull request #3013 from DavidBiesack/preserve-schema-name
...
use {{name}} not {{classname}} in HTML section header/anchors
2016-06-02 11:49:30 +08:00
Mateusz Mackowiak
7a87746af1
[Objc] Proper binary data handle
2016-06-01 16:43:35 +02:00
wing328
43fe3fa6d0
Merge pull request #3003 from Cosium/feign-disable-fail_on_unknwon_properties
...
Feign: disable FAIL_ON_UNKNOWN_PROPERTIES by default
2016-06-01 22:33:36 +08:00
wing328
8f82034a4f
Merge pull request #2947 from mikolajprzybysz/version-check-mustache
...
[PHP] Check skipping artifiactVersion in other mustache templates, since it is not required anymore
2016-06-01 22:12:13 +08:00
Mateusz Mackowiak
2ead00c96d
[Objc] Add customizable user-agent #2715
2016-06-01 15:51:52 +02:00
Jakub Malek
dbc6c2f163
Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen
2016-06-01 15:04:41 +02:00
Jakub Malek
fc9b4501fc
NancyFx:
...
- Fixed inheritance support
2016-06-01 15:04:18 +02:00
Mikolaj Przybysz
47576471e2
Replaced double quotes with singles
2016-06-01 10:57:20 +02:00
Mikolaj Przybysz
9f94220010
Merge branch 'version-check-mustache' of github.com:mikolajprzybysz/swagger-codegen into version-check-mustache
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/configuration.mustache
2016-06-01 10:45:18 +02:00
Mikolaj Przybysz
4f54e5cdc7
Improved formatting
2016-06-01 10:43:22 +02:00
Mikolaj Przybysz
37264b0bcf
Removed printing artifactVersion if it is not set from debug information
2016-06-01 10:35:52 +02:00
Mikolaj Przybysz
ce2e994306
Removed printing artifactVersion if it is not set
2016-06-01 10:30:55 +02:00
wing328
7b6747e6f3
Merge pull request #2872 from dmytrobr/feature/issue-2868
...
use Title attribute as model name
2016-06-01 10:55:54 +08:00
wing328
1029b1891d
Merge pull request #3010 from mateuszmackowiak/objc/core_data_update_license
...
[Objc] core data objc update license
2016-06-01 10:09:48 +08:00
David Biesack
147497ae34
use {{name}} not {{classname}} in HTML seaction head/anchors
2016-05-31 15:57:40 -04:00
Réda Housni Alaoui
5740de9cc7
Feign: disable FAIL_ON_UNKNOWN_PROPERTIES by default
2016-05-31 18:51:11 +02:00
Mateusz Mackowiak
fbd8deef46
[Objc] core data objc update license
2016-05-31 18:27:34 +02:00
wing328
1d8ba34651
Merge pull request #3009 from wing328/fix_okhttp_sbt
...
[Java] fix build.sbt for Java API client (okhttp-gson)
2016-05-31 23:24:10 +08:00
wing328
73ab94dfbf
fix sbt build for okhttp-gson
2016-05-31 22:22:54 +08:00
wing328
a223dcd7c5
add Avenida Compras S.A
2016-05-31 21:35:19 +08:00
Marcin Stefaniuk
e1df89c8fa
Formatting fix.
2016-05-31 13:49:45 +02:00
Jakub Malek
30b7eb7854
NancyFx:
...
- Omitting copyright and licenceurl tags i nuspec when not specified
2016-05-31 09:01:26 +02:00
Jakub Malek
849aa5064d
NancyFx:
...
- Including dependencies in csproj
2016-05-31 08:50:36 +02:00
wing328
af0c8b5ed0
Merge pull request #3005 from pablograna/remove-unnecessary-call-to-parser
...
Remove unnecessary 2nd call to SwaggerParser.
2016-05-31 14:10:20 +08:00
Pablo Gra\~na
50a346ca91
Remove unnecessary 2nd call to SwaggerParser.
...
Both CodeGenMojo and CodegenConfigurator where parsing the swagger input.
The result in CodeGenMojo was discarded. I simply removed the line in
CodeGenMojo.
2016-05-30 18:56:15 -03:00
Mikołaj Przybysz
794e7e4a22
Merge pull request #3 from swagger-api/master
...
Update
2016-05-30 17:32:21 +02:00
wing328
4f9b43b555
Merge pull request #2988 from wing328/objc_core_data_cherrypick2
...
[Objc] Basic Core data support [Optional]
2016-05-30 23:28:22 +08:00
wing328
14aefe786e
Merge pull request #3000 from zlx/rails-5-license
...
Add LICENSE into rails5
2016-05-30 22:07:10 +08:00
wing328
7719cafb94
fix CI issue
2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
a8daf94831
Remove nullability warnings
2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
8aa777405a
[Objc] CoreData pod spec add resources only if useCoreData is on
2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
bfd71c1e29
[Objc] CoreData added test
2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
5145beea05
[Objc] coraData cli option changed from y/n to true false
2016-05-30 22:02:17 +08:00
Mateusz Mackowiak
ceda86b9c3
[Objc] Basic Core data support
2016-05-30 22:02:16 +08:00
wing328
81b6ccfe1c
Merge pull request #2999 from wing328/update_license
...
Add appendix to Apache license
2016-05-30 21:59:43 +08:00
Jakub Malek
16200ae424
NancyFx:
...
- Mutable model generation for option -Dimmutable-false
2016-05-30 15:49:37 +02:00
Newell Zhu
e7baa17ba0
Add LICENSE into rails5
2016-05-30 21:38:59 +08:00
wing328
867a4f80ee
Merge pull request #2996 from wing328/package_json_license
...
Update nodejs/ts package.json use Apache-2.0 license
2016-05-30 21:34:24 +08:00
wing328
fb68f61a03
Merge pull request #2992 from jimschubert/swagger_codegen_ignore_docs
...
[codegen ignore] Add tests and docs, fix two minor issues
2016-05-30 21:34:12 +08:00
wing328
b6595f7a1c
add appendix to license
2016-05-30 21:23:12 +08:00
Jakub Malek
c6d4df3e41
NancyFx:
...
- Handling class name mapping
2016-05-30 15:04:16 +02:00
Mikolaj Przybysz
8369bae08a
Improved formatting
2016-05-30 15:01:53 +02:00
Jakub Malek
c734a216af
NancyFx:
...
- Handling importMapping
2016-05-30 13:21:55 +02:00
Jakub Malek
ba26df95e2
NancyFx:
...
- Added generation of .nuspec file
2016-05-30 12:09:00 +02:00
Jakub Malek
1d167b709d
NancyFx:
...
- Including API docs
2016-05-30 11:21:21 +02:00
Jakub Malek
a72640ce9c
NancyFx:
...
- Sealed class for generated Modules
- Empty constructor added to model classes
- Code cleanup
2016-05-30 10:33:22 +02:00
wing328
9d581a791d
Merge pull request #2968 from zhenjun115/java_api_client
...
add markdown docs for java api client using retrofit2;
2016-05-30 11:15:32 +08:00
wing328
535a782239
add [Kabuku]( http://www.kabuku.co.jp/en )
2016-05-30 11:01:32 +08:00
wing328
6e83939f0e
Merge pull request #2984 from daknin/2983
...
2983: Java Feign client generator: HTTP header name should be named …
2016-05-30 10:40:10 +08:00
Darrell King
8a403a06e3
2983: Java Feign client generator: HTTP header name should be named Accept not Accepts
2016-05-29 21:14:59 +01:00
Jim Schubert
e0c3aa276d
[codegen ignore] Lazy test setup
...
Moved temp directory preparation to occur at the start of tests and
added temp directory prefix to help avoid conflicts with other tests.
2016-05-29 09:47:47 -04:00
wing328
a1e9b8f81e
Merge pull request #2990 from jimschubert/cs/number_to_decimal
...
[csharp] map number/no format to Decimal
2016-05-29 20:58:31 +08:00
wing328
a566b086cf
add new files for JS client
2016-05-29 20:54:43 +08:00
wing328
4d8d4e6995
Merge pull request #2995 from wing328/feature/model_map_property
...
Fix spec for map and array
2016-05-29 18:10:48 +08:00
wing328
a27cda68ce
update nodejs/ts package license to use Apache-2.0
2016-05-29 18:08:32 +08:00
wing328
6d1fd2c78d
fix spec for map and array
2016-05-29 17:28:33 +08:00
wing328
00beca9583
Merge pull request #2993 from wing328/add_default_license
...
Add defaulat license (Apache2.0) to all generators
2016-05-29 16:57:38 +08:00
wing328
4b74f6ccef
add defaulat license (apache2.0) to all generators
2016-05-29 15:02:06 +08:00
wing328
e6825eaff4
Merge pull request #2989 from wing328/ts_querystring_cherrypick2
...
[Typescript-Node] Add Support for useQuerystring Request Option #2905
2016-05-29 12:01:56 +08:00
Jim Schubert
d172de260d
[codegen ignore] Add tests, fix two minor issues
...
Tests are create to act on actual files to gauarantee functionality of
.swagger-codegen-ignore processing. Found two minor issues, one with
directory processing of files below the directory and another with
filename.* patterns reversing as *filename. for the pattern.
Added documentation to the README about .swagger-codegen-ignore file
support and syntax.
2016-05-28 22:25:45 -04:00
Jim Schubert
eccd4d5245
[csharp] map number/no format to Decimal
2016-05-28 15:09:50 -04:00
Malcolm Barclay
5777d21579
Merge remote-tracking branch 'upstream/master'
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-05-28 18:47:41 +01:00
Alexander Fisher
449e74b873
Move changes to samples to source code. Build, run, test.
2016-05-29 01:30:37 +08:00
Alexander Fisher
abf28797a4
Add node and corejs to ambient typings since they represent native types. Update client to not use finally since this doesn't exist on a node js Promise.
2016-05-29 01:30:30 +08:00
Alexander Fisher
b3d5271582
Honor gitignore in npm folder.
2016-05-29 01:30:18 +08:00
Alexander Fisher
23c9a17b6b
Update typings to not use globals/ambients. Update tsconfig to use exclude rather than files. Add gitignore for output files.
2016-05-29 01:30:06 +08:00
Alexander Fisher
8094425473
Run bash to generate new client.
2016-05-29 01:29:20 +08:00
Alexander Fisher
7f2a16a78b
Add ability to set useQuerystring on request globally for api.
2016-05-29 01:29:14 +08:00
Malcolm Barclay
f2bd3d981e
Updated petstore swift swagger client.
...
Enabled execute (755) permissions on swift-petstore.sh Ran integration test (passed).
2016-05-28 15:11:25 +01:00
Malcolm Barclay
955d837609
Updated petstore swift-promisekit swagger client.
...
Ran integration tests (passed)
2016-05-28 12:51:02 +01:00
wing328
bd1aab0cf0
Merge branch 'mateuszmackowiak-objc/License'
2016-05-28 11:12:19 +08:00
wing328
063f83f18b
Merge branch 'objc/License' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/License
2016-05-28 10:16:57 +08:00
Jim Schubert
fafcd33e27
[csharp] Intercept hooks for req/res and ExceptionFactory
2016-05-27 22:10:06 -04:00
Guo Huang
6415018c8f
removed tab in logger, added warnings for import
2016-05-27 09:42:08 -07:00
Guo Huang
4b41877419
updated read me and removed extra space
2016-05-27 09:18:23 -07:00
Mateusz Mackowiak
ef66f9622c
Moved GlobalSupportingFile to separate file
2016-05-27 16:04:20 +02:00
Mateusz Mackowiak
d82c77da34
- [Objc] Fix test after removing license property
...
- Moved adding License file to DefaultGenerator
2016-05-27 12:46:09 +02:00
Guo Huang
ef71d50eee
fixed spacing issue
2016-05-26 22:49:13 -07:00
Malcolm Barclay
a56d927b0c
Added date format string #2935
...
Support decoding of RFC3339 compliant date-time strings with fractional seconds, but no timezone.
2016-05-27 06:48:39 +01:00
Guo Huang
db9684ff19
issue#2970, [Go] add go server codeine template
2016-05-26 22:34:18 -07:00
wing328
f5ff62e685
Merge pull request #2972 from scottrw93/license
...
[Python] Include license in generated client
2016-05-27 11:54:47 +08:00
Jim Schubert
b996d0c769
[docker] Add container docs and example usage
2016-05-26 21:26:34 -04:00
Scott Williams
c18241cffc
Update license header
2016-05-26 21:44:40 +01:00
Scott Williams
23271d74ea
Update license header
2016-05-26 21:42:37 +01:00
wing328
c3b5cfbb24
Merge pull request #2976 from wing328/ts_fetch_ci
...
[TypeScript] update pom to cover TS Fetch API clients
2016-05-26 21:41:59 +08:00
Mikolaj Przybysz
030b1bc8c2
added default version 1.0.0 to userAgent
2016-05-26 15:12:28 +02:00
wing328
662d4efcaf
Merge pull request #2957 from fabdslv/rm-force-unwrap
...
[Swift] Remove force unwrap in model constructor
2016-05-26 18:38:54 +08:00
wing328
3e131d1901
update pom to cover ts fetch api client
2016-05-26 17:50:13 +08:00
wing328
648ef35309
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-26 17:21:25 +08:00
wing328
8443feaf82
Merge branch 'zlx-feature/ruby_enum_support2'
2016-05-26 17:21:07 +08:00
wing328
aeaf60713f
Merge branch 'feature/ruby_enum_support2' of https://github.com/zlx/swagger-codegen into zlx-feature/ruby_enum_support2
...
Conflicts:
samples/client/petstore/ruby/README.md
samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb
samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb
samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb
2016-05-26 17:20:49 +08:00
wing328
d8dec247f2
Merge pull request #2973 from leonyu/update_tsify
...
update package.json and fix webpack.html
2016-05-26 16:54:33 +08:00
wing328
95ba8ac99b
Merge pull request #2952 from jaz-ah/swift/dirs
...
[Swift] change swift directory structure
2016-05-26 16:53:57 +08:00
wing328
a86a4ac94e
add dbbest
2016-05-26 15:42:45 +08:00
wing328
f448ec3728
Merge pull request #2969 from guohuang/license
...
[Go] add apache v2 LICENSE
2016-05-26 15:05:42 +08:00
wing328
f47b6eb386
Merge pull request #2971 from arnested/php-license
...
[PHP] Add apache v2 license to PHP client
2016-05-26 15:02:53 +08:00
Leon Yu
a589a6b91c
update package.json and fix webpack.html
2016-05-25 22:51:10 -04:00
Arne Jørgensen
e41019fb2b
[PHP] Regenerate petstore sample
2016-05-26 00:13:45 +02:00
Scott Williams
e0dbb44b37
Put license header in shared file
2016-05-25 22:35:38 +01:00
Scott Williams
349b727b2c
Include license in genrated client
2016-05-25 22:20:08 +01:00
Arne Jørgensen
5c97d1b8f7
[PHP] Improve code style of generated code
...
Avoid trailing whitespace.
2016-05-25 22:53:01 +02:00
Arne Jørgensen
d9d3a41deb
[PHP] add apache v2 license to PHP client
...
See #2963 .
2016-05-25 22:53:01 +02:00
Guo Huang
7b57a26a97
added apache LICENSE
2016-05-25 10:11:52 -07:00
Mateusz Mackowiak
c68168fa27
- Remove optional license property
...
- License in all header files
2016-05-25 18:13:27 +02:00
wing328
ce426ee868
add SCOOP software
2016-05-26 00:00:23 +08:00
zhenjun115
09a29063be
add markdown docs for java api client using retrofit2;
2016-05-25 23:44:44 +08:00
wing328
4df140956f
update version to 2.2.0-SNAPSHOT
2016-05-25 22:17:11 +08:00
wing328
9598974d45
Merge pull request #2908 from iomark/master
...
[Objc] fixed code generation for collection parameter
2016-05-25 21:57:00 +08:00
wing328
31aee5b3a7
Merge pull request #2950 from wing328/update_pom_220
...
Update pom.xml to use 2.2.0-SNAPSHOT
2016-05-25 21:10:43 +08:00
Mateusz Mackowiak
537ee960b6
[Objc] Add Apache v2 license to auto-generated files #2963
2016-05-25 15:09:05 +02:00
wing328
0a724a3008
update pom for swagger codegen module
2016-05-25 17:25:18 +08:00
Marcin Stefaniuk
c59f2b0322
Versioning of generated model (namespace, base context).
2016-05-25 11:23:11 +02:00
wing328
38a422212d
Merge pull request #2948 from mikolajprzybysz/use-php-eol
...
[PHP] Replaced \n with PHP_EOL
2016-05-25 16:49:37 +08:00
wing328
2f11049218
Merge pull request #2960 from wing328/chsarp_add_license
...
[C#] add apache v2 license to C# API client
2016-05-25 14:57:17 +08:00
wing328
8096308657
add apache v2 license to csharp api client
2016-05-25 14:41:17 +08:00
wing328
0f624338fd
Merge pull request #2954 from wing328/add_test_array
...
Add new test model to array properties
2016-05-25 13:56:57 +08:00
Jim Schubert
436731184d
[docker] Update root Dockerfile and run-in-docker
...
This update allows the root Dockerfile to be used as a development
container and updates run-in-docker.sh to use the same entrypoint script
while maintaining backward compatibility for anyone who has scripted
mappings to /gen and /root/.m2/repository.
2016-05-24 23:21:50 -04:00
Jim Schubert
fe66364f04
[docker] Runnable CLI, reduced container size
2016-05-24 19:58:26 -04:00
Joseph Zuromski
d55a691e11
fix path
2016-05-24 14:37:37 -07:00
Fabien Da Silva
4404b907bc
[Swift] Remove force unwrap in model constructor
...
Fix #2955
2016-05-24 21:54:46 +02:00
Tony Tam
fefd507323
Merge pull request #2956 from sreich/patch-1
...
add custom generator example to readme
2016-05-24 12:10:37 -07:00
Shaun Reich
06dd7c4794
add custom generator example to readme
...
fixes #2923
2016-05-24 14:44:21 -04:00
Jim Schubert
b2c14c98c9
Limit base image to 1.0
2016-05-24 14:11:57 -04:00
wing328
105b4b9199
new test case to cover model with array properties
2016-05-25 01:18:50 +08:00
wing328
d0770d25f5
Merge pull request #2953 from wing328/ruby_add_license
...
[Ruby] add licence template for ruby api client
2016-05-25 00:50:29 +08:00
wing328
29008b5802
add licence template for ruby api client
2016-05-25 00:48:31 +08:00
wing328
68878ff9bd
Merge pull request #2951 from wing328/ruby_add_license
...
[Ruby] add apache v2 license to remaining ruby files (test, spec, etc)
2016-05-25 00:07:05 +08:00
wing328
dbc3e418a9
udpate pom for other sub modules
2016-05-24 23:27:11 +08:00
wing328
568fa4f514
add apache license to remaining ruby files (test, spec, etc)
2016-05-24 23:20:23 +08:00
wing328
04eca71be4
update pom to use 2.2.0-SNAPSHOT
2016-05-24 22:47:03 +08:00
Jakub Malek
bf68801295
NancyFx:
...
- Passing NancyContext to service instead of Request
2016-05-24 16:19:45 +02:00
Jakub Malek
bc6fcbdc7b
NancyFx:
...
- Unnecessary dependencies removal
- Nancy version update
2016-05-24 16:07:22 +02:00
Jakub Malek
da3aa7214d
NancyFx:
...
- Fixed Module classes naming (removed double 'Module' suffix)
- Using partial classes for generated Nancy modules
2016-05-24 15:17:27 +02:00
Mikolaj Przybysz
6aa821d76d
Rebuild php petstore sample client
2016-05-24 15:03:25 +02:00
Mikolaj Przybysz
041c5d1d34
Replaced \n with PHP_EOL
2016-05-24 14:25:16 +02:00
Jakub Malek
cef6c9d8ba
NancyFx:
...
- Using NodaTime for date types
2016-05-24 14:08:09 +02:00
Mikolaj Przybysz
3484704fea
Updated condition for artifactVersion check
2016-05-24 14:07:51 +02:00
Mikolaj Przybysz
18f32b4163
Proper printing of invokerPackage in configuration debug report
2016-05-24 14:03:31 +02:00
Mikolaj Przybysz
c54b4faf13
Removed printing artifactVersion if it is not set from debug information
2016-05-24 14:02:41 +02:00
Marcin Stefaniuk
d0e3b5cc71
Moving enum definition of model lists outside class.
2016-05-24 13:07:14 +02:00
Mikolaj Przybysz
cce21abaec
Removed printing artifactVersion if it is not set
2016-05-24 12:26:02 +02:00
wing328
d05d552b74
Merge pull request #2946 from wing328/ruby_license
...
[Ruby] update Ruby API client to use apache v2 license
2016-05-24 18:11:28 +08:00
Mikołaj Przybysz
e687ad5823
Merge pull request #2 from swagger-api/master
...
Update
2016-05-24 11:53:56 +02:00
wing328
c7110debee
update ruby api client to use apache v2 license
2016-05-24 17:50:28 +08:00
Marcin Stefaniuk
4b2e3a01f9
Renaming request dispatcher to Nancy specific Module.
2016-05-24 11:31:27 +02:00
wing328
7d475b1f93
Merge branch 'zhenjun115-java_api_client'
2016-05-24 17:03:20 +08:00
wing328
d82bbfdaf4
Merge branch 'java_api_client' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-java_api_client
2016-05-24 16:36:33 +08:00
Jakub Malek
ba38a3b6cb
NancyFx:
...
- Removed "Enum" suffix of Enum class name
2016-05-24 10:32:09 +02:00
Jakub Malek
c653aeec0b
NancyFX:
...
- Fixed parsing enum parameters in NancyModule
2016-05-24 10:25:18 +02:00
Jakub Malek
57aa6d01d2
NancyFx:
...
- Using virtual interface implementation in AbstractService
- Fixed namespace for module classes
- Using Parameters utility for parsing parameters in NancyModule
- Excluding obj folder from csproj
2016-05-24 10:14:22 +02:00
Joseph Zuromski
673784491e
couple new files
2016-05-23 20:09:06 -07:00
Joseph Zuromski
00c4877baf
move swift samples into swift/default and swift/promisekit directories
2016-05-23 20:08:00 -07:00
Jim Schubert
1da350e819
[docker] Cleanup and reduce container sizes
2016-05-23 21:54:35 -04:00
Jakub Malek
04af1cf2a7
NancyFx:
...
- Passing Nancy.Request to service interface
- Generating AbstractService code
- Removed null defaults from constructors in models
- Fixed project namespace
2016-05-23 16:53:01 +02:00
Newell Zhu
24a0ced972
regenerate ruby spec file
2016-05-23 21:30:40 +08:00
wing328
917192e558
add Revault Sàrl
2016-05-23 20:56:14 +08:00
Newell Zhu
a9b8150442
regenerate ruby client sample
2016-05-23 20:54:45 +08:00
Newell Zhu
942b015c8f
Add normal class enum support
2016-05-23 20:54:30 +08:00
Marcin Stefaniuk
9354fc8b0f
Retrieving enum params from api request.
2016-05-23 13:56:28 +02:00
Marcin Stefaniuk
36e94f7ed1
Enumerations on api input.
2016-05-23 13:40:12 +02:00
wing328
9b9d5859ad
Merge pull request #2864 from revaultch/master
...
typescript-angular2 query string fix
2016-05-23 17:56:31 +08:00
Urs Keller
91177cd536
typescript-angular2 query string fix
2016-05-23 10:55:54 +02:00
wing328
8ba19f0112
Merge pull request #2939 from wing328/php_enum_test
...
[PHP] add enum test in PHP API client
2016-05-23 15:58:57 +08:00
wing328
7b1cfde891
add enum test in php api client
2016-05-23 15:38:20 +08:00
wing328
6c33552d0d
Merge pull request #2934 from alexandern/master
...
Mispelling in Objective-C initialization template
2016-05-23 11:00:43 +08:00
Alex Nolasco
11c6a42dcc
Merge pull request #2 from alexandern/alexandern-patch-1
...
Misspellings
2016-05-22 15:15:22 -04:00
Alex Nolasco
3035aeb803
Misspellings
...
codition => condition
2016-05-22 15:15:06 -04:00
Alex Nolasco
c719f4d8c3
Merge pull request #1 from alexandern/alexandern-patch-1
...
Mispelling in Objective-C initialization
2016-05-22 14:09:10 -04:00
Alex Nolasco
4b4d5aeb2e
Mispelling
...
initalise=> initialize
2016-05-22 14:08:23 -04:00
wing328
810d165f21
add zlx to ruby core team
2016-05-22 22:48:43 +08:00
wing328
52a928bb2e
Merge pull request #2931 from Edubits/swift-sample-without-promisekit
...
[Swift] Add sample/tests for Swift client without PromiseKit
2016-05-21 23:21:00 +08:00
wing328
6383f6fcb6
Merge pull request #2932 from swagger-api/readonly_var
...
[C#] fix csharp constructor for model with read-only 1st property
2016-05-21 23:01:22 +08:00
wing328
69ec14d628
fix csharp constructor for model with read-only 1st property
2016-05-21 22:42:37 +08:00
Robin Eggenkamp
1a1bf74d01
[Swift] Add sample/tests for Swift client without PromiseKit
2016-05-21 15:57:52 +02:00
wing328
46fe27a6f6
Merge pull request #2929 from catinred2/basicAuth
...
show security defs
2016-05-21 18:26:54 +08:00
wing328
e1367ee743
Merge pull request #2917 from Vrolijkx/feature/typescript_angular2_should_generate_correct_output
...
Feature/typescript angular2 should generate correct output
2016-05-21 17:42:00 +08:00
wing328
bc44f74786
Merge pull request #2912 from zlx/feature/ruby_enum_support
...
Add Ruby enum support
2016-05-21 17:39:56 +08:00
wing328
aaca9a4b6f
Merge pull request #2922 from zhenjun115/android_api_client
...
add gradle wrapper mustache for android api client;
2016-05-21 17:34:29 +08:00
Newell Zhu
a7ca3870df
remove ruby model leading space
2016-05-21 17:18:53 +08:00
wing328
3ddff7da58
Merge pull request #2930 from wing328/fix_consumes_and_produces3
...
[Javascript][Clojure] Fix mediaType
2016-05-21 16:41:26 +08:00
xming
90cf56ab43
more comprehensible text
2016-05-21 16:37:00 +08:00
wing328
eb3a2949a0
Merge branch 'jaz-ah-swift/podupdate'
2016-05-21 16:24:33 +08:00
wing328
e903628993
Merge branch 'swift/podupdate' of https://github.com/jaz-ah/swagger-codegen into jaz-ah-swift/podupdate
...
Conflicts:
samples/client/petstore/swift/SwaggerClientTests/Pods/Pods.xcodeproj/project.pbxproj
2016-05-21 16:24:20 +08:00
wing328
42b08946d4
fix mediaType in clojure client
2016-05-21 16:18:44 +08:00
wing328
a1563ee6c6
unescape mediaType in JS
2016-05-21 16:12:42 +08:00
wing328
cd0d9f55c2
Merge pull request #2928 from catinred2/basePath
...
add basePathWithoutHost
2016-05-21 16:06:17 +08:00
xming
e884b2e700
add basePathWithoutHost
2016-05-21 14:51:44 +08:00
xming
e44e9fd43a
show security defs
2016-05-21 11:51:37 +08:00
Spencer Hawkins
5dcda94164
Merge branch 'master' into user/shawkins/fix/dont_modify_parameter_names
2016-05-20 12:32:19 -07:00
Spencer Hawkins
756f0ed64e
Don't modify param names in flask-connexion code generator
2016-05-20 12:30:29 -07:00
Kristof Vrolijkx
cebaa6443c
Fix array problem
2016-05-20 20:30:32 +02:00
zhenjun115
9a7e269de1
remove trailing spaces in the mustache template;
2016-05-20 22:39:53 +08:00
zhenjun115
87b25080c3
remove duplicated gradle wrapper mustache files from android api client;
2016-05-20 22:01:55 +08:00
Marcin Stefaniuk
e17b02183b
Fix reference to subtemplate.
2016-05-20 15:56:35 +02:00
zhenjun115
359c4b0e53
gradle wrapper mustache for java api client;
2016-05-20 21:44:32 +08:00
Marcin Stefaniuk
f4c3b9ec9f
Fixed operation parameter input enums generation.
2016-05-20 15:29:53 +02:00
zhenjun115
f2a2014ef4
add gradle wrapper mustache for android api client;
2016-05-20 20:24:22 +08:00
Marcin Stefaniuk
eaddc18537
Switching from custom exception to System.ArgumentException.
2016-05-20 14:22:48 +02:00
wing328
2e402da3ef
Merge branch 'guohuang-travis'
2016-05-20 18:37:00 +08:00
wing328
0134723afa
add back pom.xml for go petstore
2016-05-20 18:36:36 +08:00
wing328
a96d38e223
Merge branch 'travis' of https://github.com/guohuang/swagger-codegen into guohuang-travis
2016-05-20 18:31:55 +08:00
wing328
e02cfe8de2
Merge pull request #2921 from wing328/fix_consumes_and_produces2
...
Replaced {{mediaType}} with {{{mediaType}}} to keep the original media
2016-05-20 18:12:57 +08:00
wing328
c6f03806df
Replaced {{mediaType}} with {{{mediaType}} to keep the original media
2016-05-20 17:48:47 +08:00
Marcin Stefaniuk
0005faf77d
Handling collections of enumerables.
2016-05-20 10:43:40 +02:00
wing328
6c71dc3d18
Merge pull request #2910 from wing328/typescript_better_ci
...
[TypeScript] Add CI for typescript API clients
2016-05-20 16:02:46 +08:00
wing328
6231970ac6
run ruby test first
2016-05-20 15:24:13 +08:00
wing328
70619525cd
commented out TS fetch related tests in pom.xml
2016-05-20 15:09:35 +08:00
wing328
1e45af2fbc
install typescript in travis ci
2016-05-20 14:15:04 +08:00
Newell Zhu
f45d6a4d60
Generate ruby enum
2016-05-20 08:44:53 +08:00
Kristof Vrolijkx
d84c1cdfd7
Fix any problem
...
+ added integration test
2016-05-19 22:25:56 +02:00
Joseph Zuromski
4e0e91e58b
move up to ios 9.3
2016-05-19 12:35:17 -07:00
Kristof Vrolijkx
d5626d02da
fix indentation
2016-05-19 20:22:53 +02:00
Kristof Vrolijkx
a776b37cb1
fix indentation
2016-05-19 20:21:24 +02:00
Kristof Vrolijkx
244794b6a2
fix integration tests
2016-05-19 20:14:27 +02:00
Kristof Vrolijkx
d583e179ba
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into feature/node-promise-cleanup
2016-05-19 20:08:34 +02:00
Kristof Vrolijkx
9070f1a0af
Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
2016-05-19 20:05:55 +02:00
Kristof Vrolijkx
7e3faed37b
small code cleanump
2016-05-19 20:03:39 +02:00
wing328
69de0ecb9b
update wording for ts test cases
2016-05-20 00:56:26 +08:00
wing328
48971ebd7b
update pom to include ci for typescript-fetch clients
2016-05-20 00:34:32 +08:00
wing328
fe3d89f628
add CI for typescript fetch
2016-05-20 00:34:32 +08:00
wing328
f7ed6f040d
add ci test for typescript angular
2016-05-20 00:34:31 +08:00
wing328
1e80455d82
add swagger codege ignore to ts node npm
2016-05-20 00:34:31 +08:00
wing328
3b4331a7ee
add ci to ts node npm
2016-05-20 00:34:31 +08:00
wing328
798e070e78
Merge pull request #2913 from wing328/skip_integration_test
...
Skip integration test
2016-05-20 00:12:16 +08:00
wing328
71176a84ba
skip integration test
2016-05-20 00:08:40 +08:00
Marcin Stefaniuk
e7781d0d91
Handling enum properties and nullability.
2016-05-19 15:06:08 +02:00
Marcin Stefaniuk
8f2523c448
Generation of enum types for parameters and properties.
2016-05-19 14:41:47 +02:00
wing328
624e8ae41f
Merge pull request #2899 from jimschubert/feature/codegen-ignore
...
Feature/codegen ignore
2016-05-19 18:02:23 +08:00
Igor Markov
c245f2199f
[Objc] fixed code generation for collection parameter
2016-05-19 11:50:57 +03:00
wing328
861c6184d0
Merge branch 'jaz-ah-swift/enums'
2016-05-19 16:10:59 +08:00
wing328
a31f78b454
Merge branch 'swift/enums' of https://github.com/jaz-ah/swagger-codegen into jaz-ah-swift/enums
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwiftCodegen.java
2016-05-19 16:10:47 +08:00
wing328
2dda6a6e9a
Merge pull request #2640 from fabdslv/issue-2531
...
[Swift] Enum parameters are now handled
2016-05-19 15:46:25 +08:00
Marcin Stefaniuk
be44df44a5
Fix of model builder validation method.
2016-05-19 09:08:02 +02:00
Marcin Stefaniuk
f5f5a359e0
Fix of model builder validation method.
2016-05-19 08:59:29 +02:00
wing328
2ea40ada8b
Merge pull request #2882 from Vrolijkx/feature/integration-test
...
Adding correct code generation for additional properties in typescript angular2.
2016-05-19 14:37:30 +08:00
Joseph Zuromski
9bdf7c4bbb
move back to alamofire 3.1.5 because alamofire 3.2.x and up cause issues speaking to the petstore service - has to do w/ Accept/content type changes
2016-05-18 09:48:12 -07:00
wing328
19449c69b4
Merge pull request #2903 from wing328/master
...
[ObjC] remove try-catch block from objc sample code
2016-05-19 00:13:53 +08:00
wing328
22413855cd
remove try-catch block from objc sample code
2016-05-18 23:51:52 +08:00
Joseph Zuromski
98385aa746
checkpoint updating pod dependencies/moving to cocoapods1.0
2016-05-18 08:51:29 -07:00
wing328
992ec94b32
Merge pull request #2902 from cbornet/issue_template
...
Add an issue template
2016-05-18 23:40:08 +08:00
cbornet
31e61b4900
add an issue template
2016-05-18 17:00:16 +02:00
Marcin Stefaniuk
dba662da59
Code formatting.
2016-05-18 15:09:39 +02:00
Jakub Malek
6564df79de
NancyFx: With() method added for model classes
2016-05-18 15:03:47 +02:00
Marcin Stefaniuk
cdb9ab826e
Fix of model template.
2016-05-18 14:59:16 +02:00
Jakub Malek
806e22deb5
NancyFx: Template for immutable model classes with builders
2016-05-18 14:54:40 +02:00
Jim Schubert
21e2b7bb2a
[feature] Support for .swagger-codegen-ignore
...
Adds a .swagger-codegen-ignore file with instructions and examples.
The .swagger-codegen-ignore file is treated as a supporting file.
Every project will generate a .swagger-codegen-ignore file containing
instructions and examples.
This also adds support for 'common' files (defaults like
.swagger-codegen-ignore). In the case of the ignore file, a generator
may include a compiled template ignore file which outputs to the
outputDir folder as .swagger-codegen-ignore and the default file
generation will honor the already generated file.
The rules for .swagger-codegen-ignore are a simple subset of what you'd
find in .gitignore or .dockerignore. It supports recursive matching
(**), simple matching (*), matching files in the project root
(/filename), matching against directories (dir/), negation rules
(!previously/excluded/**/file).
2016-05-18 08:34:52 -04:00
Jakub Malek
123a441257
NancyFX:
...
- Utility methods for obtaining value from header and path parameter added to requestExtensions.mustache template
- Added support of parsing arrays (IEnumerable, ICollection, IList, List, ISet, Set, HashSet) for query, header and path parameters
2016-05-18 14:23:17 +02:00
Kristof Vrolijkx
816ba6fb39
Code review remarks
2016-05-18 08:42:37 +02:00
wing328
ea15b72b3f
Merge pull request #2898 from wing328/upgrade_swagger_core
...
Upgrade swagger core to 1.5.9
2016-05-18 11:23:57 +08:00
wing328
204fb3bde1
upgrade swagger core to 1.5.9
2016-05-18 10:53:36 +08:00
wing328
d299f18f16
Merge pull request #2883 from scottrw93/requirements
...
Add requirments.txt and tox.ini
2016-05-18 09:54:40 +08:00
Guo Huang
b519015f61
fixed travis build error
2016-05-17 13:53:12 -07:00
Scott Williams
af64746870
Fix tox for 2.7 tests
2016-05-17 19:50:03 +01:00
wing328
1b4a3e72dd
Merge pull request #2878 from mateuszmackowiak/objc/common_api_protocol
...
[Objc] - Common protocol for Api
2016-05-17 23:45:53 +08:00
zhenjun115
a093e7b74d
gradle wrapper for java api client;
2016-05-17 23:40:57 +08:00
wing328
c649e63e74
Merge pull request #2808 from mikolajprzybysz/broken-repo-path
...
[PHP] Fixing bug with composer project path in generated sdk
2016-05-17 23:30:02 +08:00
wing328
89614af25d
Merge pull request #2890 from cbornet/retrofit2_oauth_loop
...
[Retrofit2] Don't retry if the access token doesn't change
2016-05-17 22:31:30 +08:00
Marcin Stefaniuk
1a670391ed
Respecting packageName option.
2016-05-17 15:33:36 +02:00
wing328
fc5dc44022
Merge branch 'zlx-feature/patch-2'
2016-05-17 21:09:59 +08:00
wing328
a6068a585f
Merge branch 'feature/patch-2' of https://github.com/zlx/swagger-codegen into zlx-feature/patch-2
...
Conflicts:
samples/client/petstore/ruby/README.md
2016-05-17 21:05:37 +08:00
Newell Zhu
a62fa1c80c
replace old syntax for rspec
2016-05-17 20:25:27 +08:00
Newell Zhu
1c3f1b4bf8
regenerate ruby sample after remove tailing
2016-05-17 20:13:38 +08:00
Newell Zhu
6c626ccc7a
remove tailing spaces
2016-05-17 19:53:36 +08:00
wing328
d161389599
Merge pull request #2879 from wing328/csharp_move_test_cases
...
[C#] move existing test cases to auto-generated test files
2016-05-17 19:30:42 +08:00
Jakub Malek
34a8374531
Merge branch 'nancyfx-codegen' of https://github.com/FinderSystems/swagger-codegen into nancyfx-codegen
2016-05-17 13:01:43 +02:00
Jakub Malek
e30e1d9a9e
RequestExceptions utility class template for NancyFx
...
Fixed package name to case-sensitive in GoClientOptionsTest, GoModelTest, LumenServerOptionsTest and SpringBootServerOptionsTest
2016-05-17 13:01:16 +02:00
Marcin Stefaniuk
3a2cbd8904
Added nuget packages, handling empty return types and fixes.
2016-05-17 12:58:50 +02:00
cbornet
596a076077
fix wrong method call
2016-05-17 10:35:37 +02:00
wing328
6fdea1cf6d
Merge pull request #2889 from BeneficialName/patch-1
...
Added WEXO to list of companies using Swagger Codegen
2016-05-17 16:30:03 +08:00
cbornet
fc1d06d810
update retrofit2 samples
2016-05-17 10:25:52 +02:00
cbornet
69d956f16b
don't retry if the access token doesn't change
...
See #1541
2016-05-17 09:45:42 +02:00
Kim Sondrup
706dfea1a9
Added WEXO to list of companies using Swagger Codegen
2016-05-17 09:36:35 +02:00
wing328
1b117e7cec
Merge pull request #2888 from akajla09/javaTests
...
Java: Add basic junit test templates for api clients
2016-05-17 12:00:07 +08:00
wing328
e69122359d
Merge pull request #2880 from zhenjun115/android_api_client
...
gradle wrapper for android api client;
2016-05-17 11:03:13 +08:00
Aditya Kajla
5633fdfb3d
Java: Add basic junit test templates for api clients
2016-05-16 17:55:29 -07:00
wing328
828c93e7f2
Merge pull request #2887 from kbrooks/patch-1
...
Adding IMS Health to the list of companies
2016-05-17 08:31:52 +08:00
Kyle Brooks
7c3facb682
Adding IMS Health to the list of companies
...
This is where I work, and I am using swagger-codegen for a project at work, so it counts.
2016-05-16 17:10:34 -07:00
Scott Williams
ad6b347170
Add requirments.txt and tox.ini
2016-05-16 22:16:56 +01:00
Kristof Vrolijkx
66a49e7b11
always use es6 Promise syntax
2016-05-16 21:08:03 +02:00
Kristof Vrolijkx
b61abf79c6
Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen
2016-05-16 20:57:40 +02:00
Kristof Vrolijkx
ca2174f079
small code movement
2016-05-16 20:42:42 +02:00
Kristof Vrolijkx
5b1c779e57
fix unit test
2016-05-16 20:33:49 +02:00
Kristof Vrolijkx
b36290f88a
adding node-es5-spec (still failing)
2016-05-16 20:12:44 +02:00
Kristof Vrolijkx
ec65eb5975
some small optimizations
2016-05-16 17:58:06 +02:00
Kristof Vrolijkx
68d47be9fd
remove not needed peer dependencies and add any type too additional properties if also other properties defined.
2016-05-16 17:51:00 +02:00
Marcin Stefaniuk
8fc25d9aad
Merge remote-tracking branch 'origin/nancyfx-codegen' into nancyfx-codegen
2016-05-16 17:20:43 +02:00
Marcin Stefaniuk
12fc1332a4
NancyFX generation script.
2016-05-16 17:20:07 +02:00
wing328
5af4156c02
Merge pull request #2866 from jimschubert/cs/ignore_model_tests_option
...
[generator] Individual options to exclude tests and docs for apis and models
2016-05-16 23:10:41 +08:00
Marcin Stefaniuk
874509a592
Introducing service interface and some validation.
2016-05-16 16:27:03 +02:00
Marcin Stefaniuk
37e76f4c68
Main files of nancyfx generator.
2016-05-16 16:27:03 +02:00
Marcin Stefaniuk
4145f2d76a
Introducing service interface and some validation.
2016-05-16 16:25:17 +02:00
wing328
44d64a8793
Merge pull request #2796 from guohuang/multi
...
Updat api_client.go to use the new SetMultiValueQueryParams method
2016-05-16 21:48:01 +08:00
zhenjun115
f79b894411
gradle wrapper for android api client;
2016-05-16 21:14:19 +08:00
Kristof Vrolijkx
aa8b253e38
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into feature/integration-test
2016-05-16 13:47:22 +02:00
Kristof Vrolijkx
c018936c15
add support for additional properties in codegen
2016-05-16 13:47:09 +02:00
Kristof Vrolijkx
37ae53c2cc
add support for additional properties in codegen
2016-05-16 13:45:12 +02:00
Marcin Stefaniuk
496de14cff
Main files of nancyfx generator.
2016-05-16 10:49:24 +02:00
wing328
4be97eb35c
remove old test cases (c# petstore)
2016-05-16 16:36:38 +08:00
wing328
373e5fbde2
fix indention in tostring and constructor, add existing test cases to
...
auto-generated test files
2016-05-16 16:35:25 +08:00
Mateusz Mackowiak
36135134cb
[Objc] - Fixed undeclared selector
2016-05-16 09:19:36 +02:00
Mateusz Mackowiak
7e1b080e24
[Objc] - Default headers in shared configuration
2016-05-16 08:55:08 +02:00
wing328
10f11ad91e
add zlx
2016-05-16 14:37:47 +08:00
wing328
3e17869804
Merge pull request #2857 from jimschubert/cs/client_api_base
...
[csharp] Add common IApiAccessor interface
2016-05-16 14:29:26 +08:00
Mateusz Mackowiak
db27498961
[Objc] Remove try catch form documentation.
2016-05-16 07:48:22 +02:00
Mateusz Mackowiak
5c8516ce24
[Objc] - Common protocol for Api and added NSParameterAssert if missing required param + calling completion block with error rather than throwing an exception
2016-05-16 07:30:25 +02:00
wing328
acfa393b6b
Merge pull request #2871 from zlx/feature/rails5
...
Feature/rails5
2016-05-16 11:54:38 +08:00
wing328
f60bffe484
Merge pull request #2771 from taxpon/issue-2770
...
Update typescript-angular2 client to adapt to rc (#2770 )
2016-05-16 11:37:56 +08:00
wing328
8103ef3f2c
Merge pull request #2877 from cbornet/lib_versions
...
[JAVA]Update versions in java libraries descriptions
2016-05-15 22:38:55 +08:00
wing328
935d6d35d1
Merge branch 'arnested-php-generated-codestyle'
2016-05-15 22:22:22 +08:00
wing328
de1949c644
Merge branch 'php-generated-codestyle' of https://github.com/arnested/swagger-codegen into arnested-php-generated-codestyle
2016-05-15 22:11:19 +08:00
cbornet
b1572af65d
update versions in java libraries descriptions
2016-05-15 16:08:43 +02:00
wing328
a9fd820a27
Merge pull request #2876 from wing328/fix_android_pom
...
[Android] update android volley dependencies, add source and target in pom.xml
2016-05-15 17:13:36 +08:00
wing328
1f4723457b
Merge pull request #2873 from webbj74/fix-readme-silex
...
Fixes instructions for generating PHP Silex code.
2016-05-15 17:12:27 +08:00
wing328
cda6bc380e
update android volley dependencies, add source and target in pom.xml
2016-05-15 17:06:46 +08:00
wing328
6697c865c2
Merge branch 'zhenjun115-android_api_client'
2016-05-15 14:45:40 +08:00
wing328
d01305671f
minor fix to android after switching default lib
2016-05-15 14:40:20 +08:00
zhenjun115
c5136e4dda
change volley to the default http library for android (existing errors);
2016-05-15 13:43:08 +08:00
Newell Zhu
33a1d24e1e
change better method call
2016-05-15 11:53:54 +08:00
J Webb
f38bdae6c0
Fixes instructions for generating PHP Silex code.
2016-05-14 16:38:00 -04:00
Dmytro Kryvoshei
ea15b859b7
use Title attribute as model name
...
this allows to use names defined by user in Response model instead of
"inline_response". Also user could use title to have specific name for
request model instead of parameter name
2016-05-14 15:30:57 -04:00
wing328
093fc4680b
Merge branch 'JMDHo-patch-2'
2016-05-15 01:35:19 +08:00
wing328
1d6eef715c
update swift petstore sample
2016-05-15 01:35:01 +08:00
wing328
a466844063
Merge branch 'patch-2' of https://github.com/JMDHo/swagger-codegen into JMDHo-patch-2
2016-05-15 01:21:47 +08:00
Newell Zhu
83b5c2eeec
Add Rails5 sample
2016-05-15 00:25:00 +08:00
Newell Zhu
d0dcec85cc
build route.mustache
2016-05-15 00:20:38 +08:00
Newell Zhu
da50a6e1f0
Complete controller mustache
2016-05-15 00:20:38 +08:00
Newell Zhu
8847462198
setup rails 5 basic structure
2016-05-15 00:20:38 +08:00
wing328
1520b90b0d
Merge pull request #2812 from achew22/undefined_ts
...
Update TypeScript to do a better check for empty on basePath.
2016-05-14 22:22:26 +08:00
wing328
7253375b13
Merge pull request #2811 from achew22/injection_ts
...
Update the injector static variable to contain all injected values.
2016-05-14 22:17:20 +08:00
Arne Jørgensen
d3fe0ae28a
[PHP] Improve codestyle of phpunit tests
2016-05-14 13:45:41 +02:00
Arne Jørgensen
1f02fd281f
[PHP] Regenerate petstore sample
2016-05-14 13:45:41 +02:00
Arne Jørgensen
cc395fdf63
[PHP] Improve generated codestyle
2016-05-14 13:45:41 +02:00
wing328
b3a335f97b
Merge pull request #2863 from cbornet/fix_feign_oauth
...
[Feign]Fix issue with expired token refreshing
2016-05-14 18:04:12 +08:00
wing328
31848a1920
Merge pull request #2867 from wing328/php_debug_message
...
[PHP] add debug switch to print out downloaded file info
2016-05-14 17:56:28 +08:00
wing328
2a11720b1d
Merge pull request #2862 from mateuszmackowiak/master
...
[Objc] Moved the generated files to Api, Core and Model folders
2016-05-14 17:48:22 +08:00
wing328
c982a3a1b7
Merge pull request #2865 from leonyu/functional_programming_interface
...
functional programming api for typescript-fetch
2016-05-14 17:27:33 +08:00
wing328
0b7d0c34af
add debug switch to print out downloaded file info
2016-05-14 17:11:48 +08:00
Jim Schubert
f6b42b1a4f
[python] Excluded tests shouldn't write test init
2016-05-13 22:27:46 -04:00
Jim Schubert
96b98d22c5
[generator] Exclude api/model tests & docs via options
...
Adds support for system properties apiTests, modelTests, modelTests, modelDocs.
All accepting a boolean value to explicitly define whether or not these
should be generated.
These properties aren't considered "features", so specifying
-DmodelTests=false for example won't cause api or supportFiles to be ignored.
Includes additionalProperty excludeTests for when apiTests and modelTests are
both set to false.
Also includes update to csharp client generator to prevent generation of
the Test project or inclusion of the Test project when both api and
model tests are excluded.
see #2506
2016-05-13 22:04:45 -04:00
Leon Yu
885d3543df
functional programming api for typescript-fetch
2016-05-13 17:59:01 -04:00
Guo Huang
164c728088
Merge branch 'travis' of https://github.com/guohuang/swagger-codegen into travis
...
# Conflicts:
# samples/client/petstore/go/go-petstore/.travis.yml
2016-05-13 13:31:53 -07:00
Guo Huang
492dbcb572
added travis yml to code gen
2016-05-13 13:29:51 -07:00
Guo Huang
0facbd708a
added travis yml to code gen
2016-05-13 13:20:31 -07:00
cbornet
b543a53dc7
update feign sample
2016-05-13 16:33:49 +00:00
cbornet
f87d718836
fix issue with expired token refreshing
2016-05-13 16:23:51 +00:00
Mateusz Mackowiak
70cbe1042c
[Objc] Moved the generated files to Api, Core and Model folders
...
- Added known response codes in comment
2016-05-13 17:46:49 +02:00
wing328
1939ce8e91
Merge branch 'jimschubert-cs/req_properties_2584'
2016-05-13 22:17:55 +08:00
wing328
3ec8a96a94
update csharp petstore sample
2016-05-13 22:17:16 +08:00
wing328
303aec7647
Merge branch 'cs/req_properties_2584' of https://github.com/jimschubert/swagger-codegen into jimschubert-cs/req_properties_2584
...
Conflicts:
samples/client/petstore/csharp/SwaggerClient/IO.Swagger.sln
samples/client/petstore/csharp/SwaggerClient/README.md
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/IO.Swagger.Test.csproj
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/IO.Swagger.csproj
2016-05-13 21:49:16 +08:00
wing328
68d0e975f9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-13 21:03:50 +08:00
wing328
3c9b8dc722
Merge branch 'leonyu-typescript-fetch-basic-unit-test'
2016-05-13 21:03:34 +08:00
wing328
1e00bbfb8d
Merge branch 'typescript-fetch-basic-unit-test' of https://github.com/leonyu/swagger-codegen into leonyu-typescript-fetch-basic-unit-test
2016-05-13 18:02:38 +08:00
wing328
e24405e706
Merge pull request #2861 from BeneficialName/php-fix-prop-name-as-var
...
[PHP] list_invalid_properties now don't call undefined variables
2016-05-13 17:35:18 +08:00
wing328
406357e3b8
Merge pull request #2854 from BeneficialName/php-cleanup
...
[PHP] Cleanup to make coding style more consistent
2016-05-13 17:31:36 +08:00
Kim Sondrup
7737a59705
Run ./bin/php-petstore.sh
2016-05-13 11:01:10 +02:00
Kim Sondrup
bf259a8065
Merge remote-tracking branch 'swagger/master' into php-cleanup
2016-05-13 11:00:34 +02:00
wing328
26aa8e7c05
Merge pull request #2852 from BeneficialName/php-model-change
...
[PHP] method list_invalid_properties change to camelCase
2016-05-13 16:55:17 +08:00
Kim Sondrup
e31c71f685
[PHP] list_invalid_properties now don't call undefined variables
2016-05-13 10:54:29 +02:00
wing328
8769e9b4f9
Merge branch 'cjolif-enum'
2016-05-13 16:40:20 +08:00
wing328
610af20712
update swift sample
2016-05-13 16:40:01 +08:00
wing328
e0ce491b44
Merge branch 'enum' of https://github.com/cjolif/swagger-codegen into cjolif-enum
2016-05-13 16:32:38 +08:00
wing328
48fbaa793a
Merge pull request #2842 from mikolajprzybysz/allow-version-skip
...
[PHP] Allow version skip in composer.json
2016-05-13 15:51:53 +08:00
Leon Yu
aed31fbff3
basic integration test for typescript-fetch
...
fix postpublish script
2016-05-13 01:45:54 -04:00
abcsun
4d6d63754d
add parameters validation from request & adjust the mustache output style
2016-05-13 11:43:29 +08:00
Jim Schubert
993a21ed5f
[csharp] Add interface for API config aspects
...
This allows developers to gain access to each API's
Configuration and GetBasePath without need for reflection.
2016-05-12 22:06:30 -04:00
Jim Schubert
726228a27d
[csharp] Make APIs partial classes
2016-05-12 22:02:11 -04:00
Kim Sondrup
b2f5d8c060
[PHP] Made coding standard more consistent across template files
2016-05-13 01:47:59 +02:00
Kim Sondrup
6bb953d0aa
[PHP] Remove trailing spaces from templates
2016-05-13 00:31:45 +02:00
Kim Sondrup
840adb8aa3
[PHP] model list_invalid_properties change to camelCase
2016-05-12 20:05:55 +02:00
wing328
153af0c6cb
Merge pull request #2843 from zhenjun115/android_volley_api_client
...
Android volley api client
2016-05-13 00:21:44 +08:00
wing328
aaf8c867a2
Merge pull request #2845 from cjolif/master
...
fix typo
2016-05-13 00:20:59 +08:00
Christophe Jolif
154f85992e
fix typo
2016-05-12 17:10:01 +02:00
zhenjun115
32a6099853
add gitignore.mustache and git_push.mustache for android api client using volley;
2016-05-12 23:04:43 +08:00
Mikolaj Przybysz
a06ba7d4b8
Enable skipping version in composer.json
2016-05-12 16:53:21 +02:00
wing328
dfda700e7e
Merge branch 'mateuszmackowiak-objc/moved_logger_and_optimalizations'
2016-05-12 22:40:08 +08:00
Mikolaj Przybysz
bbb1c13b79
Modified code to be able to use composer properties and git properties alternatively and together
2016-05-12 16:38:13 +02:00
wing328
a05133bdc6
Merge branch 'objc/moved_logger_and_optimalizations' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/moved_logger_and_optimalizations
...
Conflicts:
samples/client/petstore/objc/README.md
samples/client/petstore/objc/SwaggerClient.podspec
2016-05-12 22:38:06 +08:00
wing328
b61fa55e45
Merge branch 'objc/bump_podspec_versions' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-objc/bump_podspec_versions
2016-05-12 22:21:22 +08:00
wing328
eb3f5fb218
Merge branch 'kolyjjj-upgrade_version'
2016-05-12 21:57:18 +08:00
zhenjun115
a7ec1b9fd0
Merge pull request #1 from swagger-api/master
...
sync branch master
2016-05-12 21:53:48 +08:00
Mikolaj Przybysz
329d22ec00
Revert "Fixing php sdk composer project path"
...
This reverts commit 4bbc911664 .
2016-05-12 14:29:00 +02:00
Mikołaj Przybysz
ce821a5100
Merge pull request #1 from swagger-api/master
...
Update
2016-05-12 12:17:57 +02:00
Christophe Jolif
524ced1d9b
Fix regression on swift enum name as well as make sure enum var name with colons ouput compiable swift. Add a test. fixes #2824 , fixes #2835
2016-05-12 11:57:43 +02:00
Kristof Vrolijkx
6e000cc2a1
Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen into feature/integration-test
2016-05-11 21:59:16 +02:00
Mateusz Mackowiak
ac37c43649
[Objc] Moved [request setHTTPShouldHandleCookies:NO]; to postProcessRequest method for easier override to modify request.
2016-05-11 18:20:15 +02:00
Mateusz Mackowiak
567c23a3df
[Objc] Support for variations of application/json type
2016-05-11 17:39:28 +02:00
Takuro Wada
77428b8a83
Fix npm error & import error in generated code
2016-05-12 00:32:09 +09:00
kolyjjj
3948ae27a4
upgrade version and delete scala-test property
2016-05-11 18:28:01 +08:00
wing328
d6ad7dc0b0
Merge pull request #2831 from zhenjun115/master
...
a new pom.mustache for android api client using volley HTTP library;
2016-05-11 17:43:42 +08:00
wing328
311a5ce907
Merge pull request #2832 from wing328/refactor_character_mapping
...
Refactor special mapping to default codegen
2016-05-11 16:57:29 +08:00
Mateusz Mackowiak
6206785038
[Objc] bump AFNetworking version to 3
2016-05-11 10:40:43 +02:00
wing328
dfe7e33fa5
update mapping to use minus for -
2016-05-11 16:34:30 +08:00
wing328
2784db0604
fix escpaing " and \
2016-05-11 16:14:03 +08:00
wing328
3c117d5857
refactor special mapping to defualt codegen
2016-05-11 15:44:06 +08:00
zhenjun115
ee15ef3579
a new pom.mustache for android api client using volley HTTP library;
2016-05-11 13:05:54 +08:00
wing328
9df91a08cd
add cchafer (author of Akka Scala)
2016-05-11 11:27:37 +08:00
Mateusz Mackowiak
fa7d3c9bad
[Objc]
...
- Moved Logging to separate Logger file
- Moved selectHeaderAccept and selectHeaderContentType to sanitizer
- little optimizations
2016-05-10 22:06:50 +02:00
Mateusz Mackowiak
94f49d2275
[Objc] bump version of JSONModel to 1.2 and ISO8601 to 0.5
2016-05-10 21:53:14 +02:00
Guo Huang
80d210a413
added travis.yml, remove old README.md
2016-05-10 11:13:56 -07:00
Mikolaj Przybysz
82f1a1bce5
Added gitUserId and gitRepoId to php config-help
2016-05-10 20:05:31 +02:00
wing328
bcb1acc210
Merge pull request #2822 from wing328/php_fix_doc
...
[PHP] fix broken links in php doc
2016-05-11 00:43:23 +08:00
wing328
745e1aba32
fix broken links in php doc
2016-05-11 00:03:14 +08:00
wing328
73b78bc294
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-10 22:39:11 +08:00
wing328
6520f9bfc7
Merge branch 'mikolajprzybysz-issue-2743'
2016-05-10 22:38:49 +08:00
wing328
1cb1b0351c
update php sample
2016-05-10 22:38:21 +08:00
wing328
753b5c8164
Merge pull request #2820 from zlx/feature/patch-1
...
fix typo
2016-05-10 22:34:29 +08:00
wing328
3c72547e27
Merge branch 'issue-2743' of https://github.com/mikolajprzybysz/swagger-codegen into mikolajprzybysz-issue-2743
2016-05-10 22:33:00 +08:00
Newell Zhu
0f97386b0b
fix typo
2016-05-10 22:16:25 +08:00
wing328
4f28ed3cd3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-10 20:02:33 +08:00
wing328
67efffcc19
Merge branch 'guohuang-csharp-bug'
2016-05-10 20:02:13 +08:00
wing328
55746f01b1
Merge branch 'csharp-bug' of https://github.com/guohuang/swagger-codegen into guohuang-csharp-bug
2016-05-10 20:01:44 +08:00
wing328
5aaf570782
Merge pull request #2818 from wing328/bug/fix_2795
...
[C#] fix constructor with readonly property at the end
2016-05-10 19:08:17 +08:00
Jean-Michel Douliez
6178149f10
Update api.mustache
2016-05-10 12:46:30 +02:00
Jean-Michel Douliez
9f19a74123
Update APIHelper.mustache
2016-05-10 12:45:38 +02:00
wing328
e756ba081a
Merge branch 'leonyu-update_typings_json'
2016-05-10 18:01:42 +08:00
wing328
cd6f5877ac
add bin/typescript-fetch-petstore-all.sh
2016-05-10 18:01:17 +08:00
wing328
62db8e854b
Merge branch 'update_typings_json' of https://github.com/leonyu/swagger-codegen into leonyu-update_typings_json
2016-05-10 17:51:28 +08:00
wing328
1b36083afd
fix #2795
2016-05-10 17:40:21 +08:00
wing328
5bbed79581
Merge pull request #2815 from wing328/ruby_move_test_case
...
[Ruby] update Ruby test cases
2016-05-10 15:22:01 +08:00
wing328
31daa2b092
update ruby test files
2016-05-10 14:56:14 +08:00
wing328
d54877b5d3
add ruby spec for configuration, api client, replace should with expect
2016-05-10 14:18:06 +08:00
Guo Huang
e7f68287c1
updated function to support multiple collection formats
2016-05-09 22:01:32 -07:00
Andrew Z Allen
0b8c936972
Update TypeScript to do a better check for empty on basePath.
...
In Angular if a value is not defined for injection it is passed as
undefined. That means that most of the time `if (value) {` is a
reasonable test. Unfortunately since `""` (empty string) is also falsey
by nature, an empty string will not trigger the if properly.
Instead you should check `if (value !== undefined) {`.
2016-05-09 22:59:25 -06:00
Andrew Z Allen
51ad775aee
Update the injector static variable to contain all injected values.
...
In Angular.js, values are injected into service in one of two ways:
1) Inline (by name).
2) By a static injector variable.
The TypeScript generator uses the 2nd method. This method requires you
to explicitly enumerate all the values you would like to have injected.
If you fail to inject a value the Angular DI system will simply pass you
`undefined`. The constructor is expecting 3 values to be passed (the
final being basePath) but the injector static only defines 2 values.
This results in basePath always being undefined no matter what you
define it to be.
This change updates the injector variable to handle that properly.
2016-05-09 22:46:50 -06:00
wing328
e17710fc72
add pagerduty
2016-05-10 10:38:16 +08:00
Leon Yu
3185606124
Update typings
...
Expose type definition
Add readme
2016-05-09 20:33:24 -04:00
Mikolaj Przybysz
4bbc911664
Fixing php sdk composer project path
2016-05-09 19:56:20 +02:00
Mikolaj Przybysz
449d6b7d5f
issue-2743 fixing docs path and composer autoloader-dev
2016-05-09 19:03:49 +02:00
wing328
b5dba68dfa
Merge branch 'arnested-php-fix-array-handling-2'
2016-05-10 00:40:24 +08:00
wing328
363c40ec55
update php petstore sample
2016-05-10 00:39:55 +08:00
wing328
d0529cffdb
Merge branch 'php-fix-array-handling-2' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling-2
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
samples/client/petstore/php/SwaggerClient-php/README.md
samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-10 00:29:13 +08:00
wing328
65ee4cb835
Merge pull request #2806 from wing328/fix_java_default_import
...
[Java] fix java import issue due to enum and inner model
2016-05-09 23:35:33 +08:00
wing328
477f6f8d4d
use modelPackage instead to import all models
2016-05-09 23:17:37 +08:00
wing328
b27d8c22c7
fix java import issue due to enum and inner model (array of array of
...
model)
2016-05-09 23:12:12 +08:00
wing328
d3c434e40f
add mateuszmackowiak to core team
2016-05-09 21:53:01 +08:00
wing328
b03b377a86
Merge pull request #2804 from wing328/bug/fix_2668
...
[Java] To fix missing import for @JsonValue
2016-05-09 21:47:28 +08:00
wing328
28c7ea5426
Merge pull request #2799 from mateuszmackowiak/obj/ApiClient-Sanitizer
...
Sanitizer for separating sanitize and service logic
2016-05-09 18:01:36 +08:00
wing328
c6eae8a6a6
Merge branch 'mateuszmackowiak-obj/Generic_List_and_Maps'
2016-05-09 17:47:39 +08:00
wing328
899af7a5fa
Merge branch 'obj/Generic_List_and_Maps' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-obj/Generic_List_and_Maps
2016-05-09 17:33:05 +08:00
wing328
94978e019e
Merge branch 'abcsun-php_parameter_validation'
2016-05-09 16:33:25 +08:00
wing328
f30b32afc4
minor fix to mustache layout
2016-05-09 16:32:49 +08:00
wing328
cf6e8cffbb
Merge branch 'php_parameter_validation' of https://github.com/abcsun/swagger-codegen into abcsun-php_parameter_validation
...
Conflicts:
samples/client/petstore/php/SwaggerClient-php/README.md
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php
2016-05-09 16:21:40 +08:00
wing328
126510b1ad
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-09 16:08:39 +08:00
Mateusz Mackowiak
ea87f95f77
Rebase obj/Generic_List_and_Maps
2016-05-09 10:08:28 +02:00
wing328
d1cc2488b1
Merge pull request #2773 from zhenjun115/master
...
add pom.xml based on build.gradle for android api client( using the v…
2016-05-09 16:06:39 +08:00
Mateusz Mackowiak
93a39242a6
Merge branch 'master' into obj/ApiClient-Sanitizer
2016-05-09 09:49:27 +02:00
wing328
8a9ba0b3f3
Merge pull request #2803 from diyfr/SpringBootServer
...
Add Springboot documentation
2016-05-09 15:39:30 +08:00
diyfr
c039526993
Add Springboot documentation
2016-05-09 08:21:32 +02:00
wing328
e367a74504
Merge pull request #2791 from leonyu/typescript-fetch-package-json
...
Typescript fetch update
2016-05-09 12:45:26 +08:00
wing328
dbe8ef9df8
Merge pull request #2785 from wing328/bug/escape_unicode
...
Fix unicode issue in escapeText
2016-05-09 11:35:25 +08:00
wing328
1a2bf79d51
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
...
Conflicts:
samples/client/petstore/objc/README.md
2016-05-09 11:22:25 +08:00
wing328
edc87b1480
Merge branch 'mateuszmackowiak-obj/SupportForByteArray'
2016-05-09 11:21:39 +08:00
wing328
f28e2f2a1b
Merge branch 'obj/SupportForByteArray' of https://github.com/mateuszmackowiak/swagger-codegen into mateuszmackowiak-obj/SupportForByteArray
2016-05-09 11:21:21 +08:00
wing328
13b413151b
Merge pull request #2797 from mateuszmackowiak/obj/ApiClient_AFNetworking3
...
Use AFHttpSessionManager instead of AFHTTPRequestOperationManager #1981
2016-05-09 11:19:04 +08:00
wing328
caea3876b5
Merge branch 'scottrw93-validation'
2016-05-09 11:03:46 +08:00
wing328
36ada7f5fc
Merge branch 'validation' of https://github.com/scottrw93/swagger-codegen into scottrw93-validation
2016-05-09 10:51:23 +08:00
Scott Williams
4718c34984
Replace tabs with spaces
2016-05-09 01:25:13 +01:00
Scott Williams
25ebd5466d
Update pattern to support Perl /pattern/modifiers convention
2016-05-09 01:11:29 +01:00
wing328
beb88e0f3c
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-09 01:17:59 +08:00
wing328
9e8cbae0ec
rearrange order for core member list
2016-05-09 00:46:17 +08:00
wing328
cfa2c54c15
removed kristof
2016-05-09 00:45:29 +08:00
wing328
20f3850eb2
add guideline for becoming a core team member
2016-05-09 00:30:55 +08:00
wing328
6b6a559aa5
add .net2.0 template creator
2016-05-08 23:24:14 +08:00
wing328
d4383ce4c1
update core team (js)
2016-05-08 22:33:52 +08:00
wing328
dcbc8975a0
update core team
2016-05-08 22:24:52 +08:00
Jim Schubert
705ed78de1
[csharp] regenerate client
2016-05-08 08:35:28 -04:00
Mateusz Mackowiak
fbd6a95799
[Objc] Generator supports binary and BiteArray and maps data to NSData
2016-05-08 12:54:12 +02:00
wing328
46957bb6aa
add swagger codegen core team
2016-05-08 18:48:22 +08:00
Jim Schubert
618f4bdd39
[csharp] Constructor handling for serialization
...
Resolving an issue with serializing classes that contain required
properties. When the only constructor has defaulted parameters, no
parameterless constructor is generated but JSON.Net attempts to call
the missing constructor on deserialization (because of DataContract).
See: https://manski.net/2014/10/net-serializers-comparison-chart/
The fix here is to create a protected constructor, annotate it with
JsonConstructorAttribute to inform JSON.Net it is the constructor to use
during serialization, then provide settings that explicitly allow
JSON.Net to access non-public constructors during serialiazation.
2016-05-07 22:22:48 -04:00
zhenjun115
6709a92cbc
remove pom.mustache from android api client using volley HTTP library;
2016-05-07 23:38:05 +08:00
wing328
c3690d8675
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-07 23:10:25 +08:00
Mateusz Mackowiak
74c233e194
Sanitizer for separating sanitize and service logic
2016-05-07 15:18:10 +02:00
Mateusz Mackowiak
07b466a291
Objective c generator converts map and array properties to proper format using generics
2016-05-07 14:13:25 +02:00
Mateusz Mackowiak
81c6edcdd4
Merge commit '084f15fc2e6db460b037b08708a3713b8ef61be6' into obj/ApiClient_AFNetworking3
2016-05-07 13:57:15 +02:00
wing328
084f15fc2e
Merge pull request #2786 from mateuszmackowiak/objc/responseDeserializer
...
[Objc] ResponseDeserializer for separating deserialization and service logic
2016-05-07 19:50:34 +08:00
Mateusz Mackowiak
a71d8d935a
Use AFHttpSessionManager instead of AFHTTPRequestOperationManager #1981
2016-05-07 12:16:05 +02:00
abcsun
9efef02d5f
formate the module.mustache
2016-05-07 18:12:28 +08:00
wing328
7d33e1655d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
...
Conflicts:
samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.mustache
2016-05-07 17:55:39 +08:00
wing328
4c0ed319d8
Merge branch 'jimschubert-csharp_default_paths'
2016-05-07 17:54:38 +08:00
wing328
77e56084ac
regenerate c# petstore sample
2016-05-07 17:49:54 +08:00
wing328
2ab315fa6f
Merge branch 'csharp_default_paths' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp_default_paths
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
samples/client/petstore/csharp/SwaggerClient/README.md
samples/client/petstore/csharp/SwaggerClient/docs/FormatTest.md
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs
samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/InlineResponse200.cs
samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.csproj
samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.userprefs
samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.csproj.FilesWrittenAbsolute.txt
2016-05-07 17:30:40 +08:00
abcsun
df1d36cf47
modify the properties from container array
2016-05-07 15:55:38 +08:00
abcsun
0695708594
sync from origin master & do the parameters validation in model
2016-05-07 15:43:19 +08:00
Guo Huang
0bc34dcae8
updated api_client.go to use the new SetMultiValueQueryParams method
2016-05-06 23:48:46 -07:00
zhenjun115
101f9a4086
add generated markdown files to android api client for default and volley;
2016-05-07 14:33:47 +08:00
zhenjun115
3629fbac44
add pom.mustache for android api client(using volley HTTP library);update android api client samples(using volley HTTP library);
2016-05-07 14:12:19 +08:00
wing328
bff6c8bab4
add bitly
2016-05-07 08:47:30 +08:00
Scott Williams
fed22a1f72
Add regex support
2016-05-06 22:52:44 +01:00
Arne Jørgensen
bf8b7b760c
[PHP] Regenerate petstore sample
2016-05-06 23:48:52 +02:00
Arne Jørgensen
f5a802d9af
[PHP] Fix default values in derived classes
...
Fixes flaw in 9f40a82310 .
2016-05-06 23:48:52 +02:00
Leon Yu
64548d9bf5
Update bin
2016-05-06 15:59:37 -04:00
Leon Yu
b3937c2656
Package management option
...
ES6 target
Fix enum
2016-05-06 15:59:07 -04:00
Guo Huang
5bb1853018
added support for multi
2016-05-06 11:48:20 -07:00
wing328
34ec63e908
Merge pull request #2787 from xhh/js-enum
...
[JavaScript] Fix the exporting of outer enum model in JS client
2016-05-06 18:56:38 +08:00
xhh
020a9fcdc0
Fix enum model docs for JS and Java clients
2016-05-06 18:41:15 +08:00
Mateusz Mackowiak
fa68f84ec6
- Remove petsotre demo leftovers
...
- Moved description method to basic class
2016-05-06 12:35:02 +02:00
xhh
5acef6d634
Update petstore sample for JS-promise client
2016-05-06 18:02:32 +08:00
xhh
3dbab1b893
JavaScript client: fix exporting of outer enum model
2016-05-06 17:45:03 +08:00
Mateusz Mackowiak
385bf6d9ea
Additional UnknownResponseObjectErrorCode if response object expected type is an unknown type
2016-05-06 11:41:30 +02:00
wing328
db65a1526f
Merge pull request #2761 from kolyjjj/upgradeswaggertools
...
[koly] update swagger tools to 0.10.1
2016-05-06 17:18:32 +08:00
wing328
ce4a976916
Merge pull request #2775 from guohuang/tests
...
fixed array return type return as pointer issue
2016-05-06 17:07:02 +08:00
Mateusz Mackowiak
75cc10fdfa
Fix typo
2016-05-06 10:51:59 +02:00
wing328
d3e77a4104
Merge pull request #2784 from catinred2/htmlDocs_response
...
Html docs response
2016-05-06 16:46:44 +08:00
Mateusz Mackowiak
65d85b7760
ResponseDeserializer for separating deserialization and service logic
2016-05-06 10:46:03 +02:00
wing328
3a80a4ff1e
fix double byte characters in description, upgrade to lang3
2016-05-06 16:36:45 +08:00
xming
70d6e64a8d
add link to param type
2016-05-06 15:31:09 +08:00
wing328
5a7e0fd181
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
...
Conflicts:
samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiException.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiOriginFilter.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/ApiResponseMessage.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/NotFoundException.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/PetApi.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/StoreApi.java
samples/server/petstore/springboot/src/main/java/io/swagger/api/UserApi.java
samples/server/petstore/springboot/src/main/java/io/swagger/configuration/SwaggerDocumentationConfig.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/Category.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/ModelApiResponse.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/Order.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/Pet.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/Tag.java
samples/server/petstore/springboot/src/main/java/io/swagger/model/User.java
2016-05-06 15:09:34 +08:00
Takuro Wada
724c25728e
Move @angular dependencies to peerDependencies
2016-05-06 16:04:24 +09:00
wing328
1dd8faf8b7
Merge pull request #2783 from GriffinSchneider/patch-1
...
Replace 'BEARER' with 'Bearer' everywhere for RFC6750 compliance.
2016-05-06 15:01:22 +08:00
xming
ea14b3b559
Merge branch 'master' into htmlDocs_response
2016-05-06 13:57:27 +08:00
wing328
dc50709f56
Merge branch 'arnested-php-fix-array-handling'
2016-05-06 10:47:00 +08:00
wing328
ac2cb647b5
Merge branch 'php-fix-array-handling' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
samples/client/petstore/php/SwaggerClient-php/README.md
samples/client/petstore/php/SwaggerClient-php/docs/FormatTest.md
samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-06 10:46:36 +08:00
xming
0f1842bb06
add datatype link under responses
2016-05-06 10:35:45 +08:00
Griffin Schneider
e5ab34b658
Replace 'BEARER' with 'Bearer' everywhere.
...
RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
2016-05-05 16:14:45 -04:00
Guo Huang
ebdf12bcd4
fixed code gen using {{#isListContainer}}*{{/isListContainer}} field
2016-05-05 11:41:58 -07:00
wing328
b92e240ac2
Merge branch 'leonyu-typescript-fetch'
2016-05-05 17:13:10 +08:00
wing328
e04c4ec640
add typescript-fetch client generator
2016-05-05 17:12:28 +08:00
wing328
e0ec38df72
Merge branch 'typescript-fetch' of https://github.com/leonyu/swagger-codegen into leonyu-typescript-fetch
2016-05-05 16:43:30 +08:00
wing328
e1d4a6205c
Merge branch 'diyfr-SpringBootServer'
2016-05-05 15:31:57 +08:00
wing328
3b8a66bb8c
rename spsringboot sh, change permission, add ModelApiResponse.java
2016-05-05 15:31:17 +08:00
wing328
3dccc7d2a1
Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer
2016-05-05 15:28:10 +08:00
wing328
060a557dee
Merge branch 'diyfr-SpringBootServer'
2016-05-05 15:24:32 +08:00
wing328
39cbee5ca2
rename springboot sh, chmod a+x, add ModelApiResponse
2016-05-05 15:23:56 +08:00
wing328
8146c874db
Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer
2016-05-05 15:03:23 +08:00
abcsun
22ea2d87e0
add validation to model
2016-05-05 11:41:14 +08:00
Jim Schubert
9b1d43c6f5
[csharp] default optionalProjectFileFlag to true
...
Possible breaking change.
optionalProjectFileFlag handles the generation of csproj and sln
files. Not modifying the plurality of the option to reduce the
impact of the breaking change for existing settings:
optionalProjectFileFlag=true
=> generates additional .sln file
optionalProjectFileFlag=false
=> no change
unspecified
=> additional files (csproj, sln) may overwrite existing files
2016-05-04 21:44:52 -04:00
Guo Huang
82770e9566
Issue #2756 : add null checking to avoid null exception
2016-05-04 13:22:46 -07:00
Leon Yu
bbeb1a3f6f
add dev-dependencies
2016-05-04 14:36:04 -04:00
Guo Huang
41b7649e62
fixed array return type return as pointer issue
2016-05-04 10:39:30 -07:00
diyfr
8209653fb0
Add SpringBoot server generator
2016-05-04 16:38:36 +02:00
黄真俊
e868690c03
add pom.xml based on build.gradle for android api client( using the volley HTTP library );
2016-05-04 19:51:53 +08:00
wing328
ec5d300bab
added Pepipost
2016-05-04 18:26:13 +08:00
kolyjjj
98a2a22abf
[koly] generate nodejs codes
2016-05-04 17:56:02 +08:00
Takuro Wada
366c7d6917
Add Opeiontal decorator to basePath
2016-05-04 18:38:54 +09:00
abcsun
f4ef2b0325
add valid function and validation to each setter
2016-05-04 16:56:56 +08:00
Takuro Wada
949da93a05
Update typescript-angular2 client to adopt to rc
2016-05-04 17:19:00 +09:00
abcsun
c8f2715edc
fix the minLength validation
2016-05-04 14:52:12 +08:00
wing328
33291f5780
Merge branch 'guohuang-tests'
2016-05-04 10:21:47 +08:00
wing328
27b8d1af81
Merge branch 'tests' of https://github.com/guohuang/swagger-codegen into guohuang-tests
...
Conflicts:
samples/client/petstore/go/pet_api_test.go
2016-05-04 10:21:38 +08:00
wing328
4117608654
Merge pull request #2749 from guohuang/pointer
...
changed go client to return object pointer
2016-05-04 10:17:07 +08:00
wing328
dc262a3567
Merge pull request #2765 from Vrolijkx/master
...
Reverting remove of client.ts in typescript-node
2016-05-04 09:57:21 +08:00
wing328
96f90106ec
Merge branch 'wing328-bherila-typescript-es6-promises'
2016-05-04 09:54:56 +08:00
wing328
8181720397
Merge branch 'bherila-typescript-es6-promises' of https://github.com/wing328/swagger-codegen into wing328-bherila-typescript-es6-promises
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
2016-05-04 09:54:42 +08:00
Guo Huang
60ee308da5
added assert to check response status match the query
2016-05-03 11:55:51 -07:00
Kristof Vrolijkx
a98c58a76f
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-03 20:55:28 +02:00
Kristof Vrolijkx
9fb85ae8fe
removing comment
2016-05-03 20:36:24 +02:00
Guo Huang
035ee18ba4
fixed testing issue
2016-05-03 10:27:27 -07:00
Guo Huang
a5b08a8ce7
fixed merge conflict
2016-05-03 10:16:47 -07:00
Guo Huang
3168de5f74
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into pointer
...
# Conflicts:
# modules/swagger-codegen/src/main/resources/go/api.mustache
# samples/client/petstore/go/go-petstore/pet_api.go
# samples/client/petstore/go/go-petstore/store_api.go
# samples/client/petstore/go/go-petstore/user_api.go
2016-05-03 10:03:48 -07:00
kolyjjj
0ce6fd7b36
[koly] update swagger tools to 0.10.1
2016-05-03 22:18:43 +08:00
wing328
bed21e418b
Merge pull request #2508 from wing328/php_enum
...
[PHP][C#] better enum support
2016-05-03 20:09:51 +08:00
diyfr
9604257649
#2742 Issue multiple methods if use multi tags
2016-05-03 13:45:31 +02:00
wing328
2c41451b67
add new java file for enum mustache template
2016-05-03 18:24:25 +08:00
wing328
bfdd49a2b2
add new JS enum mustache template
2016-05-03 18:24:00 +08:00
wing328
3346c84a1f
better enum support for typescript
2016-05-03 18:23:08 +08:00
wing328
982a035cc1
add better enum support to swift
2016-05-03 18:12:35 +08:00
wing328
40815f5f00
Merge pull request #2746 from guohuang/tests
...
added user api test
2016-05-03 16:57:02 +08:00
wing328
6b0b343b92
add option to support ES6
2016-05-03 16:42:02 +08:00
Kristof Vrolijkx
ea8516d747
Readding client.ts
2016-05-03 08:39:39 +02:00
wing328
333a5edeae
Merge branch 'typescript-es6-promises' of https://github.com/bherila/swagger-codegen into bherila-typescript-es6-promises
2016-05-03 14:29:52 +08:00
wing328
1d6ec92141
add sh for groovy petstore
2016-05-03 14:11:49 +08:00
wing328
0bce28cff2
add back ts resource folder with new folder name
2016-05-03 14:09:08 +08:00
wing328
5c97717fc8
temporary remove ts resource folder
2016-05-03 14:08:02 +08:00
wing328
acb34e3db0
better JS enum class support
2016-05-03 11:21:17 +08:00
wing328
d35e30d578
better enum support for JS
2016-05-03 11:21:17 +08:00
wing328
6e8a19bc5b
fix enum for jaxrs and resteasy
2016-05-03 11:20:45 +08:00
wing328
8f2573f8a7
add new files for retrofit2rx
2016-05-03 11:20:45 +08:00
wing328
fc982d1205
add new files for java petstore
2016-05-03 11:20:44 +08:00
wing328
6370165912
fix retrofit 1, 2 java sample
2016-05-03 11:19:59 +08:00
wing328
3913388331
fix java okhttp enum mismatche tab
2016-05-03 11:19:59 +08:00
wing328
70b25a682d
fix java default and feign sample
2016-05-03 11:19:59 +08:00
wing328
0310d95800
fix csharp enum issue after rebase
2016-05-03 11:19:19 +08:00
xhh
4419e71d4b
improve enum support in java okhttp-gson client
2016-05-03 11:16:05 +08:00
xhh
8588c5ce0a
add enum support to java
2016-05-03 11:16:05 +08:00
wing328
be83c0cc3c
add new enum file for csharp and php
2016-05-03 11:16:05 +08:00
wing328
f5bee0c1b7
fix java docstring
2016-05-03 11:16:05 +08:00
wing328
2942ef8b73
add double enum support to C#
2016-05-03 11:16:05 +08:00
wing328
a7ca0ad11f
add enum number support to php
2016-05-03 11:16:05 +08:00
wing328
531b536ffb
add enum number support to C#
2016-05-03 11:15:40 +08:00
wing328
00e15b76ec
clean up post process model in csharp, add default value for enum
2016-05-03 11:14:45 +08:00
wing328
45f3cfd5cf
better enum support for csharp
2016-05-03 11:14:45 +08:00
wing328
217d93401b
better php enum naming
2016-05-03 11:14:45 +08:00
wing328
11deb43829
add enum class support to php
2016-05-03 11:14:45 +08:00
wing328
2c9e9ee425
fix getter for allowableValues for php enum
2016-05-03 11:14:45 +08:00
wing328
800a858acb
add enum support to php, refactor post process model enum
2016-05-03 11:14:44 +08:00
wing328
f2d180f9a8
Merge pull request #2754 from wing328/add_uuid_mapping
...
Add uuid mapping
2016-05-03 11:13:45 +08:00
wing328
766c73497d
Merge pull request #2750 from neilotoole/issue-2748-formatting
...
Issue #2748 - generated code now conforms more closely to conventions
2016-05-03 10:01:53 +08:00
Ben Herila
6c3701a403
ES6-ify typescript promises, update tests, remove bluebird dependency in favor of ES6 promises
2016-05-02 18:49:39 -07:00
Ben Herila
3fba32573c
Ensure generated enum values are valid, resolves #2457
2016-05-02 18:47:03 -07:00
Ben Herila
282f497839
Specify default base path in file, rather than hard-coded in each class
2016-05-02 18:47:03 -07:00
Ben Herila
d694118685
Rewrite Promise.defer in new style, resolves swagger-api/swagger-codegen#2251
2016-05-02 18:47:03 -07:00
Scott Williams
1fef0ef691
Fix import statement
2016-05-02 16:39:25 +01:00
Scott Williams
4a440f4ee4
Fix excpetion message to include
2016-05-02 16:37:32 +01:00
Scott Williams
3dbdc83981
Add validation to model
2016-05-02 16:25:46 +01:00
Neil O'Toole
803c62e0dc
fixed new line issue
2016-05-02 15:53:19 +01:00
wing328
2111e9ef8d
add new sample files
2016-05-02 22:41:50 +08:00
wing328
d64af1b836
fix typescript tmeplate folder
2016-05-02 22:16:07 +08:00
wing328
d6158c4c55
fix uuid for java, php, ruby and csharp
2016-05-02 22:06:33 +08:00
Mikolaj Przybysz
9bf4e12056
issue-2743 generating docs in root/docs(Api/Model)
2016-05-02 11:40:56 +02:00
Mikolaj Przybysz
ce6dd4b2c2
issue-2743 added autoloading of tests into composer while in dev (ref.: https://getcomposer.org/doc/04-schema.md#autoload-dev )
2016-05-02 11:39:56 +02:00
Mikolaj Przybysz
b1c030d698
issue-2743 generating unit tests in root/test directory
2016-05-02 11:37:17 +02:00
Jim Schubert
3ed715b26e
[csharp] Fix ASP.NET Core 1.0 src location
2016-05-01 20:42:10 -04:00
Jim Schubert
aa778edbd8
[csharp] Regenerate sample client
...
In this commit, FormatTest.cs was modified manually. Unrelated to this
commit, a Guid with default parameter of null was not marked nullable.
2016-05-01 20:28:50 -04:00
Jim Schubert
7d8df7ef93
Merge remote-tracking branch 'origin/master' into csharp_default_paths
2016-05-01 20:16:47 -04:00
Jim Schubert
7b578a4c4e
Update C# client structure using common standards
...
Aligns C# project outputs more with community accepted standards and
leverges Nuget for package management.
This also moves the generated C# sample code out of the test project's
Lib folder. The output structure here was causing some issues with
maintainability (e.g. had to update test project with generated code).
(see: https://gist.github.com/davidfowl/ed7564297c61fe9ab814 )
Output for a project, IO.Swagger will now look like:
.
├── IO.Swagger.sln
├── README.md
├── bin
├── build.bat
├── build.sh
├── docs
├── packages
└── src
├── IO.Swagger
│ └── packages.config
└── IO.Swagger.Test
└── packages.config
This is a change from the Java-like src/main/csharp/IO/Swagger/etc
structure and will be a breaking change for some.
2016-05-01 20:03:45 -04:00
Kristof Vrolijkx
d78b5f1773
adding diff for files in integration test
2016-05-01 22:45:06 +02:00
Scott Williams
97e69aabc3
Add support for max/min string length
2016-05-01 16:38:56 +01:00
Scott Williams
cea6bce196
Follow convention in place when accessing attributes
2016-05-01 16:15:29 +01:00
Scott Williams
6e8497fdb7
Add validation to api class
2016-05-01 16:09:02 +01:00
Kristof Vrolijkx
15feb208e7
improving integration test concept.
2016-05-01 17:06:12 +02:00
Neil O'Toole
5fdf615de7
Issue #2478 - generated code now conforms more closely to conventions
2016-05-01 14:41:40 +01:00
Kristof Vrolijkx
f8046bc9c9
small example of a first integration-test of the code-generator
2016-05-01 14:27:41 +02:00
Guo Huang
56d1b896b7
enable testing array after resty fixed their issue
2016-04-30 23:35:04 -07:00
Guo Huang
e6fb2507a4
changed go client to return object pointer
2016-04-30 23:18:59 -07:00
wing328
8f258b9a48
Merge branch 'demonfiddler-master'
2016-05-01 12:09:34 +08:00
wing328
ab7b73ca21
update js samples
2016-05-01 12:09:23 +08:00
wing328
2d5cc50bd1
Merge branch 'master' of https://github.com/demonfiddler/swagger-codegen into demonfiddler-master
...
Conflicts:
samples/client/petstore/javascript-promise/README.md
samples/client/petstore/javascript-promise/docs/PetApi.md
samples/client/petstore/javascript-promise/docs/StoreApi.md
samples/client/petstore/javascript-promise/src/api/PetApi.js
samples/client/petstore/javascript-promise/src/index.js
samples/client/petstore/javascript/README.md
samples/client/petstore/javascript/docs/PetApi.md
samples/client/petstore/javascript/docs/StoreApi.md
samples/client/petstore/javascript/src/api/PetApi.js
samples/client/petstore/javascript/src/index.js
2016-05-01 12:05:49 +08:00
wing328
27c62cbfdb
Merge pull request #2747 from wing328/fix_js_git_user
...
[Javascript] update JS readme to use gitUserId instead
2016-04-30 22:45:10 +08:00
wing328
8d9a09efb1
update JS test case
2016-04-30 21:36:25 +08:00
wing328
7f09a86a1e
update wording related to git
2016-04-30 20:23:35 +08:00
wing328
83567861e0
update JS readme to use gitUserId instead
2016-04-30 20:15:45 +08:00
Guo Huang
09248bcd25
added comments for skip test
2016-04-29 16:17:18 -07:00
Guo Huang
ed219f8a9a
fix typo
2016-04-29 16:10:10 -07:00
Guo Huang
ad28879fce
changed tabs to spaces
2016-04-29 16:02:41 -07:00
Guo Huang
a6e45bf97d
added user api test
2016-04-29 15:59:21 -07:00
wing328
02e898816f
Merge pull request #2740 from wing328/ruby_not_overwrite_test
...
[Ruby] skip overwriting ruby spec files
2016-04-30 00:21:18 +08:00
wing328
cd377ba69c
Merge pull request #2732 from guohuang/package-name2
...
added packageName in the codegen option
2016-04-29 22:33:50 +08:00
wing328
92d39ec0ab
Merge pull request #2738 from Vrolijkx/master
...
Adding generation of packaging information for typescript nodeJs app.
2016-04-29 22:30:54 +08:00
wing328
3bcd937270
Merge pull request #2720 from diyfr/Update-to-Springfox-2.4
...
Update SpringMVC model to Springfox 2.4.0
2016-04-29 17:54:12 +08:00
wing328
b021bd5ed8
Merge pull request #2737 from guohuang/pom-update
...
updated reference to use go-resty
2016-04-29 17:47:23 +08:00
wing328
0612255f95
Merge pull request #2728 from guohuang/import_bug
...
Issue #2725 : added condition to import json based on return type
2016-04-29 17:03:52 +08:00
wing328
f0906bd19a
Merge pull request #2733 from abcsun/php_parameter_validation
...
[PHP] add parameter validation in methord call
2016-04-29 16:56:52 +08:00
Kristof Vrolijkx
de5363c21b
Correcting author
2016-04-29 08:49:48 +02:00
Guo Huang
20bb1aa869
added test.go.bak
2016-04-28 21:43:14 -07:00
Guo Huang
2cb498d9fb
renamed file
2016-04-28 21:42:04 -07:00
Guo Huang
0d0ff13e83
added test.go backup file
2016-04-28 21:39:56 -07:00
wing328
90442db86d
skip overwriting ruby spec files
2016-04-29 11:10:52 +08:00
abcsun
72120099b4
change the validation to allParams
2016-04-29 11:04:27 +08:00
wing328
6b3735e58d
Merge pull request #2727 from scottrw93/test-cases
...
Add test cases for Python Client
2016-04-29 10:18:53 +08:00
Leon Yu
19d22d834c
TypeScript Fetch: implementation
2016-04-28 19:22:22 -04:00
Kristof Vrolijkx
a804738e8d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-28 21:55:21 +02:00
Kristof Vrolijkx
db7a56a16f
fixing sample and typscript compile.
2016-04-28 21:54:48 +02:00
Guo Huang
619e9f17a0
updated reference to use go-resty
2016-04-28 10:09:04 -07:00
diyfr
bb3dbb1d1b
Confuse with maven version package (javax:javax.servlet-api &&
...
javax:servlet-api )
2016-04-28 15:10:39 +02:00
diyfr
4921ee8c4c
Update javax-servlet-api 3.0(missing in repo maven) to 3.0.1
2016-04-28 13:57:18 +02:00
diyfr
1836f4e8c6
Generate springmvc sample petstore
2016-04-28 10:55:48 +02:00
diyfr
91a023569b
Update missing dependencies ApiInfoBuilder
2016-04-28 10:50:25 +02:00
diyfr
31f5675e72
Create windows script for spring-mvc-petstore-j8-async-server sample
2016-04-28 10:37:55 +02:00
diyfr
2d0a5210db
Create Windows Script for Pet Sample with springMVC
2016-04-28 10:17:44 +02:00
wing328
b5e5ea6b6e
Merge pull request #2734 from achew22/javascript_closure_angular_types
...
Improve type checking for closure-angular
2016-04-28 15:42:45 +08:00
Andrew Z Allen
8a330e9dad
Improve type checking for closure-angular
...
Closure angular now has more accurate type checking enabled.
2016-04-28 06:16:43 +00:00
diyfr
0de7b49046
Update jetty-version
2016-04-28 08:12:21 +02:00
Guo Huang
8caa8abfc1
added packageName in the codegen option
2016-04-27 22:47:57 -07:00
wing328
f1ba6f5598
Merge pull request #2479 from ergon/feature/update-mainline-retrofit
...
Update retrofit2 and retrofit2rx to use retrofit 2.0.1
2016-04-28 11:44:55 +08:00
abcsun
fbde7f88ee
add parameter validation in methord call
2016-04-28 10:39:54 +08:00
Scott Williams
1674ec3799
Fix generated test directory name conflicting with sample test directory name
2016-04-27 22:53:22 +01:00
Guo Huang
3540c44e71
renamed variable
2016-04-27 14:33:04 -07:00
Guo Huang
2f8a8c05e0
Issue #2725 : added condition to import json based on return type
2016-04-27 14:29:05 -07:00
Kristof Vrolijkx
fbbcdab439
fixing generation of incorrect package, typings and tsconfig
2016-04-27 23:11:39 +02:00
Scott Williams
066baf3c16
Update comments in generated unit test stubs
2016-04-27 22:02:48 +01:00
Scott Williams
f59c43dffb
Issue #2276 Auto generated test stubs
2016-04-27 20:53:48 +01:00
Arne Jørgensen
5d57bb1e62
[PHP] Regenerate petstore sample
2016-04-27 21:04:06 +02:00
Arne Jørgensen
9f40a82310
[PHP] Fix ArrayAccess interface implmentation in models
...
The models didn't implement a generally working ArrayAccess
interface. This would fail on list container types (array).
This commit refactors some internals of the model object. The model
properties are no longer stored as separate properties on the PHP object
but as entries in a `$container` property.
This is needed to make the model work also for list containers. Besides
it avoids potential problems where the model would specify property
names that could collide with names used by the Swagger model
implementation itself (i.e. `$attributeMap`).
2016-04-27 21:00:58 +02:00
Arne Jørgensen
bbe12c1658
[PHP] Use parentSchema instead parent to detect inheritance
...
`parent` in a model is set not only when the model inherits from another
model but also when a parent container exists.
So We will now use `parentSchema` to check whether a parent class
exists. If si we still use `parent` to output the class name because
that has been converted to a proper model name and `parentSchema`
hasn't.
2016-04-27 21:00:58 +02:00
Arne Jørgensen
7f99469efd
[PHP] Add test case testing ArrayAccess interface
...
Test if we implement the ArrayAccess interface correct on out model objects.
2016-04-27 21:00:58 +02:00
wing328
67b6c3f3d3
Merge pull request #2721 from fabdslv/issue-2116
...
Fix typo introduced while fixing #2116
2016-04-27 21:42:16 +08:00
wing328
46f049bef1
Merge pull request #2719 from wing328/add_uuid_mapping
...
[Python] mapped uuid to str in python
2016-04-27 21:14:00 +08:00
Fabien Da Silva
74fb6175b6
Fix typo introduced while fixing #2116
2016-04-27 13:25:33 +02:00
Jean-Michel Douliez
4b39e0579f
returning non nil potentially void dictionary
2016-04-27 12:16:44 +02:00
wing328
0244c62b47
Merge pull request #2718 from neilotoole/issue-2717
...
issue #2717 - go code won't compile due to not respecting packageName variable
2016-04-27 17:55:59 +08:00
diyfr
adf0833527
Update swaggerConfig.mustache with springfox-code-2.4.0
...
ApiInfo have a Builder in springfox version 2.4.0
see springfox.documentation.builders.ApiInfoBuilder
nota String contact is deprecated use springfox.documentation.service (String name, String url, String email)
2016-04-27 11:41:34 +02:00
diyfr
c503396a42
Update Dependacies
...
Update to Springfox 2.4 and maven war plugin to 2.6
2016-04-27 11:39:30 +02:00
wing328
87c6566bd0
mapped uuid to str in python
2016-04-27 17:37:44 +08:00
wing328
59f9849ca0
Merge pull request #2716 from wing328/better_naming_pattern_function
...
Renmae toJSONSchemaPattern to toRegularExpression
2016-04-27 16:39:34 +08:00
Neil O'Toole
8753faf2a5
issue #2717 - go code won't compile due to not respecting packageName var
2016-04-27 09:19:23 +01:00
wing328
4d3f82e701
renmae toJSONSchemaPattern to toRegularExpression
2016-04-27 16:09:53 +08:00
Silvio Heuberger
39c08b2cfc
Regenrate samples after updating the libraries in pom and build.gradle mustache
2016-04-27 10:03:45 +02:00
Silvio Heuberger
21b39e24af
Update libraries to the newest stable version
2016-04-27 10:01:56 +02:00
wing328
3289933405
Merge pull request #2708 from PagerDuty/ruby-model-boolean-fix
...
Fix ruby model Boolean Attributes not being set
2016-04-27 13:46:21 +08:00
wing328
d9e4d5ccd1
Merge pull request #2637 from fabdslv/issue-2116
...
[Swift] Force required attrs to be defined with unwrapRequired
2016-04-27 13:32:41 +08:00
wing328
3ea3f9f0bf
Merge pull request #2712 from neilotoole/issue-2711-equals-hashcode
...
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 13:17:40 +08:00
wing328
1169abac2e
Merge pull request #2707 from wing328/qt5_date
...
[Qt5][C++] fix date mapping in qt5cpp
2016-04-27 10:33:14 +08:00
Neil O'Toole
dab2b13df1
issue #2711 adding equals, hashcode etc to model classes
2016-04-27 01:32:02 +01:00
Jean-Michel Douliez
09a0222308
accepting non nil potentially void dictionary
2016-04-26 19:31:07 +02:00
Brian Hou
1361bb7c0b
Fix ruby model boolean attributes
2016-04-26 10:21:16 -07:00
wing328
2b71165584
fix date mapping in qt5cpp
2016-04-27 00:06:29 +08:00
wing328
07d2374320
Merge pull request #2699 from mateuszmackowiak/feature/obj/jsonModel_deserialization_errors
...
#1907 JsonModel deserialization errors
2016-04-26 21:20:50 +08:00
Silvio Heuberger
4b3dad7fb0
Fix pom.mustache of retrofit2 client lib
2016-04-26 14:24:47 +02:00
Silvio Heuberger
a3701cd81c
Update retrofit2 and retrofit2rx to use retrofit 2.0.1
2016-04-26 14:24:47 +02:00
Jean-Michel Douliez
8f0bd7301f
Update api.mustache
2016-04-26 14:12:58 +02:00
Fabien Da Silva
bf71b51f9b
[Swift] Enum parameters are now handled
...
Fix #2531
2016-04-26 12:31:08 +02:00
wing328
47242c510d
Merge pull request #2697 from wing328/ruby_parameter_validation
...
[Ruby] Add parameter validation in method call
2016-04-26 14:06:01 +08:00
Kristof Vrolijkx
c91f23c2ca
adding extra nodeClientOptions
2016-04-25 23:00:48 +02:00
Mateusz Mackowiak
18783e3fc7
#1907 JsonModel deserialization errors
2016-04-25 19:04:00 +02:00
Fabien Da Silva
dc4c8e5864
[Swift] Force required attrs to be defined with unwrapRequired
...
Fix #2116
Removal of forced unwrapping, replaced by required attributes in constructor
2016-04-25 18:36:32 +02:00
wing328
875414ff64
add new ruby files
2016-04-26 00:32:01 +08:00
wing328
354449ebfe
add validation to method parameters
2016-04-26 00:06:44 +08:00
wing328
89703d86b7
add hasValidation to codegenParameter
2016-04-25 22:45:45 +08:00
wing328
0792ddc9b4
Merge pull request #2695 from wing328/model-min-max-pattern
...
[Ruby] Add more validation rules to Ruby models
2016-04-25 22:41:19 +08:00
wing328
4854b79a31
add pattern check to ruby model
2016-04-25 22:23:23 +08:00
wing328
0e58265eb5
use instance variable in validation rule
2016-04-25 21:52:37 +08:00
wing328
82ee716f53
Merge pull request #2692 from guohuang/apiclient_update
...
Rewrite Api_Client.go to use resty api
2016-04-25 21:34:39 +08:00
wing328
e17a620506
add methods to validate the ruby object
2016-04-25 19:18:05 +08:00
wing328
3c36f1df37
use ArgumentError in ruby model
2016-04-25 17:45:32 +08:00
wing328
ab986a7228
add more validation test for ruby model
2016-04-25 17:36:32 +08:00
wing328
e143c6cd2f
add validation to ruby model
2016-04-25 17:07:42 +08:00
Kristof Vrolijkx
28f444e808
start adding packaging info to nodejs client.
2016-04-25 08:08:19 +02:00
Guo Huang
7599dcb112
changed Api to API based on golang's convention
2016-04-24 21:10:32 -07:00
Guo Huang
9f0ac5df82
added missing model api response md
2016-04-24 15:52:26 -07:00
Guo Huang
ea445c1e28
added missing file
2016-04-24 15:44:52 -07:00
wing328
d225da082c
Merge pull request #2691 from wing328/add_required_optional_vars
...
Add requiredVars and optionalVars for codegen model
2016-04-24 21:21:34 +08:00
wing328
ef9c9bc267
Merge pull request #2693 from wing328/groovy_codegen
...
[Groovy] add back the Groovy code generator
2016-04-24 19:14:38 +08:00
Kristof Vrolijkx
4ad7ea6556
Updating sample and scripts
2016-04-24 11:21:31 +02:00
wing328
fb883e5f03
add back groovy code generator
2016-04-24 16:33:15 +08:00
Guo Huang
1de18eb074
added implementation of the new ApiResponse struct
2016-04-23 17:50:17 -07:00
Guo Huang
7df5c8ffbf
added model ApiResponse, moved ApiResponse parameter
2016-04-23 16:41:14 -07:00
Guo Huang
e7df5f9551
fixed multiple import mapping issue
2016-04-23 09:52:17 -07:00
wing328
a281afaebf
add requiredVars and optionalVars for codegen model
2016-04-23 22:48:24 +08:00
wing328
5a6fb39aa5
Merge pull request #2689 from wing328/bug/fix_2688
...
[General] Better handle of example value
2016-04-23 18:13:43 +08:00
wing328
f1d75f46cf
fix #2688
2016-04-23 16:49:52 +08:00
wing328
5602cb6db8
Merge pull request #2676 from Vrolijkx/master
...
Typescript angular2 client can be published to npm
2016-04-23 14:58:28 +08:00
wing328
f127bbe891
Merge pull request #2685 from wing328/java_client_update
...
[Java] update maven and gradle version for Java api client
2016-04-23 13:51:49 +08:00
wing328
1ca246c4c8
update java version in pom for java api client
2016-04-23 12:59:36 +08:00
Tony Tam
bae870072c
Merge pull request #2686 from skirkpatrick/update_maven_java_version
...
[Java] Update Java version to 1.7 in generated pom
2016-04-22 13:24:43 -07:00
Scott Kirkpatrick
bf35d57178
Update Java version to 1.7 in generated pom
...
This fixes #2607 and brings the Java version in the generated pom
to match the version in the generated build.gradle.
2016-04-22 11:47:34 -07:00
wing328
8c27f296fb
update maven and gradle version for java api client
2016-04-22 23:13:12 +08:00
wing328
aa6d0cc9e4
Merge pull request #2681 from swagger-api/revert-2679-revert-2435-java-docs
...
[Java] Add auto-generated documentation in Markdown to Java clients
2016-04-22 20:31:07 +08:00
wing328
ebab222c63
add new file for jaxrs resteasy
2016-04-22 19:56:01 +08:00
wing328
7419d8634b
update jaxrs and jaxrs-resteasy petstore sample
2016-04-22 19:34:48 +08:00
wing328
920dbb2183
regenerate petstore sample for springmv
2016-04-22 17:55:02 +08:00
wing328
2f365b0a16
add new model file
2016-04-22 17:38:00 +08:00
wing328
a63dbeb4c8
fix bug related to api, model doc for java server generator
2016-04-22 17:05:22 +08:00
wing328
fb04bb7d4d
Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients""
2016-04-22 10:13:54 +08:00
wing328
8d88cd3709
Merge pull request #2679 from swagger-api/revert-2435-java-docs
...
Revert "[Java] Add auto-generated documentation in Markdown to Java clients"
2016-04-22 00:23:53 +08:00
wing328
c171356d24
Revert "[Java] Add auto-generated documentation in Markdown to Java clients"
2016-04-22 00:21:04 +08:00
wing328
b847838a0c
Merge pull request #2655 from kolyjjj/issue2621
...
include underscore when generating nodejs controller and service method
2016-04-21 23:35:17 +08:00
wing328
bb54f8a39e
Merge pull request #2674 from cjolif/int64
...
Make sure to convert Int32/Int64 to NSNumber. fixes #2669 .
2016-04-21 22:20:15 +08:00
Kristof Vrolijkx
4c1c67cf2b
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-21 15:52:56 +02:00
Kristof Vrolijkx
9195e92023
using all config properties and adding extra space to package.mustache.
2016-04-21 15:52:43 +02:00
Kristof Vrolijkx
e118fddb47
generation of package.json and compilation files
2016-04-21 15:43:53 +02:00
wing328
a1a990804e
Merge pull request #2671 from andriydruk/android_equals_hashcode_fix
...
[Android] fix equals and hashCode
2016-04-21 20:58:31 +08:00
Christophe Jolif
762d4d6c78
Make sure to convert Int32/Int64 to NSNumber. fixes #2669 .
2016-04-21 14:01:16 +02:00
Kristof Vrolijkx
a75b0251c4
Starting addition of full npm package generation
2016-04-21 13:43:51 +02:00
wing328
522fb3a1ed
Merge pull request #2435 from xhh/java-docs
...
[Java] Add auto-generated documentation in Markdown to Java clients
2016-04-21 19:05:40 +08:00
xhh
ace9fc2ccc
Merge branch 'master' into java-docs
2016-04-21 18:35:27 +08:00
xhh
f8489c1fcf
Fix typo, regenerate Java petstore clients
2016-04-21 18:34:00 +08:00
Andriy Druk
7888205657
fix equals and hashcode for Android
2016-04-21 13:28:04 +03:00
wing328
82a0f142e0
Merge pull request #2670 from wing328/csharp_fix_constructor2
...
[C#] fix constructor for readonly property and remove trailing space
2016-04-21 18:25:57 +08:00
xhh
ad258a34cc
Fix test cases for Java petstore clients
2016-04-21 18:14:11 +08:00
wing328
c4b32f24cf
remove trailing space
2016-04-21 17:23:36 +08:00
wing328
6075f078b6
minor fix to constructor
2016-04-21 17:18:44 +08:00
wing328
aea6697abd
Merge pull request #2661 from wing328/python_fix_property
...
[Python] add property as a reserved word
2016-04-21 15:16:40 +08:00
wing328
a54720a586
fix typo
2016-04-21 14:36:17 +08:00
wing328
7eebf17f58
add getting started section
2016-04-21 14:34:48 +08:00
Guo Huang
e555b3ad34
added debug setter and getter in Go configuration
2016-04-20 22:36:32 -07:00
Guo Huang
a2002d9148
added fileName parameter for upload method
2016-04-20 21:30:05 -07:00
Guo Huang
7636a772c6
fixed file upload issue
2016-04-20 13:49:02 -07:00
Guo Huang
10c7c41e82
added config to allow client to see debug log
2016-04-20 12:54:05 -07:00
Guo Huang
287f3ff20b
fixed io/ioutil import issue, fixed param casing issue
2016-04-20 12:27:22 -07:00
wing328
8eb3f8a448
fix python property name
2016-04-20 22:12:09 +08:00
kolyjjj
8b9c8d64d9
add method doc
2016-04-20 22:07:59 +08:00
Kristof Vrolijkx
26c8eb1068
some small import fixes
2016-04-20 16:07:02 +02:00
wing328
56ac576a18
Merge pull request #2658 from wing328/php_lumen
...
[PHP] Add PHP Lumen generator
2016-04-20 21:21:34 +08:00
abcsun
2a67161a3d
move the lumen generator to corresponding folder
2016-04-20 20:57:04 +08:00
abcsun
8866403629
remove the output folder
2016-04-20 20:56:59 +08:00
abcsun
1b71597e84
update the routes.mustache
2016-04-20 20:56:30 +08:00
abcsun
a037af1b72
add route.mustache
2016-04-20 20:56:21 +08:00
abcsun
a92ac4537e
init lumen 5.2
2016-04-20 20:56:13 +08:00
wing328
cd2c624020
Merge pull request #2656 from wing328/ruby_gemspec_improve
...
[Ruby] add default value to gem spec
2016-04-20 20:20:13 +08:00
wing328
37600e1172
add default value to gem spec
2016-04-20 18:49:29 +08:00
kolyjjj
fe704eee1f
include underscore when generating nodejs controller and service method
2016-04-20 18:32:14 +08:00
Kristof Vrolijkx
1825a467d8
Adding an index file and avoiding the use of the model.d.ts files because typescript doesn't compile it correctly.
2016-04-20 11:10:29 +02:00
wing328
2af29fa831
Merge pull request #2651 from wing328/swift_petstore_cleanup
...
[Swift] update Petstore sample for Swift
2016-04-20 16:39:33 +08:00
wing328
1178d31d1f
update petstore sample
2016-04-20 15:57:18 +08:00
wing328
bc5c83af3b
Merge pull request #2511 from oskarcarlstedt/master
...
Fixing broken enumeration swagger/json types for JaxRS-CXF templates.
2016-04-20 14:19:57 +08:00
Guo Huang
edfc4f88e1
formatted api_client code, grouped public function
2016-04-19 21:02:22 -07:00
wing328
bf15b2a43b
Merge pull request #2650 from scottrw93/update-req-versions
...
Update required packages to latest stable version
2016-04-20 11:33:33 +08:00
wing328
e8f7af8985
Merge pull request #2647 from wing328/ruby_version_upgrade
...
[Ruby] update gem spec
2016-04-20 11:21:26 +08:00
wing328
34e075cfe2
Merge pull request #2649 from arnested/php-composer-update
...
[PHP] Update PHP dependencies
2016-04-20 10:47:36 +08:00
Guo Huang
0e3bb2c23e
added more tests functions, clean up generated code
2016-04-19 15:48:34 -07:00
Guo Huang
9cf6eb4d8b
added ApiResponse to all api calls
2016-04-19 15:18:13 -07:00
Scott Williams
79bbab04ec
Update required packages to latest stable version
2016-04-19 21:17:43 +01:00
Guo Huang
611b711a7e
clean up generated code, added delete pet test
2016-04-19 12:52:51 -07:00
Arne Jørgensen
ecfb71a0df
[PHP] Regenerated petstore sample
2016-04-19 21:32:11 +02:00
Arne Jørgensen
357cb70795
[PHP] Update PHP dependencies
...
Updated minimum supported PHP version to 5.4.
Updated development requirements to newest versions supporting PHP 5.4.
2016-04-19 21:30:00 +02:00
Guo Huang
fe1afc35e6
Removed fileParams as the file content will be posted via postBody, fixed file upload issue
2016-04-19 11:46:57 -07:00
wing328
ccc52c2554
update gem spec
2016-04-19 23:41:26 +08:00
wing328
25ccb250cc
Merge pull request #2645 from Vrolijkx/master
...
Typescript angular2 client
2016-04-19 21:16:03 +08:00
xhh
a3f57d6cbd
Escape model name in Java okhttp-gson client
2016-04-19 20:29:49 +08:00
xhh
f10d4c8e23
Merge branch 'master' into java-docs
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
samples/client/petstore/java/default/pom.xml
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Animal.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Cat.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Dog.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Name.java
samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Name.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Cat.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Dog.java
samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Name.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Model200Response.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/ModelReturn.java
samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Name.java
samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Model200Response.java
samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/ModelReturn.java
samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Name.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Model200Response.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/ModelReturn.java
samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Name.java
2016-04-19 20:19:10 +08:00
Kristof Vrolijkx
dcad308f53
#1809 added typescript-angular2-petstore.sh to all all-petstore.sh
2016-04-19 14:16:38 +02:00
Kristof Vrolijkx
a69757ad73
#1809 adding samples with .sh and .bat scripts
2016-04-19 14:13:16 +02:00
Kristof Vrolijkx
d2510b6593
#1809 replacing JSOG with JSON which is provided by the browser.
2016-04-19 13:25:28 +02:00
Kristof Vrolijkx
c3dfa5dbab
#1809 resolve casing conflict part2
2016-04-19 13:00:38 +02:00
Kristof Vrolijkx
e94c433874
#1809 resolve casing conflict part1
2016-04-19 13:00:18 +02:00
Kristof Vrolijkx
034c1fbb21
#1809 resolve casing conflict part1
2016-04-19 12:59:23 +02:00
Kristof Vrolijkx
13cd2af105
Revert: #1809 changing the poms
2016-04-19 11:57:55 +02:00
Kristof Vrolijkx
c54bceffe3
#1809 Some small template changes.
2016-04-19 11:56:29 +02:00
Kristof Vrolijkx
f4fc88c6be
#1809 Adding basic angular2 typescript codegen.
2016-04-19 11:02:36 +02:00
wing328
3332692d30
Merge pull request #2634 from yonaskolb/swift_enum_type
...
Append reserved swift enum type with "Enum"
2016-04-19 16:38:06 +08:00
wing328
75001f4ead
Merge pull request #2635 from wing328/template_folder_exception
...
Add exception handling for template directory that does not exist
2016-04-19 16:28:24 +08:00
wing328
894111e3de
Merge pull request #2633 from yonaskolb/swift_case_sensitive_reserved_types
...
Make swift reserved words case sensitive again
2016-04-19 16:27:49 +08:00
wing328
8b3feda0ba
Merge pull request #2642 from yonaskolb/unescaped_operation_description
...
add unescapedNotes to CodegenOperation
2016-04-19 16:25:10 +08:00
Guo Huang
d0123f40b7
fixed go reflection type checking issue
2016-04-18 23:30:30 -07:00
Guo Huang
b57d27d3fc
added isFile logic to generate file parameters
2016-04-18 23:15:26 -07:00
Guo Huang
2fcda964ad
added ParameterToString method to handle string array issue
2016-04-18 23:06:18 -07:00
wing328
206657d0d9
Merge pull request #2639 from arnested/feature/php-test-fix
...
[PHP] Fix class name in test cases
2016-04-19 10:55:27 +08:00
Yonas Kolb
2ccb7a38f9
add unescapedNotes to CodegenOperation
2016-04-19 11:42:33 +10:00
Guo Huang
af19a70f72
updated api_client.go to ensure there is value before setting the request
2016-04-18 17:09:47 -07:00
Yonas Kolb
491ceb8987
improve line indentation
2016-04-19 10:04:11 +10:00
Guo Huang
36219a00e9
fix go build errors after upgrading to the new api client
2016-04-18 14:38:11 -07:00
Tony Tam
35ef2324e0
Merge pull request #2638 from pqrkchqps/patch-1
...
Update README.md
2016-04-18 13:44:37 -07:00
Arne Jørgensen
dcccfa4b99
Fix class name in test cases
2016-04-18 22:10:35 +02:00
John
2efb439f2e
Update README.md
...
Adding a company to the list of companies using swagger.
2016-04-18 13:53:14 -05:00
wing328
a069ea1435
add http://developer.mypurecloud.com/
2016-04-18 22:15:50 +08:00
wing328
89e150cfb2
remove unused import
2016-04-18 16:55:34 +08:00
wing328
e7388891e1
add exception handling for template dir that does not exist
2016-04-18 16:51:47 +08:00
Guo Huang
8b896a2353
updated api.mustache to call the api client http request
2016-04-17 23:45:23 -07:00
Yonas Kolb
3de7a4ba85
Append reserved swift enum type with "Enum"
2016-04-18 15:24:37 +10:00
Yonas Kolb
074ecf23e1
make reserved word checking case sensitive
2016-04-18 14:27:26 +10:00
Yonas Kolb
c87e6d6f41
Merge branch 'master' into swift_case_sensitive_reserved_types
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SwiftCodegen.java
2016-04-18 14:22:27 +10:00
Yonas Kolb
f1503e2150
make swift reserved words case sensitive again
2016-04-18 13:55:12 +10:00
Guo Huang
87f9ff189a
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into apiclient_update
...
# Conflicts:
# modules/swagger-codegen/src/main/resources/go/api.mustache
2016-04-17 20:41:07 -07:00
Guo Huang
c0292564ee
updated api.mustache to use the new api client
2016-04-17 20:37:19 -07:00
wing328
c375f2fed5
Merge pull request #2629 from yonaskolb/param_unescape
...
Add unescaped Parameter description
2016-04-18 11:18:22 +08:00
wing328
40fd362467
Merge pull request #2632 from wing328/csharp_doc_enhance
...
[C#] update csharp doc with minor enhancements and bug fixes
2016-04-18 10:27:01 +08:00
wing328
cbccee9c39
update csharp doc with minor enhancements and bug fixes
2016-04-18 00:19:16 +08:00
wing328
8c0cff57ba
Merge pull request #2595 from KevinGlinski/csharpdoc
...
[CSharp] Add auto-generated CSharp documentation in Markdown
2016-04-17 22:47:02 +08:00
wing328
5a06fc2119
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-17 17:52:45 +08:00
wing328
256d96684f
Merge branch 'kolyjjj-issue2374'
2016-04-17 17:52:15 +08:00
wing328
00aaf57f55
update springmvc sample
2016-04-17 17:51:22 +08:00
wing328
a0b429d690
Merge branch 'issue2374' of https://github.com/kolyjjj/swagger-codegen into kolyjjj-issue2374
...
Conflicts:
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiException.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiOriginFilter.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/ApiResponseMessage.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/NotFoundException.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/PetApi.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/StoreApi.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/api/UserApi.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerConfig.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/SwaggerUiConfiguration.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebApplication.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/configuration/WebMvcConfiguration.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/ApiResponse.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Category.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Order.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Pet.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/Tag.java
samples/server/petstore/spring-mvc/src/main/java/io/swagger/model/User.java
2016-04-17 17:47:58 +08:00
wing328
3c14fca9ea
Merge pull request #2628 from wing328/go_enhancement
...
[Go] update test cases
2016-04-17 17:22:51 +08:00
Yonas Kolb
9e19114c15
unescape parameter description
2016-04-17 19:11:04 +10:00
wing328
e612870e89
add new files
2016-04-17 17:10:28 +08:00
wing328
70e42cb0db
add new go files
2016-04-17 17:10:10 +08:00
wing328
23a9f069d7
remove go from pom.xml
2016-04-17 16:59:23 +08:00
wing328
993d121e35
update go test, update pom
2016-04-17 16:41:35 +08:00
wing328
8d450a29da
Merge pull request #2608 from guohuang/issue2359
...
issue#2359: added README document generation for Go
2016-04-17 16:14:59 +08:00
wing328
3191eb3234
Merge branch 'guohuang-bug'
2016-04-17 16:09:45 +08:00
wing328
9257c94985
Merge branch 'bug' of https://github.com/guohuang/swagger-codegen into guohuang-bug
2016-04-17 16:09:27 +08:00
wing328
e9f6b706d9
Merge branch 'guohuang-issue2611'
2016-04-17 16:02:19 +08:00
wing328
8af6903757
Merge branch 'issue2611' of https://github.com/guohuang/swagger-codegen into guohuang-issue2611
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java
samples/client/petstore/go/pet_api_test.go
2016-04-17 16:02:12 +08:00
wing328
48a42358f0
Merge pull request #2627 from guohuang/remove_package_name
...
Removed "packageName" folder for easy installation
2016-04-17 15:58:49 +08:00
Guo Huang
3118f932c8
added CallApiAsync method in api_client
2016-04-16 22:58:13 -07:00
Guo Huang
85d30191df
fixed go build issue after removing swagger folder
2016-04-16 22:22:23 -07:00
Guo Huang
81a39990f4
Removed "packageName" folder for easy installation
2016-04-16 17:00:46 -07:00
Guo Huang
d72b501e40
added required parameters validation for Go
2016-04-16 16:43:04 -07:00
Guo Huang
a8273b9f08
changed code to use pacageVersion, removed unneeded comments
2016-04-16 15:47:34 -07:00
Guo Huang
c458834652
updated pom file, temporary disable unit test errors
2016-04-16 15:37:49 -07:00
wing328
49337a2326
Merge pull request #2623 from wing328/update_petstore_json
...
Restore petstore.json from petstore.yaml
2016-04-17 04:03:38 +08:00
wing328
5f6cc62802
fix test case
2016-04-17 03:51:38 +08:00
wing328
a3c6d3af5e
restore petstore.json from petstore.yaml
2016-04-17 03:25:12 +08:00
wing328
bb8db88b95
Merge pull request #2620 from wing328/petstore_json_restore
...
Update shell script to use petstore.yaml instead of petstore.json
2016-04-16 19:17:07 +08:00
wing328
8e85476cbb
add new fles
2016-04-16 18:19:23 +08:00
wing328
e62ba9b35d
update qt5cpp and tizen sample
2016-04-16 18:16:42 +08:00
wing328
1d5a0e5b33
update sample for JS closure angular
2016-04-16 18:11:40 +08:00
wing328
7d0c963469
update sample for html, flash
2016-04-16 17:51:12 +08:00
wing328
1fb3edc612
update akka-scala petstore, minor fix
2016-04-16 17:49:34 +08:00
wing328
8b45d88b93
Merge pull request #2322 from gibiansky/better-haskell-servant
...
Improve Haskell Code Generation
2016-04-16 17:26:52 +08:00
wing328
4b4b62b1a3
Merge pull request #2613 from tomekc/swift-validate-response
...
[swift] Check server response and fail request in case of non-2xx response
2016-04-16 16:36:25 +08:00
Guo Huang
69150883c1
added pom.mustache to generate pom.xml
2016-04-15 14:57:47 -07:00
Guo Huang
7f4aa6f1fc
issue#2611: added pom.xml for building Go
2016-04-15 10:53:23 -07:00
wing328
bb8af3da73
Merge pull request #2614 from wing328/bug/fix_requiredParamCount
...
Bug fix for requiredParamCount
2016-04-16 01:36:14 +08:00
wing328
15971eda2e
update test case for scala
2016-04-16 01:14:52 +08:00
wing328
0b42b533d9
add new files
2016-04-16 00:44:36 +08:00
wing328
79decc53a1
fix requireParameterCount in scala
2016-04-16 00:09:15 +08:00
wing328
c317f99466
fix required parameter in scala api client
2016-04-15 23:08:16 +08:00
wing328
87e542c69c
replace requiredParam with reuqired
2016-04-15 22:54:46 +08:00
Tomek Cejner
1fa5c73dcc
[swift] Validate response; return error in case if non 2xx status.
2016-04-15 16:45:35 +02:00
wing328
35144b2c1d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-15 22:06:09 +08:00
wing328
51d254973a
Merge pull request #2573 from hcwilhelm/replace-requiredParamCount
...
replaced requiredParamCount with allParams
2016-04-15 22:04:45 +08:00
wing328
c284e628fd
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-15 21:44:58 +08:00
wing328
907664fb6e
Merge pull request #2612 from wing328/server_use_petstore_yaml
...
Update server generator to use swagger.yaml instead of swagger.json
2016-04-15 20:49:52 +08:00
wing328
c575b3f498
Merge pull request #2587 from fabdslv/issue-2451
...
[Java + Android] Update dependencies and generate samples
2016-04-15 20:34:06 +08:00
wing328
b58ed4822d
add new file in jaxrs resteasy
2016-04-15 20:29:30 +08:00
wing328
ea6210fe52
revert to git commit -m 4d85314fea
2016-04-15 20:29:01 +08:00
wing328
4b730564e3
new file in jaxrs resteasy
2016-04-15 20:26:15 +08:00
wing328
ce6b70a873
update springmvc bin to use petstore.yaml
2016-04-15 20:07:00 +08:00
wing328
c93fcc2643
update php, nodejs, scalatra server for petstore
2016-04-15 20:05:45 +08:00
wing328
400cc9e6f9
update sample for jaxrs
2016-04-15 18:18:18 +08:00
wing328
d64751958e
update sample for some server generators
2016-04-15 17:55:40 +08:00
wing328
0982afbca0
update server generator to use petstore.yaml
2016-04-15 17:42:18 +08:00
wing328
4d85314fea
Merge pull request #2606 from wing328/spring-mvc-request-header
...
[Java][SpringMVC] To fix header parameter annotation using baseName
2016-04-15 16:40:11 +08:00
wing328
81623777c7
Merge pull request #2609 from guohuang/issue2543
...
issue#2543: added api_client to set content-type and accept for http request
2016-04-15 16:38:47 +08:00
Guo Huang
11f90de808
issue#2543: added api_client to set content-type and accept for http request
2016-04-14 16:11:14 -07:00
Guo Huang
5fad90c3f6
issue#2359: added README document generation for Go
2016-04-14 14:10:15 -07:00
Kevin Glinski
96bf984fcf
fixing module names
2016-04-14 13:23:33 -04:00
wing328
7da2893e0e
to fix #2585
2016-04-15 00:42:59 +08:00
kolyjjj
ed164a77bd
[issue-2374][koly] generated the spring mvc sample
2016-04-14 23:25:43 +08:00
kolyjjj
03c4e5170f
[issue-2374][koly] use petstore.yaml instead of petstore.json, the latter contains data only for test
2016-04-14 23:17:33 +08:00
kolyjjj
c6068dcd9b
[issue-2374][koly] use three brackets to unescape variables
2016-04-14 22:20:00 +08:00
kolyjjj
4b6aec0d6f
merge
2016-04-14 21:51:01 +08:00
kolyjjj
4b7233063c
[issue-2374][koly] add return class in @apiresponse and use java languageSpecificPrimitives in super class
2016-04-14 21:32:52 +08:00
Kevin Glinski
f02ee42594
merge from upstream
2016-04-14 08:35:05 -04:00
Kevin Glinski
2beeabb33a
fixing typeos
2016-04-14 08:22:56 -04:00
Kevin Glinski
a7a39ab08b
adding readme text and nav links
2016-04-14 08:18:55 -04:00
wing328
4f84c7d3bc
Merge pull request #2583 from cjolif/nilasdefault
...
make sure user is not forced to pass nil for optional parameters
2016-04-14 19:23:24 +08:00
wing328
aff2eab055
Merge pull request #2601 from wing328/python_update_spec
...
[Python] update python to use test spec
2016-04-14 18:59:13 +08:00
wing328
5a88b9e896
update python to use test spec
2016-04-14 18:30:54 +08:00
wing328
d260604d34
Merge pull request #2574 from pixelshaded/feature/HandleFalseyParams
...
[Typescript-Node] Verify required parameter is not undefined instead of falsey.
2016-04-14 17:52:38 +08:00
wing328
09af45c20f
Merge pull request #2513 from jaz-ah/issue/2512
...
[Android] fix issue 2512: crash w/ NPE when dereferencing networkStatus which c…
2016-04-14 17:11:18 +08:00
wing328
261fa26b1e
Merge pull request #2597 from wing328/petstore_test_spec
...
[C#][Perl][Ruby][PHP] update Petstore spec
2016-04-14 16:49:22 +08:00
wing328
31120590f5
regenerate csharp sample
2016-04-14 16:30:22 +08:00
wing328
5d4c68b98a
new ruby file
2016-04-14 16:24:06 +08:00
wing328
f4e69597e5
fix typo
2016-04-14 16:24:06 +08:00
wing328
5c632e9862
update csharp test case to use another petstore spec
2016-04-14 16:24:06 +08:00
wing328
aa04bbb92e
update pet store test case for perl after switching spec
2016-04-14 16:19:39 +08:00
wing328
8f70230906
update ruby test case
2016-04-14 16:19:39 +08:00
wing328
d19ed8a89b
fix php test cases with petstore test yaml
2016-04-14 16:19:38 +08:00
wing328
1b10a513ff
Merge pull request #2594 from guohuang/issue2589
...
issue#2589: added fully qualified names memory stream for C#
2016-04-14 15:54:46 +08:00
Joseph Zuromski
7bbe4404d7
fix regression introduced in commit 00c97c8ff6
2016-04-14 00:44:30 -07:00
wing328
a5a75db2cf
Merge pull request #2598 from wing328/go_update_sample
...
[Go] regenerate go sample, rename configuration.go
2016-04-14 15:44:28 +08:00
wing328
c702a6aaa4
regenerate go sample, rename configuration.go
2016-04-14 15:15:19 +08:00
Joseph Zuromski
d9cee4c269
update samples
2016-04-14 00:00:22 -07:00
wing328
c880928519
Merge pull request #2596 from jaz-ah/swift/spacing
...
[Swift] minor spacing cleanup in Models.mustache
2016-04-14 14:55:02 +08:00
Joseph Zuromski
8331aac869
Merge branch 'master' into issue/2512
2016-04-13 23:37:45 -07:00
Joseph Zuromski
86a7637010
[Swift] minor spacing cleanup in Models.mustache
2016-04-13 23:36:16 -07:00
wing328
994a77573d
Merge pull request #2592 from guohuang/issue2582
...
issue#2582: change go api file name to snake case
2016-04-14 14:35:59 +08:00
wing328
cf4e01e4dd
Merge pull request #2591 from neilotoole/issue-2564-export-params-vendor
...
Issue #2564 : Query structs now export their fields
2016-04-14 14:15:08 +08:00
Guo Huang
35fbb3e53a
updated csharp project to use System.IO.Stream instead of Stream to avoid namespace issue
2016-04-13 22:44:00 -07:00
Guo Huang
ad1bb22661
fixed model file name to be snake case
2016-04-13 22:26:03 -07:00
wing328
50eacbe95f
Merge pull request #2593 from guohuang/issue2579
...
isssue#2579: added "UserAgent" in configuration
2016-04-14 12:46:39 +08:00
Guo Huang
a11a4541db
changed code to use packageVersion instead of version
2016-04-13 21:12:02 -07:00
wing328
4e49183fe0
Merge pull request #2590 from guohuang/bug
...
added import tests for Go
2016-04-14 12:01:39 +08:00
Kevin Glinski
67fe023efb
fixing typeo
2016-04-13 21:52:59 -04:00
Kevin Glinski
ffff0ab535
adding csharp documentation
2016-04-13 21:50:35 -04:00
Guo Huang
2dca8b003d
issue#2589: added fully qualified names memory stream for C#
2016-04-13 16:56:36 -07:00
Guo Huang
b02a88f0eb
fixed httpUserAgent not populating value issue
2016-04-13 16:26:10 -07:00
Guo Huang
1f085ccd52
isssue#2579: added "UserAgen" in configuration
2016-04-13 16:08:14 -07:00
Guo Huang
eb7d3dfe15
issue#2582: change go api file name to snake case
2016-04-13 15:40:11 -07:00
Neil O'Toole
2f3897f6d5
Issue #2564 : Query structs now export their fields
2016-04-13 16:05:03 -06:00
Guo Huang
13e56514ee
added import tests for Go
2016-04-13 14:03:19 -07:00
Fabien Da Silva
06f6bcb57d
[Java + Android] Update generated samples
2016-04-13 17:28:11 +02:00
Fabien Da Silva
4f8bbea660
[Android] Update build.gradle and pom.xml in Java libraries
...
Fix #2451
2016-04-13 14:39:20 +02:00
Christophe Jolif
fca0d0f0f7
make sure user is not forced to pass nil for optional parameters
2016-04-13 11:14:48 +02:00
wing328
3aeef74dd0
add link to wiki, faq
2016-04-13 15:57:02 +08:00
wing328
410723d23b
Merge pull request #2577 from guohuang/issue2569
...
issue #2569 : added model tests for Go
2016-04-13 15:43:33 +08:00
wing328
b1077f9684
Merge pull request #2580 from wing328/flask_optional_argument
...
[Python][Flask] add optional argument to flask controller
2016-04-13 15:41:41 +08:00
wing328
668dccfbcf
Merge pull request #2581 from guohuang/bug
...
Removed local variable declaration in Go
2016-04-13 13:58:53 +08:00
Guo Huang
2a2f8b1338
removed local variable declaration in Go
2016-04-12 20:50:58 -07:00
wing328
03b7af092b
add optional argument to flask controller
2016-04-13 11:42:02 +08:00
Guo Huang
579e356e5b
removed unneeded test fields
2016-04-12 20:38:19 -07:00
wing328
63977a2093
Merge pull request #2578 from guohuang/issue2535
...
remove unneeded function line
2016-04-13 11:23:59 +08:00
Guo Huang
6b92362735
remove unneeded function line
2016-04-12 20:20:32 -07:00
wing328
acdccdb4cb
Merge pull request #2567 from guohuang/issue2535
...
issue #2535 , added authentication header for GO
2016-04-13 09:38:26 +08:00
wing328
01ad3c3d3a
Merge pull request #2563 from neilotoole/issue-2561-post-process-params
...
Issue #2561 : set isXYZParam flags before postProcessParameter [updated]
2016-04-13 09:02:58 +08:00
Guo Huang
b4bc0be0cb
fixed all model test errors
2016-04-12 17:05:01 -07:00
Guo Huang
68f4113429
issue #2569 : added model tests for Go
2016-04-12 16:07:09 -07:00
Guo Huang
930756a76a
added missing ")" for api key
2016-04-12 09:21:08 -07:00
Alexander Fisher
da5a15b8e5
Favor explicit check for null or undefined for clarity sake.
2016-04-12 11:28:47 -04:00
Alexander Fisher
0ad7e715c4
Update error message to be clear on exact problem.
2016-04-12 11:18:23 -04:00
Alexander Fisher
60f830ccf2
Use loose equality check on null so that we throw not only on undefined params but also null ones.
2016-04-12 11:13:37 -04:00
Alexander Fisher
f20605d90e
Verify parameter is not undefined instead of falsey.
2016-04-12 08:56:28 -04:00
hcwilhelm
be0efa3b25
replayced requiredParamCount with allParams
2016-04-12 14:39:28 +02:00
wing328
cd91f457bf
Merge pull request #2571 from wing328/objc-docstring
...
[ObjC] update docstring in ObjC API header files
2016-04-12 16:02:39 +08:00
wing328
221e6ad57a
Merge pull request #2570 from wing328/fix_indention
...
Fix indention in the generated code
2016-04-12 16:00:18 +08:00
wing328
feee8de4be
udpate docstring in objc
2016-04-12 15:33:40 +08:00
wing328
b26cd66651
Merge pull request #2560 from wing328/flask_python2
...
[Python][Flask] add support for python2
2016-04-12 15:02:43 +08:00
wing328
16a20f6194
update perl indention
2016-04-12 14:51:18 +08:00
Guo Huang
6154619924
updated code to use query struct
2016-04-11 23:28:06 -07:00
Guo Huang
4e6ff1a567
added api prefix for authentication
2016-04-11 22:25:02 -07:00
wing328
b34c9dd7ee
fix indention in c#
2016-04-12 12:42:09 +08:00
Guo Huang
7fda8699b1
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue2535
...
# Conflicts:
# modules/swagger-codegen/src/main/resources/go/configuration.mustache
# samples/client/petstore/go/swagger/Configuration.go
2016-04-11 20:17:57 -07:00
wing328
fb8c001075
Merge pull request #2562 from guohuang/issue2548
...
issue #2548 , added docstring to Go model and its properties
2016-04-12 10:49:19 +08:00
wing328
26c3cb64e1
Merge pull request #2546 from guohuang/issue1946
...
issue #1946 , added AddDefaultHeader method for GO
2016-04-12 10:44:16 +08:00
wing328
6240183545
update nodejs to nodejs-server
2016-04-12 10:41:59 +08:00
Guo Huang
fc80bce82f
issue #2535 , added authentication header for GO
2016-04-11 15:49:13 -07:00
Neil O'Toole
30a1330c08
Issue #2561 : set isXYZParam flags before postProcessParameters
2016-04-11 12:24:52 -06:00
Guo Huang
9c455880b2
issue #2548 , added docstring to Go model and its properties
2016-04-11 11:14:33 -07:00
Guo Huang
ae3c628875
issue#2534, added _sling.Set in the go api
2016-04-11 10:37:50 -07:00
Guo Huang
963df24eee
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1946
2016-04-11 10:19:49 -07:00
wing328
38903aa7f3
add support for python2
2016-04-12 00:43:13 +08:00
wing328
3e13f69b53
Merge pull request #2558 from wing328/master
...
[Go] update type mapping, fix indention in go model
2016-04-12 00:01:54 +08:00
wing328
d8963d0a85
udpate type mapping for go, fix indention in go model
2016-04-11 23:44:06 +08:00
wing328
c8f4edff68
Merge pull request #2554 from wing328/add_format_test
...
Add tests for different type and format for model's properties
2016-04-11 23:05:59 +08:00
wing328
0e1f1606cd
update js code gen to handle different type, format
2016-04-11 22:20:30 +08:00
wing328
68cb030609
add new files for format test model
2016-04-11 22:11:53 +08:00
wing328
87af119d9a
Merge pull request #2556 from hcwilhelm/model-option-scalatra
...
Model option scalatra
2016-04-11 21:26:10 +08:00
wing328
6c98a46bf1
Merge pull request #2555 from wing328/bug/doc_remove_isnotrequired
...
[Doc] minor fix to html doc
2016-04-11 21:11:52 +08:00
hcwilhelm
b2ee8d02a4
fix for optional field in scalatra client
2016-04-11 15:07:25 +02:00
hcwilhelm
659b216413
fix for optional field in scalatra client
2016-04-11 15:03:04 +02:00
wing328
1dc895e123
minor fix to html doc
2016-04-11 20:43:06 +08:00
wing328
f71334fe4a
Merge pull request #2551 from hcwilhelm/asyncscala-handle-option
...
Fix handling optional fields in asyncscala client model
2016-04-11 20:40:02 +08:00
wing328
1c14fc7291
fix perl indention
2016-04-11 20:34:06 +08:00
wing328
1093698315
Merge pull request #2547 from jerry1621/csharp_sync_uwp
...
fix sync call for uwp
2016-04-11 19:48:21 +08:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
hcwilhelm
9df6d19ddd
Fix handling optional fields in asyncscala client model
2016-04-11 13:05:01 +02:00
wing328
6c7efd502b
map bytearray to string in ts
2016-04-11 16:42:20 +08:00
Jerome Dreyer
e2941582fa
fixed tab-spacing
2016-04-11 09:49:03 +02:00
wing328
b66540e12c
Merge pull request #2537 from arnested/php-initialize-discriminator
...
[PHP] Set discriminator property in constructor
2016-04-11 14:28:06 +08:00
Jerome Dreyer
a8bbb37866
fix sync call for uwp
2016-04-11 08:24:18 +02:00
wing328
f5dd7ae031
Merge pull request #2518 from pixelshaded/feature/issue2274
...
Typescript Node: Support Multiple Api Key Auth Methods
2016-04-11 12:04:47 +08:00
Guo Huang
00fcf9946a
issue #1946 , added AddDefaultHeader method for GO
2016-04-10 20:50:53 -07:00
wing328
f304c3da8b
Merge pull request #2544 from guohuang/issue1948
...
issue #1948 , added missing apiresponse.go, renamed petapi_test.go, fixed compilation error
2016-04-11 10:51:01 +08:00
wing328
38bc120b12
Merge pull request #2427 from wing328/csharp_support_uwp
...
[C#] add UWP support to C# API client
2016-04-11 10:43:59 +08:00
Yonas Kolb
01c38f4a22
Merge pull request #2 from swagger-api/master
...
Merge from swagger-api
2016-04-11 11:49:57 +10:00
Guo Huang
21d7c8d260
added missing apiresponse.go, renamed petapi_test.go, fixed compilation error
2016-04-10 15:04:29 -07:00
wing328
4942ebdc73
Merge pull request #2532 from guohuang/issue1948
...
issue #1948 , added testing code to test go api
2016-04-11 01:05:20 +08:00
wing328
8e6bbf5625
update sample
2016-04-11 01:02:01 +08:00
wing328
e952e4435e
fix system.web import
2016-04-11 00:59:48 +08:00
wing328
a6a88decfd
add a switch for excluding system.web for ump support
2016-04-11 00:59:48 +08:00
wing328
91a2cc4b5d
fix wording "beta support"
2016-04-11 00:59:48 +08:00
wing328
559e11e6d2
add uwp support
2016-04-11 00:59:47 +08:00
wing328
f66046c932
Merge pull request #2541 from wing328/csharp_remove_trailing_whitespace
...
[C#] remove trailing spaces from C# API client
2016-04-10 23:47:05 +08:00
wing328
f52f6c64a2
Merge pull request #2542 from wing328/restore_petstore_yaml
...
[Petstore] restore petstore.yaml from http://petstore.swagger.io/v2/swagger.json
2016-04-10 23:46:55 +08:00
wing328
5bc4570b57
Merge pull request #2540 from wing328/bug/fix_issue2523
...
[ObjC] fix spec with no model for ObjC API client
2016-04-10 23:23:25 +08:00
wing328
6f7e3c71f2
update go sample
2016-04-10 23:16:32 +08:00
wing328
9bd7a708ae
fix typo in the spec
2016-04-10 23:14:02 +08:00
wing328
070d87a97c
restore petstore.yaml
2016-04-10 23:11:42 +08:00
wing328
1cd3255be6
remove trailing space for csharp api client
2016-04-10 22:04:52 +08:00
wing328
8657720c09
fix spec with no model for objc client
2016-04-10 19:34:09 +08:00
Guo Huang
b16439e17b
formatted code
2016-04-09 21:43:46 -07:00
Guo Huang
33491a7a8f
added testify assert
2016-04-09 21:40:47 -07:00
Guo Huang
aa9e19f3d9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1948
2016-04-09 16:03:57 -07:00
Arne Jørgensen
747f6ba0bb
Regenerate PHP petstore sample
2016-04-09 21:05:45 +02:00
Arne Jørgensen
65d677c385
Set discriminator property in constructor
...
When using inheritance let the constructor set the discriminator
property to the model name.
This avoids redundant and error prone stuff like:
```
$animal = new \Swagger\Client\Model\Dog();
$animal->setClassName('Dog');
```
2016-04-09 21:05:18 +02:00
wing328
c159239d1b
Merge pull request #2529 from cobain/bugfix/issue2061_fix_DeprecationWarning_in_unit_tests
...
issue2061_fix_DeprecationWarning_in_unit_tests
2016-04-09 22:08:31 +08:00
wing328
5ea66f6762
Merge pull request #2484 from wing328/csharp_fix_constructor
...
[C#] fix extra comma in the constructor when last property is read-only
2016-04-09 21:14:30 +08:00
wing328
7cad373e2e
Merge pull request #2528 from guohuang/issue1949
...
issue #1949 added Configuration struct for GO in codegen
2016-04-09 21:13:26 +08:00
wing328
251e4bb19d
better code quality
2016-04-09 19:03:31 +08:00
wing328
be13632bb4
fix csharp extra comma in constructor
2016-04-09 19:03:31 +08:00
wing328
f7affc6344
add new object to test different format
2016-04-09 19:02:31 +08:00
wing328
693f04db99
Merge pull request #2482 from wing328/objc_doc
...
[ObjC] Add auto-generated documentation (markdown) to ObjC API client
2016-04-09 19:01:15 +08:00
wing328
5522edac0c
Merge pull request #2466 from wing328/nodejs_method_name
...
[NodeJS] fix operationId issue with Nodejs
2016-04-09 18:53:55 +08:00
wing328
15c2be2052
Merge pull request #2519 from fabdslv/issue-2509
...
Provide dependency javax.annotation for android with Retrofit 2
2016-04-09 18:42:40 +08:00
wing328
b08fb4e2f2
Merge pull request #2472 from wing328/python_auto_doc
...
[Python] automatically generate documentation (markdown) for Python API client
2016-04-09 18:41:14 +08:00
wing328
e7b85f0ce7
Merge pull request #2436 from ircecho/master
...
[Dart]: generator used underscored filenames but used non-underscored class names to import the files
2016-04-09 18:37:16 +08:00
wing328
8bded815bc
Merge pull request #2478 from ircecho/dev3
...
[Dart]: now uses double instead of num to represent double
2016-04-09 18:30:03 +08:00
wing328
50bbd9818c
Merge pull request #2465 from wing328/php_improvement
...
[PHP] minor php code improvement
2016-04-09 18:18:18 +08:00
wing328
0be18399b6
fix tos in swagger spec
2016-04-09 18:15:22 +08:00
wing328
35edb00e9b
update nodejs server sample
2016-04-09 18:12:46 +08:00
wing328
e045ed63e0
Merge pull request #2464 from wing328/ruby_improvement
...
[Ruby] minor ruby code improvement
2016-04-09 18:11:46 +08:00
wing328
64b01f7800
update nodejs server sample
2016-04-09 18:10:46 +08:00
wing328
290957f6c8
update php sample
2016-04-09 18:05:40 +08:00
wing328
02ac7d93c5
minor php code improvement
2016-04-09 17:59:28 +08:00
wing328
e3c73f5819
update ruby sample
2016-04-09 17:55:52 +08:00
wing328
dd8b581827
add new ruby files
2016-04-09 17:50:01 +08:00
wing328
074ae7e95d
update ruby sample
2016-04-09 17:47:45 +08:00
wing328
45e903b41b
minor ruby code improvement
2016-04-09 17:47:21 +08:00
wing328
9d5d047e46
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-04-09 17:46:04 +08:00
wing328
e5279203a1
Merge pull request #2434 from arnested/php-map-number-without-format
...
[PHP] Map number without format to float
2016-04-09 17:01:41 +08:00
wing328
e8c3b5e78c
Merge pull request #2418 from scottrw93/i2410
...
Issue 2410: Suport HTTP body for DELETE operation
2016-04-09 16:58:01 +08:00
wing328
444076b212
Merge pull request #2533 from ePaul/bugfix/fix-link-to-release
...
fix link in README.md.
2016-04-09 16:48:18 +08:00
wing328
27afadbc6d
Merge pull request #2417 from cjolif/int64
...
Generates Int32/Int64 for Swift when those are the required formats. …
2016-04-09 16:38:10 +08:00
wing328
3f51751670
Merge branch 'int64' of https://github.com/cjolif/swagger-codegen
2016-04-09 16:37:37 +08:00
wing328
36cad7c065
Merge pull request #2360 from stremlenye/master
...
Update JMustache dependency to support whitespace and line breaks trimming
2016-04-09 16:35:16 +08:00
Paŭlo Ebermann
48630b4c47
fix link in README.md.
...
This was missed in #2515 .
2016-04-09 10:35:10 +02:00
Guo Huang
1f39a4d3a9
issue #1948 , added testing code to test go api
2016-04-08 14:04:49 -07:00
wing328
10de0b5c5b
update python sample after rebase
2016-04-08 23:54:47 +08:00
wing328
f44e5faf1b
add http info support for python
2016-04-08 22:00:27 +08:00
zhenghaitao
bf15c88811
issue2061_fix_DeprecationWarning_in_unit_tests
2016-04-08 15:18:42 +08:00
Guo Huang
9cae125b2c
updated sample files
2016-04-07 22:27:33 -07:00
Guo Huang
20a81ca66a
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into issue1949
2016-04-07 22:22:22 -07:00
Guo Huang
316c2cb136
added Configuration struct for GO
2016-04-07 22:16:31 -07:00
wing328
75ed978cec
Merge pull request #2526 from wing328/go_sample
...
[Go] update go sample
2016-04-08 12:35:37 +08:00
wing328
f635e22be6
update go sample
2016-04-08 12:22:15 +08:00
wing328
d84f848831
Merge pull request #2521 from gabrielvv/master
...
Fix typo in wget arg
2016-04-08 00:25:15 +08:00
gabrielvv
5f01613572
Update README.md
2016-04-07 18:17:47 +02:00
Fabien Da Silva
efd68445db
Provide dependency to javax.annotation.Generated for android with Retrofit 2
...
Fix #2509
2016-04-07 17:38:10 +02:00
wing328
c0f5bcabb5
add python doc
2016-04-07 23:18:15 +08:00
wing328
a9a229f113
add new objc doc file
2016-04-07 23:17:32 +08:00
Alexander Fisher
dd6b720e4d
Encapsulate authentications.
2016-04-07 10:37:05 -04:00
Alexander Fisher
b5dabee20a
Generate enum from api key auth methods. Use this to set api key of authentication. Update test client to set multiple keys.
2016-04-07 10:19:16 -04:00
wing328
155458012e
suggestion on new git branch
2016-04-07 14:48:06 +08:00
wing328
f3572063e5
add go, perl style guide
2016-04-07 14:43:32 +08:00
Joseph Zuromski
b9bbbc6cad
make sure to only escape an enum if the actual final variable name is going to match the enum name - now that we camelCase variable names this cuts down on the amount of enum escaping we have.
2016-04-06 15:20:38 -07:00
Tony Tam
44ee91bf02
Merge pull request #2515 from swagger-api/release-prepare
...
release prepare
2016-04-06 14:31:44 -07:00
Tony Tam
1fe2d3a165
release prepare
2016-04-06 14:07:52 -07:00
Tony Tam
90364b3d9c
Merge pull request #2504 from hcwilhelm/asyncscala-fix-dependency
...
fixed swagger-async-httpclient lib dependency
2016-04-06 14:05:19 -07:00
Joseph Zuromski
fb705cb9fa
fix issue 2512: crash w/ NPE when dereferencing networkStatus which could be nil on a volley timeout error
2016-04-06 13:24:59 -07:00
oskar
d45d36d8a2
Fixing broken enumeration swagger/json types for JaxRS-CXF templates.
2016-04-06 21:51:17 +02:00
Tony Tam
ed25943fae
added jersey2 to services
2016-04-06 12:49:10 -07:00
hcwilhelm
fdd6805233
fixed swagger-async-httpclient lib dependency
2016-04-06 15:26:51 +02:00
Wolfgang Berger
0259c45b7a
Merge branch 'master' into feature/objc-sessionmanager-merge
...
* master: (682 commits)
fix, tests for #2500
added sample files
rebuilt sample
changed to use tag sanitization method
Update doc to support resteasy
add petstore yaml
fix typo, update sinatra to use origianl petstore spec (yaml)
made timestamp generation enabled by default
rebuilt with generation timestamp disabled
rebuilt
added bootstrap sample
added script
made generation timestamp optional
added bootstrap, renamed sample
added bootstrap
updated templates
add new model in csharp
minor fix to docstring in csharp
add new files for perl, php, ruby
add new files for JS
...
2016-04-06 11:14:24 +02:00
Andrew Gibiansky
6d386aaa90
Fix a bunch of minor bugs in the Haskell generator
2016-04-05 17:47:23 -07:00
Tony Tam
c624311cab
Merge pull request #2501 from swagger-api/issue-2500
...
fix, tests for #2500
2016-04-05 15:25:39 -07:00
Tony Tam
3ea911dd74
fix, tests for #2500
2016-04-05 14:48:37 -07:00
Andrew Gibiansky
b8d723b7ae
Add run*Client functions to provide a way to run requests without Servant types
2016-04-05 12:54:04 -07:00
Andrew Gibiansky
18de12516d
Update for newest Servant types
2016-04-05 12:02:28 -07:00
Andrew Gibiansky
80015a8a86
Allow passing just objects in APIs using Aesons Value type
2016-04-05 12:02:08 -07:00
Andrew Gibiansky
c49b22bcdd
Remove dots and dashes from model names
2016-04-05 12:01:49 -07:00
Andrew Gibiansky
569d458bc9
Allow null title, as in Kubernetes Swagger Spec
2016-04-05 12:01:22 -07:00
wing328
c936f4b436
add oauth support to objc
2016-04-05 23:31:22 +08:00
Tony Tam
a1c978751a
Merge pull request #2497 from swagger-api/issue-2496
...
sanitize tags, update generation timestamp
2016-04-05 07:40:11 -07:00
Tony Tam
fd8ed46c9b
added sample files
2016-04-05 07:15:26 -07:00
Tony Tam
be5eae6583
rebuilt sample
2016-04-05 07:08:46 -07:00
Tony Tam
03adae8e36
changed to use tag sanitization method
2016-04-05 07:08:32 -07:00
wing328
02c713c90d
Merge pull request #2494 from chameleon82/fix_resteasy_doc
...
Update doc to support resteasy
2016-04-05 10:37:44 +08:00
Andrew Gibiansky
512e51777d
Update Haskell codegen to latest Stack LTS
2016-04-04 18:52:07 -07:00
Andrew Gibiansky
f28bbf251c
Fix handling of special characters in Haskell codegen
2016-04-04 18:51:56 -07:00
Andrew Gibiansky
a694dfb8fb
Create new Haskell codegen implementation.
2016-04-04 18:34:04 -07:00
Alex
b0592449eb
Update doc to support resteasy
2016-04-04 22:49:03 +06:00
wing328
af75243a31
Merge pull request #2490 from wing328/fix_spec_typo
...
[Sinatra] fix typo, update sinatra to use origianl petstore spec (yaml)
2016-04-04 16:29:13 +08:00
wing328
122df5195a
add petstore yaml
2016-04-04 16:17:45 +08:00
wing328
c2cab84612
fix typo, update sinatra to use origianl petstore spec (yaml)
2016-04-04 16:17:23 +08:00
wing328
aa805a4003
Merge pull request #2488 from swagger-api/feature/jersey2
...
Add jersey2 server support
2016-04-04 16:16:23 +08:00
Tony Tam
ee08d16ae5
made timestamp generation enabled by default
2016-04-03 14:36:23 -06:00
Tony Tam
034ed5d149
rebuilt with generation timestamp disabled
2016-04-03 14:36:00 -06:00
Tony Tam
3e279fc6e4
rebuilt
2016-04-03 14:33:06 -06:00
Tony Tam
3b9c28f561
added bootstrap sample
2016-04-03 14:31:19 -06:00
Tony Tam
cc4b3ff5d3
added script
2016-04-03 13:32:16 -06:00
Tony Tam
aab280d564
made generation timestamp optional
2016-04-03 13:31:39 -06:00
Tony Tam
4bb12871c3
added bootstrap, renamed sample
2016-04-02 18:34:58 -06:00
Tony Tam
63d2784bbf
added bootstrap
2016-04-02 08:25:12 -06:00
demonfiddler
7dfddd449d
Fix for Issue #2146 "NPE in JavascriptClientCodegen if definition name does not start with an upper case character"
2016-04-01 19:58:01 +01:00
wing328
93657d5ec5
more fix to objc sample code
2016-04-01 19:42:01 +08:00
wing328
f6bc1f5262
tested and fixed sample code for objc
2016-04-01 19:12:14 +08:00
wing328
a4e3b3b6e1
fix sample code
2016-04-01 15:10:42 +08:00
Tony Tam
4acedffffb
updated templates
2016-03-31 18:19:49 -06:00
Anton WIMMER
be23d44f12
dart now uses double instead of num to represent double
2016-03-31 16:33:41 +02:00
Anton WIMMER
d2f70cf107
Merge remote-tracking branch 'upstream/master'
2016-03-31 16:03:36 +02:00
wing328
ef1ca9f6df
update objc codegen to generate api doc
2016-03-31 22:02:01 +08:00
demonfiddler
023a941a15
Fix for Issue #2471 "JavaScript client code generator emits invalid code for map and array types"
2016-03-31 14:39:03 +01:00
demonfiddler
77638bc21d
Merge https://github.com/swagger-api/swagger-codegen
2016-03-31 14:38:15 +01:00
wing328
c39bf41d10
Merge pull request #2477 from wing328/csharp_fix_docstring
...
[C#] minor fix to docstring in csharp
2016-03-31 17:06:59 +08:00
wing328
13712ee5bc
add new model in csharp
2016-03-31 16:53:12 +08:00
wing328
f521d6e166
minor fix to docstring in csharp
2016-03-31 16:52:00 +08:00
Tony Tam
94f86613a3
Merge pull request #2470 from swagger-api/update-swagger-core
...
updated versions
2016-03-30 07:53:31 -07:00
wing328
4a45b3fc02
Merge pull request #2473 from wing328/doc_fix_typo
...
Fix typo in README.md
2016-03-30 22:53:23 +08:00
wing328
eef07f4d84
add new files for perl, php, ruby
2016-03-30 22:38:53 +08:00
wing328
f23031fc96
add new files for JS
2016-03-30 21:54:38 +08:00
wing328
2104ef3192
doc for new models
2016-03-30 21:09:34 +08:00
wing328
20f1e97df3
fix typo in readme
2016-03-30 20:58:18 +08:00
wing328
56d1a11df5
minor fix to python readme
2016-03-30 18:14:31 +08:00
wing328
ba74c69fdb
update doc for python, add new files
2016-03-30 17:50:38 +08:00
wing328
142a3bab72
generate doc for python api and doc
2016-03-30 15:14:58 +08:00
Tony Tam
d64e8b23a1
updated versions
2016-03-29 23:50:01 -07:00
Tony Tam
d16ae16551
updated versions
2016-03-29 23:46:36 -07:00
xhh
7a0eef61d0
Add enum to Java docs
...
* Parameter enum values
* Inner enum class (model property)
* Outer enum class (enum model/definition)
2016-03-29 18:17:51 +08:00
xhh
a6fd93db41
Merge branch 'master' into java-docs
2016-03-29 15:05:11 +08:00
Tony Tam
f0c3870386
fixed output path
2016-03-29 00:01:31 -07:00
wing328
981d2f1475
Merge pull request #2453 from wing328/bug/fix_2451
...
[Android] update build.gradle for android (default, volley)
2016-03-28 23:53:02 +08:00
wing328
16fe8e84dd
Merge pull request #2433 from arnested/parent-constructor-and-initialize-discriminator-property
...
[PHP] Parent constructor
2016-03-28 18:08:25 +08:00
Arne Jørgensen
da518d55d2
Regenerate PHP petstore sample
2016-03-28 11:30:27 +02:00
Arne Jørgensen
0196cdd558
[PHP] Use parent constructor when inheriting
2016-03-28 11:30:27 +02:00
wing328
5d5a6e049c
update maven version
2016-03-26 10:59:08 +08:00
demonfiddler
14ceb4bf84
Fix, tests for Issue#2240 "Support invokerPackage configuration option"
2016-03-25 16:36:06 +00:00
wing328
00c97c8ff6
update build.gradle for android (default, volley)
2016-03-25 17:35:21 +08:00
Tony Tam
cd0633a04f
Updated to release version of swagger-parser
2016-03-24 13:27:47 -07:00
wing328
f80d6c9939
Merge pull request #2447 from wing328/js_update_sample
...
[Javascript] update Petstore sample
2016-03-24 20:08:44 +08:00
wing328
eb5c689fac
update js sample
2016-03-24 19:54:25 +08:00
wing328
ec38afde0a
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-24 19:49:07 +08:00
xhh
64d1c40b23
Java docs: improve install instructions
2016-03-23 23:49:01 +08:00
wing328
eb69db5720
add kuary
2016-03-23 21:47:38 +08:00
Anton WIMMER
24bfe25277
dart generator now correct file names for import
2016-03-23 14:10:39 +01:00
xhh
407e96f1be
Minor fix on class name in Java markdown docs
2016-03-23 20:57:37 +08:00
xhh
133d9475e5
Merge branch 'master' into java-docs
2016-03-23 20:34:30 +08:00
xhh
df7c255cd4
Java client: generate markdown docs for jersey2 and okhttp-gson clients
2016-03-23 20:32:33 +08:00
Arne Jørgensen
194e80ddab
[PHP] Map number without format to float
...
Previously if you specified a property to be of type `number` and didn't
explicitly specify a format Codegen would map it into an (unknown) PHP
class `Number`.
We add a mapping from Swaggers `number` to PHPs `float`.
2016-03-23 13:24:12 +01:00
xhh
cb394152f9
Java client (default): add more docs to README
2016-03-23 20:05:40 +08:00
Christophe Jolif
fb56e11470
Make sure body params of type Int32/Int64 are correctly encoded for that create JSONEncodable extensions for Int32/Int64. Re-use extensions in Model.encodeToJSON to simplify code.
2016-03-22 22:23:47 +01:00
Tony Tam
327315e9ea
Merge pull request #1966 from wing328/rename_nodejs_with_server
...
[NodeJS] rename nodejs to nodejs-server
2016-03-22 12:21:37 -07:00
wing328
abee93b2c5
fix links without http://
2016-03-22 22:20:26 +08:00
wing328
84af7cf3de
add beemo, FH Münster
2016-03-22 22:09:50 +08:00
wing328
7ba8a5955d
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-22 19:58:53 +08:00
wing328
52f9a747e9
Merge pull request #2426 from Stuart-campbell/master
...
Updates to objc api to address issue #2422
2016-03-22 19:57:27 +08:00
Stuart Campbell
87495a747f
Changed tense of override to overridden.
2016-03-22 11:33:33 +00:00
Stuart Campbell
553ebd659a
Updates to iOS ApiClient - added getting for for offline state and settings for reachability status. This addresses "Default iOS reachability status #2422 "
2016-03-22 10:56:56 +00:00
xhh
1510684093
Add Markdown docs to Java (default) client
2016-03-22 17:38:56 +08:00
wing328
d776c66d28
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-22 17:22:55 +08:00
wing328
0941db6fbd
lower case eureka
2016-03-22 16:13:37 +08:00
wing328
46b2ec27a9
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-22 16:11:39 +08:00
wing328
4026ba3e44
add - [Eureka]( http://eure.jp/ )
2016-03-22 15:57:23 +08:00
wing328
a44918f53a
Merge pull request #2421 from kkrauth/patch-1
...
Missing multipart (form data) imports.
2016-03-21 22:07:48 +08:00
Scott Williams
a9409834df
Re-generate python client
2016-03-19 20:37:56 +00:00
Kosta Krauth
a07eb3bb14
Missing multipart (form data) imports.
...
Swagger files that declare "in: formData" parameters will result in API class that cannot be compiled due to the usage of "@Multipart" annotations in method signatures.
2016-03-19 14:12:24 -04:00
Scott Williams
4e5ba15fa0
Issue 2410: Suport HTTP body for DELETE operation
2016-03-19 16:51:02 +00:00
Christophe Jolif
677890fc08
Generates Int32/Int64 for Swift when those are the required formats. Fixes #2133 .
2016-03-19 13:03:33 +01:00
wing328
78e34bd7c7
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
...
Conflicts:
modules/swagger-codegen/src/main/resources/perl/README.mustache
samples/client/petstore/perl/README.md
samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm
2016-03-19 18:20:35 +08:00
wing328
6ecf083b0f
Merge pull request #2416 from wing328/perl_update_doc
...
[Perl] update perl documentation and code samples
2016-03-19 18:14:33 +08:00
wing328
b1cde11382
update readme with better app description
2016-03-19 17:46:28 +08:00
wing328
91f963b92d
Merge pull request #2414 from xhh/java-default-value
...
Include parameter's default value in comment for operations
2016-03-19 17:44:21 +08:00
wing328
652099ab71
update perl readme
2016-03-19 17:02:51 +08:00
wing328
b89531a722
Merge pull request #2415 from wing328/php_update_sample
...
[PHP] update sample code, update test case
2016-03-19 16:39:14 +08:00
wing328
6e16883146
update perl documentation
2016-03-19 16:38:06 +08:00
wing328
97e821af6b
update php readme
2016-03-19 16:15:41 +08:00
xhh
794aae3fcf
Include parameter's default value in comment for operations
...
for Java feign, retrofit and retrofit2 clients
2016-03-19 16:12:34 +08:00
wing328
95cd8b73a6
update sample code, update test case
2016-03-19 16:03:36 +08:00
wing328
56122b4a01
Merge pull request #2408 from wing328/enhancement/getting-started
...
[JS][Ruby] Auto generate the "Getting Started" section in the README
2016-03-19 11:27:42 +08:00
wing328
d78113be95
fix summary tab in ruby api
2016-03-19 11:16:02 +08:00
wing328
04e56a165e
update js doc
2016-03-19 11:11:18 +08:00
wing328
9e45a99e60
udpate ruby api doc
2016-03-19 11:09:49 +08:00
wing328
79c967dee1
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-19 11:09:33 +08:00
wing328
ac102a38f9
Merge pull request #2405 from wing328/bug/swift_propert_name
...
[Swift] use baseName for swift model property
2016-03-19 10:54:51 +08:00
wing328
b65d444498
Merge pull request #2411 from demonfiddler/master
...
[JavaScript] Recommission integration tests for Issue#2258.
2016-03-19 10:31:44 +08:00
demonfiddler
3082702429
[JavaScript] Recommission integration tests for Issue#2258.
2016-03-18 18:49:17 +00:00
wing328
adfc68d707
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-18 18:33:05 +08:00
wing328
c3507e43a3
Merge branch 'xhh-default-value-comment'
2016-03-18 16:26:18 +08:00
wing328
8ebe20dfd5
Merge branch 'default-value-comment' of https://github.com/xhh/swagger-codegen into xhh-default-value-comment
...
Conflicts:
modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-03-18 16:26:06 +08:00
wing328
992dc32e6b
Merge branch 'xhh-default-value-comment'
2016-03-18 16:21:12 +08:00
wing328
91489f711f
Merge branch 'default-value-comment' of https://github.com/xhh/swagger-codegen into xhh-default-value-comment
...
Conflicts:
modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-03-18 16:20:55 +08:00
wing328
d839875d90
Merge pull request #2396 from demonfiddler/master
...
[JavaScript] Generator options and template improvements
2016-03-18 16:11:35 +08:00
wing328
b8c5fa3c10
Merge pull request #1440 from arnested/php-polymorphism-model
...
Add polymorphism in the PHP client
2016-03-18 15:45:48 +08:00
wing328
9525d67cd8
use basename for swift model property
2016-03-18 12:02:26 +08:00
Arne Jørgensen
aa61204ede
Regenerate PHP petstore sample
2016-03-18 00:52:12 +01:00
Arne Jørgensen
07630c18eb
Add polymorphism in the PHP client API
2016-03-18 00:48:50 +01:00
Arne Jørgensen
64454a16e0
Add inheritance in the PHP client model
2016-03-18 00:48:49 +01:00
Arne Jørgensen
0b71f9ee50
Add discriminator to Codegen Operation object
2016-03-18 00:48:49 +01:00
xhh
33483055a5
Java clients: fix test cases on HTTP basic auth
2016-03-17 19:04:57 +08:00
demonfiddler
9511425019
Fix, tests for Issue #2258 "[JavaScript] Generator options and template improvements"
2016-03-17 11:02:15 +00:00
wing328
431593f3cf
Merge pull request #2402 from wing328/docstring_default_value
...
Update docstring to include default value, if defined
2016-03-17 18:26:47 +08:00
wing328
05a8c47a36
update docstring to include default value
2016-03-17 17:43:21 +08:00
wing328
ca093e5aaa
Merge pull request #2401 from wing328/php_getting_started
...
[PHP] update readme, add "Getting Started" section
2016-03-17 17:12:03 +08:00
wing328
b40603d274
update readme, add getting started
2016-03-17 16:53:09 +08:00
xhh
4100a8537b
Display parameter's default value for operations
...
Done for Java clients (default, jersey2, okhttp-gson), Ruby client and
JavaScript client.
2016-03-17 16:22:36 +08:00
wing328
57b8a7ab2c
Merge pull request #2400 from wing328/perl_getting_start
...
[Perl] add "Getting Started" section for Perl documentation
2016-03-17 15:59:36 +08:00
wing328
db4218a06f
rpelace api with api_instance
2016-03-17 15:44:07 +08:00
wing328
035b27ad83
add getting start section for perl
2016-03-17 15:07:57 +08:00
wing328
04e97e3fd7
Merge pull request #2399 from wing328/perl_doc_default_value
...
[Perl] add default value to docstring in perl
2016-03-17 14:42:50 +08:00
wing328
2067e993bb
add default value to docstring in perl
2016-03-17 14:27:20 +08:00
wing328
1e8d1edc7b
Merge pull request #2391 from xhh/js-docs
...
[JavaScript] Add auto-generated documentation in Markdown to JS client
2016-03-17 13:17:57 +08:00
wing328
b00971edc9
Merge pull request #2398 from wing328/model_start_with_number2
...
Better handling of model name starting with number
2016-03-17 12:28:27 +08:00
wing328
ccd4a78514
Merge pull request #2397 from mmschettler/master
...
Fix c# client float property default values
2016-03-17 12:17:47 +08:00
wing328
8ca279f6f7
better handling of model name starting with number for android
2016-03-17 12:11:27 +08:00
xhh
5665c03d19
Fix test
2016-03-17 12:11:19 +08:00
wing328
47bb5689d9
better hanlding of model name starting with number
2016-03-17 11:49:06 +08:00
mmschettler
d2826a7376
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2016-03-16 22:49:01 +01:00
mmschettler
4594c53c81
c# client float default value
...
better solution
2016-03-16 22:42:05 +01:00
mmschettler
1b16d87dd5
Fix float default value
...
Decimal literals for floats must be casted to float, because that are
doubles by default
2016-03-16 22:08:14 +01:00
Tony Tam
b479964a60
Merge pull request #2394 from swagger-api/inflector-fixes
...
fixed typename generation for Map<?,List<?>> types and added gen fold…
2016-03-16 12:10:26 -07:00
Ole Lensmar
01353f25ba
fixed typename generation for Map<?,List<?>> types and added gen folder to maven build in generated pom
2016-03-16 11:30:33 -04:00
wing328
ec03403492
Merge pull request #2393 from wing328/model_start_with_number
...
[PHP] better handling of model name starting with number
2016-03-16 23:25:42 +08:00
wing328
4b5a0a4872
beter handling of model name starting with number
2016-03-16 23:10:59 +08:00
wing328
4d19da41dd
Merge pull request #2385 from arnested/php_date_time_iso8601_vs_atom
...
Use PHP's DateTime::ATOM for true ISO-8601 support
2016-03-16 20:40:44 +08:00
Arne Jørgensen
55ef72d47e
Regenerate PHP petstore sample
2016-03-16 13:08:09 +01:00
xhh
90bd843be6
JavaScript: add auto-generated documentation in Markdown
2016-03-16 19:42:27 +08:00
Arne Jørgensen
3823612674
Use PHP's DateTime::ATOM for true ISO-8601 support
...
Currently we use PHP's DateTime::ISO8601 for the date-time properties
but according to
http://php.net/manual/en/class.datetime.php#datetime.constants.iso8601
it is actually not compatible with ISO-8601.
Instead we should use DateTime::ATOM.
2016-03-16 11:18:26 +01:00
wing328
a019e13b23
Merge pull request #2388 from wing328/php_api_doc
...
[PHP] Add documentation (markdown) to APIs and models
2016-03-16 18:08:06 +08:00
wing328
2eda3b16cf
fix file example
2016-03-16 16:25:32 +08:00
wing328
c101c1204e
add php documentation
2016-03-16 16:14:04 +08:00
wing328
7b31dabe77
fix perl, ruby auth doc in readme
2016-03-16 14:58:19 +08:00
wing328
1e73193ef6
Merge pull request #2349 from wing328/fix_resteasy
...
[JAX-RS] Fix RestEasy's model missing java.util.ArrayList
2016-03-16 14:40:40 +08:00
wing328
c746082171
update jaxrs sample
2016-03-16 14:28:13 +08:00
wing328
dc767d0475
add new files for resteasy
2016-03-16 14:27:06 +08:00
wing328
57c493b334
add jaxrs-resteasy to ci test
2016-03-16 14:26:03 +08:00
wing328
ab41214f06
fix error with resteasy
2016-03-16 14:26:03 +08:00
wing328
838a22ba04
Merge pull request #2351 from ieb/20160310
...
non default java clients wont compile if description is empty in API json.
2016-03-16 14:22:15 +08:00
wing328
259d113d35
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen into php_api_doc
2016-03-16 11:42:27 +08:00
Tony Tam
5df69fd71e
updated to work around https://github.com/swagger-api/swagger-core/issues/1714
2016-03-15 16:06:37 -07:00
Tony Tam
ed224d4c09
updated inflector templates
2016-03-15 15:58:55 -07:00
wing328
44e9b25dfd
Merge pull request #2384 from wing328/add_petstore_yml
...
Add petstore (full) yml file
2016-03-15 22:12:43 +08:00
wing328
fb5f7716db
add petstore (full) yml file
2016-03-15 21:42:25 +08:00
wing328
45bc15257e
Merge pull request #2378 from arnested/feature/php-empty-datetime
...
Handle empty date-time gracefully
2016-03-15 20:45:59 +08:00
Arne Jørgensen
65b78f7ffe
Handle empty date-time gracefully
...
Some API's return an invalid, empty string as a date-time property.
DateTime::__construct() will return the current time for empty input
which is probably not what is meant.
The invalid empty string is probably to be interpreted as a missing
field/value.
Let's handle this graceful.
2016-03-15 06:46:51 +01:00
wing328
d02d3df158
Merge pull request #2376 from wing328/user_agent_update
...
Update User-Agent for Ruby, Python, PHP, Java, Android
2016-03-15 12:16:01 +08:00
wing328
6d2649de00
fix http user agent in C#
2016-03-15 11:41:48 +08:00
wing328
1936af2cab
update android user agent
2016-03-15 11:41:48 +08:00
wing328
be7a49385f
set default user default for ruby, php, python, java
2016-03-15 11:41:47 +08:00
wing328
e10c28596c
update user-agent for Ruby
2016-03-15 11:41:47 +08:00
wing328
df8d4fd8b8
remove releaseVersion (duplicated with packageVersion)
2016-03-15 11:40:09 +08:00
wing328
3c997ea743
Merge pull request #2375 from xhh/ruby-doc
...
[Ruby] Add require and print statements to Ruby client docs
2016-03-15 11:34:25 +08:00
wing328
532d22c5a3
add api documentation to php
2016-03-14 17:25:11 +08:00
xhh
7505b167b7
Ruby docs: add require and print statements
2016-03-14 15:42:59 +08:00
wing328
3147061345
add github integration
2016-03-14 13:39:07 +08:00
wing328
84564ae231
Merge pull request #2371 from wing328/csharp_user_agent
...
[C#] add httpUserAgent option, add configurable user-agent support to C#
2016-03-14 11:03:57 +08:00
wing328
c69abad852
Merge pull request #2372 from wing328/improve_perl_doc
...
[Perl] add authentication sample code to perl, add links to readme, API list, model list
2016-03-14 10:50:37 +08:00
wing328
b46a1759a8
Merge pull request #2370 from wing328/php_git_push
...
[PHP] change php git_push.sh location
2016-03-14 10:22:29 +08:00
wing328
7f6069f255
add auth sample code to perl, add links to readme, etc
2016-03-13 22:43:46 +08:00
wing328
cdecb5133f
add httpUserAgent option, add customized user-agent support to C#
2016-03-13 17:28:43 +08:00
wing328
41383e78c3
change php git_push location
2016-03-13 15:58:04 +08:00
wing328
4a53db839d
Merge pull request #2369 from wing328/csharp_http_basic
...
[C#] fix base64encode issue in csharp
2016-03-13 13:24:59 +08:00
wing328
0e45f868a0
fix base64encode in csharp, add test case
2016-03-13 00:05:32 +08:00
wing328
d3f26f72d9
Merge pull request #2366 from wing328/git_push_sh
...
Add git_push.sh and .gitignore to client generators
2016-03-12 21:24:16 +08:00
wing328
b09d34e37c
fix scala test cases
2016-03-12 18:44:03 +08:00
wing328
a529d9dfe0
push new git_push and .gitinore file
2016-03-12 18:01:53 +08:00
wing328
637bdd2f50
add git_push and gitignore to most client generators
2016-03-12 17:35:25 +08:00
wing328
9368fccecc
Merge pull request #2344 from xhh/ruby-doc
...
[Ruby] Add auto-generated documentation in Markdown to Ruby client
2016-03-12 16:08:07 +08:00
wing328
08b62687c8
Merge pull request #2365 from cbdelavenne/patch-1
...
Add LANDR Audio to the list of companies
2016-03-12 10:37:58 +08:00
Cyrille B. Delavenne
042e331f8d
Add LANDR Audio to the list of companies
...
Add LANDR Audio to the list of companies using Swagger Codegen
2016-03-11 16:46:45 -05:00
Yuriy Ankudinov
2b33a248e0
Update JMustache dependency to support whitespace trimming
2016-03-11 14:10:35 +01:00
xhh
d274af4d4a
Ruby docs: add sample code of configuring auths
2016-03-11 19:05:27 +08:00
wing328
62fbcb9e8b
Merge pull request #2323 from xhh/js-model-export
...
[JavaScript] Remove "undefined" from model dependency arguments
2016-03-11 18:08:06 +08:00
wing328
e530016e2d
Merge pull request #2357 from wing328/perl_add_git_init
...
[Perl] add git push script and git setting CLI option
2016-03-11 17:40:55 +08:00
wing328
f619ed3527
fix java docstring
2016-03-11 17:13:19 +08:00
wing328
2c5be10589
add git push script to perl
2016-03-11 16:25:45 +08:00
xhh
1df0923525
Ruby: improve handling of default values and examples for parameters in docs
2016-03-11 15:23:55 +08:00
wing328
3bebbada98
fix command line, update git_push.sh
2016-03-11 14:50:03 +08:00
wing328
51dba5462a
Merge pull request #2354 from delenius/java-pom-warnings
...
Fix warnings in generated pom.xml file
2016-03-11 11:28:11 +08:00
delenius
a1052a0534
Fix warnings in generated pom.xml file
...
This also updates the generated petstore, due to previous
changes (not mine).
2016-03-10 11:51:05 -08:00
Ian Boston
f097859ce3
Fixed broken builds when definition contains no description
2016-03-10 15:45:20 +00:00
wing328
4d023e9b92
add release support
2016-03-10 23:11:08 +08:00
xhh
eafcc2427d
Some improvements on Ruby docs
2016-03-10 17:19:18 +08:00
wing328
deea3f5c72
Merge pull request #2350 from wing328/csharp_comment
...
[C#] escape HTML special character in Model's summary and value
2016-03-10 14:49:50 +08:00
wing328
ac15938080
escape html spec char in model summary and value, add model to test
...
model and property name
2016-03-10 14:35:16 +08:00
wing328
e45679a585
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-03-10 14:21:10 +08:00
wing328
53ef4cfebf
Merge pull request #2348 from nrekretep/master
...
CSharpClientCodegen: Members with same name as the class will not be renamed.
2016-03-10 14:16:21 +08:00
wing328
5bb9e108c3
add new models
2016-03-10 10:57:39 +08:00
wing328
4649579bac
Merge pull request #2346 from krisztiankocsis/optimaster-fixes
...
Fix invalid variable type in RESTEasy's LocalDateTimeProvider template.
2016-03-10 09:31:32 +08:00
Peter Kern
cf75f823c4
Default values for enums were not generated correctly.
2016-03-09 22:52:36 +01:00
Peter Kern
a3d0fd61f8
compile.bat needs to use backslash to work inside a normal windows cmd. bin directory should be created if it does not exists.
2016-03-09 21:47:20 +01:00
Peter Kern
17a6f5cefb
super.postProcessModels needs to be called. Otherwise renaming of members with same name as the class does not take place.
2016-03-09 21:34:33 +01:00
Tony Tam
bd83cfa670
Merge pull request #2342 from swagger-api/issue-2341
...
added import when description is present
2016-03-09 10:08:21 -08:00
Krisztian Kocsis
792365abcb
Fix invalid variable type in RESTEasy's LocalDateTimeProvider template.
2016-03-09 14:38:19 +01:00
xhh
96707e1fea
Remove obsolete test files
2016-03-09 19:53:19 +08:00
xhh
91bae765ef
Some fixes to Ruby docs on links and File parameter
2016-03-09 19:36:28 +08:00
xhh
43d2df9753
Delete docs files of Ruby Petstore for regenerating
...
with same file names but in different case
2016-03-09 19:34:59 +08:00
xhh
a9042e2410
Ruby: add gitignore
2016-03-09 17:40:27 +08:00
wing328
b3c4d6be37
Merge pull request #2343 from wing328/perl_doc_improve1
...
[Perl] fix link to File type in documentation, add .gitignore
2016-03-09 17:30:30 +08:00
xhh
2c64b885bb
Ruby: add auto-generated documentation in Markdown
2016-03-09 17:18:15 +08:00
Tony Tam
bcd3c2cb32
test fix
2016-03-09 00:33:05 -08:00
wing328
7dff26912a
fix link to file, add .gitignore
2016-03-09 16:21:51 +08:00
Tony Tam
8da197ced7
added import when description is present
2016-03-09 00:03:06 -08:00
wing328
998087d662
Merge pull request #2333 from wing328/perl_doc_authoriziation
...
[Perl add auth setting to Perl documentation (markdown)
2016-03-08 21:29:20 +08:00
wing328
df61aa1a14
add auth setting to perl doc
2016-03-08 20:07:46 +08:00
wing328
d198983cdf
Merge pull request #2327 from xhh/sort-api-model
...
Sort APIs and models by name
2016-03-08 17:49:06 +08:00
wing328
7d6ef74663
Merge pull request #2332 from wing328/perl_new_template
...
[Perl] add new files for Perl generator
2016-03-08 17:09:18 +08:00
wing328
24c47c7434
add new files for perl generator
2016-03-08 17:07:53 +08:00
wing328
70cd71fd35
Merge pull request #2320 from wing328/perl_doc
...
[Perl] Add auto-generated Perl documentation in Markdown
2016-03-08 17:03:16 +08:00
wing328
9c7316d77a
fix return type in perl doc
2016-03-08 16:55:17 +08:00
wing328
9eecccb418
fix java docstring
2016-03-08 16:24:17 +08:00
wing328
4ec8003ab5
add isPrimitiveType,baseType to parameter
2016-03-08 16:24:16 +08:00
wing328
1b652dab5e
fix MD in perl doc
2016-03-08 16:24:16 +08:00
wing328
855f46fed0
add api and model documentation
2016-03-08 16:24:16 +08:00
wing328
e5ed295a78
add example to codegen parameter
2016-03-08 16:24:16 +08:00
wing328
7d642b28b9
add doc for api method
2016-03-08 16:24:16 +08:00
wing328
c9434347c2
Merge pull request #2325 from cbornet/scalar_converter
...
Add scalar converter to retrofit2
2016-03-08 15:50:45 +08:00
Yonas Kolb
f83c200073
Merge pull request #1 from swagger-api/master
...
Merge from swagger-api
2016-03-08 11:00:03 +11:00
wing328
bc559b3b69
Merge pull request #2328 from wing328/model_reserved_word
...
Use "Model" to handle model name with reserved keywords
2016-03-07 23:04:42 +08:00
wing328
97b00864ff
add StringUtils to JavascriptClosureAngularClientCodegen.java
2016-03-07 21:18:19 +08:00
wing328
e7725a9f45
use model instead of object for reserved keyword model name
2016-03-07 21:08:52 +08:00
wing328
bf32820223
Merge pull request #2324 from wing328/object_name_reserved_model
...
[C#] Better naming for reserved word (model name), fixed compile.bat
2016-03-07 20:39:31 +08:00
xhh
f79886910f
Sort API and models by name
2016-03-07 20:28:19 +08:00
cbornet
ba3d548712
remove okhttp and gson dependencies
2016-03-07 10:38:27 +00:00
cbornet
6f114a1556
add scalar converter to retrofit2
...
Fix #2177
2016-03-07 09:19:55 +00:00
wing328
964a44a4c5
update sample for C#
2016-03-07 17:02:36 +08:00
wing328
485d269830
use model instead of object, replace cp with copy (for winxp)
2016-03-07 16:49:29 +08:00
xhh
dfe57bfd6b
JS client: remove "undefined" from model dependency arguments
...
Closes #2279
2016-03-07 15:57:13 +08:00
wing328
b84694380b
Merge pull request #2234 from mkhludnev/master
...
issue #1875 fixing -Dapis= work for -l html, provding test.
2016-03-07 12:07:29 +08:00
wing328
945048ecb2
Merge pull request #2312 from xhh/js-object
...
[JavaScript] Handle arbitrary object in JavaScript client
2016-03-06 22:43:14 +08:00
wing328
a4ec9b9e84
Merge pull request #2317 from wing328/csharp_object_type
...
[C#] add type object support to C# API client
2016-03-05 18:46:34 +08:00
wing328
d2baf9cbd7
add type object support to C#
2016-03-05 16:29:25 +08:00
wing328
123bf19b97
Merge pull request #2316 from wing328/php_add_test_for_object
...
[PHP] update deserializer to handle object type and add more test cases
2016-03-05 15:01:07 +08:00
wing328
b5c0f17a02
update php to handle object type and add more test case
2016-03-05 14:25:01 +08:00
wing328
fd8ec21a63
add cloudboost
2016-03-04 21:53:16 +08:00
wing328
b73c368ba4
Merge pull request #2310 from wing328/better_model_name2
...
[C#][Perl][PHP] Better model name
2016-03-04 20:38:49 +08:00
xhh
8d964cff52
Handle arbitrary object in JS client
...
Closes #2165
Other changes:
* Update JS client of the Petstore sample
* Add test cases for getPetByIdInObject and getInventoryInObject
2016-03-04 18:40:03 +08:00
wing328
ecef1c6333
Merge pull request #2311 from ktjn/patch-1
...
Add svenska spel to companies using swagger
2016-03-04 17:56:11 +08:00
Tommy Alander
a415cd74fb
sorted list :-)
2016-03-04 10:09:13 +01:00
wing328
e813205ba7
Merge pull request #2303 from xhh/ruby-object-tests
...
[Ruby] Add test cases for empty "object" type to Ruby Petstore sample
2016-03-04 16:57:13 +08:00
Tommy Alander
fc654623d9
Add svenska spel to companies using swagger
2016-03-04 09:34:54 +01:00
wing328
8cf0fcf7c4
update objc and swift petstore sample
2016-03-04 15:59:13 +08:00
xhh
53d8a31bd3
Ruby client: update Petstore sample, fix model import
2016-03-04 15:41:27 +08:00
wing328
329530c442
better model name for c#
2016-03-04 14:46:01 +08:00
wing328
e0b16151f4
better model name for perl
2016-03-04 14:39:28 +08:00
wing328
ae54301ed7
better model name for php
2016-03-04 14:26:28 +08:00
wing328
adc4547c8c
Merge pull request #2299 from neoasket/issue-2094
...
issue-2904 mark 'findMethodResponse' method in DefaultCodegen.java as 'protected'
2016-03-04 12:57:01 +08:00
xhh
9b4b0111ad
Merge branch 'master' into ruby-object-tests
2016-03-04 12:45:42 +08:00
wing328
f08dfa4cbc
Merge pull request #2300 from xhh/js-model-name-prefix-suffix
...
[JavaScript] Add model name prefix/suffix to JavaScript client
2016-03-04 12:39:51 +08:00
wing328
7cc9d71dab
Merge pull request #2309 from wing328/model_name_sanitize
...
[Python] better handling of model name
2016-03-04 12:24:57 +08:00
wing328
c51f4c629e
to fix #2306
2016-03-04 12:08:57 +08:00
wing328
a92a9f2a03
Merge pull request #1990 from expectedbehavior/php-raw-string
...
[PHP] Use String instead of Byte Array
2016-03-04 10:57:59 +08:00
wing328
1e4fb0ec96
Merge pull request #2301 from wing328/update_test_file
...
Update wording for test files
2016-03-04 10:23:13 +08:00
wing328
544a69ff30
Merge pull request #2307 from jonocodes/master
...
Fix wget command in readme
2016-03-04 09:47:31 +08:00
Jono
6a450a3a96
Fix wget command in readme
...
The parameter being used was outputting a log file instead of changing downloading the file.
2016-03-03 16:15:19 -08:00
Elijah Miller
74536af3b9
Map binary to string in PHP since ByteArray is no longer in use.
2016-03-03 11:01:13 -05:00
Elijah Miller
6698c532e6
Keep PHP binary responses as strings for easier manipulation.
2016-03-03 11:01:13 -05:00
Alex Kalashnikov
0911b373de
describing @param and @return for 'findMethodResponse' method
2016-03-03 16:57:40 +04:00
xhh
8e4f9fdc7c
Add test cases for empty "object" type to Ruby Petstore
...
And fix the deserialization of empty "object" property
2016-03-03 20:36:15 +08:00
wing328
7e63226ed4
update wording for test file, minor tweats to petstore test
2016-03-03 20:19:37 +08:00
xhh
e420bfd49e
Add model name prefix/suffix to JavaScript client
2016-03-03 18:04:37 +08:00
wing328
d2bb505147
Merge pull request #1752 from justusth/master
...
Csharp Enums
2016-03-03 18:00:36 +08:00
Tommy Alander
27fc4ba4e8
remove unused line
2016-03-03 10:33:51 +01:00
Tommy Alander
e649ab1101
indent code
2016-03-03 10:33:16 +01:00
Tommy Alander
033b9871b3
fix the useage of the cli option for emitdefaultvalues and verify that it works
2016-03-03 10:27:42 +01:00
wing328
1f2026576f
Merge pull request #2297 from xhh/object-without-properties
...
Do not generate models for "object" type with no properties
2016-03-03 17:10:34 +08:00
Tommy Alander
e23626b05c
Merge remote-tracking branch 'main/master' into jmaster
2016-03-03 09:23:50 +01:00
Tommy Alander
2d6dac16b7
add cli option to specify if to emit default values in datamember
2016-03-03 08:32:23 +01:00
wing328
d28f860343
Merge pull request #2202 from traviscollins/master
...
Added discriminator support to Objective-C
2016-03-03 14:25:07 +08:00
Alex Kalashnikov
20bf205451
adding @javadoc to 'findMethodResponse' method
2016-03-03 10:15:44 +04:00
Justus Thorvaldsson
d89deba96c
Merge pull request #2 from ktjn/master
...
fix testcases
2016-03-03 06:55:23 +01:00
Alex Kalashnikov
7817ff5f3d
mark 'findMethodResponse' method in DefaultCodegen.java as 'protected' to make it possible to override for handling custom response codes
2016-03-03 09:23:55 +04:00
xhh
f9cc29fb74
Update petstore to use an inline model for testing
...
and add test cases to Java clients for "object" type with no properties.
2016-03-03 12:48:44 +08:00
Tommy Alander
cb6a71ae89
Merge remote-tracking branch 'main/master'
2016-03-02 19:48:58 +01:00
Tommy Alander
23a7af4716
regen test code for petstore csharp and fix test errors
2016-03-02 19:47:45 +01:00
xhh
7bea6da587
Do not generate models for "object" type with no properties
...
Also updated the petstore sample to include operations to cover the case
in model property and response, and updated Java clients to sync with
it.
Closes #2237
2016-03-02 21:12:27 +08:00
wing328
18262c1b61
Merge pull request #2256 from hiveship/fix-cxf-codegen
...
Fixes for JAXRS-CXF Codegen
2016-03-02 20:49:48 +08:00
wing328
78f1c7a601
Merge pull request #2294 from wing328/swift_reserved_word
...
[Swift] improvements to model
2016-03-02 18:08:33 +08:00
wing328
a57bc98f59
Merge pull request #2295 from neilotoole/issue-2292
...
Re #2292 : The generated API should now return an err for non-2xx status codes
2016-03-02 17:48:49 +08:00
Neil O'Toole
a108c6311a
Re #2292 : The generated API should now return an err for non-2xx status codes, though the functionality to return an error object per the swagger is not yet implemented.
2016-03-02 01:49:59 -07:00
wing328
cff259f489
add prefix, suffix to swift model
2016-03-02 16:34:27 +08:00
wing328
057e1d4c4b
proper indention for swift generator
2016-03-02 15:46:24 +08:00
Justus Thorvaldsson
dd36ef7a5d
Merge pull request #1 from ktjn/master
...
sync with master
2016-03-02 08:42:43 +01:00
Tommy Alander
cd0c99655c
Merge remote-tracking branch 'main/master'
2016-03-02 08:41:01 +01:00
wing328
7a7265b0d7
Merge pull request #2293 from Glagnar/issue-2181
...
Issue 2181
2016-03-02 15:34:39 +08:00
Thomas Gilbert
dea699f1ef
Update petstore swift client
2016-03-02 08:14:37 +01:00
Thomas Gilbert
785136e991
Use baseName instead of paramName when generating APIs
2016-03-02 08:14:11 +01:00
wing328
336d80cbf3
Merge pull request #2289 from neilotoole/issue-2285
...
Several minor fixes in the Go client code generator for Camelization of elements
2016-03-02 13:58:17 +08:00
wing328
4bcd81a329
Merge pull request #2286 from xhh/clj-api-name
...
[Clojure] Improve api name for the Clojure client
2016-03-02 11:16:56 +08:00
wing328
c6367009f4
Merge pull request #2290 from vzeman/patch-1
...
updated section Companies
2016-03-02 10:48:38 +08:00
Viktor Zeman
b6d2e5b2b7
updated section Companies
...
based on communication with @wing328 updated section "Companies/Projects using Swagger Codegen"
- added LiveAgent project
- added PostAffiliatePro project
2016-03-01 21:00:36 +01:00
Neil O'Toole
54b4da2872
Several minor fixes in the Go client code generator for Camelization of elements per #2285
2016-03-01 09:52:44 -07:00
wing328
ca756c2f24
Merge pull request #2288 from delenius/tojson
...
Remove toJson method from JS client
2016-03-02 00:22:18 +08:00
delenius
067d0a9318
Remove toJson method from JS client
...
Also regenerates the petstore samples.
2016-03-01 07:41:31 -08:00
wing328
ab98f1a39d
Merge pull request #2287 from vzeman/issue-2275
...
Add option to set request timeout for Javascript request
2016-03-01 22:13:05 +08:00
Rastislav Kostrab
734681ad59
Javascript samples updated
2016-03-01 14:39:16 +01:00
Viktor Zeman
42a3f184ff
Add option to set request timeout for Javascript request
2016-03-01 13:33:13 +01:00
xhh
09a2bb8b0f
Improve api name for the Clojure client
...
For example, when an operation's tag is "users-api", "users_api" or
"UsersApi", generate the api file named users_api.clj and "users-api"
as the namespace (it was "usersapi.clj" and "usersapi" before).
To implement this, I have to move the "sanitizeTag" method from
DefaultGenerator.java to DefaultCodegen.java so that its behaviour can
be overridden in ClojureClientCodegen.java, which is needed as the
default implementation would sanitize "users-api" to "usersapi" before
the tag is passed to "toApiName" and "toApiFilename".
2016-03-01 18:50:56 +08:00
Maelig Nantel
081c29c984
fix sample generation
2016-03-01 11:25:29 +01:00
wing328
6ca6606c8b
add pixoneye
2016-03-01 18:11:52 +08:00
wing328
ea3232cb08
Merge pull request #2284 from xhh/java-file-date-model-name-fix
...
[Java] Fix invalid imports when model name prefix/suffix is present
2016-03-01 18:09:32 +08:00
wing328
9aa59b92bc
Merge pull request #2271 from timbogit/fixes/clojure_generator_api_filename
...
Fix for clojure API filenames
2016-03-01 17:24:36 +08:00
Tommy Alander
cbbc2cf5ae
Merge remote-tracking branch 'main/master'
2016-03-01 09:05:13 +01:00
wing328
f8fed56863
Merge pull request #2277 from xhh/java-local-var
...
[Android] better local variable naming for Android client
2016-03-01 15:45:53 +08:00
xhh
74fedfcf20
Java: fix invalid imports when model name prefix/suffix is present
...
When generating Java clients with mode name prefix/suffix given, there
are invalid imports on Date and File, e.g. for the Petstore sample
(with model name prefix set to "My" and suffix set to "Model"):
import io.swagger.client.model.MyfileModel;
import io.swagger.client.model.MyDateModel;
This commit fixes it to:
import java.io.File;
import java.util.Date;
2016-03-01 15:01:10 +08:00
xhh
b7280d0af8
Support model prefix/suffix in Android client
2016-03-01 12:30:24 +08:00
xhh
8e937bd0a8
Merge branch 'master' into java-local-var
2016-03-01 12:06:44 +08:00
xhh
665ffa355b
Android: add localVar prefix for "response" and "builder"
2016-03-01 12:04:46 +08:00
wing328
6657434b08
Merge pull request #2168 from jimschubert/maven_plugin_configurator
...
[maven plugin] Use configurator for maven plugin
2016-03-01 11:31:01 +08:00
xhh
cc08be6eda
Fix concurrent_unit_version in android-volley build.gradle
...
Closes #2228
2016-03-01 10:50:41 +08:00
Tommy Alander
e5f55da74e
add hack to make enums nullable
2016-02-29 18:42:35 +01:00
wing328
2171ca524f
add zalando
2016-02-29 23:41:34 +08:00
Tommy Alander
8492802328
use nullable types for enums
2016-02-29 15:28:09 +01:00
wing328
6b1cd3915f
Merge pull request #2278 from xhh/clj-update
...
[Clojure] update Petstore sample and fix tests for the Clojure client
2016-02-29 19:59:21 +08:00
Tommy Alander
61c1f72b0e
use correct datatype with enums
2016-02-29 12:37:26 +01:00
xhh
a42f972dfe
Clojure client: update Petstore sample, fix tests
2016-02-29 19:06:12 +08:00
xhh
75c2cc9029
Android client: better local variable naming
...
and fix the importing of Long and Byte
2016-02-29 18:27:23 +08:00
wing328
3106cadaf7
Merge pull request #2273 from xhh/java-local-var
...
[Java] better local variable naming for Java clients
2016-02-29 18:20:52 +08:00
wing328
d665903b3f
Merge pull request #2149 from dhontecillas/master
...
support latest Retrofit 2 v2.0.0-beta4
2016-02-29 18:05:14 +08:00
wing328
9cdd5323ea
Merge pull request #2270 from wing328/ruby_prefix_suffic
...
[Ruby] add prefix, suffix support to Ruby's model
2016-02-29 17:03:35 +08:00
Maelig Nantel
fff4b315df
Update README.md
2016-02-29 09:49:51 +01:00
wing328
b5b8b4de20
fix file mapping in ruby
2016-02-29 16:44:04 +08:00
Tommy Alander
84fb351c7c
fixes after merge
2016-02-29 08:46:07 +01:00
Tommy Alander
a2be66d492
Merge remote-tracking branch 'main/master'
2016-02-29 08:24:31 +01:00
xhh
9b229de79f
Java clients: better local variable naming
2016-02-29 13:23:56 +08:00
wing328
724753f890
Merge pull request #2272 from wing328/typescript_prefix_suffic
...
[TypeScript] add prefix, suffix to TS model
2016-02-29 13:09:29 +08:00
wing328
74d91f4ea1
add prefix, suffix to ts model
2016-02-29 12:11:54 +08:00
Tim Schmelmer
14ed683f9a
Fix for clojure API filenames whenthe API is more than one word (as clojure filenames have to replace dashes with underscores)
2016-02-28 21:07:55 -07:00
wing328
6c16c10166
add prefix, suffix support to ruby
2016-02-29 11:14:32 +08:00
wing328
9f3c34dbfa
Merge pull request #2267 from wing328/objc_model_prefix
...
[ObjC] add prefix and suffix support to ObjC models
2016-02-28 18:49:50 +08:00
wing328
f3a1f829d0
Merge pull request #2266 from wing328/php_better_local_var
...
[Ruby][Python][PHP] better local variable naming for ruby, python and php
2016-02-28 18:23:11 +08:00
wing328
742e3f5070
remove 'method' from python api
2016-02-28 16:51:50 +08:00
wing328
17a93dd5ce
add prefix and suffix to objc model
2016-02-28 16:15:44 +08:00
wing328
dfa977627a
better reserved word for objc
2016-02-28 15:52:51 +08:00
wing328
f68e93c662
better local variable naming for ruby, python and php
2016-02-28 11:48:14 +08:00
wing328
335a881091
Merge pull request #2264 from wing328/csharp_enhancement_variable
...
[C#] better local variable naming for C# API client
2016-02-28 11:44:40 +08:00
wing328
8a68a64609
Merge pull request #2261 from wing328/php_model_name_improve
...
[PHP][Python][Perl] add prefix/suffix support to model name
2016-02-28 11:28:26 +08:00
wing328
7adc7516cf
Merge pull request #2262 from Glagnar/issue-2084
...
Issue 2084
2016-02-28 10:55:49 +08:00
wing328
b077ff18a2
better local variable naming for C#
2016-02-28 02:15:29 +08:00
wing328
72843adae2
Merge pull request #2244 from hideya/feature/2120
...
Fix #2120 , #2157 - Update Swift API method generation for ease of use
2016-02-28 01:09:28 +08:00
wing328
d619b5e02e
Merge pull request #2163 from vivin/enum-support-in-query-params
...
Support for enums in query parameters (issue #1347 )
2016-02-27 22:57:30 +08:00
Thomas Gilbert
a817772e25
Fix comment typo
2016-02-27 15:46:38 +01:00
Thomas Gilbert
805433a22e
Better handling of variable and parameter names
2016-02-27 15:31:40 +01:00
wing328
5db16325d4
update perl model to support prefix and suffix
2016-02-27 21:47:07 +08:00
hideya kawahara
9ee154c13a
Make {{projectName}}API namespace for API classes optional
2016-02-27 19:38:12 +09:00
wing328
28769ac671
add prefix and suffic support to php and python models
2016-02-27 18:30:56 +08:00
Vivin Paliath
c3c73b8dae
issue #1347
...
This is a fix to support enums in query parameters. Enum-related information was not being stored on `CodegenParameter` previously; it is now. Test cases have been added to make sure that the enum information is being properly processed from the model.
2016-02-26 08:37:09 -07:00
wing328
029912b25d
Merge pull request #2249 from Mindera/master
...
Fix for #2100 - List<String> being generated as List<Enum>
2016-02-26 22:34:29 +08:00
Bruno Lopes
051ba88745
Fix for #2100 - List<String> being generated as List<Enum> (update samples)
2016-02-26 14:00:58 +00:00
wing328
c74ea674e0
Merge pull request #2257 from xhh/js-reserved
...
[JavaScript] Handle reserved operationId/model name in JS client
2016-02-26 21:27:56 +08:00
wing328
ce83a90331
Merge pull request #2211 from ePaul/feature/1255-suffix+prefix-for-model-name
...
Feature/1255 suffix+prefix for model name
2016-02-26 21:16:42 +08:00
David Hontecillas
0fe8f7e375
fix build.gradle template for retrofit2
2016-02-26 13:34:57 +01:00
xhh
432fb84a06
Handle reserved operationId/model name in JS client
2016-02-26 19:56:52 +08:00
Maelig Nantel
fb954a9ecd
Update README.md
2016-02-26 11:45:21 +01:00
Paul Ebermann
36f7ffd6eb
[feature #1255 ] make JavaClientCodegen.toModelName independent from super implementation.
...
As pointed out in the review, using a super.toModelName call makes future changes harder
to review, therefore we are implementing the addition of suffix and prefix here again.
In addition, I fixed the FIXME about assigning the parameter.
2016-02-26 11:31:37 +01:00
Paul Ebermann
70bcf22c82
[feature #1255 ] fix import problem pointed out during review.
...
Instead of declaring `Map` and `List` as primitive (which caused them
to be not imported anymore), now we exclude them from the model name
transformation in `JavaClientCodegen.getSwaggerType`.
2016-02-26 11:20:20 +01:00
Paul Ebermann
0ee77636a3
[feature #1255 ] Java: Use super.toModelName to allow prefix/Suffix addition.
...
This allows using the model name prefix and suffix parameters also in Java generators.
We add List and Map to the "language specific primitives" so they don't get mangled
by the suffixes/prefixes in `getSwaggerType`
2016-02-26 11:20:20 +01:00
Jim Schubert
087b9118c1
[feature #1255 ] support model name prefix + suffix also for C#.
...
AbstractCSharpCodegen does override toModelName, which made the change
to DefaultCodegen have no effect.
2016-02-26 11:20:19 +01:00
Jim Schubert
a6f3914a92
[feature #1255 ] prefix and suffix for model names.
...
This implements the command line arguments `--model-name-prefix` and `--model-name-suffix`
for all languages which do not override `DefaultCodegen.toModelName()`.
This fixes most of swagger-api/swagger-codegen#1255 .
Connection to the maven plugin works with additional-properties, a more explicit
parameter waits for swagger-api/swagger-codegen#2168 .
2016-02-26 11:20:19 +01:00
Paul Ebermann
98c5e70f7c
[feature #1255 ] Start of an implementation of model name prefix + suffix.
...
This is just the implementation in DefaultCodegen and some configurator stuff,
the connection to command line arguments is still missing.
2016-02-26 11:20:19 +01:00
Maelig Nantel
37e62b89bc
Fixes for JAXRS-CXF Codegen
2016-02-26 10:56:26 +01:00
wing328
04ede6dff5
Merge pull request #2242 from xhh/java-reserved-operation-id
...
Handle reserved operationId/modelName in Java/Android clients
2016-02-26 17:03:10 +08:00
Mkhail Khlundev
f3a3a0211b
clearing -Dapis correctly. Travis, it's the last time, I sweargit add src/test/java/io/swagger/codegen/statichtml/StaticHtmlTagsTest.java
2016-02-26 11:31:38 +03:00
Mkhail Khlundev
d84b565069
kicking ci
2016-02-26 10:36:46 +03:00
xhh
35079fedef
Merge branch 'master' into java-reserved-operation-id
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ObjcClientCodegen.java
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PythonClientCodegen.java
2016-02-26 11:34:47 +08:00
xhh
dd3a06560d
Case-insensitive checking on reserved words
2016-02-26 11:21:54 +08:00
wing328
2573146eca
Merge pull request #2247 from wing328/csharp_add_more_test
...
[C#] add more test cases for csharp model
2016-02-26 10:08:02 +08:00
hideya kawahara
ac3ab477d3
Update Swift API method generation for ease of use
2016-02-26 09:21:30 +09:00
Mkhail Khlundev
cd0c0276dc
kicking ci
2016-02-25 23:54:00 +03:00
Mkhail Khlundev
d2a0a7b59b
kicking ci
2016-02-25 23:16:43 +03:00
Bruno Lopes
4e411a0e64
Fix for #2100 - List<String> being generated as List<Enum>
2016-02-25 19:43:10 +00:00
Mkhail Khlundev
49f56c9e23
issue #1875 fixing -Dapis= work for -l html, provding test.
2016-02-25 22:42:40 +03:00
David Hontecillas
6788c89816
fix templates for retrofit2rx and build.gradle
2016-02-25 17:00:56 +01:00
wing328
da0dc0f80a
add test cases for csharp model
2016-02-25 23:37:13 +08:00
wing328
41c0034794
Merge pull request #2243 from wing328/python_better_reserved_word
...
[Pytthon] better reserved word handling for objc
2016-02-25 22:46:08 +08:00
wing328
2d4ccbfd79
add test case to python, better resered word handling for objc
2016-02-25 20:09:58 +08:00
David Hontecillas
006092f453
removed end of line spaces
2016-02-25 12:23:27 +01:00
David Hontecillas
4ba806f656
update tests for retrofit beta4
2016-02-25 11:34:48 +01:00
wing328
005584cf2a
Merge pull request #2240 from wing328/csharp_better_reserved_word
...
[C#] add better reserved keyword handling for c#
2016-02-25 17:04:44 +08:00
xhh
6b6f0df985
Handle reserved operationId/modelName in Java/Android clients
2016-02-25 16:28:11 +08:00
wing328
700a157b40
Merge pull request #2236 from hideya/fix/2156
...
Fix 2156 - Use fixed date/time in operation.examples to avoid unnecessary diffs
2016-02-25 16:02:14 +08:00
wing328
329223f364
add better reserved keyword handling for c#
2016-02-25 15:35:05 +08:00
wing328
a351724365
Merge pull request #2239 from wing328/php_reserved_words
...
[PHP] better reserved words handling for method and model names
2016-02-25 15:06:14 +08:00
wing328
b20c90a346
Merge pull request #2238 from xhh/ruby-empty-reserved-operation-id
...
[Ruby] Handle empty/reserved operation id
2016-02-25 14:51:58 +08:00
wing328
7b42624a86
log message for writeOptional, better handling of model name for php
2016-02-25 14:37:21 +08:00
xhh
748c032d41
Ruby client: handle reserved words for model names
2016-02-25 14:36:47 +08:00
wing328
6962947611
better handling of model (reserved keyword)
2016-02-25 14:16:40 +08:00
wing328
4e034d3dc5
better reserved word handling for php
2016-02-25 13:16:54 +08:00
xhh
52c9d67025
Update petstore spec and fix tests
2016-02-25 12:20:17 +08:00
wing328
b5ba52111d
Merge pull request #2229 from xhh/js-optional-params
...
[JavaScript] Support optional parameters with object syntax
2016-02-25 11:53:56 +08:00
xhh
84c6b869f8
Ruby client: handle empty/reserved operation id
...
by using a normalized one instead of throwing errors
2016-02-25 11:48:30 +08:00
wing328
6bbd691913
add https://www.atlassian.com/
2016-02-25 11:20:31 +08:00
xhh
72b9e2dd81
Update petstore javascript-promise sample and tests
2016-02-25 10:43:45 +08:00
wing328
484ed848ac
Merge pull request #2230 from wing328/perl_reserved_word
...
[Perl] better handling of reserved keyword in Perl
2016-02-25 10:26:53 +08:00
hideya kawahara
a13bba5dc5
Use fixed date/time in operation.examples to avoid unnecessary diffs
2016-02-25 11:20:30 +09:00
wing328
b561acb966
Merge pull request #2220 from xhh/java-exception-javadoc
...
[Java] Add ApiException to javadoc
2016-02-24 22:40:35 +08:00
wing328
a65e6dbd0a
Merge pull request #2226 from wing328/model_more_boolean_flag
...
Add more boolean flags to CodegenProperty
2016-02-24 22:06:19 +08:00
wing328
2ed02ee187
better handling of reserved keyword in perl
2016-02-24 21:57:29 +08:00
xhh
baf5d2895e
JS client: support optional parameters with object syntax
...
Closes #2027
2016-02-24 20:55:46 +08:00
wing328
3cfb110f6d
fix javadoc erorr in CI
2016-02-24 17:44:19 +08:00
wing328
7fb41048dd
add boolean flag to codegen parameter
2016-02-24 17:00:33 +08:00
wing328
bd32a6a410
Merge pull request #2227 from xhh/js-reserved-property
...
[JavaScript] Fix handling of reserved words for property name
2016-02-24 14:44:16 +08:00
xhh
c2fbe349ab
JS client: handle reserved words for property name
...
Closes #2040
2016-02-24 13:12:49 +08:00
wing328
961ee39760
rename to bytearray, add check for boolean, bytearray and binary
2016-02-24 10:39:18 +08:00
wing328
6ae6fe10ec
Merge pull request #2218 from wing328/csharp_test_readonly
...
[C#] add test case, update c# model constructor
2016-02-24 10:27:33 +08:00
wing328
d6df62daaa
Merge pull request #2223 from jaz-ah/patch-1
...
Update README.md
2016-02-24 10:07:34 +08:00
jaz-ah
205348e11c
Update README.md
...
added Activehours to list of company names
2016-02-23 11:48:49 -08:00
wing328
23696c5eb3
Merge pull request #2210 from svenluzar/master
...
ApiClient Bugfix: containsString removed to support iOS 7
2016-02-24 00:31:55 +08:00
wing328
67d0916c50
add more boolean flag
2016-02-23 23:17:53 +08:00
wing328
a1e15adb8f
add required property check to aspnet5 model constructor
2016-02-23 20:39:32 +08:00
xhh
37c77d63c2
Java client: add ApiException to javadoc
...
and some indentation fixes
2016-02-23 20:09:46 +08:00
wing328
eed91d335d
remove exception comment on model constructor to avoid compile warning
2016-02-23 19:32:49 +08:00
wing328
82d7c2d780
add test case, update c# model constructor to remove readonly property
2016-02-23 19:16:26 +08:00
wing328
0520e68e29
Merge pull request #2206 from xhh/java-readonly
...
[Java] Do not generate setter method for readonly properties
2016-02-23 16:20:32 +08:00
wing328
394b0d066e
Merge pull request #2215 from swagger-api/issue-2214
...
fixes #2214
2016-02-23 11:30:47 +08:00
Jim Schubert
6f32600e9e
[maven plugin] Fix typo in comment on CodegenConfiguratorUtils
2016-02-22 22:00:33 -05:00
Tony Tam
d99de3199c
fixes #2214
2016-02-22 16:35:02 -08:00
wing328
9ad139c554
add docusign
2016-02-22 22:43:03 +08:00
wing328
e770ba12aa
add https://osdn.jp
2016-02-22 21:18:25 +08:00
Sven Luzar
4baa7c01b0
ApiClient Bugfix: containsString removed to support iOS 7
2016-02-22 13:39:21 +01:00
xhh
909d1b537b
Support readonly properties for Java retrofit clients
2016-02-22 19:00:57 +08:00
xhh
b8beca7f24
Java: do not generate setter for readonly properties
2016-02-22 15:50:43 +08:00
wing328
d05256d249
Merge pull request #2204 from wing328/case_insensitive_sort
...
Use case insensitive sort for list returned by the generator
2016-02-22 14:57:43 +08:00
wing328
5160ce9ac1
use case insensitive sort
2016-02-22 14:39:09 +08:00
wing328
0ba123d60f
Merge pull request #2196 from swagger-api/issue-2190
...
added sort
2016-02-22 14:28:15 +08:00
wing328
7307210092
better instruction to update the company list
2016-02-22 14:00:59 +08:00
wing328
f55d1a80be
added "in production", add link to submit a PR
2016-02-22 13:57:24 +08:00
Travis Collins
6a1f3f45b1
Added discriminator implementation by overriding NSDictionary initWithDictionary and returning the appropriate class.
2016-02-21 22:08:49 -05:00
wing328
508ae51f84
Merge pull request #1927 from xhh/java-imports
...
[Java] Improve imports in api/models of Java clients
2016-02-22 11:02:05 +08:00
xhh
8c36ed8409
Merge branch 'master' into java-imports
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-02-22 09:24:58 +08:00
wing328
dd37db14ed
fix link to www.expectedbehavior.com
2016-02-22 01:05:44 +08:00
wing328
1090aa2d01
fix anchor
2016-02-22 01:03:06 +08:00
wing328
60424397c1
add company list
2016-02-22 01:02:26 +08:00
wing328
ad6380cb88
Merge pull request #2199 from wing328/readonly_property
...
[C#] Add support for Readonly property
2016-02-21 23:54:52 +08:00
wing328
91da8fef52
fix typo
2016-02-21 23:33:53 +08:00
wing328
b3b4670055
add exception comment, minor enhancement to param description
2016-02-21 23:31:19 +08:00
wing328
d42f23f829
update test case, minor fix to required property in c#
2016-02-21 23:09:56 +08:00
wing328
890b7d17e3
add readonly property support to C#
2016-02-21 22:36:04 +08:00
wing328
e9bb912fca
Merge pull request #2198 from wing328/csharp_doc_exception
...
[C#] add "exception" documentation to methods
2016-02-21 21:36:29 +08:00
wing328
95ec991c52
add exception comment
2016-02-21 18:54:13 +08:00
wing328
10caf449fb
Merge pull request #2195 from swagger-api/issue-2193
...
added folder to writeOptional
2016-02-21 18:13:29 +08:00
wing328
093448f724
Merge pull request #2192 from tonicospinelli/php-client
...
avoid inner class
2016-02-21 17:50:21 +08:00
Tony Tam
671c5880b9
added sort
2016-02-20 21:09:27 -08:00
Tony Tam
fc56546d34
added folder to writeOptional
2016-02-20 20:55:20 -08:00
Antonio Spinelli
43f917493d
add new tests for naming model class
...
fix #2191
PR #2192
2016-02-21 01:47:04 -03:00
Antonio Spinelli
1446f4a13e
remove support to inner class
...
fix #2191
PR #2192
2016-02-21 01:33:01 -03:00
wing328
7c2d09d0e4
Merge pull request #2188 from wing328/php_upgrade
...
[PHP] auto generate README.md and .travis.yml (for CI)
2016-02-20 22:35:35 +08:00
wing328
014e802d3c
add a link to aspnet5
2016-02-20 22:09:49 +08:00
wing328
74c512453e
add .travis.yml
2016-02-20 21:54:00 +08:00
Antonio Spinelli
bab40566bc
remove $ from class name
...
it is cased because the property start with underscore and
object is created on th fly
fix #2191
2016-02-19 22:56:19 -02:00
wing328
f27d2534a6
update php readme
2016-02-19 23:37:35 +08:00
wing328
bb59ad95cf
add readme and travis
2016-02-19 22:08:58 +08:00
wing328
9ecea4b1f8
Merge pull request #2184 from wing328/fix_dollar_sign
...
Map $ to value for parameter/property name
2016-02-19 20:04:04 +08:00
wing328
56c4de2180
map $ to value for parameter/property name
2016-02-19 19:39:53 +08:00
wing328
a14015c1c7
Merge pull request #2174 from xhh/java-object-mapper-getter
...
[Java] Add getter/setter methods for objectMapper and httpClient in ApiClient
2016-02-19 18:31:01 +08:00
wing328
cf03cee58f
update help generate
2016-02-19 18:19:58 +08:00
xhh
7296da7bc3
Fix tests by upgrading libraries
2016-02-19 17:48:59 +08:00
xhh
a892511b1f
Add missing libs to Java jersey2 client
2016-02-19 13:24:16 +08:00
wing328
faef424026
Merge pull request #2180 from solarkennedy/update-readme-wget
...
Fixed syntax in wget installation
2016-02-19 12:28:25 +08:00
Kyle Anderson
57788614ca
Fixed syntax in wget installation
2016-02-18 20:18:27 -08:00
wing328
8c5ee308eb
Merge pull request #2179 from delenius/default-string-quotes
...
Add single quotes around default string values
2016-02-19 11:55:49 +08:00
delenius
5e7dc29b1a
Add single quotes around default string values
2016-02-18 19:42:40 -08:00
wing328
84b4af7bfb
Merge pull request #2169 from xhh/ruby-nested-model-ref
...
[Ruby] Fix class name reference of nested model
2016-02-19 11:29:58 +08:00
wing328
13324f3ee7
Merge pull request #2178 from delenius/promise-tests
...
Update tests for javascript-promise-petstore
2016-02-19 11:25:32 +08:00
xhh
d810434d17
Merge branch 'master' into java-object-mapper-getter
2016-02-19 11:06:36 +08:00
wing328
531d6e5249
Merge pull request #2143 from delenius/empty-objects
...
Do not create empty objects in model constructors
2016-02-19 11:06:33 +08:00
wing328
5b8d75b8f6
Merge pull request #2119 from vorburger/patch-1
...
build.gradle missing 2 libs (pom.xml has)
2016-02-19 10:14:35 +08:00
delenius
079addb6db
More fine-grained fix
...
Instead of just ignoring default values in the generated
model constructors, we modify the generator code in Java.
The template checks for null before outputting a default value.
2016-02-18 11:12:01 -08:00
delenius
98fcaa2f15
Update tests for javascript-promise-petstore
...
This simply copies the new tests from javascript-petstore
into javascript-promise-petstore.
2016-02-18 08:35:07 -08:00
xhh
71a133dafe
Merge remote-tracking branch 'origin/master' into ruby-nested-model-ref
...
Conflicts:
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
samples/client/petstore/ruby/lib/petstore/api/store_api.rb
samples/client/petstore/ruby/lib/petstore/configuration.rb
2016-02-18 21:13:37 +08:00
xhh
de463cf170
Merge branch 'master' into java-object-mapper-getter
...
Conflicts:
samples/client/petstore/java/default/src/main/java/io/swagger/client/ApiClient.java
2016-02-18 20:57:22 +08:00
wing328
eec806b54e
Merge pull request #2158 from xhh/java-improvements
...
[Java] Remove unused jackson imports from Java models
2016-02-18 20:49:21 +08:00
xhh
b9a6a9b6ce
Java: add getter/setter for ApiClient#objectMapper
...
and ApiClient#httpClient as well.
Closes #2134
2016-02-18 20:17:42 +08:00
wing328
615b2727ec
Merge pull request #2171 from wing328/php_test_memory_limit
...
[PHP] update php test case with higher memory limit
2016-02-18 20:03:50 +08:00
wing328
eecce8d2d0
Merge pull request #2170 from wing328/feature_all_models_postprocess
...
Add postProcessAllModels to default generator
2016-02-18 16:53:43 +08:00
wing328
844078a385
restore README
2016-02-18 16:42:27 +08:00
wing328
fd9a62adbe
update php test case with higher memory limit
2016-02-18 16:40:13 +08:00
wing328
1cc8de1860
Merge pull request #2162 from delenius/response-body-null
...
Handle empty response.body from superagent
2016-02-18 16:28:25 +08:00
wing328
0b125984da
add postProcessAllModels
2016-02-18 16:15:15 +08:00
xhh
a21493f2db
Ruby: fix class name reference of nested model
...
and model name in underscore format, e.g. "my_response".
Closes #2140
2016-02-18 15:29:31 +08:00
delenius
692c865c76
Handle empty response.body from superagent
...
Superagent does not always produce a `body`. See
http://visionmedia.github.io/superagent/ for details. When it
doesn't, we should deserialize the raw `response.text` rather
than returning `null`. Currently, the JS client always returns
`null` when the return type is String! This commit fixes
that.
2016-02-17 22:39:53 -08:00
wing328
61215f31fb
Merge pull request #2167 from xhh/javascript-fixes
...
[JavaScript] Some bug fixes
2016-02-18 13:17:04 +08:00
wing328
c1b4f8df06
Merge pull request #2132 from jimschubert/csharp_35_client
...
[csharp] Initial settings for v3.5 client compatibility
2016-02-18 12:02:00 +08:00
Jim Schubert
702d019bf8
[maven plugin] Use configurator for maven plugin
...
see swagger-api/swagger-codegen#2104
2016-02-17 22:33:39 -05:00
xhh
bb70073ca3
JavaScript: fix call to buildCollectisnParam
...
Closes #2166
2016-02-18 10:31:21 +08:00
xhh
33d7d7b4b1
JavaScript: update Petstore sample and fix tests
2016-02-18 10:20:01 +08:00
Jim Schubert
1d57e70e76
[csharp] Set RestSharp to 105.1.0 due to bug in newer versions
2016-02-17 13:31:50 -05:00
xhh
cac8df949d
Fix tests
2016-02-17 19:46:40 +08:00
xhh
b2ed17e63e
Remove unused jackson imports from Java models
...
by fixing the logic of enum Boolean checking.
Other changes:
* Remove the `true &&` prefix from the `equals` method in models.
* Apply some changes of Java-default to Java-okhttp-gson, i.e. adding
`this` and parent model handling.
* Some improvements on spaces and blank lines.
2016-02-17 18:03:27 +08:00
wing328
c4d799a4a7
Merge pull request #2155 from wing328/multi_auth_setting
...
Add support for multi-authentication setting
2016-02-17 15:24:05 +08:00
wing328
56789393fa
Merge pull request #2154 from wing328/csharp_dollar_sign
...
[C#] fix dollar sign in parameter name
2016-02-17 11:09:41 +08:00
wing328
97640e622a
fix dollar sign in parameter name (C#)
2016-02-17 10:44:23 +08:00
wing328
67bf17c692
Merge pull request #2150 from vivin/master
...
Fix for issue #2117
2016-02-17 10:28:51 +08:00
Vivin Paliath
04c1940343
Fix for issue #2117
...
This change adds `this` to field names in `equals` within `pojo.mustache` so that an incorrect `equals` method is not generated in cases where a class has an internal field that is the same as the `classVarName` of the class.
2016-02-16 09:07:47 -07:00
wing328
a47cdddbeb
Merge pull request #2056 from xhh/javascript-auth
...
[JavaScript] Add authentications support to JavaScript client
2016-02-16 22:08:50 +08:00
David Hontecillas
81ca40f661
Merge branch 'master' of https://github.com/dhontecillas/swagger-codegen
2016-02-16 14:06:30 +01:00
dhontecillas
71af74adf3
support changes in retrofit v2.0.0-beta4
2016-02-16 14:04:42 +01:00
wing328
4aa0dc5999
remove comment related to security warning (only 1st is used)
2016-02-16 20:58:18 +08:00
wing328
a87ce3181b
Merge pull request #2125 from hideya/fix/objc-method-naming
...
[ObjC] Fix #2121 , generated method names don't follow coding convention
2016-02-16 17:55:50 +08:00
wing328
a4825d8142
add multi auth setting (based on #1961 )
2016-02-16 17:17:42 +08:00
xhh
7beb7373c2
Merge branch 'master' into javascript-auth
...
Conflicts:
modules/swagger-codegen/src/main/resources/Javascript/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Javascript/api.mustache
2016-02-16 17:08:58 +08:00
Ron
812ff2f2c5
Merge pull request #2144 from foragerr/fix-typos
...
Fixed typo
2016-02-15 20:51:45 -08:00
Tony Tam
e5c5dced6c
Merge pull request #1970 from evigeant/master
...
Allow maven-codegen-plugin to set additionalProperties even if cliOptions does not define them
2016-02-15 20:47:04 -08:00
RaGe
8d9b08bee1
fixed typo
2016-02-15 22:52:11 -05:00
wing328
6ecf018f69
Merge pull request #2126 from delenius/enum-exports
...
Correct exporting of enum classes
2016-02-16 10:24:41 +08:00
hideya kawahara
753499e204
generated ObjC method names to follow Apple's coding convention
2016-02-16 10:55:36 +09:00
delenius
59931ef0f7
Correct exporting of enum classes
...
Fixes #2102 .
2016-02-15 07:46:14 -08:00
wing328
97dfa745cb
Merge pull request #2137 from wing328/master
...
[Java] update pom.xml (okhttp-gson) to catch issue with build.gradle
2016-02-15 18:43:59 +08:00
wing328
516a9413a2
update pom.mustache and sample
2016-02-15 18:24:57 +08:00
wing328
816ae0bb3f
update pom for okhttp-gson java to test gradle
2016-02-15 18:17:35 +08:00
Wolfgang Berger
0c7bb8b2ca
updates templates according to https://github.com/NYTimes/objective-c-style-guide
2016-02-15 10:43:16 +01:00
wing328
f3582c3841
Merge pull request #2136 from xhh/logging-libs-fix
...
Java okhttp-gson: fix dependencies
2016-02-15 17:23:59 +08:00
xhh
908ab83d9b
Java okhttp-gson: fix dependencies
2016-02-15 16:48:58 +08:00
wing328
af594ea652
Merge pull request #2076 from daveholladay/issue-1487
...
Fix #1487 , TypeScript-Angular output path wrong if apiPackage not the…
2016-02-15 10:43:29 +08:00
wing328
f79ec39d8d
Merge pull request #2082 from jhitchcock/feature/vendorExtensionsRoot
...
Add VendorExtensions to root swagger
2016-02-15 10:41:17 +08:00
wing328
a159998293
Merge pull request #2115 from delenius/enums
...
Use objects for enums, not constructor functions
2016-02-15 10:29:34 +08:00
wing328
5b0d8b1f13
Merge pull request #2114 from delenius/static-factories
...
Use static model factory methods
2016-02-15 10:13:09 +08:00
wing328
326ff340dc
Merge pull request #2128 from who/master
...
Adding PATCH header override the default Java client
2016-02-15 10:03:57 +08:00
evigeant
bff0e2ad19
Fixed indentation to use spaces instead of tabs
2016-02-13 11:15:04 -05:00
Jim Schubert
0f6038f3b1
[csharp] Initial settings for v3.5 client compatibility
...
Pass -DtargetFramework=v3.5 to generate .NET 3.5 client
2016-02-13 10:55:54 -05:00
wing328
e72abc01e9
Merge pull request #2129 from wing328/objc_binary_fix
...
[ObjC][Swift] fix objc `binary` mapping, add objc,swift to CI tests
2016-02-13 17:59:18 +08:00
wing328
23a90b7dcc
remove objc, add pom.xml to test C# petstore client
2016-02-13 17:43:38 +08:00
wing328
57d16dee7b
remove swift CI test
2016-02-13 16:46:01 +08:00
wing328
2fcbc38b67
fix objc binary mapping, add objc,swift to CI tests
2016-02-13 16:29:35 +08:00
Andrew B
a303a09749
Adding PATCH header override the default Java client
2016-02-12 18:52:49 -08:00
Ron
9bea6943a2
Update README.md
2016-02-12 12:23:27 -08:00
delenius
fa2333717a
Use static model factory methods
...
The `constructFromObject` factory methods should be class methods
(or "static" methods), not instance methods.
With this commit, ApiClient no longer calls the model constructors
directly. Instead, it calls the new static factory method to get the
new instance. If there is no data on the top level, null is returned.
It is still possible for users to call the model constructors
directly, of course.
2016-02-12 07:54:04 -08:00
delenius
86154f87c3
Use objects for enums, not constructor functions
...
Fixes #2101 .
2016-02-12 07:53:51 -08:00
wing328
847a8e1f3d
Merge pull request #2123 from wing328/csharp_add_uuid
...
[C#] map `uuid` to 'Guid`in C# abstract base class
2016-02-12 23:05:30 +08:00
Wolfgang Berger
6002a983c3
first version of session manager
2016-02-12 16:01:39 +01:00
wing328
81593bc4f6
add delay script, update CI test to run ruby test first
2016-02-12 18:46:19 +08:00
wing328
874d9dc54a
add uuid mapping to c# abstract base class
2016-02-12 17:15:53 +08:00
wing328
67865bf46c
Merge pull request #2122 from foragerr/master
...
Closes #2118
2016-02-12 14:03:17 +08:00
RaGe
21b1d19589
Closes #2118
...
Add basePath without url to jmeter sampler path
2016-02-12 00:07:58 -05:00
Michael Vorburger
698649f6fd
build.gradle missing 2 libs (pom.xml has)
...
jackson-jaxrs-json-provider & com.brsanthu:migbase64 are missing from the build.gradle mustache template (but the pom.xml one has them)
PS: Why are there no automated tests that detect this?
2016-02-12 02:06:22 +01:00
wing328
b54947db86
Merge pull request #2112 from hideya/fix/swift-sanitize
...
[Swift] Fix #2095 , missing sanitization for operationId
2016-02-11 21:17:01 +08:00
wing328
6dfc86f1d2
Merge pull request #2087 from delenius/optional-params
...
Fix handling of missing optional params
2016-02-11 19:16:39 +08:00
hideya kawahara
aa09678b51
add missing sanitization for operationId
2016-02-11 19:50:14 +09:00
wing328
d05596dad4
Merge pull request #2109 from wing328/perl_test_cases
...
[Perl] generate files for unit testing models and API files
2016-02-11 09:41:51 +08:00
wing328
7cb2898f47
update perl pom with new test folder
2016-02-11 09:30:41 +08:00
delenius
c7766457bd
Don't set missing optional params in models
...
Fixes #2103 .
In the constructFromObject methods, we were always setting all the
parameters, including optional ones that were missing in the `data`
object. Because of the `convertToType` calls, this had the effect
of producing the *strings* `"undefined"` or `"null"` as property
values on the constructed object! This obviously leads to difficult
bugs.
This commit makes sure that we first check that the data field
exists in the data object. Note that both `null` and `undefined`
values will be skipped.
2016-02-10 17:18:31 -08:00
wing328
fdaf1e6236
Merge pull request #2078 from delenius/omit-model-methods
...
Add option to omit getters/setters on models
2016-02-11 09:10:40 +08:00
wing328
f50174e950
Merge pull request #2077 from spotby/swift-java-date
...
adding support for java dates
2016-02-11 09:03:19 +08:00
wing328
3d9a331666
automaticallay generate test cases for Perl
2016-02-11 08:24:51 +08:00
Tony Tam
fe2715c1e6
Merge pull request #2108 from swagger-api/issue-2107
...
added example value
2016-02-10 15:43:22 -08:00
Tony Tam
54e78bd533
added builders
2016-02-10 15:40:47 -08:00
Tony Tam
ab5ca625c1
added example property
2016-02-10 15:28:00 -08:00
Tony Tam
cb196eb351
set example when defined
2016-02-10 15:25:51 -08:00
Tony Tam
3282c1f325
formatting
2016-02-10 14:42:28 -08:00
Tony Tam
06fcb95f64
removed println
2016-02-10 13:17:33 -08:00
Tony Tam
42e626580f
Merge pull request #2106 from swagger-api/issue-1956
...
added `writeOptional` method to avoid clobbering files
2016-02-10 13:14:35 -08:00
Tony Tam
1a9cb4488a
added writeOptional method to avoid clobbering files
2016-02-10 12:10:02 -08:00
delenius
722fbe606c
Add option to omit getters/setters on models
2016-02-10 08:35:51 -08:00
wing328
7b83664dd1
Merge pull request #2097 from pamuche/patch-2
...
Fixes typo template folder for javascript in bin-promise-script
2016-02-11 00:13:49 +08:00
wing328
262ee89a0e
Merge pull request #2098 from pamuche/patch-3
...
Fixes typo in template folder for javascript in bin-script
2016-02-11 00:13:15 +08:00
wing328
f53abf7d8e
Merge pull request #2083 from wing328/csharp_minor_fix
...
[C#] minor fix to documentation comment in Configuration class
2016-02-10 22:33:43 +08:00
Robert Clochard
785509a10f
Fixes typo in template folder for javascript in bin-script
...
The template folder for javascript starts wit a capital letter. Shell script will fail on linux because of java.io.FileNotFoundException for the module.mustache
2016-02-10 14:34:40 +01:00
wing328
e7b18a04d9
Merge pull request #2062 from jimschubert/csharp_common
...
[csharp][aspnet5] AbstractCSharpCodegen base
2016-02-10 21:33:30 +08:00
Robert Clochard
863c77ae6e
Fixes typo template folder for javascript in bin-promise-script
...
the folder name for the template starts with a capital letter.
2016-02-10 14:29:55 +01:00
wing328
b576bc3893
Merge pull request #2092 from sugi/fix-ruby-boolean-handling
...
ruby: Fix boolean convertion on json to model attribute.
2016-02-10 18:37:18 +08:00
Tatsuki Sugiura
0ea7ae1c16
ruby: Add test for boolean convertion.
2016-02-10 19:18:03 +09:00
Tatsuki Sugiura
a442e1a60d
ruby: Fix boolean convertion on json to model attribute.
...
Current code will converts boolean true of json to false
because ruby's boolean is not matched with any regex.
2016-02-10 15:06:31 +09:00
wing328
3ba4cd1409
Merge pull request #2090 from jaz-ah/issue-1994
...
[Swift] fix issue 1994: make sure we don't crash if rawValue returns …
2016-02-10 13:54:57 +08:00
wing328
62e3bf2543
Merge pull request #1993 from jaz-ah/issue-1992
...
[Swift] fix issue 1992 - ensure that our variable names don't match the names…
2016-02-10 13:45:53 +08:00
Joseph Zuromski
694d735edc
[Swift] fix issue 1994: make sure we don't crash if rawValue returns nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)
...
note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.
2016-02-09 12:59:14 -08:00
Jim Schubert
37d07e1012
[csharp][aspnet5] AbstractCSharpCodegen base
...
This moves a bit of logic into a base type to prevent lots of
duplicates.
I've only converted csharp and aspnet5 generators, not csharp 2.0.
This base class should provide enough flexibility to support other C#
based client and server generators.
2016-02-09 12:37:59 -05:00
David Keene
cdc9fb5f5e
fixing var name
2016-02-09 09:33:10 -08:00
wing328
a36966d961
Merge pull request #1991 from jaz-ah/issue-1989
...
[Swift] fix issue 1989: generate AnyObject type from json object type instead…
2016-02-10 00:42:39 +08:00
wing328
95c033c4dd
Merge pull request #2072 from delenius/promises
...
Add usePromise parameter to JS client
2016-02-10 00:34:34 +08:00
Joseph Zuromski
cf7fc1a61b
make SwaggerClient a shared scheme
2016-02-09 08:30:27 -08:00
delenius
d56d626450
Remove wildcards from imports
2016-02-09 07:50:12 -08:00
delenius
dd29cf9d53
Use defaultValue for the usePromise CliOption
2016-02-09 07:35:45 -08:00
wing328
fed231c46d
fix documentation comment in Configuration class (C#), make
...
compile-mono permission executable
2016-02-09 22:13:47 +08:00
unknown
2e1e0be2d5
Add VendorExtensions to root swagger
2016-02-09 13:45:12 +01:00
delenius
aab96ec772
Remove unused callback param when using promises
2016-02-08 23:39:05 -08:00
delenius
7301618671
Add petstore tests for usePromises version
2016-02-08 20:02:38 -08:00
delenius
bf71e6b145
Merge branch 'promises' of https://github.com/delenius/swagger-codegen into promises
2016-02-08 19:15:47 -08:00
delenius
e825b953f7
Add usePromise parameter to JS client
2016-02-08 19:15:00 -08:00
wing328
cabe003e02
Merge pull request #2071 from delenius/prototype-tests
...
Modify JS PetStore tests for prototypes change
2016-02-09 10:41:30 +08:00
David Keene
16f1f74019
adding support for java dates
2016-02-08 16:47:58 -08:00
Joseph Zuromski
d84953d504
add in more tests
2016-02-08 15:22:32 -08:00
Dave Holladay
9673b878a8
Fix #1487 , TypeScript-Angular output path wrong if apiPackage not the default
2016-02-08 22:54:45 +00:00
Joseph Zuromski
2465f398da
add a couple more user tests
2016-02-08 14:43:08 -08:00
Tony Tam
f539fdcfea
Merge pull request #2074 from swagger-api/issue-2073
...
Update parser, inline resolver
2016-02-08 14:37:34 -08:00
Joseph Zuromski
fff0951771
add in some real tests
2016-02-08 14:23:22 -08:00
Tony Tam
e99e322198
adde Date mapping, escape operationId
2016-02-08 13:48:46 -08:00
Tony Tam
e2d61abc10
update parser version
2016-02-08 13:48:31 -08:00
Tony Tam
802f9e4424
revert to Object when model missing
2016-02-08 13:48:20 -08:00
Joseph Zuromski
288acdb2d4
one more gitignore to keep git clean after build
2016-02-08 13:04:18 -08:00
Joseph Zuromski
7c4983df16
fixup gitignore/schemes
2016-02-08 12:59:35 -08:00
Joseph Zuromski
4a0c7966a1
add in pods
2016-02-08 12:56:49 -08:00
Joseph Zuromski
bc0658e81c
add in initial swift client tests
2016-02-08 12:51:14 -08:00
delenius
153faebc6d
Modify JS PetStore tests for prototypes change
...
This is just the result of running ./bin/javascript-petstore.sh
after the fix for #2044 .
2016-02-08 12:39:30 -08:00
delenius
7e9a5f00b1
Add usePromise parameter to JS client
2016-02-08 12:31:00 -08:00
Tony Tam
12ff5cc8cd
updated to 1.0.18-SNAPSHOT for https://github.com/swagger-api/swagger-parser/issues/182
2016-02-08 10:13:23 -08:00
wing328
2a73c1152c
Merge pull request #2063 from mtngld/issue_2037
...
Conitnue fixing of #2037
2016-02-08 23:09:34 +08:00
Matan Goldman
341f862569
change the order of the elif inside to_dict for better performance (dictionary/additionalProperties is less probable)
2016-02-07 21:46:33 +02:00
Matan Goldman
2ddbfa8218
Now it should be fully compatible with python 2.7 and 3.4
2016-02-07 21:46:33 +02:00
wing328
59fde5f072
Merge pull request #2060 from wing328/scottrw93_fix_2036
...
[Python] Fix for Python client upload list of files Issue #2036
2016-02-07 23:47:36 +08:00
Scott Williams
a6fe87a52a
Use more appropriate variable name
2016-02-07 23:34:04 +08:00
Scott Williams
57f38e4433
Update pet-store python client files
2016-02-07 23:33:49 +08:00
Scott Williams
b43e1e2c8f
Change form_param to list of tuples from dict
2016-02-07 23:33:37 +08:00
Scott Williams
2407c494e7
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:27 +08:00
Scott Williams
833ce25cab
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:15 +08:00
Scott Williams
5ac630f7ff
Fix for issue #2036 , python client wont upload list of files
2016-02-07 23:32:52 +08:00
wing328
a968d9000e
Merge pull request #2058 from mtngld/master
...
Add model's "additionalProperties" handling in python client
2016-02-07 22:56:11 +08:00
Matan Goldman
32d2a4d4cb
fix python 3.4 compatabilty
2016-02-07 16:23:12 +02:00
Joseph Zuromski
a4a1372fc1
update swift samples
2016-02-07 05:59:23 -08:00
Matan Goldman
ec4c5502f1
fix identation
2016-02-07 14:21:31 +02:00
Matan Goldman
ab39eff8a1
Add additionalProperties handling in python code genrator by adding dictionary handling in model's to_dict() method
2016-02-07 13:11:28 +02:00
wing328
a9ab8a6e98
Merge pull request #2057 from wing328/fix_local_java_test
...
[Java] fix local Java test issue using fully qualified name
2016-02-07 16:54:20 +08:00
wing328
9f78b3cf9c
fix local java test using fully qualified name
2016-02-07 16:16:06 +08:00
wing328
510a5bdb74
Merge pull request #2055 from delenius/prototype-fixed
...
Use prototypes for model methods
2016-02-07 15:33:23 +08:00
wing328
3174ab0033
Merge pull request #1997 from achew22/javascript_closure
...
Add Closure annotated Javascript Angular generator
2016-02-07 14:53:25 +08:00
Tony Tam
eafd79e8ea
updated index file
2016-02-06 07:07:53 -08:00
Tony Tam
a4d7a97504
added json provider for https://github.com/swagger-api/swagger-core/releases
2016-02-06 06:41:43 -08:00
xhh
d52ebdf684
JavaScript client: Add authentications support
...
Closes #1952
2016-02-06 16:26:15 +08:00
delenius
897c854728
Use prototypes for model methods
...
Fixes #2044 .
2016-02-05 21:27:11 -08:00
Tony Tam
c80df9ee4d
Merge pull request #2052 from swagger-api/issue-2001
...
added x-swagger-router-controller, operationId for node.js versions
2016-02-05 17:24:00 -08:00
Tony Tam
eb9cff7c48
added x-swagger-router-controller, operationId for node.js versions
2016-02-05 17:12:40 -08:00
wing328
161301fda7
Merge pull request #2049 from glederrey/fix-flash-client-library
...
Fix Flash client Library
2016-02-05 19:32:52 +08:00
glederrey
41c735b22c
ADD: Add the flash client library sample
2016-02-05 12:16:46 +01:00
glederrey
00349406f8
FIX: Fix the flash client library.
2016-02-05 12:16:27 +01:00
wing328
192f2367b3
Merge pull request #2048 from swagger-api/revert-2039-master
...
Revert "FIX: Fixed FLash Client library"
2016-02-05 19:09:11 +08:00
wing328
81db72b62f
Revert "FIX: Fixed FLash Client library"
2016-02-05 19:08:57 +08:00
wing328
2f3c093858
Merge pull request #2045 from jimschubert/patch-1
...
[aspnet] Updated -l aspnet5 in example command
2016-02-05 12:10:56 +08:00
Jim Schubert
34c7250ce9
[aspnet] Updated -l aspnet5 in example command
...
Apparently, I missed this in the readme even after the comment in the original pull request
2016-02-04 21:53:24 -05:00
Tony Tam
9eb6993ccc
fixed build error
2016-02-04 18:06:59 -08:00
Tony Tam
5e80b61e3e
updated swagger-core versions
2016-02-04 18:02:19 -08:00
Tony Tam
190f0a6a08
updated swagger-core to 1.5.7
2016-02-04 17:58:57 -08:00
wing328
148de83a48
Merge pull request #2039 from glederrey/master
...
FIX: Fixed FLash Client library
2016-02-04 22:06:48 +08:00
Gael Lederrey
5dc67c15e5
ADD: Add Petstore sample for flash
2016-02-04 14:33:46 +01:00
Gael Lederrey
77f9bc3642
FIX: Fixed FLash Client library
2016-02-04 14:03:13 +01:00
wing328
e926c86141
Merge pull request #2035 from wing328/csharp_fix_default_header
...
[C#] fix default header in async method and sanitize model name
2016-02-04 20:33:46 +08:00
wing328
7b678454f1
fix aspnet5 batch file
2016-02-04 19:30:30 +08:00
wing328
96f9e93cff
Merge pull request #2034 from xhh/javascript-collection-format
...
[JavaScript] Support collectionFormat for parameters in JavaScript client
2016-02-04 19:02:38 +08:00
wing328
8d40b7a890
sanitize model name (C#)
2016-02-04 18:52:16 +08:00
wing328
87253d8533
update sh permission, add aspnet5 bat
2016-02-04 18:18:45 +08:00
wing328
5e1cb9349a
update exmaple, add toExampleValue
2016-02-04 18:18:45 +08:00
wing328
246369ccdd
update csharp help, fix default header
2016-02-04 18:18:44 +08:00
wing328
aac1b259a7
Merge pull request #2021 from chameleon82/feature/jaxrs-resteasy
...
Feature/jaxrs resteasy
2016-02-04 17:56:06 +08:00
xhh
47f25efb25
JavaScript client: support collectionFormat for parameters
...
Closes #1953
2016-02-04 16:30:41 +08:00
wing328
35039bf122
Merge pull request #2030 from xhh/javascript-improvements
...
[JavaScript] some improvements and enhancements to JavaScript client
2016-02-04 15:03:50 +08:00
wing328
8285dea113
Merge pull request #2008 from wing328/license_template
...
[Ruby] add API info as file header to ruby templates
2016-02-04 14:49:57 +08:00
wing328
c33df17590
Merge pull request #2031 from wing328/master
...
Update pom to use swagger parser 1.0.17
2016-02-04 14:27:42 +08:00
wing328
4a8927f0e3
update pom to use swagger parser 1.0.17
2016-02-04 14:14:25 +08:00
xhh
2eb125681e
JavaScript client: handle response deserialization
...
to support array of models and Date property in model
Closes #1951
2016-02-04 12:36:44 +08:00
wing328
2de3e2e88c
Merge pull request #2024 from jimschubert/csharp_webapi_aspnet5_server
...
[aspnet] Initial implementation of ASP.NET 5 server
2016-02-04 12:08:43 +08:00
xhh
c7fa44cd0c
Fix ApiClient.isFileParam in browserify runtime
...
Closes #2028
2016-02-04 08:43:13 +08:00
Alex
d2a3492dd1
Add bin/jaxrs-resteasy-petstore-server.sh
...
Add sample into samples/petstore/jaxrs-resteasy
Update multipart/form-data ability
2016-02-04 01:01:28 +06:00
Jim Schubert
0da1057416
[aspnet] Regenerated models to reflect partial class change
2016-02-03 13:14:26 -05:00
Jim Schubert
328dd93aef
[aspnet] Update readme to aspnet5, add partial class support and windows batch file
2016-02-03 13:10:52 -05:00
Alex
d98063083b
Rename folder resteasy3_0_11 to resteasy
2016-02-03 20:56:18 +06:00
wing328
cd0c8728b7
Merge pull request #2019 from ergon/feature/use-retrofit-beta3
...
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
2016-02-03 17:49:12 +08:00
xhh
fa052ffa19
JavaScript client: ensure a default project/module name
...
when it is an empty string (same for "projectVersion")
Closes #2022
2016-02-03 16:01:52 +08:00
xhh
5463015725
JavaScript client: use brackets to access mobel properties
...
to support nonstandard characters in property names, e.g. "user-status".
2016-02-03 16:01:33 +08:00
wing328
76c3d26c65
Merge pull request #2025 from wizardbyron/master
...
Run docker in vagrant without sudo and won't check locale settings
2016-02-03 15:52:58 +08:00
GU Yu (Byron)
0a3f0166b0
Run docker without sudo and won't check locale settings
2016-02-03 13:14:04 +08:00
Jim Schubert
c785ffea90
Fix documentation merge and incorrect codegen filename
2016-02-02 22:48:38 -05:00
Jim Schubert
455ba9d839
[aspnet] Initial implementation of ASP.NET 5 server
...
Things to work on:
Gaps:
* Missing swagger definition functionality:
- defaultResponse
- examples
- auth
- consumes
- produces
- nickname
- externalDocs
- imports
- security
- schema
* Resolve allParams/hasMore issue with headerParams
* Create functional test project stub
* Resolve all issues with value type return values
In this commit:
* Initial cross-platform ASP.NET 5 API server
* Hook up swagger gen via Swashbuckle and xml comment
* Build script (*nix) in project root
* Dockerfile for container deployment
2016-02-02 22:28:27 -05:00
wing328
cd1e9b0504
add php slim
2016-02-03 10:46:28 +08:00
wing328
17e30f1e3a
fix jaxrs links
2016-02-03 10:42:38 +08:00
Alex
af2c66cb97
Update maven and gradle project definition
2016-02-02 21:56:42 +06:00
wing328
974b8a6ee8
Merge pull request #2020 from wing328/csharp_partial_model
...
[C#] add partial to C# model
2016-02-02 23:32:11 +08:00
wing328
4819f37ed4
Merge pull request #2018 from wing328/haskell_model_notfound
...
[Haskell] minor fix to template location for haskell-servant
2016-02-02 23:00:45 +08:00
wing328
295cf0b2a1
add partial class to C# model
2016-02-02 22:45:57 +08:00
Silvio Heuberger
671dba4284
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
...
Requires some changes to the generated client code
as some package renaming and api changes have occurred.
2016-02-02 15:43:08 +01:00
wing328
743a533c65
minor fix to template location for haskell
2016-02-02 22:37:01 +08:00
wing328
3322b0efd8
update list of generators
2016-02-02 22:28:09 +08:00
wing328
f77a8672fc
Merge pull request #2011 from nickcmaynard/defaultvalue
...
Only define @DefaultValue if it's specified in the swagger spec
2016-02-02 22:21:48 +08:00
Andrew Z Allen
42f669031d
Add tests for API
2016-02-02 00:45:40 -07:00
wing328
b2d98acb21
Merge pull request #2007 from wing328/csharp_readme
...
[C#] Add unit tests for C# APIs and models
2016-02-02 12:43:44 +08:00
Alex
40400e3657
update supporting JodaTime and Java8 DateTime
2016-02-02 00:27:08 +06:00
wing328
b275eefbbf
remove testFolder (not used)
2016-02-02 00:57:57 +08:00
Alex
62b692da1d
fix jboss context-root
2016-02-01 20:30:49 +06:00
wing328
53e74a0bd3
Merge pull request #2006 from wing328/qt5_file_support
...
[Qt5 C++] Fix file support in form parameter
2016-02-01 15:29:49 +08:00
wing328
70cce7411b
Merge pull request #2009 from algas/support-haskell
...
Code generator for haskell-servant framework
2016-02-01 13:41:51 +08:00
Masahiro Yamauchi
30e8154055
Update dependencies and repository info
2016-02-01 08:59:50 +09:00
Masahiro Yamauchi
2ad3171674
Rename
2016-02-01 08:56:15 +09:00
Nick Maynard
943c66a975
Update samples for DefaultValue
2016-01-31 21:12:16 +00:00
Nick Maynard
e29cf209c8
Only define @DefaultValue if it's specified in the swagger spec
2016-01-31 21:02:11 +00:00
Masahiro Yamauchi
cfcd6cbe48
Rename haskell to haskell-servant
2016-01-31 22:33:51 +09:00
wing328
0e0508cf5a
Merge pull request #1998 from WoodWing/master
...
Support file downloading in Java jersey2 client
2016-01-31 19:57:55 +08:00
Masahiro Yamauchi
4e3d94c005
Code generator for haskell-servant framework
2016-01-31 20:20:19 +09:00
wing328
5a53814346
add api info as file header to ruby templates
2016-01-31 17:08:47 +08:00
wing328
2471163d04
Merge pull request #1999 from wizardbyron/gradle_ide_plugins
...
[Java Client] Add Eclipse and IntelliJ IDEA support in build.gradle.mustache
2016-01-31 16:02:30 +08:00
wing328
047abc63a4
add test case for c# method
2016-01-31 12:49:32 +08:00
wing328
4ce255dc38
add unit test files for C#
2016-01-31 01:52:41 +08:00
wing328
587615b656
update c# readme with command to generate DLL
2016-01-30 23:06:45 +08:00
wing328
d5aa285926
fix file support in form parameter (qt5cpp)
2016-01-30 15:31:08 +08:00
wing328
f42f9acf35
Merge pull request #2003 from ad2games/non-explicit-ca-info-config
...
Don't force explicit configuration of CA cert location
2016-01-29 20:00:22 +08:00
chameleon82
46441433e8
initialize commit JaxRS-Resteasy module
2016-01-29 17:48:22 +06:00
Helge Rausch
f85f885191
Don't force explicit configuration of CA cert location
...
In order to allow openssl to figure out the location of CA certificates
on its own, don't apply the `ssl_ca_cert` configuration parameter if it
is not explicitly set.
2016-01-29 12:18:27 +01:00
wing328
59a75072fd
Merge pull request #1934 from xhh/ruby-binary
...
[Ruby] Support "binary" format for body parameter and response
2016-01-29 13:15:05 +08:00
wing328
7aaf97d3ce
Merge pull request #1975 from evigeant/fix-cli-options
...
Added missing cliOptions in some languages
2016-01-29 13:02:12 +08:00
Andrew Z Allen
b9eb26baff
Change indentation to +4 and map binary to string
2016-01-28 21:38:45 -07:00
xhh
172da5b2d8
Merge branch 'master' into ruby-binary
...
Conflicts:
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
2016-01-29 12:02:30 +08:00
xhh
ee1f401145
Merge branch 'master' into java-imports
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-01-29 11:16:14 +08:00
GU Yu (Byron)
06ef76631c
Add .gradle into .gitignore.
2016-01-29 01:23:45 +08:00
evigeant
4335dc5d16
Merge remote-tracking branch 'upstream/master' into fix-cli-options
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
2016-01-28 12:11:14 -05:00
GU Yu (Byron)
c7c983b733
Add gradle IDE support plugins
2016-01-29 00:41:46 +08:00
Maarten Groot
eee441b72a
Update Petstore Java jersey2 sample
2016-01-28 16:35:11 +01:00
Maarten Groot
77d39b9614
Fix indention
2016-01-28 16:09:16 +01:00
Maarten Groot
2efa50cb7f
Support file downloading in Java jersey2 client
2016-01-28 15:59:32 +01:00
evigeant
6db358dd39
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
2016-01-28 09:18:24 -05:00
Andrew Z Allen
b1a5080121
Add default includes for Array and Object.
2016-01-27 23:51:25 -07:00
Andrew Z Allen
af6926bd6f
Add sample output from Javascript Closure Angular
2016-01-27 23:29:51 -07:00
Andrew Z Allen
8ea7cbc79d
Add bash script to run
2016-01-27 23:29:17 -07:00
Andrew Z Allen
b950271940
Add a Javascript (Closure) Angular generator.
2016-01-27 23:02:25 -07:00
wing328
564fa04f7c
Merge pull request #1988 from wing328/maven_build_quiet3
...
Rebase on latest master for "Using logger instead of System.out #1871 "
2016-01-28 11:52:35 +08:00
wing328
f8b82e14fe
use logger.info to display command line result
2016-01-28 11:25:11 +08:00
Joseph Zuromski
33b5286ba3
fix issue 1992 - ensure that our variable names don't match the names of the generated enums or we will get a compiler error. Also fix the escaping of reserved words to use an underscore as the comment implies instead of the word Swagger.
2016-01-27 10:14:21 -08:00
Joseph Zuromski
f435cb65ce
fix issue 1989: generate AnyObject type from json object type instead of generating strings
2016-01-27 09:39:42 -08:00
N090536
16f9c8f7dd
Changing to INFO level in order for the following switches to work as
...
expected:
-DdebugModels
-DdebugOperations
-DdebugSupportingFiles
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
8c3bd60a53
Some more...
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
10a9316d75
Fixed some more indentations problems
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
68dc407f1d
Fiexd some indentation problem
2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2a9ead870c
Use LOGGER instead of LOG
...
Use spaces instead of tabs
2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2161907a8f
Using logger instead of System.out
2016-01-28 00:11:54 +08:00
wing328
daec1a7783
update clone URL
2016-01-27 16:43:18 +08:00
wing328
841d7dd6af
update instruction for running docker in vagrant
2016-01-27 16:41:55 +08:00
wing328
a856e6576d
Merge pull request #1943 from wizardbyron/vagrant_new
...
Run docker in vagrant
2016-01-27 16:34:47 +08:00
wing328
bfd17e45fe
Merge pull request #1980 from wing328/ruby_add_test
...
[Ruby] add auto-generated test cases (rspec)
2016-01-27 15:28:56 +08:00
wing328
d779174977
Merge pull request #1986 from xhh/javascript-superagent-version
...
[JavaScript] Lock version of superagent to fix testing issues
2016-01-27 14:37:30 +08:00
xhh
29885ab2ae
Lock version for superagent to 1.7.1
...
to avoid an unexpected behavior on request.header in 1.7.2:
Node version's request.header uses lower-case keys while browser
version's request.header keeps current case.
See also visionmedia/superagent#873
2016-01-27 12:06:22 +08:00
wing328
72d7acc06f
Merge pull request #1979 from wing328/ts_property_double_quote
...
[TypeScript] double quote model property name
2016-01-27 10:37:20 +08:00
Tony Tam
dfe1889436
Merge pull request #1983 from tambykojak/patch-1
...
Typo in README
2016-01-26 10:28:37 -08:00
Tamby Kojak
f12311307e
Typo in README
...
Clent -> Client
2016-01-26 13:18:55 -05:00
wing328
e4a991da0c
add auto-generated test case for ruby
2016-01-26 23:15:02 +08:00
wing328
535cc1dfa7
double quote model property in ts
2016-01-26 18:08:50 +08:00
wing328
f2ab4db419
Merge pull request #1965 from wing328/ts_option_property_naming
...
[TypeScript] add an option to determine property naming convention
2016-01-26 16:54:20 +08:00
wing328
afd451ec04
Merge pull request #1928 from ergon/feature/retrofit2-rx
...
Feature/retrofit2 rx
2016-01-26 15:58:08 +08:00
wing328
fc88cb9801
Merge pull request #1967 from wing328/support-jaxrs-cxf-2
...
[Java][JAX-RS] Support JAX-RS CXF
2016-01-26 15:46:54 +08:00
wing328
2e0047cf86
rename jarxs generator
2016-01-26 15:34:43 +08:00
wing328
2046580d41
update based on discussion on
...
https://github.com/swagger-api/swagger-codegen/pull/1967/files#r50697083
2016-01-26 15:23:50 +08:00
wing328
17f8931887
add default help text for new ts option
2016-01-26 15:02:26 +08:00
wing328
d5d1c7b98f
remove unused default value
2016-01-26 15:00:41 +08:00
wing328
abe039a05f
fix test case
2016-01-26 15:00:41 +08:00
wing328
218ea50d61
update ts samples
2016-01-26 15:00:41 +08:00
wing328
4971461a23
ts add option for model property naming
2016-01-26 15:00:41 +08:00
wing328
6c531142a9
Merge pull request #1969 from jimschubert/csharp_List_to_ICollection_Tests
...
[csharp] Model tests for List/Collection options
2016-01-26 14:45:47 +08:00
Tony Tam
decedb6c91
Merge pull request #1977 from swagger-api/issue-1976
...
added args for maven plugin
2016-01-25 22:08:22 -08:00
Tony Tam
3ddccb5e5c
fix for #1976 , added missing types
2016-01-25 21:34:28 -08:00
Tony Tam
b641d4a17a
refactored for access in maven plugin
2016-01-25 21:33:58 -08:00
wing328
ca941b1e3c
Merge pull request #1947 from xhh/javascript-default-headers
...
[JavaScript] Add default headers and some tests
2016-01-26 12:40:29 +08:00
evigeant
b61d76f291
Removed a duplicate cliOptions (it is already added by the base class)
2016-01-25 22:36:24 -05:00
evigeant
d0b99a0f83
Fixed options provider for all classes where cliOptions were added
2016-01-25 22:17:09 -05:00
evigeant
43807adf4f
Added missing cliOptions for JaxRSServerCodegen
2016-01-25 21:48:54 -05:00
evigeant
faadccf371
Added missing cliOptions for the StaticHtmlGenerator and
...
StaticDocGenerator
2016-01-25 21:39:58 -05:00
evigeant
f13b4deb2e
Added warnings when the additionalProperties are not defined in the
...
cliOptions of a language.
2016-01-25 21:22:18 -05:00
evigeant
68c6954615
Fixed indentation
2016-01-25 13:53:31 -05:00
evigeant
6b59dd0899
Allow mave-codegen-plugin to set additionalProperties even if they are
...
not declared in the cliOptions.
2016-01-25 13:51:42 -05:00
Jim Schubert
c9a0ff7482
[csharp] Model tests for List/Collection options
2016-01-25 12:45:44 -05:00
wing328
741974c1a9
add shell script for jaxrs-cxf
2016-01-25 22:23:25 +08:00
Silvio Heuberger
e34706386f
Change the artifact identifier for the retrofit2-rx sample
2016-01-25 10:29:13 +01:00
Silvio Heuberger
d60f7d1186
Change templates and test code so that the sample is 1.7 compatible
...
Alas.
2016-01-25 10:29:13 +01:00
Silvio Heuberger
8bb774f821
Add retrofit2rx sample to samples profile
...
This is so that the sample gets compiled
and executed on mvn verify.
2016-01-25 10:29:13 +01:00
Silvio Heuberger
042dd59a38
Add sample client usage for retrofit2 with rx adapter and java 8
2016-01-25 10:29:13 +01:00
Silvio Heuberger
7dcc1c839e
Add script for sample generation and adapt gradle and pom templates
2016-01-25 10:29:13 +01:00
Silvio Heuberger
886abda926
Add 'useRxJava' option to retrofit2 java client generator
...
This still uses retrofit 2.0.0-beta2 because the api
in beta3 has changed and the package
has been renamed to retrofit2.*
Change retrofit-rx to be a library option
2016-01-25 10:29:13 +01:00
Silvio Heuberger
06827da943
Remove retrofit remnant from javascript client code generator
...
I highly doubt this code is ever executed.
2016-01-25 10:28:08 +01:00
wing328
9e5e9cba8a
Merge pull request #1964 from jimschubert/csharp_List_to_ICollection
...
[csharp] Return ICollection<T> instead of List<T>
2016-01-25 14:28:20 +08:00
xhh
297597a86c
Merge branch 'master' into ruby-binary
2016-01-25 12:48:25 +08:00
xhh
8c19626095
Handle "binary" as String in Ruby client
...
as it seems weird to handle byte array (array of integer) in Ruby
2016-01-25 12:47:59 +08:00
Jim Schubert
b4eed0d147
Merge branch 'master' into csharp_List_to_ICollection
2016-01-24 23:00:56 -05:00
Jim Schubert
2e958f9223
[csharp] Collections options tests, fix model using directive
2016-01-24 22:55:37 -05:00
wing328
a0b4a07d08
Merge pull request #1960 from dilipkrish/master
...
Updated the code generation for spring mvc
2016-01-25 10:19:12 +08:00
wing328
fc83139483
resolve minor issue after rebase
2016-01-25 01:11:20 +08:00
Maelig Nantel
668610f7fc
Include JAX-RS CXF in the readme
2016-01-25 00:49:41 +08:00
Maelig Nantel
491f97f7ef
rename codegen names
2016-01-25 00:49:41 +08:00
Maelig Nantel
6d6f366db4
Finish
...
Tests ok. Some modifications may be done later, maybe...
2016-01-25 00:49:41 +08:00
Maelig Nantel
f3659f88a8
Work almost finish
...
Aask @wing328 if the modificatgion in the DefaultGenerator class is a
problem. If needed, find a way to do it only for the CXF Codegen.
TODO: Maybe create an abstract JAX-RS Codegen and make Jersey & CXF
extends it ? CXF should not extends Jersey since there at two different
frameworks implementing the JAX-RS specification.
Important: nothing is tested yet, only visual checks during Maven build.
2016-01-25 00:49:07 +08:00
Maelig Nantel
1dbc8a8552
Unit test correction
...
A unit test was in error due to a duplicate key in a map. Joda library
is now used by default for JAX-RS code generation.
2016-01-25 00:48:30 +08:00
Maelig Nantel
63b7e24c22
merge resolution
2016-01-25 00:48:30 +08:00
Maelig Nantel
3648a79965
Add CXF codegen
...
Also rename the existing JAX-RS codegen to JAX-RS-Jersey1 codegen, since
JAX-RS is only a specification. Jersey and CXF are both an
implementation of the JAX-RS specification.
2016-01-25 00:47:29 +08:00
Maelig Nantel
44c1e27680
Add mustache template files for Apache CXF support
...
probably not the final version of the templates
2016-01-25 00:46:02 +08:00
Jim Schubert
0bb30ddccd
Merge branch 'master' of github.com:swagger-api/swagger-codegen into csharp_List_to_ICollection
2016-01-24 09:35:46 -05:00
Jim Schubert
9dc40128ac
[csharp] Options: useCollection, returnICollection
...
This change is inline with Microsoft's recommended guidelines for
collects
(https://msdn.microsoft.com/en-us/library/dn169389(v=vs.110).aspx ).
Added generator options for csharp to:
* useCollection: Deserialize responses into and return Collection<T>
* returnICollection: For List<T> or Collection<T>, return ICollection<T>
instead of the concrete type
As a consequence of useCollection, method imputs will also change to
Collection<T>.
2016-01-24 09:13:39 -05:00
wing328
27d1e380b8
rename nodejs to nodejs-server
2016-01-24 22:08:05 +08:00
wing328
3086bb624f
Merge pull request #1941 from jhancock93/projectfile2
...
CSharp client: optionally build .csproj file
2016-01-24 12:50:40 +08:00
John Hancock
9edbfd6918
Fix csproj to use framework 4.5 instead of 4.5.2 and fix project file option description
2016-01-23 22:59:48 -05:00
wing328
421b70c259
Update CONTRIBUTING.md
2016-01-23 23:20:26 +08:00
wing328
530726911b
build status badge updated to svg
2016-01-23 23:06:10 +08:00
wing328
f0eb227fc7
add badges for PR and issue stats
2016-01-23 22:22:50 +08:00
Tony Tam
407c9121bf
switched from paramName to baseName to avoid changing format
2016-01-22 20:54:15 -08:00
Tony Tam
ee8547f3b4
Merge pull request #1900 from hiveship/fix-java-warnings
...
fix java warnings
2016-01-22 20:36:11 -08:00
Ron
ced433f912
Merge pull request #1962 from vanillajonathan/patch-1
...
Syntax highlighting
2016-01-22 16:25:31 -08:00
Jonathan
acb62810a9
Syntax highlighting
...
Syntax highlighting
2016-01-23 01:22:16 +01:00
Tony Tam
51c66a270e
Merge pull request #1958 from hjacobs/minor-python-flask-clean-up
...
Python Flask (Connexion) clean up
2016-01-22 14:05:45 -08:00
Tony Tam
e89bac3421
partial fix for #1956
2016-01-22 13:59:07 -08:00
hjacobs
4e9d1e8c79
re-generate flaskConnexion sample server with latest changes
2016-01-22 22:35:37 +01:00
hjacobs
103321d872
fix code formatting of flaskConnexion app.py and use more intuitive run(port=..)
2016-01-22 22:34:49 +01:00
hjacobs
aecc367e35
fix flaskConnexion README template to use correct URLs (contextPath is "/v2" for pet store)
2016-01-22 22:33:32 +01:00
Dilip Krishnan
dd6204019a
Updated the generated sample server
2016-01-22 15:32:41 -06:00
hjacobs
9ca83c0174
tweak FlaskConnexionCodegen help string
2016-01-22 22:32:37 +01:00
Dilip Krishnan
a33bff012c
Updated the spring mvc server template to springfox 2.3.1
2016-01-22 15:31:27 -06:00
Tony Tam
4b9aa25d63
Merge pull request #1957 from hjacobs/bugfix/issue-1955-readme-fix-python-flask
...
#1955 fix command in README: flaskConnexion -> python-flask
2016-01-22 13:07:11 -08:00
hjacobs
3cd124603c
#1955 fix command in README: flaskConnexion -> python-flask
2016-01-22 22:05:09 +01:00
wing328
d44aa82cc4
Merge pull request #1950 from akkie/master
...
Namespace is missing for SplFileObject reference
2016-01-22 21:43:09 +08:00
Christian Kaps
618351c11c
Namespace is missing for SplFileObject reference
2016-01-22 12:17:58 +01:00
xhh
794589d6b8
JavaScript: add default headers and some tests
2016-01-22 18:46:29 +08:00
Maelig Nantel
4c7d471203
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java
2016-01-22 11:32:08 +01:00
wing328
a550eec389
Merge pull request #1942 from xhh/javascript-fixes
...
[JavaScript] Fix initialization issues on array and nested model fields
2016-01-22 18:15:20 +08:00
wing328
5d3c8fb811
Merge pull request #1945 from wizardbyron/remove_wrong_tests
...
Remove useless tests
2016-01-22 18:00:02 +08:00
wing328
5b6d224612
Merge pull request #1747 from wing328/add_golang
...
[Go] Add Go API client generator
2016-01-22 17:42:30 +08:00
GU Yu (Byron)
cad64724a5
Remove useless tests
2016-01-22 17:39:25 +08:00
wing328
20e531d6dd
update test case, add beta to go help
2016-01-22 17:27:30 +08:00
wing328
25b60a194b
add sh script for go, add binary mapping for go, fix format
2016-01-22 17:21:51 +08:00
GU Yu (Byron)
66799bc695
Merge branch 'master' into vagrant_new
2016-01-22 16:12:06 +08:00
GU Yu (Byron)
f15341efae
Run docker in vagrant
2016-01-22 14:34:13 +08:00
xhh
f1aeb36e6c
Update JavaScript style guide's link to ES5
2016-01-22 12:02:01 +08:00
xhh
a607856406
JavaScript: fix model name in initialization and import
...
Closes #1935
2016-01-22 11:48:59 +08:00
John Hancock
277e7cfa8d
Remove defaultValue from project guid cliOption because the guid is a random value
2016-01-21 22:47:53 -05:00
xhh
16e367bdc8
JavaScript: fix constructFromObject for Array fields
...
Closes #1721
2016-01-22 11:23:45 +08:00
wing328
03b463bc43
Merge pull request #1920 from Shyri/android-volley-library
...
Android volley library enhancement and tests
2016-01-22 10:52:26 +08:00
John Hancock
60c79d1cae
Fix assembly references in project file generation
2016-01-21 21:16:09 -05:00
wing328
53abd8a8fb
Merge pull request #1898 from xhh/java-binary-support
...
[Java okhttp-gson] Support "binary" (byte array) for body parameter and response
2016-01-22 00:03:14 +08:00
Maelig Nantel
87182124a9
Merge branch 'master' into fix-java-warnings
2016-01-21 11:23:11 +01:00
Maelig Nantel
94315a249d
Merge branch 'java-support-uuid-generation' into fix-java-warnings
2016-01-21 11:21:22 +01:00
Maelig Nantel
687c2b1431
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
2016-01-21 11:17:32 +01:00
wing328
ae342a07cf
remove var_dump
2016-01-21 11:13:16 +01:00
wing328
43731403a8
add test cases for findPetsByTags
2016-01-21 11:13:16 +01:00
xhh
1f072a697b
Fix Ruby tests of the Petstore sample
2016-01-21 11:13:15 +01:00
xhh
dc32ac18b7
Fix tests of UserAPI
2016-01-21 11:13:14 +01:00
wing328
7f2b3a5587
update csharp readme
2016-01-21 11:13:14 +01:00
xhh
08a2d0d941
Try fixing occasional testing failuers in Java client
...
by using random and atomically increasing IDs
2016-01-21 11:13:13 +01:00
wing328
ec2655165f
Add style guide for JS
2016-01-21 11:13:13 +01:00
xhh
81ed441dfa
Use String for "binary" as a workaronud
2016-01-21 11:13:12 +01:00
xhh
ecbc4a147c
Set accept header for JavaScript client
2016-01-21 11:13:12 +01:00
wing328
93cadcd755
make slim sh executable
2016-01-21 11:13:11 +01:00
wing328
83a4556803
fix silex shell script
2016-01-21 11:13:11 +01:00
wing328
7c619b244f
fix byte[] in spring mvc and java inflector
2016-01-21 11:13:10 +01:00
xhh
c1d5179d72
Some cleanup
2016-01-21 11:13:09 +01:00
xhh
6efbde5691
Make JavaScript client work in both Node.js and browser
...
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-21 11:13:09 +01:00
wing328
a2cb3f7c3c
add comments
2016-01-21 11:13:08 +01:00
wing328
51f2f8c6ad
add test template for php
2016-01-21 11:13:07 +01:00
wing328
f90bd85a4f
fix typo Configuraiton
2016-01-21 11:13:07 +01:00
wing328
6d010f9af7
fix typo
2016-01-21 11:13:06 +01:00
wing328
fb1cc254e4
add api test and model test files
2016-01-21 11:13:05 +01:00
wing328
ccd0db4434
fix empty object serialization issue
2016-01-21 11:13:05 +01:00
wing328
58d920eaf0
update tostring to use sanitizeforserialization
2016-01-21 11:13:04 +01:00
wing328
40796b3f4c
update comment in csharp test
2016-01-21 11:13:03 +01:00
wing328
7a5d9412c5
update csharp configuration to avoid circular dependency, deprecate
...
ApiClient.Default
2016-01-21 11:13:03 +01:00
xhh
aad0547b40
Ruby: support binary (byte array) for body parameter and response
2016-01-21 18:01:03 +08:00
xhh
253a955cff
Merge branch 'master' into java-binary-support
...
Conflicts:
samples/client/petstore/java/default/src/test/java/io/swagger/petstore/test/PetApiTest.java
samples/client/petstore/java/jersey2/src/test/java/io/swagger/petstore/test/PetApiTest.java
samples/client/petstore/java/okhttp-gson/src/test/java/io/swagger/petstore/test/PetApiTest.java
2016-01-21 17:28:14 +08:00
Shyri Villar
877661a1f4
Add OAuth stub [androiod-volley]
2016-01-20 20:59:55 +01:00
Shyri Villar
7f03d5c69e
Added PetApiTest [android-volley]
2016-01-20 20:49:37 +01:00
Shyri Villar
407837ebe2
Added configurable timeout
2016-01-20 20:11:36 +01:00
Shyri Villar
92e7d0e69c
fix ApiKeyAuth applyToHeader when no api-key is provided
2016-01-20 19:59:28 +01:00
wing328
5d156916d7
Merge pull request #1930 from wing328/php_fix_deserialization
...
[PHP] add test cases for findPetsByTags
2016-01-21 00:23:54 +08:00
wing328
751b4cd832
remove var_dump
2016-01-20 21:46:10 +08:00
wing328
9b8b1fbb7f
Merge pull request #1922 from xhh/javascript-nodejs
...
[JavaScript] Make JavaScript client work in both Node.js and browser
2016-01-20 21:44:44 +08:00
wing328
058b408dfb
add test cases for findPetsByTags
2016-01-20 21:42:51 +08:00
xhh
34a941f352
Improve imports in api/models of Java clients
...
Closes #1810
2016-01-20 16:49:25 +08:00
wing328
7772c702ce
Merge pull request #1925 from wing328/csharp_update_readme
...
[C#] update README based on developer's feedback
2016-01-20 14:57:56 +08:00
xhh
8ff488cc01
Fix Ruby tests of the Petstore sample
2016-01-20 14:47:03 +08:00
xhh
5eb1cc04b9
Fix tests of UserAPI
2016-01-20 12:16:38 +08:00
wing328
cb8c3dfc2e
update csharp readme
2016-01-20 12:00:57 +08:00
xhh
1ddc91b8a9
Try fixing occasional testing failuers in Java client
...
by using random and atomically increasing IDs
2016-01-20 11:55:04 +08:00
wing328
75a932bf45
Merge pull request #1912 from wing328/csharp_update_test2
...
[C#] store ApiClient default in Configuration.Default
2016-01-20 11:26:05 +08:00
wing328
e72f8b17f3
Add style guide for JS
2016-01-20 10:58:49 +08:00
xhh
3b5462c1e9
Use String for "binary" as a workaronud
2016-01-20 10:34:36 +08:00
xhh
9c580a2447
Set accept header for JavaScript client
2016-01-20 10:29:09 +08:00
wing328
b21c5f08a7
Merge pull request #1921 from wing328/php_generate_test
...
[PHP] generate files for unit testing models and API files
2016-01-20 10:05:20 +08:00
John Hancock
629567c5ac
Fix project file option handling
2016-01-19 21:00:55 -05:00
John Hancock
b4bce238c2
CSharp: Optionally build csproj file
2016-01-19 21:00:54 -05:00
wing328
719056cf11
Merge pull request #1923 from wing328/java_server_fix_binary
...
[Java] fix binary in Java spring and inflector generator
2016-01-20 09:15:06 +08:00
wing328
2b09e8f3e5
make slim sh executable
2016-01-19 23:39:07 +08:00
wing328
a4eb5a8fa0
fix silex shell script
2016-01-19 23:35:59 +08:00
wing328
38bac9dfb4
fix byte[] in spring mvc and java inflector
2016-01-19 23:35:23 +08:00
xhh
40d83e7f52
Some cleanup
2016-01-19 22:52:05 +08:00
xhh
14630c7632
Make JavaScript client work in both Node.js and browser
...
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-19 22:21:36 +08:00
wing328
61c717b6de
add comments
2016-01-19 19:50:27 +08:00
wing328
8927c1dc0f
add test template for php
2016-01-19 14:49:32 +08:00
wing328
3269a84632
fix typo Configuraiton
2016-01-19 10:42:17 +08:00
wing328
731fd4be33
fix typo
2016-01-19 10:40:43 +08:00
Shyri Villar
060f0f33c2
add test dependencies [android-volley-library]
2016-01-18 22:11:11 +01:00
Shyri Villar
97e1d1e273
fix networ error excetption for synchronous requests [android-volley-library]
2016-01-18 22:06:02 +01:00
Shyri Villar
51468503b2
fix post, put, delete and patch when body is null [android-volley-library]
2016-01-18 22:05:36 +01:00
wing328
86587607e1
add api test and model test files
2016-01-19 00:51:21 +08:00
wing328
0fa1b1a9f9
Merge pull request #1916 from wing328/php_model_str_to_json
...
[PHP] fix __toString for nested models
2016-01-18 22:57:38 +08:00
wing328
dcd2c00fe6
fix empty object serialization issue
2016-01-18 21:42:24 +08:00
wing328
9fd4f39c8c
update tostring to use sanitizeforserialization
2016-01-18 21:27:29 +08:00
Maelig Nantel
a0424433d0
Merge remote-tracking branch 'refs/remotes/swagger-api/master'
2016-01-18 11:53:30 +01:00
wing328
275269e72a
fix indent, update perl & python sample
2016-01-18 11:53:18 +01:00
wing328
f4639f4b7b
add binary mapping for code generator
2016-01-18 11:53:18 +01:00
wing328
f4120893b3
fix null apiclient in .net (windows)
2016-01-18 11:53:17 +01:00
Tony Tam
835da98582
fixed templates
2016-01-18 11:53:16 +01:00
Tony Tam
09e32bb959
added date library option
2016-01-18 11:53:16 +01:00
Ole Lensmar
a39a89521f
fixed cmdline class in custom template examples
2016-01-18 11:53:15 +01:00
Tony Tam
06ac073740
Update README.md
2016-01-18 11:53:14 +01:00
Maelig Nantel
6e69d4e007
Corrent issue 1885
...
Handle the Swagger "default" value for a parameter with the JAX-RS
@DefaultValue annotation. This correction will also be reported in the
new JAX-RS CXF Codegen.
2016-01-18 11:53:13 +01:00
Maelig Nantel
370a8d136f
fixes
2016-01-18 11:35:57 +01:00
Maelig Nantel
89ed3bdb75
New fix
2016-01-18 11:16:04 +01:00
Maelig Nantel
b292ce54ce
Update after merging
2016-01-18 10:10:55 +01:00
Maelig Nantel
a39942f43f
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
2016-01-18 10:10:27 +01:00
wing328
7b1dde3d85
Merge pull request #1911 from wing328/mapping_update_binary
...
Add "binary" mapping in code generators
2016-01-18 12:29:18 +08:00
wing328
d04d554e0a
update comment in csharp test
2016-01-18 11:45:13 +08:00
wing328
417dcc8a86
update csharp configuration to avoid circular dependency, deprecate
...
ApiClient.Default
2016-01-18 11:39:32 +08:00
wing328
e2f646039c
Merge pull request #1904 from swagger-api/olensmar-patch-1
...
fixed cmdline class in custom template examples
2016-01-18 10:08:59 +08:00
wing328
7e6f1f8bf3
Merge pull request #1909 from wing328/csharp_fix_null_apiclient
...
[C#] fix null ApiClient issue in .net (windows)
2016-01-17 23:45:18 +08:00
wing328
bfc83b330f
fix indent, update perl & python sample
2016-01-17 19:32:50 +08:00
wing328
906bd2c7bf
add binary mapping for code generator
2016-01-17 19:14:11 +08:00
wing328
1bae5c44b2
fix null apiclient in .net (windows)
2016-01-17 16:04:13 +08:00
Tony Tam
bde2bbab56
Merge pull request #1906 from swagger-api/issue-1905
...
added date library option
2016-01-15 16:15:41 -08:00
Tony Tam
70784a3d98
fixed templates
2016-01-15 14:28:55 -08:00
Tony Tam
04e0df3b4a
added date library option
2016-01-15 14:20:20 -08:00
Ole Lensmar
e3d8eb0e0a
fixed cmdline class in custom template examples
2016-01-15 14:02:35 -05:00
Tony Tam
0c2376b429
Update README.md
2016-01-15 09:35:41 -08:00
Tony Tam
e50dc04418
Merge pull request #1902 from hiveship/issue-1885
...
Correct issue 1885
2016-01-15 08:33:33 -08:00
Maelig Nantel
8005931e5a
Corrent issue 1885
...
Handle the Swagger "default" value for a parameter with the JAX-RS
@DefaultValue annotation. This correction will also be reported in the
new JAX-RS CXF Codegen.
2016-01-15 16:49:36 +01:00
Maelig Nantel
467939216c
fix java warnings
...
Do not impact any feature. Juste correct some Java warnings (static
methods, unused imports or parameters...).
2016-01-15 14:02:55 +01:00
Maelig Nantel
faa4ecd0cd
Support java code generation for UUIDProperty
...
A property defined as "type: string & format: uuid" is now generated in
Java using "java.util.UUID" class instead of a classical String. In the
Java, the UUID class do not provide a constructor. You may use the
method UUID.fromString(<uuid_string>) to construct your UUID object.
2016-01-15 12:39:25 +01:00
xhh
319c260678
Java okhttp-gson: support binary (byte array)
...
for body parameter and response.
Also Update Java default, jersey2 and okhttp-gson clients to support
(constant) query string in the `path` (to work with the 2 "fake"
petstore endpoints on binary).
2016-01-15 19:33:33 +08:00
wing328
2a5bd0a80e
Merge pull request #1897 from wing328/perl_fix_replaceall
...
[Perl] fix replaceAll to avoid index out of bound exception in Windows
2016-01-15 16:54:22 +08:00
wing328
bfb8cdce2e
fix another replaceall in perl codegen
2016-01-15 16:03:35 +08:00
wing328
cbbb48a4e4
fix file.separator in replaceall (perl)
2016-01-15 15:47:40 +08:00
wing328
e0738d2bc6
Merge pull request #1891 from wing328/php_binary_support
...
[PHP] addd binary support to response and body parameter
2016-01-15 13:52:30 +08:00
wing328
fee8acef97
fix isBinary, CodegenParameter copy, add isBinary to php api client
2016-01-15 11:43:02 +08:00
wing328
c7b9635e98
add test cases for byte array (body)
2016-01-15 11:43:02 +08:00
wing328
f54185c66d
add binary support for php response
2016-01-15 11:43:02 +08:00
wing328
078f68a211
Merge pull request #1876 from xhh/file-downloading-fixes
...
File downloading improvements for Ruby and Java
2016-01-15 11:25:25 +08:00
wing328
0c4cc10095
Merge pull request #1882 from scottrw93/master
...
Fix for Jaxrs file upload missing param in service class
2016-01-15 11:22:37 +08:00
wing328
56f8d5f9e2
Merge pull request #1886 from bakito/master
...
skip trailing comma for enums in TypeScript angular
2016-01-15 11:02:58 +08:00
wing328
e1f18527f3
Merge pull request #1884 from wing328/csharp_filename_security
...
[C#] sanitize filename for C# API client
2016-01-15 10:37:50 +08:00
11356176
52df082b13
Update pet store for jaxrs
2016-01-14 21:39:08 +00:00
11356176
b439bf020e
Update pet store for Jaxrs
2016-01-14 20:54:47 +00:00
xhh
521ba9924b
Add a method to sanitize filename, add test cases
2016-01-14 23:06:30 +08:00
bakito
341c840bf9
regenerate petshop code
2016-01-14 14:51:06 +01:00
Marc Brugger
198310d5f2
skip trailing comma for enums
2016-01-14 14:06:00 +01:00
tkb16
f1710a1840
skip trailing comma for enums
2016-01-14 12:51:02 +01:00
wing328
f50463da02
fix security issue with filename for c# api client
2016-01-14 10:43:56 +08:00
11356176
c2a001847f
Merge remote-tracking branch 'upstream/master'
2016-01-13 18:14:06 +00:00
Scott Williams
e01cde8010
Fix for Jaxrs file upload service class missing param
2016-01-13 15:18:33 +00:00
wing328
13d5bcfa4d
Merge pull request #1881 from mkrufky/patch-1
...
README.md: Validating your OpenAPI Spec should point to #validating-your-openapi-spec
2016-01-13 21:41:46 +08:00
Michael Ira Krufky
62e19c20e2
README.md: Validating your OpenAPI Spec should point to #validating-your-openapi-spec
2016-01-13 08:15:20 -05:00
John Hancock
584ea2862c
CSharp: Optionally build csproj file
2016-01-12 21:55:17 -05:00
wing328
ece56af43c
Merge pull request #1874 from cbornet/fix_param
...
[Feign]Fix wrong query param key name in feign client
2016-01-12 20:06:29 +08:00
wing328
c110270cf4
Merge pull request #1878 from xhh/ruby-test-fix
...
Ruby: fix testing issue of deleting nonexistent pet
2016-01-12 19:47:46 +08:00
xhh
637cae153c
Ruby: fix testing issue of deleting nonexistent pet
2016-01-12 18:12:54 +08:00
wing328
24980ea1c6
Merge pull request #1866 from xhh/java-okhttp-gson-debugging
...
[Java okhttp-gson] Implement the "debugging" option of ApiClient
2016-01-12 16:53:39 +08:00
xhh
ef8d2fd766
Ruby: IO improvements on file downloading
...
- Use `File.basename` to sanitize the filename got from response header
- Write to the `Tempfile` directly and return it
- Set file encoding according to the response body's encoding
See #1848
2016-01-12 11:59:41 +08:00
wing328
8b430cdeb0
Merge pull request #1864 from wing328/csharp_binary_response
...
[C#] add binary support
2016-01-12 11:58:28 +08:00
wing328
d35d97d145
Merge pull request #1865 from wing328/php_fix_file_security
...
[PHP] better filename handling in ObjectSerializer
2016-01-12 11:28:59 +08:00
wing328
be49dc58bd
Merge pull request #1857 from erikvanzijst/erik/java_object_naming_clash
...
Java Class Name Clashes with java.lang.*
2016-01-12 10:57:53 +08:00
wing328
ef8e5dbcf5
Merge pull request #1862 from cbornet/feign_auth
...
Add auth support to feign library
2016-01-12 09:27:51 +08:00
cbornet
07947d8cad
fix wrong query param key name
2016-01-11 22:25:56 +00:00
Shyri Villar
d40bb8ad32
[android-volley] Added synchronous request support
2016-01-11 23:18:18 +01:00
cbornet
5e4db995c9
add oauth support to feign client
2016-01-11 22:16:01 +00:00
cbornet
58c0e63012
add auth support to feign library
...
Fix #1840
2016-01-11 22:16:01 +00:00
Shyri Villar
59b91c2120
[android-volley] improved RequestQueue configuration and decoupled ApiInvoker from Android Context
2016-01-11 21:18:28 +01:00
xhh
3c6639b4f6
Remove path delimiters from downloading filename
2016-01-11 22:13:07 +08:00
wing328
81436e8ae3
Merge pull request #1839 from Shyri/android-volley-library
...
Android volley fix responses with additionalProperties and update sdk version
2016-01-11 22:11:44 +08:00
wing328
cba7e063e1
add test case for objectserializer
2016-01-11 21:01:02 +08:00
xhh
b87d6a0f36
Java okhttp-gson: implement the "debugging" option
...
for ApiClient and upgrade OkHttp
2016-01-11 18:10:02 +08:00
wing328
3099aa2d85
Merge pull request #1853 from xhh/java-timeout
...
[Java] Support setting connect timeout for the default and jersey2 clients
2016-01-11 17:10:22 +08:00
wing328
eebf743fad
better filename handling in objectseralizer (php)
2016-01-11 16:16:49 +08:00
wing328
3c48202bee
Merge pull request #1833 from frinux/patch-1
...
projectName support to fill package.json template
2016-01-11 12:08:31 +08:00
wing328
391eb1bcb0
Merge pull request #1834 from frinux/patch-2
...
Fixed bug: basePath should not be empty
2016-01-11 11:57:26 +08:00
wing328
e0f43c1c58
add binary support to C# client
2016-01-11 00:45:57 +08:00
wing328
ce82aa41fc
Merge pull request #1863 from wing328/csharp_package_config
...
[C#] Fix comments and add compile-mono.sh
2016-01-10 15:03:59 +08:00
wing328
e1348e7871
add new files for c#
2016-01-10 02:29:58 +08:00
wing328
08756413dc
fix comment in csharpdonet2.0
2016-01-10 00:31:37 +08:00
wing328
6b7439b9d9
add compile-mono, fix csharp comment
2016-01-10 00:17:55 +08:00
wing328
ed2cb1d2e4
Merge pull request #1859 from jhancock93/datetimeoffset2
...
CSharp client: Add support for DateTimeOffset and sourceFolder configuration.
2016-01-09 21:13:01 +08:00
Tony Tam
67e91cdb07
Merge pull request #1861 from erikvanzijst/erik/recursive_equals
...
#1858 : The Java equals/hashcode methods ignores state from superclasses
2016-01-08 15:36:06 -08:00
Erik van Zijst
dbe62bee37
#1858 : The Java equals/hashcode methods ignores state from superclasses
...
This fixes equals/hashCode for derived classes.
2016-01-08 15:11:59 -08:00
Erik van Zijst
995869f4d5
Java Class Name Clashes with java.lang.*
...
A swagger file that contains a definition named "object" compiles into a
class named Object. This is technically not a problem as it lives in a
different package than java.lang.Object, but this requires the templates to
refer to Java's Object using its fully qualified name.
2016-01-08 11:07:18 -08:00
John Hancock
2a7fc2d00e
Fixed whitespace/tab issues
2016-01-08 13:06:25 -05:00
John Hancock
ebe090572f
CSharp: add support for DateTimeOffset and sourceFolder configuration options
...
Adds option to use DateTimeOffset to model datetime fields instead of
DateTime to allow preservation of timezone information. Modifies
ApiClient.ParameterToString to support DateTimeOffset. Also adds
sourceFolder option.
2016-01-08 13:03:33 -05:00
John Hancock
5f9164049c
CSharp: add support for DateTimeOffset and sourceFolder configuration
2016-01-08 13:03:24 -05:00
frinux
15676ff72e
Update NodeJSServerCodegen.java
...
projectName was already defined so never overriden.
2016-01-08 16:19:46 +01:00
frinux
6064f32ba5
Compilation error fixed
...
io.swagger.models.Info dependency added
2016-01-08 16:19:46 +01:00
frinux
4f715342a1
projectName support to fill package.json template
...
Inspired by ClojureClientCodegen.java, it is interesting to use projectName from info.title swagger spec to fill up package.json name attribute
2016-01-08 16:19:46 +01:00
frinux
b6e8ad56b5
Fixed bug: basePath should not be empty
...
This last change was producing a wrong swagger spec
@see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
"The value MUST start with a leading slash (/)"
2016-01-08 16:14:50 +01:00
wing328
170bde65e5
Fix link to 2.1.5
2016-01-08 19:55:31 +08:00
wing328
e3b5176792
Merge pull request #1831 from xhh/ruby-deserialize-test
...
Add test cases of nested array/map deserialization to Ruby petstore sample
2016-01-08 19:07:00 +08:00
xhh
3d65218619
Java jersey2 client: get/set connect timeout
2016-01-08 19:05:43 +08:00
wing328
3639cb5bca
Merge pull request #1851 from wing328/csharp_assembly_optional
...
[C#] add cli option to optionally generate Assemblyinfo.cs
2016-01-08 18:33:15 +08:00
xhh
9657d4437e
Java client: get/set connect timeout, fix "debugging"
2016-01-08 17:45:29 +08:00
wing328
468a13dc96
add cli option to optionally generate assemblyinfo.cs (default: true)
2016-01-08 17:03:57 +08:00
Shyri Villar
4261fe402c
android-volley-library updated android sdk, buildtools and target versions
2016-01-08 09:28:00 +01:00
Shyri Villar
9fefd1e7e5
Fixed android-volley-library responses when additionalProperties is present. Clean responses mechanism using volley default's
2016-01-08 09:27:59 +01:00
wing328
8bd7640512
Merge pull request #1838 from expectedbehavior/ruby-el-capitan
...
Minimal update for Ruby testing on El Capitan
2016-01-08 14:55:14 +08:00
wing328
c993b2bd70
Merge pull request #1832 from wing328/php_array_test
...
[PHP] add more test case for php (array of array, map of map)
2016-01-08 14:39:23 +08:00
wing328
a7ff6e22ab
update php sample before runnning CI tests
2016-01-08 14:07:05 +08:00
wing328
a8f5809370
replace httpHeader with httpHeaders in php object serializer
2016-01-08 14:04:10 +08:00
Tony Tam
94abbbdca7
fixed variable
2016-01-07 21:26:19 -08:00
Tony Tam
1b5a7be56d
updated .travis
2016-01-07 21:11:00 -08:00
Tony Tam
7c3406804d
updated versions
2016-01-07 20:43:49 -08:00
xhh
0a3b72cdf9
Add test cases of nested array/map deserialization to Ruby
...
petstore sample
2016-01-08 10:47:08 +08:00
wing328
61e6cbef66
fix httpHeader (remove s)
2016-01-08 10:37:48 +08:00
wing328
64427a16d1
add more test case for php (array of array, map of map)
2016-01-08 10:34:19 +08:00
Tony Tam
60bb355ec2
Merge pull request #1846 from swagger-api/KevinGlinski-master-travis
...
Kevin glinski master travis
2016-01-07 16:18:02 -08:00
Tony Tam
f60c46df4b
Merge branch 'KevinGlinski-master'
2016-01-07 15:40:23 -08:00
Tony Tam
66e3cac8db
Merge branch 'master' of https://github.com/KevinGlinski/swagger-codegen into KevinGlinski-master
2016-01-07 15:40:01 -08:00
Elijah Miller
c0da950fce
Minimal update for Ruby testing on El Capitan.
2016-01-07 18:17:07 -05:00
Tony Tam
30cdb791c3
Merge pull request #1845 from swagger-api/wing328-android_reserved_word-travis
...
Wing328 android reserved word travis
2016-01-07 15:16:16 -08:00
Tony Tam
bf012f973b
Merge branch 'wing328-android_reserved_word'
2016-01-07 14:53:02 -08:00
Tony Tam
e63a4c6651
Merge branch 'android_reserved_word' of https://github.com/wing328/swagger-codegen into wing328-android_reserved_word
2016-01-07 14:52:40 -08:00
Tony Tam
2cf122add6
Merge pull request #1844 from swagger-api/arnested-java-8-doc-travis
...
Arnested java 8 doc travis
2016-01-07 14:51:33 -08:00
Tony Tam
309906ce3a
updated travis file
2016-01-07 14:35:47 -08:00
Tony Tam
939f0a45ca
Merge branch 'arnested-java-8-doc'
2016-01-07 14:35:17 -08:00
Kevin Glinski
06717fb307
Merge remote-tracking branch 'upstream/master'
2016-01-07 16:35:08 -05:00
Arne Jørgensen
b256ccb045
Document Java 8 as requirement.
2016-01-07 22:01:22 +01:00
Tony Tam
503fb83e25
Merge pull request #1841 from swagger-api/travis-fix
...
Travis fix
2016-01-07 12:13:31 -08:00
Tony Tam
352b4ea923
travis
2016-01-07 11:19:29 -08:00
Tony Tam
4fe6381fcf
updated travis
2016-01-07 11:03:24 -08:00
Tony Tam
771ddccbe9
updated jersey version
2016-01-07 08:42:21 -08:00
wing328
f7ceace086
Added URL to public docker image
...
URL added: https://hub.docker.com/r/swaggerapi/swagger-generator/
2016-01-07 21:21:06 +08:00
wing328
0bdff1c50b
update reserved word to include local variable names for android, scala
2016-01-07 11:33:16 +08:00
wing328
fc218d0b4f
Merge pull request #1812 from captin411/perl-flexible-module-name
...
[Perl] more flexible perl module naming (Allow::This even without WWW::)
2016-01-07 10:37:45 +08:00
Kevin Glinski
3465a746d3
adding configurable options to the gemspec file
2016-01-06 21:02:29 -05:00
Ron
3a2ad9e2e4
Happy new year!
2016-01-06 16:04:16 -08:00
Tony Tam
cc0d29f3ec
fixed javadoc plugin
2016-01-06 12:30:24 -08:00
Tony Tam
ccea106148
Merge pull request #1827 from swagger-api/release-prepare
...
updated versions
2016-01-06 10:16:30 -08:00
Tony Tam
d4d4c43032
updated versions
2016-01-06 09:47:32 -08:00
Tony Tam
8c8e3227d9
Merge pull request #1826 from swagger-api/issue-1825
...
added serverPort detection from the spec
2016-01-06 09:41:06 -08:00
Tony Tam
ab91fc8c78
Merge pull request #1824 from wing328/php_update_reserved_wrod
...
Update reserved word list to include local variable names in API methods
2016-01-06 09:36:00 -08:00
Tony Tam
1110bd7a08
added to templates
2016-01-06 09:31:14 -08:00
Tony Tam
151de79a98
formatting
2016-01-06 09:31:06 -08:00
wing328
61bf45bda4
update typescript reserved word list to include local variable names
...
used in api methods
2016-01-06 23:58:58 +08:00
wing328
30445633d6
update objc reserved word list to include local variable name in api
...
methods
2016-01-06 23:58:58 +08:00
wing328
f033f59867
update reserved word list for C# .net 2.0 with local variable name in
...
api method
2016-01-06 23:58:58 +08:00
wing328
eeaf832cae
update csharp reserved words with local variable names in api methods
2016-01-06 23:58:58 +08:00
wing328
22b5f02ec3
update python reserved words to include local variable names in api
...
methods
2016-01-06 23:58:58 +08:00
wing328
9ab27cd848
update reserved words for php and ruby to include local variable names
...
in api methods
2016-01-06 23:58:58 +08:00
Tony Tam
19ff7dc19c
pom updates
2016-01-06 06:30:25 -08:00
Tony Tam
55cdf68192
Merge pull request #1823 from swagger-api/issue-1822
...
Added duplicate operation ID generation
2016-01-06 06:25:44 -08:00
Tony Tam
19c81bf7bd
fix, tests for #1822
2016-01-06 05:29:44 -08:00
Tony Tam
8923a541c0
Merge pull request #1821 from swagger-api/issue-1819
...
adds a parentSchema name, escapes reserved words in java client
2016-01-05 16:53:07 -08:00
Tony Tam
ed4a729cd2
added internal names to reserved words list
2016-01-05 16:40:17 -08:00
Tony Tam
b074bfb852
updted to jdk
2016-01-05 16:12:40 -08:00
Tony Tam
e82c12ccf8
updated tests, added parentSchema
2016-01-05 16:12:03 -08:00
Tony Tam
5a956df108
updated jdk version
2016-01-05 16:11:17 -08:00
Tony Tam
d5f17a1c3b
Merge pull request #1818 from swagger-api/issue-1817
...
updated parentModel names in inheritence situations
2016-01-05 15:22:22 -08:00
Tony Tam
ba9bd11a8d
updated parentModel names in inheritence situations
2016-01-05 14:58:36 -08:00
Tony Tam
e83cea0a48
Update Dockerfile
2016-01-05 12:30:02 -08:00
Tony Tam
3d6a3e28c2
Update .travis.yml
2016-01-05 12:29:48 -08:00
Tony Tam
4a56369662
Update README.md
2016-01-05 12:25:22 -08:00
Tony Tam
19beb90c27
Update .travis.yml
2016-01-05 12:23:38 -08:00
Tony Tam
8d120a0330
updated scripts
2016-01-05 06:08:22 -08:00
Tony Tam
e1afe7da65
remove println
2016-01-05 05:02:45 -08:00
Tony Tam
380d8c1d15
added config help, example for https://github.com/swagger-api/swagger-codegen/pull/1784#issuecomment-168599569
2016-01-05 05:02:05 -08:00
Tony Tam
ceadea10aa
Merge pull request #1813 from swagger-api/issue-1811
...
added Docker support
2016-01-05 04:31:49 -08:00
Tony Tam
69e7990fe1
updated to enable docker
2016-01-05 04:08:52 -08:00
Tony Tam
a57be19870
updated to install bundler
2016-01-05 03:59:55 -08:00
wing328
1acf5d2ff4
Merge pull request #1816 from xhh/android-volley-library
...
[Android] Change the android-volley client codegen to an Android library (sub template)
2016-01-05 17:19:05 +08:00
wing328
0635c60cf1
Merge pull request #1815 from wing328/java_server_fix_import
...
[Java] To fix missing imports in inline models in server templates
2016-01-05 17:06:36 +08:00
xhh
beabe8cda2
Merge branch 'master' into android-volley-library
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AndroidClientCodegen.java
2016-01-05 16:39:15 +08:00
wing328
e21edea98c
add sh to generate all java petstore client
2016-01-05 15:07:48 +08:00
wing328
3eb78b12ef
Merge pull request #1814 from wing328/master
...
[Java] To fix missing imports in inline models for java (retrofit, okhttp)
2016-01-05 15:05:40 +08:00
wing328
5a74370180
fix import for java server templates
2016-01-05 15:02:18 +08:00
wing328
99d19575f0
fix missing object import in java (retrofit, okhttp)
2016-01-05 14:44:26 +08:00
Tony Tam
fe151bcb67
.
2016-01-04 21:12:43 -08:00
David Bartle
99842f646f
more flexible perl module naming
...
- No more presuming 'WWW::' is at the beginning
(default is now "WWW::SwaggerClient" vs "SwaggerClient" in order
to accomodate)
- Test that module names Like::This write to the filesystem and in
the mustache templates properly
2016-01-04 20:38:07 -08:00
Tony Tam
43928a7726
enabled docker
2016-01-04 20:25:45 -08:00
Tony Tam
881d1407dc
exclusions
2016-01-04 20:24:15 -08:00
Tony Tam
4a5dd60182
added Dockerfile
2016-01-04 20:21:15 -08:00
Tony Tam
a45b72e4da
updated to include swagger-ui in war file
2016-01-04 20:21:09 -08:00
Tony Tam
608f045bd0
removed debug level
2016-01-04 20:20:51 -08:00
Tony Tam
40a11004b3
removed logic to make default location
2016-01-04 20:20:37 -08:00
Tony Tam
37a370e662
updated default port
2016-01-04 20:19:16 -08:00
Tony Tam
d18d848729
added relative file logic
2016-01-04 20:19:00 -08:00
wing328
ba8e992806
Merge pull request #1807 from wing328/java_fix_import
...
[Java] To fix missing imports in inline models
2016-01-05 11:45:50 +08:00
wing328
54a8ebd7d8
Merge pull request #1808 from wing328/python_add_reserved_word
...
[Python] add 'self' as a reserved keyword to python
2016-01-05 10:30:06 +08:00
wing328
4597d27fe9
add self as a reserved keyword to python
2016-01-05 10:17:07 +08:00
wing328
6967c0c2c7
add comment about java.utils.Objects
2016-01-05 09:59:27 +08:00
wing328
ff9e04e4dd
fix #1804
2016-01-05 09:52:33 +08:00
Tony Tam
90d1e280ed
Merge pull request #1805 from lugaru1234/options-default-value
...
Default values have been added to the boolean options
2016-01-04 08:31:22 -08:00
lugaru1234
b88e96ae10
Default values have been added to the boolean options
2016-01-04 16:33:34 +03:00
xhh
bed94ac3d0
Add the missing "volley" dependency
2016-01-04 20:22:33 +08:00
xhh
0103c2f906
Change the android-volley client codegen to an Android library
2016-01-04 19:09:07 +08:00
wing328
563cabe931
Merge pull request #1499 from arnested/collectionFormat
...
Accept arrays as arguments to collection parameters in PHP client.
2016-01-04 15:41:25 +08:00
wing328
d741ce0d91
Merge pull request #1729 from benmccann/rm-bin
...
Remove bin directory
2016-01-04 15:31:09 +08:00
wing328
dee885e9f5
Merge pull request #1803 from Tengah/issue-1802
...
Fixed configuration of host in api_client so that it gets done at run-time not load-time
2016-01-04 15:19:07 +08:00
wing328
c56252e4a0
Merge pull request #1801 from MyPureCloud/issue-1799
...
Issue 1799 - Inherited classes must come before implemented interface…
2016-01-04 14:52:45 +08:00
wing328
106f20fe51
Merge pull request #1800 from MyPureCloud/issue-1797
...
Issue 1797 - Adding assembly info
2016-01-04 14:51:40 +08:00
wing328
c315d7f3df
Merge pull request #1775 from Shyri/android-volley
...
Android volley client generator
2016-01-04 14:30:55 +08:00
wing328
ef24b66c6c
Merge pull request #1731 from evigeant/feature/jaxrs-no-sys-property
...
[jaxrs] Updated generator to use additional properties instead of system properties
2016-01-04 11:48:00 +08:00
wing328
3072247ca9
Merge pull request #1792 from xhh/java-model-indented
...
[Java] Update imports in models of Java clients
2016-01-04 11:04:25 +08:00
Tony Tam
3b8fe6a3cd
Merge pull request #1794 from DevFactory/staging/Local-Variables-should-not-be-declared-and-then-immediately-returned-or-thrown-fix-4
...
Local Variables should not be declared and then immediately returned or thrown
2016-01-03 17:06:49 -08:00
Arne Jørgensen
1292fe4dfd
Regenerated PHP petstore sample.
2016-01-03 22:59:15 +01:00
Arne Jørgensen
d71d164843
Accept arrays as arguments to collection parameters.
2016-01-03 22:45:07 +01:00
evigeant
ca67e3506b
Fixed idententation to use spaces instead of tab
2016-01-03 15:07:27 -05:00
evigeant
5867608ee1
Merge branch 'master' into feature/jaxrs-no-sys-property
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
2016-01-03 08:18:31 -05:00
Bob Pasker
dfae08adc8
in Python, a method as the default value of a formal parameter defines the value when the module is loaded (normally at import time), not when the method is invoked
2015-12-31 18:10:19 -05:00
unknown
58694d0623
Issue 1799 - Inherited classes must come before implemented interfaces in the class definition
...
* Switched the order of parent class and the interface
2015-12-31 15:34:25 -07:00
unknown
6b39fde35a
Issue 1797 - Adding assembly info
...
* New mustache template created for AssemblyInfo.cs
* Properties added to the C# codegen file to specify the assembly property values and adding AssemblyInfo.mustache to list of supporting files
2015-12-31 14:58:26 -07:00
Kirill Vlasov
6fc871db38
Fixing squid:S1488 - Local Variables should not be declared and then immediately returned or thrown
2015-12-31 17:08:59 +05:00
xhh
f4581d3008
Update imports in models of Java clients
...
- Remove the StringUtil import which is no longer needed
- Remove duplicated imports of Objects and io.swagger.annotations.*
- Only include jackson related imports in the Java clients needing it
(i.e. the default, jersey2 and feign Java clients)
2015-12-31 12:44:34 +08:00
Tony Tam
cafea6f726
Merge branch 'DevFactory-staging/serializable-classes-should-have-a-version-id-fix-3'
2015-12-30 19:58:43 -08:00
Tony Tam
b98085eaa5
merged
2015-12-30 19:58:28 -08:00
Tony Tam
1e2abbe422
Merge pull request #1774 from DevFactory/staging/redundant-field-initializer-fix-2
...
Redundant Field Initializer
2015-12-30 19:54:23 -08:00
Tony Tam
f73acc7c18
Merge pull request #1791 from scottrw93/master
...
Issue 1631 Valid yml definition generates API error in node js server
2015-12-30 19:51:44 -08:00
Tony Tam
470c17db36
removed printout
2015-12-30 19:48:06 -08:00
11356176
eb2c7708cb
Issue 1631 Valid yml definition generates API error in node js server
2015-12-31 01:07:10 +00:00
Tony Tam
0c12971bbb
Merge pull request #1790 from swagger-api/issue-1789
...
updated templates for pojos, enums
2015-12-30 16:21:09 -08:00
Tony Tam
4bd17323d5
pom cleanup
2015-12-30 15:18:00 -08:00
Tony Tam
88fab0b85f
Merge branch 'master' into issue-1789
2015-12-30 15:06:54 -08:00
Tony Tam
bf93d48ef2
merged
2015-12-30 15:06:32 -08:00
Tony Tam
2081d9d154
added import-mappings documentation
2015-12-30 15:05:23 -08:00
Ron
9a54371ca9
Swagger Spec -> OpenAPI Spec
2015-12-30 14:52:15 -08:00
Tony Tam
adb3795a44
formatting
2015-12-30 14:51:43 -08:00
Tony Tam
e08e578c58
updated templates per #1789
2015-12-30 14:51:37 -08:00
Tony Tam
9ca914f769
updated jaxrs generator pojos
2015-12-30 14:20:52 -08:00
Tony Tam
83460ba81a
improved install instructions
2015-12-30 13:40:58 -08:00
Tony Tam
788c70922d
updated cli name
2015-12-30 13:40:51 -08:00
Tony Tam
f0dc103736
Merge pull request #1788 from swagger-api/issue-1764
...
made imports more intelligent
2015-12-30 13:25:44 -08:00
Tony Tam
ff6a9fc244
Merge pull request #1787 from swagger-api/issue-1454
...
added BigDecimal java serialization options
2015-12-30 13:16:25 -08:00
Tony Tam
d75e602168
made imports more intelligent
2015-12-30 13:16:08 -08:00
Tony Tam
1cd54ee685
added bigDecimalAsString option to allow serializing with strings
2015-12-30 12:32:37 -08:00
Tony Tam
ac7856d009
formatting
2015-12-30 12:27:31 -08:00
Tony Tam
6f324e069e
Merge pull request #1786 from lugaru1234/options-type-fix
...
CliOption.type has been set to "boolean" for boolean options
2015-12-30 11:01:07 -08:00
Tony Tam
26c50ce0a3
Merge pull request #1785 from swagger-api/issue-1748
...
added `serverPort`
2015-12-30 11:00:58 -08:00
Tony Tam
460e5befec
fixed index issue
2015-12-30 10:42:20 -08:00
lugaru1234
67bea9ec27
CliOption.type has ben set to boolean for boolean options
2015-12-30 18:17:45 +03:00
wing328
96889d47ba
Merge pull request #1742 from icha024/master6
...
Spring-MVC config "j8-async": Uses async servlet & Java 8 interface
2015-12-30 17:00:35 +08:00
Tony Tam
05b0d8f1bf
added serverPort
2015-12-30 00:06:24 -08:00
Tony Tam
8146f1dce6
Merge pull request #1750 from swagger-api/issue-1749
...
added library param
2015-12-30 00:05:05 -08:00
Tony Tam
b5e9ca0295
Merge pull request #1784 from swagger-api/issue-1035
...
adds configurable date library, prepares for multiple jaxrs versions
2015-12-29 23:57:08 -08:00
Tony Tam
405e09a057
added tests
2015-12-29 23:44:15 -08:00
Tony Tam
29f928d644
prepare for multiple jaxrs libraries
2015-12-29 23:28:31 -08:00
Tony Tam
ffe12b0620
added library, date library
2015-12-29 23:28:09 -08:00
wing328
0b841cb17a
Merge pull request #1778 from bradmsmith/master
...
Update README.mustache
2015-12-30 15:06:27 +08:00
wing328
751051f0e9
Merge pull request #1776 from wing328/update_pom_commonio
...
Update Apache Common IO to the latest version (2.4)
2015-12-30 14:59:10 +08:00
wing328
dcad165871
Merge pull request #1783 from ModelSolv/Issue-1781
...
[Akka-Scala] Fix #1781 re specs w/o security defs
2015-12-30 14:49:44 +08:00
wing328
9782bf8981
Merge pull request #1780 from wing328/perl_fix_datetime
...
[Perl] fix DateTime mapping
2015-12-30 14:36:45 +08:00
wing328
974e0125ce
Merge pull request #1768 from pculligan/master
...
Outstanding fix for #1173 : Added support for vendor extensions on model and property
2015-12-30 14:20:24 +08:00
wing328
43b047c720
Merge pull request #1779 from wing328/php_remove_duplicated_mapping
...
[PHP] remove duplicated type mapping
2015-12-30 14:12:21 +08:00
wing328
0c4214b93c
Merge pull request #1777 from xhh/java-model-indented
...
[Java] Move method StringUtil.toIndentedString to model
2015-12-30 13:54:36 +08:00
Shyri Villar
b41efdab5f
updated android-volley build.gradle
2015-12-29 18:12:11 +01:00
Andy Lowry
e864994b62
[Akka-Scala] Fix #1781 re specs w/o security defs
...
Per issue recommendation, fix is to DefaultCodegen#fromSecurity, which
now returns an empty list rather than null if no securityDefinitions
property is present in the swagger spec
2015-12-29 11:58:28 -05:00
wing328
6180b7b059
Merge pull request #1720 from artem-dudarev/patch-2
...
[C#] Escape \r in XML comments
2015-12-30 00:40:30 +08:00
Shyri Villar
29c05b5d65
Added string responses [android-volley]
2015-12-29 15:47:38 +01:00
Shyri Villar
58cb5716cb
move android-volley generated sample
2015-12-29 15:47:37 +01:00
Shyri Villar
69e1eecee0
Added petstore sample [android-volley]
2015-12-29 15:47:36 +01:00
Shyri Villar
2613e597dd
Added petstore sample [android-volley]
2015-12-29 15:47:35 +01:00
Shyri Villar
8260c661b3
Fix AndroidManifest xml schema [android-volley]
2015-12-29 15:47:33 +01:00
Shyri Villar
d162fc5362
Add permissions to manifest [android-volley]
2015-12-29 15:47:32 +01:00
Shyri Villar
602abdd242
Added http basic authentication method [android-volley]
2015-12-29 15:47:31 +01:00
Shyri Villar
ea1cbdaf8f
Fix API template [android-volley]
2015-12-29 15:47:30 +01:00
Shyri Villar
e9990d610f
Fix API template [android-volley]
2015-12-29 15:47:29 +01:00
Shyri Villar
b91e5c95d5
Rename request templates and fixed patch request [android-volley]
2015-12-29 15:47:28 +01:00
Shyri Villar
a897a2f28b
Added PATCH request [android-volley]
2015-12-29 15:47:26 +01:00
Shyri Villar
cb9e4bf961
Added DELETE request [android-volley]
2015-12-29 15:47:25 +01:00
Shyri Villar
a68ecf7809
Added [android-volley] petstore.sh
2015-12-29 15:47:24 +01:00
Shyri Villar
b28e0893f1
Added PUT request [android-volley]
2015-12-29 15:47:23 +01:00
Shyri Villar
9b2a04c787
Added Android-Volley to readme and pom
2015-12-29 15:47:22 +01:00
Shyri Villar
c30720289b
Import corrections [android-volley]
2015-12-29 15:45:10 +01:00
Shyri Villar
3c275f1831
try catch when string response removed
2015-12-29 15:45:09 +01:00
Shyri Villar
2af665a8e3
Added ApiKeyAuth implementation [android-volley]
2015-12-29 15:45:08 +01:00
Shyri Villar
e054c3cfc0
Moved request templates [android-volley]
2015-12-29 15:45:06 +01:00
Shyri Villar
89b4d9b4e9
fixed requests packages and imports [android-volley]
2015-12-29 15:45:05 +01:00
Shyri Villar
5cfcb0b60b
fixed response parsing in post request template [android-volley]
2015-12-29 15:45:04 +01:00
Shyri Villar
2e4f6dc0a1
Added error listeners in api template [android-volley]
2015-12-29 15:45:03 +01:00
Shyri Villar
cfdf2bc3b8
fix returnContainer [android-volley]
2015-12-29 15:45:02 +01:00
Shyri Villar
b55f8802ac
throw volley error on body post null [android-volley]
2015-12-29 15:45:01 +01:00
Shyri Villar
f5aba6d0a5
removed faulty setuseragent [android-volley]
2015-12-29 15:45:00 +01:00
Shyri Villar
93ed2e639d
added android-volley to CodegenConfig
2015-12-29 15:44:59 +01:00
Shyri Villar
b290d2d919
fix responses template [android-volley]
2015-12-29 15:44:57 +01:00
Shyri Villar
5c9606bc66
fix apiInvoker template imports [android-volley]
2015-12-29 15:44:56 +01:00
Shyri Villar
7b811ad44b
various api template fixes [android-volley]
2015-12-29 15:44:55 +01:00
Shyri Villar
b9abe2b51d
Added apiException template [android-volley]
2015-12-29 15:44:54 +01:00
Shyri Villar
84a22c8344
Added build.gradle and AndroidManifest [android-volley]
2015-12-29 15:44:53 +01:00
Shyri Villar
f5e757e6b9
Added build.gradle and AndroidManifest [android-volley]
2015-12-29 15:44:52 +01:00
Shyri Villar
52ebd25732
Added responses class [android-volley]
2015-12-29 15:44:51 +01:00
Shyri Villar
c80ff7ed0d
Added responses class
2015-12-29 15:44:49 +01:00
Shyri Villar
980957b9a9
fix getrequest import [android-volley]
2015-12-29 15:44:48 +01:00
Shyri Villar
f3ff567d3f
added default string response to api template [android-volley]
2015-12-29 15:44:47 +01:00
Shyri Villar
e098e8f372
Added PostRequest [android-volley]
2015-12-29 15:44:46 +01:00
Shyri Villar
5c79c21f3c
fixed Api returnType [android-volley]
2015-12-29 15:44:45 +01:00
Shyri Villar
c3679893df
Added jsonUtil and Pair android-volley
2015-12-29 15:44:43 +01:00
Shyri Villar
090839fe06
Added AndroidVolley ClientCodegen
2015-12-29 15:44:42 +01:00
Shyri Villar
acac1bb83b
Added GetRequest template android-volley
2015-12-29 15:44:41 +01:00
Shyri Villar
efac324b73
Added api template android-volley
2015-12-29 15:44:40 +01:00
Shyri Villar
16bf228a41
Added model template android-volley
2015-12-29 15:44:38 +01:00
Shyri Villar
a2aeb5a129
Added ClientOptions android-volley
2015-12-29 15:44:37 +01:00
Shyri Villar
795b324fe5
Added imports to Android Volley apiInvoker
2015-12-29 15:44:36 +01:00
Shyri Villar
78352dd454
First steps on Android Volley ApiInvoker
2015-12-29 15:44:35 +01:00
wing328
564f6e2bb5
Merge pull request #1767 from xhh/java-simple-profiling
...
[Java] Add simple profiling for Java Petstore sample
2015-12-29 16:34:55 +08:00
wing328
e4078855f5
fix date mapping for perl
2015-12-29 16:29:20 +08:00
wing328
8882c36c91
fix perl datetime mapping
2015-12-29 15:21:38 +08:00
wing328
fed4ba3cf8
use DateTime for php date
2015-12-29 15:04:27 +08:00
wing328
11d6bb9a95
php remove duplicated type mapping
2015-12-29 15:00:56 +08:00
wing328
6e4d097710
Merge pull request #1769 from arnested/php-wildcard-response-code
...
Handle wildcard response codes correct in PHP
2015-12-29 14:49:01 +08:00
wing328
c5ccb3f8eb
Merge pull request #1772 from xhh/ruby-inline-base-object
...
[Ruby] Remove base_object from Ruby model
2015-12-29 13:27:23 +08:00
Brad Smith
acc43e7f71
Update README.mustache
...
Fix broken link
2015-12-28 21:14:08 -08:00
wing328
745e4f7dc2
Merge pull request #1771 from wing328/perl_simple_model
...
[Perl] remove base_object from Perl model
2015-12-29 12:54:55 +08:00
xhh
3d4b5ff1c7
Java: Move method StringUtil.toIndentedString to model
...
Closes #1701
2015-12-29 12:30:54 +08:00
Ian Chan
3103846f45
Enforce Java 1.8 when generating spring-mvc with j8-async option
...
The spring-mvc j8-async code is now located in it's own sample directory
with Java 8 enforced via Maven plug-in.
2015-12-29 13:40:46 +13:00
wing328
861ea27db7
update pom commonio to latest version
2015-12-29 00:01:18 +08:00
Kirill Vlasov
7a63dd1416
Fixing pmd:RedundantFieldInitializer - Redundant Field Initializer
2015-12-28 17:38:54 +05:00
xhh
670e56f692
Remove base_object from Ruby model
...
and move methods from base_object to each model so that model files will
have no dependency when generating "models only"
2015-12-28 17:42:33 +08:00
wing328
d6125483cf
remove commented code in perl
2015-12-28 16:32:41 +08:00
wing328
7b10023784
update perl sample
2015-12-28 16:12:18 +08:00
wing328
fa9844af7e
remove baseobject from perl, add README.mustache
2015-12-28 16:08:43 +08:00
wing328
3a2447634c
Merge pull request #1766 from wing328/swift_promisekit_3
...
[Swift] update promisekit and alamofire to the latest version
2015-12-28 16:01:52 +08:00
wing328
858d44a27f
Merge pull request #1761 from xhh/ruby-timeout
...
Ruby client: add "timeout" to configuration
2015-12-27 23:42:53 +08:00
Arne Jørgensen
84c35bd0cb
Regenerated PHP petstore sample.
2015-12-27 15:29:08 +01:00
Tony Tam
cbfdffb09a
Merge pull request #1734 from wing328/fix_array_inline_response
...
Fix array/map inline response/model
2015-12-27 06:18:01 -08:00
Arne Jørgensen
6a45111e10
Handle wildcard response codes correct in PHP
...
Wildcard response codes was handled like all other response codes
resulting in a misleading construction like this:
```
switch ($e->getCode()) {
case 0:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}
```
This commit fixes it to use the default fallback of the PHP switch
statement:
```
switch ($e->getCode()) {
default:
$data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Swagger\Client\Model\Error', $e->getResponseHeaders());
$e->setResponseObject($data);
break;
}
```
2015-12-27 15:17:18 +01:00
Patrick Culligan
3266fbbf81
corrected JavaDos issues that were UNRELATED to this PR to get the CI server moving.
2015-12-26 18:18:14 -06:00
Patrick Culligan
ef1222f2bf
Added support for vendor extensions on model and property
2015-12-26 17:29:56 -06:00
xhh
a2c020f9e8
Add simple profiling for Java Petstore sample
2015-12-26 16:48:49 +08:00
wing328
5638027179
remove downloadImage from petstore.json
2015-12-26 16:15:58 +08:00
wing328
6124062a70
update promisekit and alamofire to the latest version
2015-12-26 16:12:56 +08:00
wing328
89daeb3bf8
Merge pull request #1755 from xhh/java-timeout
...
Java okhttp-gson client: get/set connect timeout
2015-12-25 14:50:10 +08:00
Ian Chan
916793b820
Added spring-mvc-petstore-j8-aysnc-server.sh executable.
...
Added the executable and config file for spring-mvc's j8-async target.
2015-12-25 16:34:35 +13:00
xhh
8fa14446e3
Add milliseconds hint to comment of getConnectTimeout
2015-12-24 17:56:19 +08:00
xhh
43c0d20743
Ruby client: add "timeout" to configuration
2015-12-24 14:54:39 +08:00
wing328
732212cdb2
Merge pull request #1763 from wing328/update_pom
...
Update pom to use latest core and parser
2015-12-24 14:31:40 +08:00
wing328
9181b6b0a7
update pom to use latest core and parser
2015-12-24 14:13:18 +08:00
Tony Tam
3e5f23dc7a
Merge pull request #1759 from ePaul/feature/1743-fix-gitignore-for-eclipse-settings
...
Fix #1743 by removing `*/` from the .settings ignore line.
2015-12-23 10:15:34 -08:00
Paŭlo Ebermann
f2a510912b
Fix #1743 by removing */ from the .settings ignore line.
...
`*/.settings` applies to just the directory below the current one, where there is no such file.
`.settings` applies to all files/directories named such in the whole project.
2015-12-23 19:12:03 +01:00
Tony Tam
609240c389
Merge pull request #1757 from swagger-api/issue-1756
...
Add binary, byte array properties
2015-12-23 05:59:33 -08:00
Tony Tam
7381b816ff
fixes #1756
2015-12-23 05:50:46 -08:00
xhh
a58901f375
Java okhttp-gson client: get/set connect timeout
2015-12-23 18:58:16 +08:00
Ian Chan
638ee88830
Removed Jersey2 test from spring-mvc codegen
...
The previous patch to allow sub options to spring-mvc had removed the
invalid Jersey2 option from spring-mvc codegen, this patch also fixes
the associated test.
2015-12-23 10:29:47 +13:00
wing328
55fece195d
Merge pull request #1733 from DevFactory/staging/override-annotation-should-be-used-where-necessary-fix-1
...
Fixing squid:S1161 - @Override annotation should be used where necessary
2015-12-22 22:22:46 +08:00
Justus Thorvaldsson
2c1b71429a
Fixed space between inline enumclasses and removed extra tostring
2015-12-22 13:49:04 +01:00
Justus Thorvaldsson
3b95df3ca7
Added construct that was removed when merge wrongly
2015-12-22 12:24:08 +01:00
Justus Thorvaldsson
ea55c9c901
Some generated dates was merged incorrectly
2015-12-22 11:00:20 +01:00
Justus Thorvaldsson
7c9832c741
Merge remote-tracking branch 'upstream/master' https://github.com/swagger-api/swagger-codegen.git
2015-12-22 10:43:42 +01:00
Justus Thorvaldsson
7d9bddbe23
Added sample files generated
2015-12-22 08:19:44 +01:00
Tony Tam
b46e3ad400
updated for #1749
2015-12-21 22:16:11 -08:00
wing328
7305b9b4e1
Merge pull request #1745 from wing328/fix_need_to_import
...
Fix default needToImport
2015-12-22 14:00:01 +08:00
wing328
6b2f15b2cf
add packageName support to golang
2015-12-22 00:12:18 +08:00
wing328
0d377507b4
fix post model and update test
2015-12-21 22:34:56 +08:00
wing328
4062deed92
remove logger, fix deserialization of json response
2015-12-21 22:34:56 +08:00
wing328
3ebefba678
better return for golang method
2015-12-21 22:34:56 +08:00
wing328
a05076ed09
first commit of golang generator before fixing return
2015-12-21 22:34:56 +08:00
wing328
33b8e8aa5b
add golang
2015-12-21 22:34:56 +08:00
Justus Thorvaldsson
dd568afc0a
add all default values
2015-12-21 10:41:58 +01:00
Justus Thorvaldsson
d59dde9fb3
send enum always, default is used
2015-12-21 10:38:33 +01:00
wing328
aa55c95d1b
fix default needToImport
2015-12-21 14:12:19 +08:00
wing328
391d0b9f9d
Merge pull request #1741 from wing328/csharp_set_timeout
...
[C#] add timeout and update default constructor with optional value
2015-12-20 23:35:20 +08:00
Ian Chan
29b4098a8d
Spring-MVC config "j8-async": Uses async servlet & Java 8 interface
...
default
This template is mainly for Maven code-gen plugin use-case - when
Swagger spec on existing project changes there is no need to manually
copy/paste the new functions from the generated client. This will
provide a default (empty) implementation to existing impl and user just
need to override the stub implementation.
Because it generates an interface instead of a concrete stub, an
implementation will be needed to actuate a service end-point. And don't
forget to put @Controller on the implementation!
2015-12-20 09:53:41 +13:00
wing328
2cc5924498
update test case, docstring for timeout
2015-12-19 23:15:54 +08:00
wing328
0aa4d2fb8e
csharp add timeout, fix default constructor
2015-12-19 22:55:52 +08:00
Tony Tam
968c943c44
more enum support
2015-12-18 10:58:30 -08:00
Tony Tam
24ed12f448
Merge pull request #1740 from swagger-api/issue-1357
...
Add generation of enum models
2015-12-18 09:34:31 -05:00
wing328
7e3ad18faf
Merge pull request #1725 from hacki11/patch-1
...
[C#] fix filename and Content-Disposition parsing on FileStream
2015-12-18 21:23:25 +08:00
Tony Tam
a3a269c801
Merge branch 'master' into issue-1357
2015-12-18 08:13:20 -05:00
Tony Tam
5814cd47bc
updated parser for #1357
2015-12-18 08:12:31 -05:00
Tony Tam
5b0b759e4e
added enum class support
2015-12-18 08:12:15 -05:00
wing328
c1dda0ca17
update test case for inline model
2015-12-18 16:50:55 +08:00
wing328
20755bde2b
Merge pull request #1735 from xhh/javascript-testing
...
[Javascript] NPM module, bug fixes, clean-ups, unit tests
2015-12-18 11:44:34 +08:00
xhh
1777124e62
Javascript: remove call to apiClietn.parameterToString
2015-12-17 21:37:04 +08:00
xhh
1b0294dac0
Javascript: fix the constructFromObject issue
...
Closes #1721
Also fixed indentations in models
2015-12-17 21:29:58 +08:00
xhh
a58f755a6a
Escape path parameters with encodeURIComponent
...
and tweak the test command
2015-12-17 21:19:28 +08:00
xhh
180d2ae908
Merge branch 'master' into javascript-testing
2015-12-17 20:42:37 +08:00
xhh
f07b75f419
Include Javascript client into integration test
...
and return the promise-like result of $.ajax for API
2015-12-17 20:41:09 +08:00
xhh
794783a4bb
Javascript: bug fixes, clean-ups, tests
...
- Fix the "apiClient.escapeString" issue
- Remove unused code in api.mustache
- Add test case for creating and getting Pet
2015-12-17 20:05:00 +08:00
xhh
dcfe40fc44
Configure Javascript tests to allow running in browser
2015-12-17 18:51:12 +08:00
wing328
03e3a2d0dd
remove logger, replace tab with space
2015-12-17 18:05:39 +08:00
xhh
146b4a4813
Use a more real jquery mocking in test
2015-12-17 18:00:09 +08:00
wing328
c8c047a2bc
fix map in inline model
2015-12-17 17:55:47 +08:00
wing328
2e143ec054
fix map of inline response
2015-12-17 17:39:55 +08:00
wing328
13b03d92d4
update response to support array of inline model
2015-12-17 17:01:14 +08:00
wing328
c8a10aee33
add support for inline array model defined in inline model
2015-12-17 16:44:35 +08:00
wing328
c5c1712374
fix array of inline model body parameter
2015-12-17 15:44:22 +08:00
evigeant
e19d4228e9
Fixed CodeGen tests following addition of implFolder additional property
...
in jaxrs
2015-12-16 22:22:01 -05:00
wing328
b073dce1e7
Merge pull request #1726 from tomekc/alamofire-bump-31
...
Bumped Alamofire library (dependency for Swift client). Alamofire 3.1.x is compatible with previous version and resolves a few annoying bugs, like proper handling of empty HTTP responses.
2015-12-17 10:46:44 +08:00
evigeant
6f4f293943
Updated jaxrs generator to use additional properties instead of java
...
properties which are very difficult to set from maven
2015-12-16 21:41:43 -05:00
Ben McCann
89be4231db
Remove bin directory
2015-12-16 16:09:25 -08:00
hacki11
5f13484157
- add downloadImage to Petstore
...
- fixed equal instead of ':' after Content-Disposition
- added definition of file (swagger-maven-plugin generates them)
2015-12-17 00:14:21 +01:00
Tomek Cejner
5a1c6e6c17
Updated samples, and cartfile
2015-12-16 21:55:31 +01:00
xhh
cc408a0dd7
Add unit tests to Javascript Petstore sample
2015-12-17 00:32:50 +08:00
xhh
2c1d8b19d2
Make Javascript client a Node.js (NPM) module
2015-12-16 23:51:48 +08:00
Tomek Cejner
10885790f8
Bumped alamofire to 3.1.x
2015-12-16 14:56:37 +01:00
xhh
625e712d7b
Javascript: add package.json
2015-12-16 19:57:44 +08:00
xhh
199c4f70ad
Add some config options to Javascript client codegen
2015-12-16 19:57:44 +08:00
wing328
0078dc11d1
Merge pull request #1703 from evigeant/feature/simple-jaxrs-serialization
...
Simplify Jersey and Jersey2 client serialization
2015-12-16 11:32:11 +08:00
hacki11
322e7a4b4b
[C#] fix filename and Content-Disposition parsing on FileStream
2015-12-15 23:33:48 +01:00
xhh
3f3e444ab1
Some clean-ups for the Javascript client codegen
2015-12-15 23:00:09 +08:00
wing328
89f269969d
Merge pull request #1716 from wing328/csharp_config_remove_static
...
[C#] remove some static methods in configuration
2015-12-15 19:51:29 +08:00
wing328
adf7ffb3a8
Merge pull request #1718 from artem-dudarev/patch-1
...
[C#] Fixed ArgumentOutOfRangeException. Optimized string concatenation.
2015-12-15 18:31:53 +08:00
Kirill Vlasov
4ed0173a21
Fixing squid:S2057 - Serializable classes should have a version id
2015-12-15 15:03:33 +05:00
Artyom
b1869c1cae
Escape \r in XML comments
...
Workaround for #1336
2015-12-15 11:21:20 +02:00
Kirill Vlasov
49a6d0e6c1
Fixing squid:S1161 - @Override annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one
2015-12-15 14:09:31 +05:00
Artyom
fbf4d0e419
Fixed ArgumentOutOfRangeException
...
If the list is empty you get the ArgumentOutOfRangeException when calling flattenString.Remove(flattenString.Length - 1).
Also using a StringBuilder is the prefered way to concatenate strings in a loop.
2015-12-15 10:51:04 +02:00
wing328
b01b414aae
add constructor to configuration
2015-12-14 22:26:32 +08:00
wing328
f03bc1f3bc
remove some static methods in configuration
2015-12-14 16:07:41 +08:00
wing328
2a5b96dbcf
Merge pull request #1698 from xhh/ruby-config
...
Ruby client: allow setting Configuration in ApiClient
2015-12-14 15:14:08 +08:00
wing328
99c40ae8a0
Merge pull request #1706 from mirthy/issue-1705
...
[C#] Fix date-time serialization to be ISO 8601
2015-12-14 15:05:07 +08:00
wing328
0d3fdba764
Merge pull request #1714 from wing328/ruby_sinatra_fix
...
[Ruby][Sinatra] fix bug with adding routes and add swagger.yaml
2015-12-14 11:32:28 +08:00
wing328
1596944ef5
Merge pull request #1712 from xhh/ruby-property-doc
...
[Ruby] Place properties on separate lines with description
2015-12-14 10:41:21 +08:00
wing328
909ec298af
update regex to non-greedy match
2015-12-13 18:18:49 +08:00
wing328
1dd05bb90f
add swagger.yaml to ruby sinatra
2015-12-13 17:39:52 +08:00
wing328
bef2dac022
fix add route in sinatra
2015-12-13 17:22:30 +08:00
xhh
ddc4b0a548
Ruby: place properties on separate lines with description
2015-12-12 21:33:32 +08:00
wing328
79033e57fe
Merge pull request #1709 from xhh/ruby-profiling
...
[Ruby] Add simple profiling script and results for Ruby Petstore sample
2015-12-12 16:27:53 +08:00
Jeff Kwan
e0582ae912
Added the ability to customize the DateTimeFormat
...
Updated Configuration to have a DateTimeFormat
Added Unit Tests for Configuration.DateTimeFormat
Cleaned up namespaces in SwaggerClientTest
Added an embedded resource for testing uploads
2015-12-11 18:28:37 -05:00
evigeant
8fc27b5f0c
Fixed a bug where the JSON.mustache file was removed from the jersey2
...
code generation
2015-12-11 12:57:05 -05:00
xhh
4272e9c027
Add profiling script and results for Ruby Petstore sample
2015-12-11 23:24:19 +08:00
wing328
ca3f0cc4df
Merge pull request #1708 from wing328/php_profile
...
[PHP] add profiling script and result for php
2015-12-11 15:57:34 +08:00
wing328
2a8afbec8d
Merge pull request #1697 from wing328/objc_minor_style
...
[ObjC] minor style change for objc client
2015-12-11 14:43:38 +08:00
wing328
3acb5d60a0
add swgger client profiling for php
2015-12-11 14:36:28 +08:00
wing328
207b14283c
Merge pull request #1702 from wing328/php_profile
...
[PHP] add Php profiler for petstore sample
2015-12-11 12:29:17 +08:00
wing328
5ea073816d
Merge pull request #1693 from xhh/clojure-json-mime
...
[Clojure] Use case-insensitive checking on JSON MIME in Clojure client
2015-12-11 11:52:11 +08:00
Jeff Kwan
ca26608b28
Add some tests for time zones
2015-12-10 20:42:30 -05:00
Jeff Kwan
74d80289dd
Add a unit test for the datetime serialization
2015-12-10 20:28:44 -05:00
Jeff Kwan
23fa84bff8
Add some reasonable comments to this
2015-12-10 20:03:29 -05:00
Jeff Kwan
cf3144d31f
[C#] Fix date-time serialization to be ISO 8601
...
Fix the date-time serialization so that it's actually ISO 8601
compliant, currently it generates a date-time string
Issue #1705
2015-12-10 19:56:10 -05:00
wing328
2bb2ab6cad
Merge pull request #1700 from wing328/java_feign_update_test
...
[Java] Update Feign client sample and test cases
2015-12-11 00:41:22 +08:00
evigeant
a3024a3553
Updated PetStore sample for java client jersey2
2015-12-10 10:45:47 -05:00
evigeant
0f67be5590
Simplified Jersey2 java client by letting Jersey do most serialization
...
and deserialization
2015-12-10 10:45:46 -05:00
evigeant
d51746d7fa
Updated PetStore sample for Java client (default)
2015-12-10 10:43:30 -05:00
evigeant
ee39977726
Let Jersey do the serialization and deserialization (including JSON)
2015-12-10 10:43:28 -05:00
evigeant
84ee958117
Simplified Jersey ApiClient by delegating much serialization to Jersey
2015-12-10 09:21:53 -05:00
wing328
9faf6f4068
add php profiler for petstore, fix empty/null string check
2015-12-10 18:55:28 +08:00
wing328
1bab13ab27
Merge pull request #1689 from xhh/java-json-mime
...
[Java] Improve the checking of JSON MIME
2015-12-10 17:22:40 +08:00
wing328
5ef169de15
update sample and test case for java feign
2015-12-10 16:37:56 +08:00
wing328
f5693b6c73
update sample and test case for java feign
2015-12-10 16:35:38 +08:00
wing328
83dc5393cb
Merge pull request #1625 from davidkiss/master
...
adding support for both Java client using Netflix Feign and JMeter tests
2015-12-10 16:07:48 +08:00
xhh
e9ef143d8f
Ruby client: allow setting Configuration in ApiClient
...
Removed the singleton design from the Configuration class.
Added a `config` field to ApiClient to hold the settings the ApiClient
uses.
2015-12-10 15:25:07 +08:00
wing328
75a1f97a1e
minor style change for objc client
2015-12-10 15:21:52 +08:00
wing328
b2b06d72d5
Merge pull request #1685 from mateuszmackowiak/master
...
Support for extended 'application/json' HeaderAccept types
2015-12-10 14:52:05 +08:00
wing328
2b6b500c35
Merge pull request #1688 from wing328/objc_model_default_value
...
[ObjC] add default value to ObjC model properties
2015-12-10 14:17:16 +08:00
wing328
1241cdc8aa
Merge pull request #1687 from wing328/python_default_value
...
[Python] add default value to python model's properties
2015-12-10 14:09:29 +08:00
David Kiss
0d19b30c99
using isBodyParam instead of vendorExtention.x-isBody
2015-12-09 23:12:42 -05:00
wing328
ae17f97c99
Merge pull request #1537 from lugaru1234/ensureUniqueParamsRefactor
...
Code refactoring: ensureUniqueParams default value has been moved from description to the defaultValue field
2015-12-09 23:02:20 +08:00
xhh
63092b8923
Clojure client: use case-insensitive checking on JSON MIME
2015-12-09 22:55:49 +08:00
wing328
7642314b20
Merge pull request #1690 from thibaultclem/master
...
[Javascript] Fix syntax issue when generating Javascript client operation without parameters
2015-12-09 18:01:54 +08:00
thibaultclem
7c72552780
Update JS Client Petstore samples after fixing issue on the JS api.mustache
2015-12-09 16:32:18 +07:00
wing328
fcd3d3dce1
Merge pull request #1683 from xhh/ruby-default-value
...
[Ruby] Add default value to Ruby model
2015-12-09 17:15:00 +08:00
thibaultclem
8e0816b5dd
Fix syntax issue when generating Javascript client operation without parameters
2015-12-09 16:11:08 +07:00
xhh
ba48f8712d
Add test case for the "json_mime?" method
2015-12-09 16:34:53 +08:00
xhh
be0bc71c86
Improve checking of JSON MIME in Java default and jersey2
...
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:30:55 +08:00
wing328
e767a7d6d8
add default value to objc model properties
2015-12-09 16:21:00 +08:00
xhh
921659be5c
Improve checking of JSON MIME in Java okhttp-gson client
...
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:09:15 +08:00
wing328
36dfa15f93
Merge pull request #1680 from wing328/php_default_value
...
[PHP] add default value to PHP model
2015-12-09 15:39:34 +08:00
wing328
bf3c1d36d5
add default value to python model
2015-12-09 15:34:39 +08:00
Tony Tam
2e81bf34ce
Merge branch 'master' of github.com:swagger-api/swagger-codegen
2015-12-08 20:40:42 -08:00
Tony Tam
78158d79ca
updated instructions
2015-12-08 20:40:34 -08:00
xhh
4fdaeb7371
Improve checking of JSON MIME
2015-12-09 12:38:38 +08:00
xhh
b896c9169a
Add comments to model classes in Ruby client
2015-12-09 11:30:48 +08:00
xhh
21bd4fbbc1
Add default value to Ruby model
2015-12-09 11:30:09 +08:00
wing328
a866c7fef4
Merge pull request #1682 from wing328/cpp_improve_test
...
[Qt5] improve Qt5 test cases
2015-12-09 11:19:34 +08:00
wing328
0dd2ebc78e
Merge pull request #1679 from wing328/csharp_default_value
...
[C#] add default member's value for C# models
2015-12-09 10:43:26 +08:00
wing328
f2af05737a
Merge pull request #1677 from xhh/ruby-api-with-http-info
...
Added with-http-info API methods to Ruby client
2015-12-09 10:34:03 +08:00
Mateusz Mackowiak
a01dfb693b
Support for extended 'application/json' HeaderAccept types
2015-12-08 18:52:59 +01:00
wing328
258bb27f30
Merge pull request #1672 from wing328/php_add_http_info
...
[PHP] add `WithHttpInfo` method to return HTTP status code and response headers
2015-12-08 18:31:43 +08:00
wing328
bf63be3a63
improve cpp test case
2015-12-08 17:23:54 +08:00
wing328
2e6da5c0d2
Merge pull request #1678 from lmikkelsen/qt5-include
...
Replace #import with #include in the Qt5 generator
2015-12-08 17:00:52 +08:00
Justus Thorvaldsson
b434fb517f
Fixes enums c#
2015-12-08 09:43:28 +01:00
wing328
4b656c516f
add default value to php model
2015-12-08 15:59:46 +08:00
wing328
b122107a80
Merge pull request #1653 from ianmcorvidae/clojure-tweaks
...
Clojure client: docstrings tweaks
2015-12-08 15:21:45 +08:00
wing328
d7fe8e5505
Merge pull request #1670 from xhh/java-api-with-http-info
...
Add WithHttpInfo API methods to Java okhttp-gson client
2015-12-08 15:17:03 +08:00
wing328
f9f0992cc8
add default member's value for C# models
2015-12-08 15:09:30 +08:00
Lars Mikkelsen
0cef7116e8
Replace #import with #include in the Qt5 generator
...
The SWGHelpers.cpp file uses non-standard #import statements. This
causes the following error when built using Visual Studio 2013:
SWGHelpers.cpp(4): fatal error C1083: Cannot open type library file:
'c:\qt\qt5.5.1\5.5\msvc2013_64\include\qtcore\qdebug': Error loading
type library/DLL.
2015-12-07 23:30:37 -05:00
David Kiss
1723078508
added support in feign for binary uploads
2015-12-07 22:34:38 -05:00
David Kiss
538ccb3f12
Merge remote-tracking branch 'xhh2/davidkiss-master'
...
Conflicts:
samples/client/petstore/java/feign/README.md
samples/client/petstore/java/feign/build.gradle
samples/client/petstore/java/feign/pom.xml
samples/client/petstore/java/feign/settings.gradle
samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
2015-12-07 21:29:14 -05:00
wing328
9ed5b863c4
Update README.md
2015-12-07 16:58:51 +08:00
wing328
b4c6fc20cb
Update CONTRIBUTING.md
2015-12-07 16:38:07 +08:00
wing328
105e3e3327
Create CONTRIBUTING.md
2015-12-07 16:36:32 +08:00
xhh
07de03c09b
Return data before response status code and headers
2015-12-07 16:10:24 +08:00
xhh
66112d9eb5
Added with-http-info API methods to Ruby client
...
to allow accessing response status code and headers, and removed the methods of
recording last response info from ApiClient.
2015-12-07 15:48:59 +08:00
David Kiss
eb4acd0971
added unit tests to feign client
2015-12-07 01:13:20 -05:00
xhh
80ed75eef0
Add more javadoc to Java okhttp-gson client
2015-12-07 12:23:50 +08:00
wing328
d1361ab529
Merge pull request #1673 from wing328/js_add_bin
...
[Javascript] add bin and petstore samples
2015-12-07 12:04:51 +08:00
wing328
b40ee50167
Add batch file for running on Windows, update JS client
2015-12-07 11:53:38 +08:00
xhh
b1bc75189a
Add WithHttpInfo API methods to Java okhttp-gson client
...
to allow accessing response status code and headers
and removed the methods of recording last response info from
ApiClient.
2015-12-07 11:17:32 +08:00
wing328
c5a48d9891
Merge pull request #1664 from xhh/clojure-resp-info
...
Support accessing response status code and headers in Clojure client
2015-12-07 10:55:14 +08:00
wing328
7aab20485a
add bin and petstore samples for JS
2015-12-07 10:53:40 +08:00
wing328
e2679b2aa7
Merge pull request #1671 from jfiala/master
...
Add basic Javascript SDK support
2015-12-07 10:35:02 +08:00
wing328
340e60002e
more style change for php client
2015-12-07 00:52:30 +08:00
wing328
442f87c19a
minor style change for php functions
2015-12-07 00:42:25 +08:00
wing328
17b14fa281
update php sample
2015-12-07 00:37:22 +08:00
wing328
11466570f7
php add test case for withinfo method returnig void
2015-12-07 00:30:17 +08:00
wing328
b282d4fbea
add http_parse_headers, update test case
2015-12-06 23:58:25 +08:00
wing328
19b409eeaf
Merge pull request #1571 from wing328/ts_node_fix_url
...
[TypeScript][Node] remove url API, fix test case
2015-12-06 23:14:32 +08:00
Johannes Fiala
b0e3be8fb3
add AMD support #1294
2015-12-06 13:45:08 +01:00
Johannes Fiala
a7f754faad
Cleanup unused code from Java template in Javascript
2015-12-06 12:08:17 +01:00
Johannes Fiala
d9e024a7bf
Cleanup mandatoryParam variable in mustache and Codegen, replaced using
...
-last
2015-12-06 12:06:23 +01:00
wing328
bb341832a5
add http info to php api methods
2015-12-06 19:00:52 +08:00
Johannes Fiala
b3588da6b7
add @const to enumeration values #1294
2015-12-06 11:02:05 +01:00
Johannes Fiala
529a7abfce
Add missing template files #1294
2015-12-06 10:40:30 +01:00
Johannes Fiala
da15cf7867
Ignore settings #1294
2015-12-06 10:38:50 +01:00
Johannes Fiala
8fd6b604d3
Add all required parameters as default constructor parameters #1294
2015-12-06 10:37:06 +01:00
Johannes Fiala
1a8a03ee52
cleanup unused templates #1294
2015-12-06 10:36:12 +01:00
Johannes Fiala
7b64816107
Merge branch 'master' of https://github.com/jfiala/swagger-codegen
2015-12-06 10:34:03 +01:00
Johannes Fiala
34fb2c561f
cleanup build error due to missing CodegenConfig configuration entry
...
#1294
2015-12-06 10:33:52 +01:00
Johannes Fiala
3c3c93a53d
refine handling of nested properties #1294
2015-12-05 21:11:55 +01:00
Johannes Fiala
637b9937a8
Merge branch 'master' of https://github.com/jfiala/swagger-codegen
2015-12-05 20:34:55 +01:00
Johannes Fiala
e95e0c88cb
add support for clean response object creation in the API class #1294
2015-12-05 20:32:19 +01:00
Johannes Fiala
2b4c6d926e
Merge branch 'master' of https://github.com/jfiala/swagger-codegen
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java
2015-12-05 17:44:45 +01:00
Johannes Fiala
7c4471a4d6
Adapt output path for api/model
2015-12-05 17:43:35 +01:00
Johannes Fiala
adb26d83f7
Add basic JS SDK support, see Document client SDK #1294
2015-12-05 17:35:18 +01:00
wing328
9367b7f6a6
Merge pull request #1643 from wing328/csharp_refactor
...
[C#] refactor code to support multiple API keys in multi-threading environment
2015-12-05 11:16:34 +08:00
Ian McEwen
4edeed6053
Clojure client: put docstrings in the right place in core.clj.
2015-12-04 10:01:07 -07:00
wing328
a2025c286e
Merge pull request #1652 from wing328/issue1623
...
[PHP] fix issue with PHP codegen in Windows
2015-12-04 22:50:53 +08:00
wing328
ddd52f613f
remove logging from php generator
2015-12-04 22:37:16 +08:00
wing328
e182ad7897
add log to php code gen
2015-12-04 22:29:29 +08:00
wing328
1f68d0f7b0
fix issue with petstore in windows
2015-12-04 18:54:12 +08:00
wing328
7fd281a98e
Merge pull request #1665 from wing328/windows_batch
...
Add Windows batch files to generate Petstore API client samples
2015-12-04 18:28:00 +08:00
wing328
fe96d8769f
minor fix to csharp and objc batch file
2015-12-04 18:16:46 +08:00
wing328
3f328a4994
add batch files for other languages
2015-12-04 18:08:59 +08:00
wing328
14ec9c42cb
add ruby windows patch, fix php batch file
2015-12-04 17:48:48 +08:00
wing328
0818f0c8ad
add batch script for php
2015-12-04 17:38:29 +08:00
xhh
4dde0a793d
Accessing response status code and headers in Clojure client
...
Closes #1656
2015-12-04 17:23:57 +08:00
wing328
ab520e41be
update return tag in documentation (C#)
2015-12-04 17:07:20 +08:00
wing328
e5cd37ee9b
Merge pull request #1659 from xhh/clojure-auth
...
Improvements on Clojure client: authentications, collectionFormat
2015-12-04 12:37:37 +08:00
wing328
0cd801b952
add async with http info method to C# client
2015-12-03 22:09:40 +08:00
wing328
dd28075a0e
add back deprecated method
2015-12-03 17:33:25 +08:00
xhh
9d6b1bb224
Support collectionFormat for array parameters in Clojure client
...
Closes #1655
2015-12-03 17:25:27 +08:00
wing328
4482f71e05
add apiresponse.mustache
2015-12-03 16:47:14 +08:00
wing328
506b8d2b77
add WithHttpInfo method
2015-12-03 16:34:51 +08:00
xhh
afb7e31e21
Add authentications support to Clojure client
...
Closes #1654
2015-12-03 13:25:59 +08:00
wing328
a5a4f8c7e0
add api response to C#
2015-12-03 11:10:34 +08:00
wing328
409d66bdd2
Merge pull request #1651 from xhh/jersey2-upload
...
Fix file uploading issue with Java jersey2 client codegen
2015-12-03 10:10:42 +08:00
wing328
d1c31a53f1
Merge pull request #1647 from evigeant/master
...
Fixed xml validation in web.xml
2015-12-03 10:00:05 +08:00
wing328
330053902e
Merge pull request #1649 from xhh/clojure-escape-char
...
[Clojure] Escape characters for text in Clojure client
2015-12-03 00:07:53 +08:00
xhh
d11a19d171
Fix file uploading issue with Java jersey2 client codegen
...
Closes #1650
2015-12-02 18:31:02 +08:00
wing328
cea8ad40cd
make apiclient less mutable
2015-12-02 16:01:29 +08:00
wing328
5bb444ba6d
Merge pull request #1644 from wing328/objc_special_word
...
[ObjC] escape objc special words with "var"
2015-12-02 10:50:34 +08:00
wing328
032faf7c89
Merge pull request #1646 from wing328/jaxrs_security2
...
[JAX-RS] Inject JAX-RS SecurityContext information into JAX-RS server implementation
2015-12-02 10:43:15 +08:00
xhh
2b9fe5c9bf
Escape characters for text in Clojure client
...
Closes #1648
2015-12-02 10:25:30 +08:00
evigeant
d49b0e3afd
Fixed xml validation in web.xml
2015-12-01 12:05:26 -05:00
wing328
b2bfe8de51
update sample
2015-12-01 23:36:43 +08:00
Nick Maynard
acda5d0bc5
Update samples for JAXRS server SecurityContext
...
Conflicts:
samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Category.java
samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Order.java
samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Pet.java
samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Tag.java
samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/User.java
2015-12-01 23:36:43 +08:00
Nick Maynard
f9185c3f6f
JAXRS server :: Inject SecurityContext into every operation
2015-12-01 23:36:43 +08:00
wing328
76de987cd2
Merge pull request #1614 from xhh/auto-generate-operation-id
...
Auto generate operationId for python-flask server codegen
2015-12-01 17:58:08 +08:00
wing328
d5e394bfcc
restore petstore sample
2015-12-01 17:47:37 +08:00
wing328
c64f352ba6
escape objc special word with var
2015-12-01 17:44:07 +08:00
wing328
70dd3a6e4b
update to handle model without any properties
2015-12-01 16:28:23 +08:00
wing328
0abe787b58
add default api client
2015-12-01 16:17:22 +08:00
xhh
eb0e47461c
Add petstore client sample for Java-feign
2015-12-01 16:13:31 +08:00
wing328
c9f2380f0f
add test case for status code and response header
2015-12-01 14:08:20 +08:00
wing328
a78f33581a
Merge pull request #1622 from xhh/not-escape-enum-value
...
[Java] Fix issue of escaping HTML elements in enum values
2015-12-01 11:51:23 +08:00
Tony Tam
ce9f8baefc
Merge pull request #1642 from swagger-api/inflector-update
...
updated templates, files
2015-11-30 10:43:01 -08:00
Tony Tam
88d8ea23e3
updated templates, files
2015-11-30 10:24:15 -08:00
David
21e8822343
cleaned up output folder from repo
2015-11-30 10:44:32 -05:00
davidkiss
340e8b3671
reverting changes to swagger-codegen pom.xml
2015-11-30 10:41:44 -05:00
davidkiss
bb4589dca1
cleaned up README.md
2015-11-30 10:40:12 -05:00
317959997
9cfb1c91db
removing references to fork in te main README.md file
2015-11-30 10:31:01 -05:00
317959997
44c2751d80
added missing files to support JMeter
2015-11-30 10:27:16 -05:00
317959997
62c9a3d96f
Merge remote-tracking branch 'origin/master'
2015-11-30 10:26:14 -05:00
317959997
83223ae6d0
rolling back previous accidental push on changes to pom.xml files
2015-11-30 10:25:12 -05:00
David Kiss
ff7d177de3
Delete gen-config.json
2015-11-30 10:21:00 -05:00
317959997
845dd22942
added missing JMeter files
2015-11-30 10:18:29 -05:00
wing328
5494b694b7
Merge pull request #1458 from gaalandr/params_support_2.0_spec
...
fix: codegen does not support spec 2.0 properties for parameters:
2015-11-30 22:02:12 +08:00
xhh
2c6c902878
Merge branch 'master' into auto-generate-operation-id
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/libraries/okhttp-gson/api.mustache
2015-11-30 21:05:47 +08:00
xhh
ba549a966e
Merge branch 'master' into not-escape-enum-value
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/enumClass.mustache
2015-11-30 21:00:05 +08:00
wing328
6405fba663
add test cases for configuration
2015-11-30 20:12:58 +08:00
wing328
bb086a7f91
refactor apiclient, configuration, authentication for c# client
2015-11-30 19:45:08 +08:00
wing328
f2aac7a858
Merge pull request #1634 from wing328/objc_update_test_case
...
[ObjC] skip findPetByStatus test case for objc due to invalid data
2015-11-30 16:14:04 +08:00
wing328
d7460dac32
Merge pull request #1633 from wing328/fix_window_test_case
...
Add exception handling in the test case (for Windows)
2015-11-30 13:24:13 +08:00
wing328
2bb129b094
skip findPetByStatus test case for objc due to invalid data
2015-11-30 11:45:27 +08:00
wing328
90c93522b3
undo ios sample change
2015-11-30 10:59:51 +08:00
wing328
96003a1e90
fix typo
2015-11-30 10:57:22 +08:00
wing328
1913b0594f
Merge pull request #1628 from wing328/csharp_optional_parameter
...
[C#] add optional parameter to c# API client
2015-11-30 00:09:25 +08:00
wing328
6685bad8de
Merge pull request #1629 from wing328/fix_gradle_var
...
[Java][Retrofit2] update retrofit2 gradle to use double quote
2015-11-29 23:32:37 +08:00
wing328
a41ca7278a
update retrofit2 gradle to use double quote
2015-11-29 23:21:44 +08:00
wing328
aadc07396d
add better exception handling in test case
2015-11-29 18:31:14 +08:00
wing328
2d34f567ff
Merge pull request #1619 from EduGraph/issue-1075
...
[PHP] Slim Framework v3 - Server Generator #1075
2015-11-29 00:54:03 +08:00
wing328
a9fdb8f424
Merge pull request #1630 from wing328/java_update_sample1
...
[Java] update java petstore sample
2015-11-29 00:39:07 +08:00
wing328
3e213267aa
update java petstore sample
2015-11-29 00:18:34 +08:00
wing328
e1eac1ed5d
Merge pull request #1621 from dantran/master
...
Honor Enum's value
2015-11-29 00:08:21 +08:00
wing328
dfc0813a18
add optional parameter to c# api client (enabled by default)
2015-11-28 15:40:44 +08:00
317959997
a7f225b6ac
added support for generating JMeter project from swagger
2015-11-27 12:25:00 -05:00
317959997
7272cb0feb
fixed feign api template
2015-11-27 12:21:59 -05:00
jfastnacht
41936ab5c9
Adjusted index.mustache to fit camelCase variable naming.
...
Updated index.php sample.
2015-11-27 15:37:25 +01:00
jfastnacht
aebfacaa22
Adjusted codegen to fit pull request comments in https://github.com/swagger-api/swagger-codegen/pull/1619
2015-11-27 15:25:40 +01:00
xhh
7731bc9d37
Fix issue of escaping HTML elements in enum values
...
See swagger-api/swagger-editor#727
2015-11-27 17:32:31 +08:00
dantran
dfda666806
Honor Enum's value
2015-11-26 21:57:37 -08:00
317959997
4b9b7a6a01
updated README.md on the new Netflix Feign library
2015-11-26 13:37:58 -05:00
317959997
3cf8f24a07
updated README.md on the new Netflix Feign library
2015-11-26 13:37:19 -05:00
317959997
077a24f694
updated README.md on the new Netflix Feign library
2015-11-26 13:34:33 -05:00
317959997
be944650df
added initial Netflix Feign support
2015-11-26 13:30:04 -05:00
wing328
bf19d99e5e
Merge pull request #1618 from xhh/non-model-body-param
...
Do not resolve non-model body parameter as inline model
2015-11-26 22:32:55 +08:00
xhh
4531bc41eb
Update CodegenTest to apply InlineModelResolver to swagger
2015-11-26 17:44:56 +08:00
xhh
d250ce3bec
Do not resolve non-model body parameter as inline model
2015-11-26 17:16:28 +08:00
wing328
1fbdb92625
Merge pull request #1613 from xhh/ruby-eql-hash
...
[Ruby] Add "==", "eql?" and "hash" methods to Ruby client
2015-11-26 10:29:59 +08:00
wing328
cc6cb176f8
Merge pull request #1600 from zxy198717/master
...
add upload & downlod progress for Java okhttp
2015-11-26 09:59:34 +08:00
wing328
037616e2d9
Merge pull request #1609 from xhh/java-equals-hash-code
...
[Java] Add "equals" and "hashCode" methods to Java servers: "jaxrs" and "spring-mvc"
2015-11-25 22:07:34 +08:00
xhh
27e43d3fbb
Implement toOperationId for python-flask server codegen
...
and use "operationId" in the template to replace
vendorExtensions.x-operationId
2015-11-25 19:43:31 +08:00
xhh
801efaa3d4
Replace "nickname" with "operationId" in some API templates
2015-11-25 18:13:39 +08:00
Alvin Zeng
c69f396928
merge
2015-11-25 18:04:16 +08:00
xhh
6675cbc20e
Auto generate operationId for python-flask server codegen
2015-11-25 17:55:04 +08:00
Alvin
cc58711490
update okhttp-gson samples
2015-11-25 15:17:43 +08:00
wing328
a55088c3cd
fix php access token setter
2015-11-25 15:14:04 +08:00
wing328
0bc0d1808e
add eq for python, update test case
2015-11-25 15:14:03 +08:00
Tony Tam
0cb8e4ca69
updated readme, base path
2015-11-25 15:14:03 +08:00
xhh
630def9d19
Add "equals" and "hashCode" methods to Java clients
...
for the "retrofit" and "retrofit2" libraries
2015-11-25 15:14:03 +08:00
xhh
5ae96c61a9
Add "equals" and "hashCode" methods to Java clients
...
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-25 15:14:03 +08:00
wing328
3b308bd36f
update auth for php to skip empty apikey/username,password
2015-11-25 15:14:03 +08:00
xhh
11d7e44756
Use separate library to do base64 encoding in Java
...
default and jersey2 clients to make it work in both JVM and Android
2015-11-25 15:14:03 +08:00
wing328
ff3ba73d18
add documentation to test cases in C#
2015-11-25 15:14:03 +08:00
wing328
0ed70dcb4d
update basic auth to allow only username/password
2015-11-25 15:14:02 +08:00
wing328
d5b80ac8cd
better auth for C#, format change
2015-11-25 15:14:02 +08:00
wing328
6712754f6a
Add python flask
2015-11-25 15:14:02 +08:00
wing328
a2982c248a
add test case for pet equal
2015-11-25 15:14:02 +08:00
wing328
1496bf89b9
add equal and gethashcode to C# model
2015-11-25 15:14:02 +08:00
xhh
136d0aaa87
Use okhttp's Credentials class to build basic auth string
2015-11-25 15:14:02 +08:00
wing328
1d47ca69fe
update perl auth to skip null apikey/username&password
2015-11-25 15:14:02 +08:00
xhh
e4ac6ef033
Ignore auths when value not specified in Java clients
2015-11-25 15:14:01 +08:00
wing328
7c0fd4b85f
update python auth to skip empty token/username,password
2015-11-25 15:12:04 +08:00
Testo Nakada
5a5a716bfd
- make Meta generator take the swagger code gen version
...
- generate the class name correctly if the name contains hyphen
2015-11-25 15:12:04 +08:00
xhh
0dac326230
Add "==", "eql?" and "hash" methods to Ruby client
2015-11-25 11:46:43 +08:00
wing328
d589facb21
Merge pull request #1610 from wing328/python_add_equal
...
[Python] add eq for python, update test case
2015-11-25 10:59:35 +08:00
wing328
cf947811df
Merge pull request #1611 from wing328/php_fix_accesstoken
...
[PHP] fix access token setter
2015-11-25 10:58:21 +08:00
wing328
ddc4d8460d
fix php access token setter
2015-11-25 00:00:26 +08:00
wing328
b592819e3b
add eq for python, update test case
2015-11-24 17:36:38 +08:00
wing328
34a021cdb5
Merge pull request #1596 from wing328/csharp_auth_update
...
[C#] better authentication, minor format change
2015-11-24 16:27:21 +08:00
xhh
76fe8357ce
Add "equals" and "hashCode" methods to Java servers
...
for "jaxrs" and "spring-mvc"
2015-11-24 15:46:42 +08:00
wing328
a7e1e128f6
Merge pull request #1605 from xhh/java-equals-hash-code
...
[Java] Add "equals" and "hashCode" methods to Java clients
2015-11-24 15:38:20 +08:00
Tony Tam
bbb7fb5abc
updated readme, base path
2015-11-23 14:27:22 -10:00
jfastnacht
d38933f927
Added model.mustache for basic class definitions. Added sample class files.
2015-11-23 17:49:19 +01:00
jfastnacht
70efc066b5
Added notes, output formats, header params and body params
2015-11-23 16:43:13 +01:00
jfastnacht
a81d8c56e3
Adjusted index.mustache to fit Slim Framework v3
...
Added composer support for Slim Framework v3 RC
Updated samples
2015-11-23 15:34:36 +01:00
xhh
f2a8955926
Add "equals" and "hashCode" methods to Java clients
...
for the "retrofit" and "retrofit2" libraries
2015-11-23 19:59:44 +08:00
wing328
3872599be2
Merge pull request #1406 from testn/fix-meta
...
Use the version from the codegen for meta generator
2015-11-23 17:20:46 +08:00
Justus Thorvaldsson
3aff6e8328
removed one extra string enummember
2015-11-23 09:50:43 +01:00
xhh
2e51aa5076
Add "equals" and "hashCode" methods to Java clients
...
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-23 15:57:14 +08:00
wing328
5183683692
Merge pull request #1603 from xhh/java-ignore-empty-auth-values
...
[Java] Improvements on authentications
2015-11-23 15:08:46 +08:00
wing328
09082ab2cb
Merge pull request #1604 from wing328/php_update_auth
...
[PHP] update auth for PHP API client to skip empty API key/username,password
2015-11-23 11:29:36 +08:00
wing328
df6acdd3cf
Merge pull request #1602 from wing328/python_auth_update
...
[Python] update python authentication to skip empty token/username, password
2015-11-23 01:41:02 +08:00
wing328
e11a3d468e
update auth for php to skip empty apikey/username,password
2015-11-22 18:35:45 +08:00
xhh
fc3925a1cd
Merge branch 'master' into java-ignore-empty-auth-values
2015-11-22 16:35:34 +08:00
xhh
4f831e032c
Use separate library to do base64 encoding in Java
...
default and jersey2 clients to make it work in both JVM and Android
2015-11-22 16:27:14 +08:00
wing328
11daa87e44
add documentation to test cases in C#
2015-11-22 16:14:16 +08:00
wing328
9d76d39c00
update basic auth to allow only username/password
2015-11-22 16:09:15 +08:00
wing328
a9da01a451
better auth for C#, format change
2015-11-22 16:08:35 +08:00
wing328
c6021da8a1
Merge pull request #1601 from wing328/csharp_obj_compare
...
[C#] Add Equal and GetHashCode to models
2015-11-22 15:41:40 +08:00
wing328
6f27a8512d
Add python flask
2015-11-22 00:06:12 +08:00
Alvin
98396d04a7
update sample & test
2015-11-21 20:12:11 +08:00
Alvin
dc65b5647f
update okhttp-gson samples
2015-11-21 19:42:01 +08:00
wing328
3988c28c4b
Merge pull request #1597 from wing328/perl_auth_update
...
[Perl] better authentication, minor format change
2015-11-21 18:55:16 +08:00
wing328
a8119049ad
add test case for pet equal
2015-11-21 15:16:38 +08:00
Alvin
b9cf790d1c
add upload & downlod progress for Java okhttp
2015-11-21 15:06:00 +08:00
wing328
1ce3b67aa4
add equal and gethashcode to C# model
2015-11-21 13:22:00 +08:00
Justus Thorvaldsson
f4773d3333
Added json enum to csharp with decoration
...
using newtonsoft decoration
2015-11-20 14:33:22 +01:00
xhh
81cf57a00b
Use okhttp's Credentials class to build basic auth string
2015-11-20 20:10:05 +08:00
wing328
8303374aa5
update perl auth to skip null apikey/username&password
2015-11-20 17:36:17 +08:00
xhh
b823e8bd35
Ignore auths when value not specified in Java clients
2015-11-20 17:34:46 +08:00
wing328
271661aec7
update python auth to skip empty token/username,password
2015-11-20 17:01:21 +08:00
wing328
c150247dca
Merge pull request #1579 from xhh/fix-java-date-format
...
[Java okhttp-gson] Fix datetime format for Android
2015-11-20 15:59:07 +08:00
wing328
5c50e08965
Merge pull request #1591 from xhh/clojure-client
...
[Clojure] Integration tests and config options
2015-11-20 08:54:03 +08:00
Andras Gaal
ab062b1386
fix boolean getter errors
2015-11-19 15:15:48 +01:00
Andras Gaal
2c52cc1d86
Merge branch 'masterswaggerio' into params_support_2.0_spec
...
Conflicts:
.gitignore
2015-11-19 15:09:08 +01:00
xhh
d198a5a419
Add support config options to Clojure client
2015-11-19 17:38:08 +08:00
xhh
1358a39d0d
Include the petstore clojure client into integration tests
2015-11-19 16:04:27 +08:00
wing328
ff1dd034a8
Merge pull request #1585 from xhh/clojure-client
...
Add a Clojure client codegen
2015-11-19 10:58:40 +08:00
gaalandr
b9c1158bfe
Update CodegenParameter.java
2015-11-18 17:52:32 +01:00
Tony Tam
7727d740f0
Merge pull request #1584 from swagger-api/issue-1582
...
added connexion python server generator
2015-11-18 08:45:22 -06:00
Tony Tam
041eb94a27
renamed
2015-11-18 08:44:45 -06:00
jfastnacht
65b9f9dcce
Added basic Slim Framework support based on silex-PHP
2015-11-18 15:05:05 +01:00
wing328
46d675225f
Merge pull request #1580 from CrossfireCurt/master
...
[Java jersey2] Update Jersey to 2.12 for generated clients
2015-11-18 21:56:41 +08:00
xhh
50c27d258c
Merge branch 'master' into clojure-client
2015-11-18 17:27:29 +08:00
xhh
473aab2d8e
Support file uploading in Clojure client
2015-11-18 17:21:32 +08:00
Tony Tam
f95409210b
fixed cp bug
2015-11-18 00:43:52 -06:00
Tony Tam
5e68bd58fc
fixed swagger listing
2015-11-18 00:33:49 -06:00
Tony Tam
7f62576d88
added connexion
2015-11-18 00:17:33 -06:00
Tony Tam
5db7f6ebb9
updated configuration for system properties
2015-11-18 00:17:21 -06:00
Tony Tam
d71d5ac119
added files
2015-11-17 20:14:53 -08:00
Tony Tam
1e2449c568
Merge pull request #1583 from swagger-api/issue-1581
...
fixes #1581 , rebuilt server
2015-11-17 19:53:25 -08:00
Tony Tam
28c4946945
added initial files
2015-11-17 19:51:48 -08:00
Tony Tam
c7e5c305a9
fixes #1581 , rebuilt server
2015-11-17 18:46:33 -08:00
Curt Hostetter
951e56071f
Ran ./bin/java-petstore-jersey2.sh to update the Petstore sample
2015-11-17 11:18:55 -05:00
Curt Hostetter
5eacb4d12c
Update Jersey to 2.12
...
to help MIMEXXX.tmp cleanup https://github.com/swagger-api/swagger-codegen/issues/1576
2015-11-17 09:38:34 -05:00
xhh
431cdc9c37
Java okhttp-gson: fix datetime format for Android
...
by detecting the current environment (Android SDK version and Java
version) and determine a default datetime format accordingly
Closes #1573
2015-11-17 17:54:13 +08:00
wing328
f1e86f861e
Merge pull request #1574 from wing328/csharp_fix_class_name
...
[C#] add logic to handle model and its property having the same name
2015-11-17 10:17:01 +08:00
wing328
ce7a707ec1
reapply the fix after rebase
2015-11-17 10:06:38 +08:00
wing328
a4e5b5334f
Merge pull request #1572 from wing328/csharp_remove_restsharp_extension
...
[C#] remove dependency on RestSharp extension
2015-11-17 09:53:48 +08:00
xhh
473d34ef76
Merge branch 'master' into clojure-client
2015-11-17 00:47:49 +08:00
xhh
9cf7cd9ef6
And bin/clojure-petstore.sh and build the petstore clojure client sample
2015-11-17 00:47:12 +08:00
xhh
31cb5b1167
Add serialize method to handle JSON serialization
2015-11-17 00:36:52 +08:00
xhh
ff5b1c86ba
Set project URL and license from spec
2015-11-16 23:04:17 +08:00
xhh
cd8cfc50ed
Add Clojure client codegen
2015-11-16 18:00:43 +08:00
wing328
b815163ceb
replace restsharp extension functions with functions in apiclient
2015-11-16 11:30:34 +08:00
wing328
95d8585dce
Merge pull request #1534 from xhh/java-datetime-format
...
[Java] Improvement date-time format in Java clients
2015-11-16 09:57:52 +08:00
wing328
9789eb4ee8
remove url form ts-node, fix test case
2015-11-15 18:26:36 +08:00
wing328
96f71e420a
Merge pull request #1543 from dvz5/master
...
Moose role, docs, and automatic docs
2015-11-14 18:26:49 +08:00
Dave Baird
40f8012cbc
Minor cleanup
2015-11-13 21:52:44 +01:00
Dave Baird
5f61d5465e
Merge remote-tracking branch 'upstream/master'
2015-11-13 18:32:31 +00:00
Dave Baird
995a1f547f
Removed endpoint API class documentation code
...
- there is no standard way for a swagger spec to define descriptive
information for an endpoint API
- added markdown as a format to the autodoc script
- added some version information to autogenerated docs
2015-11-13 19:30:47 +01:00
wing328
302272ba9c
Merge pull request #1563 from conet/master
...
Fix typo in swift error variable name.
2015-11-13 09:59:26 +08:00
Dave Baird
970c94a4d9
autodoc retrieves descriptions for delegated methods
2015-11-12 16:55:20 +01:00
Cristian Oneț
f8db16c5cd
Fix typo in swift error variable name.
2015-11-12 17:10:10 +02:00
wing328
30c361edd7
Merge pull request #1548 from conet/master
...
The swift code generator can't handle endpoints that return an array of objects
2015-11-12 23:04:58 +08:00
Dave Baird
25c19135ff
autodoc can analyse arbitrary classes
...
- added -c option to load and analyse any class
2015-11-12 14:55:48 +01:00
Dave Baird
c097696276
Added more formats to autodoc output
...
- narrow
- wide
- POD
- HTML
2015-11-12 13:03:04 +01:00
wing328
08bb339398
Merge pull request #1559 from wing328/remove_setting_files
...
Remove eclipse file
2015-11-12 19:52:18 +08:00
xhh
93c6966501
Fix code of customizing date-time format in test
2015-11-12 17:34:12 +08:00
wing328
ee60b5f4f1
Merge pull request #1494 from cbornet/android_manifest
...
Add android manifest to java codegen
2015-11-12 17:17:01 +08:00
wing328
6d470d1896
remove eclipse files
2015-11-12 17:14:20 +08:00
xhh
6b3fc79dec
Merge branch 'master' into java-datetime-format
2015-11-12 17:10:08 +08:00
xhh
55bcceac07
Fix tests on date format by using custom date format
2015-11-12 17:10:03 +08:00
wing328
7603bd7b7c
Merge pull request #1558 from wing328/ts_remove_linebreak
...
[TypeScript] remove extra line break in documentation
2015-11-12 16:41:37 +08:00
wing328
cbc63d3285
remove line break in TS methods' comment
2015-11-12 16:13:10 +08:00
Dave Baird
389ce144ef
Improved documentation methods
...
- API classes have rudimentary class doc info and useful method doc info
- object classes have more detailed method and class info
- added more tests for doc methods
2015-11-12 00:36:30 +01:00
Dave Baird
3ca7ce6ce6
Merge remote-tracking branch 'upstream/master'
2015-11-11 23:24:39 +00:00
wing328
52320e5f71
Merge pull request #1541 from cbornet/retrofit_oauth_loop
...
[Retrofit] Don't retry if the access token doesn't change
2015-11-11 21:32:41 +08:00
wing328
edfeb48c12
Merge pull request #1550 from wing328/scala_better_test
...
[Scala] better scala test (UserApi)
2015-11-11 21:21:49 +08:00
wing328
d5f5d43c36
Merge pull request #1553 from aersamkull/master
...
Adds comments to TypeScript Generator & updates samples
2015-11-11 21:00:30 +08:00
aersamkull
684062ccbf
Updates samples
2015-11-11 13:47:09 +01:00
Dave Baird
2144cf5d31
Handle missing security spec more elegantly
...
- remove the optional auth_setup_handler() callback mechanism
- add _global_auth_setup() method on ApiClient to analyse config when
security spec not provided
- add methods on the Configuration class to abstract getting and setting
tokens
2015-11-11 13:43:40 +01:00
Cristian Oneț
d125b9c490
Update swift petstore client.
2015-11-11 14:21:52 +02:00
aersamkull
2886ca0312
Adds comments to TypeScript Generator
2015-11-11 11:54:42 +01:00
wing328
05efd193c0
update test username for scala
2015-11-11 16:42:00 +08:00
wing328
cbd1b98bf5
better scala test (UserApi)
2015-11-11 16:35:17 +08:00
Cristian Oneț
cf8d8deacd
For each object and a decoder that can handle an array of objects.
...
Otherwise REST endpoints that return a list of resources can't be used.
2015-11-10 21:19:32 +02:00
wing328
8836644d37
Merge pull request #1546 from xhh/java-enum-array
...
Fix error with array of enum in Java client
2015-11-10 23:39:21 +08:00
Dave Baird
06db67210c
Tiny doc tweak
2015-11-10 14:50:22 +01:00
Dave Baird
92a758e1b3
Merge remote-tracking branch 'upstream/master'
2015-11-10 13:23:40 +00:00
Dave Baird
77b9f51927
More documentation, and clean up a couple of ragged edges
...
- added documentation for configuring authentication
- made auth_setup_handler() optional
- get_api_key_with_prefix() is more self-documenting
2015-11-10 14:22:32 +01:00
wing328
e00d102c47
Merge pull request #1545 from emilianobonassi/support_retrofit2
...
Add support to Retrofit2
2015-11-10 20:43:19 +08:00
Emiliano Bonassi
e104803781
fix pom.xml added retrofit2 as a module
2015-11-10 12:39:30 +01:00
Emiliano Bonassi
47f4396fb7
- fix source/target java version to 1.6
...
- add test profile for CI
2015-11-10 12:30:13 +01:00
Dave Baird
521b73b3ef
Apply the singleton pattern to ApiClient
...
- make the api_client a singleton
- remove it from the configuration namespace
2015-11-10 09:47:58 +01:00
xhh
c07e30b8cf
Update testCreateUser to avoid occasional failures
2015-11-10 13:22:06 +08:00
xhh
aaafd0632c
Fix error with array of enum in Java client
...
ref: https://github.com/swagger-api/swagger-codegen/pull/1457#issuecomment-155185530
2015-11-10 12:04:29 +08:00
wing328
8408b97771
Merge pull request #1529 from crissdev/patch-1
...
[TypeScript] mark optional model properties
2015-11-10 10:35:39 +08:00
Emiliano Bonassi
3a7204d66c
Add support to Retrofit2
2015-11-10 03:20:49 +01:00
Dave Baird
c6cd88b281
Merge remote-tracking branch 'upstream/master'
2015-11-09 22:05:38 +00:00
Dave Baird
c06af6d141
Documentation and automatic documentation
...
- added POD to Role.pm
- added README.md files translated from Role.pm POD
- added an autodoc script (based on AutoDoc.pm role). The script prints
a listing of the methods built in Role.pm
- added class_documentation() and method_documentation() accessors on
all object and API classes which return the documentation supplied in
the Swagger spec for the API
2015-11-09 23:04:59 +01:00
crissdev
d9f7944102
typescript: mark optional model properties
2015-11-09 23:20:02 +02:00
Dave Baird
49034946a0
Make class and method documentation available
...
Documentation from the swagger spec is available via methods
class_documentation() and method_documentation() on object and API
classes.
2015-11-09 17:04:19 +01:00
cbornet
dad28dcba0
don't retry if the access token doesn't change
...
This is to avoid an infinite loop if the server always gives an invalid token
2015-11-09 16:10:55 +01:00
Nadezhda Makarkina
87786f0145
ensureUniqueParams default value has been mooved from description to the defaaultValue field
2015-11-09 14:01:50 +03:00
cbornet
99c503319b
use platform independant file separator
2015-11-09 11:38:26 +01:00
wing328
47a4cf4709
Merge pull request #1533 from rostskadat/springmvc_request_body_1532
...
Added @RequestBody annotation in order for the generated code to
2015-11-09 17:48:34 +08:00
xhh
e3c44b5af3
Improvement on comment
2015-11-09 16:47:33 +08:00
xhh
c48b93384b
Merge branch 'master' into java-datetime-format
2015-11-09 15:59:32 +08:00
xhh
8cab7e785d
Customizing date format in Java okhttp-gson client
2015-11-09 13:49:50 +08:00
xhh
cbc18c97ba
Customizing date format in Java jersey2 client
2015-11-09 11:58:41 +08:00
xhh
a45af48e35
Fix test
2015-11-09 10:23:46 +08:00
Dave Baird
f0f43f5fdf
Fix method names clash in Moose Role
...
When flattening all endpoint API methods into a single class, some
method names may clash, e.g. every API has a new() method. So we skip
them, they must be accessed via the API method. Warnings are emitted to
document skipped methods.
2015-11-08 21:51:26 +01:00
rostskadat
730202deb2
Added @RequestBody annotation in order for the generated code to
...
properly create API Model object.
@RequestBody Annotation Ref:
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-requestbody
2015-11-08 17:24:22 +01:00
Dave Baird
6a5f583ab0
Merge remote-tracking branch 'upstream/master'
2015-11-08 10:13:34 +00:00
wing328
4feca0d680
Merge pull request #1491 from cbornet/javax_android
...
Provide dependency to javax.annotation.Generated for android templates
2015-11-08 11:12:57 +08:00
Dave Baird
6c19f0c26c
Flatten entire API into a single class
...
Added a Moose role which flattens all the individual endpoint APIs into
a single class.
2015-11-07 20:37:13 +01:00
xhh
c59be88a3e
Support customizing date format in model (de)serialization in Java client
...
and update the default date format to conform to RFC3339
2015-11-07 15:16:13 +08:00
wing328
a5878130c4
Merge pull request #1523 from wing328/perl_update_cli
...
[Perl] update CLI option for perl
2015-11-07 10:51:42 +08:00
wing328
f19a8d41e4
Merge pull request #1525 from wing328/ts-reserved-word
...
[TypeScript] add reserved word handling for OperationId (method name)
2015-11-07 10:42:24 +08:00
Tony Tam
195359008a
improved definitions, messages, fixed init params
2015-11-06 10:11:23 -08:00
Tony Tam
33df72ff5b
made host+scheme configurable
2015-11-06 09:13:15 -08:00
Tony Tam
2bcb5f8fc2
Merge pull request #1524 from lugaru1234/optionsCleanup
...
Fixes #1516 : apiPackage and modelPackage options haave been moved from DefaultCodegen
2015-11-06 08:42:42 -08:00
Tony Tam
5b80e95b96
Merge pull request #1519 from swagger-api/issue-1518
...
remove duplicate tags, replace with extensions in templates
2015-11-06 06:22:08 -08:00
wing328
147d8047fe
update typescript sample
2015-11-06 21:49:03 +08:00
wing328
3ff060fa90
add reserved word handling for typescript
2015-11-06 21:46:47 +08:00
wing328
f7ffc7f118
update test case for perl
2015-11-06 21:24:04 +08:00
wing328
0d12f32b05
update cli option for perl
2015-11-06 21:00:04 +08:00
Nadezhda Makarkina
2f76f28dd4
apiPackage and modelPackage options haave been moved from DefaultCodegen to classes, that uses it
2015-11-06 15:44:32 +03:00
wing328
eaf985069b
Merge pull request #1521 from xhh/java-readme
...
[Java] Add README.md to Java clients
2015-11-06 20:31:15 +08:00
xhh
8d3e555f8a
Add README.md to Java clients
...
containing documentation like how to build and use the client
2015-11-06 17:15:32 +08:00
wing328
bd8f7a7aeb
Merge pull request #1509 from xhh/ruby-collection-format
...
[Ruby] Support collectionFormat for header, query and form parameters
2015-11-06 17:07:48 +08:00
Tony Tam
40992c0a9b
rebuilt
2015-11-05 22:31:56 -08:00
Tony Tam
be0232fa35
moved tags to extension to avoid path collisions #1518
2015-11-05 22:26:49 -08:00
wing328
471fc75381
Merge pull request #1508 from wing328/csharp_support_oauth
...
[C#] add oauth2 support to csharp
2015-11-06 14:06:37 +08:00
wing328
5a8d2c834f
add oauth support to csharp
2015-11-06 13:56:40 +08:00
wing328
a3b90c516d
Merge pull request #1507 from wing328/perl_support_ouath
...
[Perl] add oauth2 support for Perl
2015-11-06 11:39:15 +08:00
Tony Tam
c8ea36e188
rebuilt
2015-11-05 18:52:47 -08:00
Tony Tam
b30cbd9261
correctly set host
2015-11-05 18:52:23 -08:00
Tony Tam
c4b2f210be
fixed context path
2015-11-05 18:49:11 -08:00
Tony Tam
4f2eee771d
Merge branch 'master' of github.com:swagger-api/swagger-codegen
2015-11-05 18:19:29 -08:00
Tony Tam
cdd20ac408
updated swagger definitions for opts
2015-11-05 18:19:21 -08:00
wing328
f5153e6550
Merge pull request #1512 from wing328/csharp_fix_file_import
...
[C#] fix import for file type in model files
2015-11-06 09:34:40 +08:00
Tony Tam
b3d29bfb56
Merge pull request #1501 from lugaru1234/optionsResource
...
changed resource, method stub for generator options
2015-11-05 16:25:38 -08:00
wing328
44df21240f
Merge pull request #1511 from boxed/master
...
Some spelling and grammar fixes
2015-11-05 23:06:50 +08:00
wing328
080e302c63
fix csharp import for file in model files
2015-11-05 22:47:53 +08:00
Anders Hovmöller
4a5a8b7363
Some spelling and grammar fixes
2015-11-05 15:40:05 +01:00
Nadezhda Makarkina
dcd8302f42
added @ApiModelProperty and @JsonIgnore annotations, set defailtValue to java library option
2015-11-05 17:07:40 +03:00
Nadezhda Makarkina
4eeee3b24d
changed resource, method stub for generator options
2015-11-05 16:54:06 +03:00
Nadezhda Makarkina
5d8c23dd09
CliOption hah been change to allow enum values
2015-11-05 16:54:06 +03:00
Tony Tam
dadc85b6fd
added resource, method stub for generator options
2015-11-05 16:54:06 +03:00
xhh
76eeb51af6
Support collectionFormat in Ruby client
...
for header, query and form parameters
2015-11-05 20:02:09 +08:00
wing328
b4146d3f9c
Merge pull request #1479 from sfurholm/feature/add-support-for-sortParamsByRequiredFlag-config-option-to-csharp-and-python
...
Added support for sortParamsByRequiredFlag config option to C# and Python
2015-11-05 18:55:55 +08:00
wing328
51d9e92a00
add homebrew
2015-11-05 17:12:51 +08:00
wing328
4bfc032a64
add oauth2 support for Perl
2015-11-05 16:32:46 +08:00
wing328
30a4be833b
Merge pull request #1502 from dvz5/master
...
Rebuild perl petstore client after previous updates
2015-11-05 11:59:11 +08:00
wing328
cd733e562e
Merge pull request #1506 from xhh/unique-param-name
...
Make parameters unique in generated code
2015-11-05 11:40:38 +08:00
xhh
9863b631f7
Fix comment to conform to javadoc guideline
2015-11-05 11:23:15 +08:00
Dave Baird
107452d406
Merge remote-tracking branch 'upstream/master'
2015-11-04 22:00:13 +00:00
Dave Baird
baf20ca226
Fix errors from using wrong JSON spec
...
I've been using http://petstore.swagger.io/v2/swagger.json instead of
modules/swagger-codegen/src/test/resources/2_0/petstore.json as the
input spec for building the petstore. This commit reverts the changes
introduced from that.
2015-11-04 22:24:49 +01:00
Dave Baird
f521680c0f
Moved object classes' constructor into base class
2015-11-04 21:42:27 +01:00
Dave Baird
4264b74e40
Minor tidying up
...
Some documentation, fix a warning, added a couple of logger calls.
2015-11-04 20:27:23 +01:00
wing328
3b77b6ab39
fix link in toc
...
fix link in toc (Generating a client from local files)
2015-11-04 22:35:29 +08:00
wing328
449fa3a0f5
add guidelines for contriubtion
2015-11-04 22:32:06 +08:00
xhh
5a7bb600d6
Set the ensureUniqueParams option to true by default
2015-11-04 21:28:52 +08:00
xhh
e9ba5ed57c
Fix tests
2015-11-04 21:20:16 +08:00
xhh
1a67f452e2
Make parameters unique in generated code
...
through a config option "ensureUniqueParams" which is false by default
Closes #1422
2015-11-04 20:51:56 +08:00
wing328
76cee8bc6b
Merge pull request #1423 from rbhunt/issue-1391
...
Fix for #1391
2015-11-04 16:12:54 +08:00
wing328
40bd4415f9
Merge pull request #1497 from aersamkull/master
...
Aligns the two typescript generators
2015-11-04 15:54:13 +08:00
wing328
12b872cd14
Merge pull request #1498 from xhh/ruby-deserialize-additional-properties
...
Ruby: support map/hash in model deserialization with additionalProperties
2015-11-04 15:13:12 +08:00
wing328
8fa06a1878
Merge pull request #1496 from wing328/python_improvement1
...
[Python] Add OAuth support
2015-11-04 14:33:47 +08:00
xhh
7813976d9b
Minor changes
2015-11-04 10:26:14 +08:00
xhh
18abc56688
Add tests for array and map property deserialization
2015-11-04 10:23:21 +08:00
Dave Baird
a93eb8aeaa
Merge remote-tracking branch 'upstream/master'
2015-11-03 20:39:09 +00:00
Tony Tam
7ac91ced2e
updated parser version
2015-11-03 09:13:29 -08:00
Dave Baird
37b123530f
Add ApiFactory class and proper accessors on object classes
...
ApiFactory provides a get_api() method to generate API objects without
having to hard-code class names. All API and object classes are loaded
automatically.
Also, added proper accessors for attributes of object classes.
2015-11-03 17:58:53 +01:00
Dave Baird
8428e7963b
Rebuild perl petstore client after previous updates
...
At least 2 previous updates were committed without rebuilding the perl
petstore client. One was my fault (BaseObject.pm changes), the other
changes come from an upstream update or updates I can't identify.
2015-11-03 16:46:47 +01:00
wing328
1b538f6eaf
Merge pull request #1471 from wing328/invalid_array_type
...
Better error handling for invalid array/map type
2015-11-03 21:46:24 +08:00
wing328
c8ce84f650
replace tab with space, update samples
2015-11-03 21:34:44 +08:00
wing328
42e10fbb14
better error handling for invalid array/map type
2015-11-03 21:33:06 +08:00
wing328
5bf4d022cf
Merge pull request #1490 from xhh/java-oauth
...
Add oauth support for Java client
2015-11-03 20:34:12 +08:00
xhh
abe44df1ec
Ruby: support map/hash in model deserialization with additionalProperties
...
For example, the "scoreMap" and "cateMap" properties below:
"definitions": {
"User": {
"properties": {
"scoreMap": {
"type": "object",
"additionalProperties": {
"type": "integer",
"format": "int32",
}
},
"cateMap": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Category"
}
}
}
}
}
2015-11-03 16:39:54 +08:00
aersamkull
5580eb7ac3
Aligns the two typescript generators
2015-11-03 09:03:52 +01:00
wing328
792726ddc5
update sample, better handle of $ in naming
2015-11-03 10:29:28 +08:00
wing328
eebb6c4dd0
rename auth token to access token
2015-11-03 10:17:47 +08:00
wing328
89ec500744
add oauth support in python
2015-11-03 10:14:20 +08:00
wing328
2778857714
Merge pull request #1409 from sfurholm/feature/allow-overriding-of-only-some-templates-v2
...
Allow overriding of only some templates when using --template-dir option
2015-11-03 09:33:16 +08:00
wing328
86efdc5b54
Merge pull request #1485 from xhh/ruby-oauth
...
Add oauth support for Ruby client
2015-11-03 09:13:53 +08:00
wing328
cb429149bc
Merge pull request #1492 from tomekc/swift_custom_headers
...
Custom headers in Swift; base URL is now modifyable
2015-11-03 09:05:30 +08:00
wing328
6b857d7acc
Merge pull request #1395 from cbornet/retrofit_improvements
...
[Retrofit]Add a listener on new token reception
2015-11-03 09:03:58 +08:00
cbornet
8b0bf8ff72
add a listener on new token reception
...
Add a listener on new token reception that can then be stored or logged for debug
Add an helper method to add authorizations (otherwise if the swagger def is not complete or correct, it is hard to configure from the main app)
2015-11-02 19:20:24 +01:00
cbornet
5b1f287176
add android manifest to java codegen
2015-11-02 18:32:52 +01:00
cbornet
645b8a01e1
provide dependency to javax.annotation.Generated for android
2015-11-02 16:16:14 +01:00
xhh
a94f9b69af
Add oauth support to other Java clients
...
with libraries jersey2 and okhttp-gson
2015-11-02 22:52:51 +08:00
wing328
1f38ce724f
Merge pull request #1486 from aersamkull/master
...
Addes default headers for TypeScript Angular
2015-11-02 21:36:46 +08:00
wing328
9f7427b1cf
Merge pull request #1489 from dvz5/master
...
Fix array query param processing
2015-11-02 21:36:25 +08:00
xhh
b27931cd8c
Add oauth support for Java client
2015-11-02 21:27:53 +08:00
Tomek Cejner
884b853e1f
Custom headers in Swift; base URL is nor modifyable
2015-11-02 14:20:15 +01:00
Dave Baird
3559a8bd09
Fix array query param processing
...
A couple of PHP functions that don't exist in Perl were being called to
process array query parameters.
2015-11-02 10:47:46 +01:00
aersamkull
3762ea472d
Adds default headers
2015-11-02 08:28:46 +01:00
Dave Baird
d28737ffd2
Fix misleading comment
2015-11-02 08:24:06 +01:00
aersamkull
a4538e989c
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2015-11-02 07:45:01 +01:00
xhh
1c3dc28c67
Add oauth support for Ruby client
2015-11-02 12:50:23 +08:00
wing328
742508281a
Merge pull request #1484 from dvz5/patch-1
...
Tests for deserialization
2015-11-02 10:03:11 +08:00
dvz5
08f424824c
Update 02_store_api.t
2015-11-01 23:14:22 +01:00
dvz5
2e03ecc4b8
Update 01_pet_api.t
...
Add tests for photoUrls, to check correct mapping from object attribute name to JSON attribute name.
2015-11-01 23:10:20 +01:00
wing328
15c5fff3d8
Merge pull request #1481 from dvz5/patch-1
...
Update BaseObject.mustache
2015-11-01 22:40:15 +08:00
wing328
c3a98c2fb1
add online generators
2015-11-01 00:02:08 +08:00
Tony Tam
d64ed9088a
Merge pull request #1483 from jacobrask/patch-1
...
Fix path typo in readme
2015-10-31 08:49:10 -07:00
Jacob Rask
48bf89cb1d
Fix path typo in readme
2015-10-31 16:35:14 +01:00
wing328
ad590793e7
Update server generator
2015-10-31 23:17:58 +08:00
wing328
47b4f9fa2c
Merge pull request #1477 from baverbud/issue-1476
...
Issue 1476
2015-10-31 23:04:56 +08:00
wing328
7bc523324d
Merge pull request #1446 from wing328/php_improvement1
...
[PHP] add OAuth support
2015-10-31 22:46:52 +08:00
dvz5
a4426cf2de
Update BaseObject.mustache
...
Fix deserialization.
2015-10-31 09:01:40 +01:00
Steffen Furholm
dcaa2dcb22
Merge branch 'master' of github.com:swagger-api/swagger-codegen into feature/add-support-for-sortParamsByRequiredFlag-config-option-to-csharp-and-python
2015-10-31 02:20:36 +01:00
Tony Tam
9fc5fdbc8d
Merge pull request #1474 from lugaru1234/genratorOptionsPart2
...
Test data were moved to the separete classes and OnlineGeneratorOptionsTest has been refactored
2015-10-30 18:10:17 -07:00
Steffen Furholm
5da0b96f17
Added support for sortParamsByRequiredFlag config option to C# and Python
2015-10-31 01:14:17 +01:00
Richard Baverstock
97a28165c7
Additional locations where float/double handling is needed
2015-10-30 11:48:48 -07:00
Richard Baverstock
8565975b99
Issue 1461
...
Add float and double handling to functions in SWGHelpers.cpp
2015-10-30 11:44:55 -07:00
wing328
28069fa1b4
Merge pull request #1472 from thorsten/master
...
Added missing visibility for constructor
2015-10-30 23:14:55 +08:00
wing328
eb598b641c
Merge pull request #1473 from dvz5/patch-1
...
Update BaseObject.mustache
2015-10-30 23:07:38 +08:00
Nadezhda Makarkina
81090bb4e2
Test data were moved to the separete classes and OnlineGeneratorOptionsTest has been refactored
2015-10-30 16:32:33 +03:00
dvz5
afcf90798a
Update BaseObject.mustache
...
Fix deserialization
2015-10-30 14:32:10 +01:00
Thorsten Rinne
f23370774b
Added missing visibility for constructor
2015-10-30 11:10:38 +01:00
wing328
b7481586c3
Merge pull request #1405 from lugaru1234/returnTypeFix
...
ReturnType processing has been fixed
2015-10-30 12:21:05 +08:00
wing328
df72beada6
Merge pull request #1463 from xhh/jersey2-client
...
Java jersey2: reuse a shared Client instance
2015-10-30 09:56:15 +08:00
Tony Tam
3d3fda9c79
Merge pull request #1468 from baverbud/issue-1461
...
Issue #1461
2015-10-29 14:39:41 -07:00
Richard Baverstock
4438c63f6b
Issue #1461
...
Add float and double to languageSpecificPrimitives
2015-10-29 10:50:07 -07:00
Tony Tam
837ffc8947
Merge pull request #1466 from lugaru1234/optionsTestPart3
...
processOptions tests have been added for the rest of languages
2015-10-29 06:34:40 -07:00
Nadezhda Makarkina
faf79be477
processOptions tests have been added for Objc, perl, spring-mvc, swift, scala, async-scala, qt5cpp, html, dynamic-html, swagger, swagger-yaml, tizen, typescript-angular, typescript-node, akka-scala, inflector, scalatra, silex and sinatra
2015-10-29 15:46:01 +03:00
aersamkull
2b24aa8f91
adds default headers
2015-10-29 09:15:18 +01:00
wing328
4ed819c4a0
Merge pull request #1457 from xhh/java-default-value
...
[Java] Assign default value for primitive properties
2015-10-29 10:11:05 +08:00
xhh
953edc940f
Java jersey2: use a shared Client instance
2015-10-29 09:40:07 +08:00
Steffen Furholm
c0dc273e7a
Merge remote-tracking branch 'origin/master' into feature/allow-overriding-of-only-some-templates-v2
2015-10-28 23:30:19 +01:00
Tony Tam
29ea8d5501
Merge pull request #1459 from lugaru1234/optionsTestPart2
...
processOptions tests have been added for Android, Ruby, nodeJS, php, python, csharp, CsharpDotNet2, dart, flash
2015-10-28 07:22:38 -07:00
wing328
6c12e5ac8b
update php sample
2015-10-28 21:45:22 +08:00
wing328
964850a8de
rename authToken to accessToken
2015-10-28 21:44:12 +08:00
wing328
67815ed5f2
add oauth support for php
2015-10-28 21:44:12 +08:00
Nadezhda Makarkina
6008664ff8
processOptions tests have been added for Android, Ruby, nodeJS, php, python, csharp, CsharpDotNet2, dart, flash
2015-10-28 14:55:42 +03:00
Andras Gaal
a5fcda9926
fix: codegen does not support spec 2.0 properties for parameters:
...
maximum
,exclusiveMaximum
,minimum
,exclusiveMinimum
,maxLength
,minLength
,pattern
,maxItems
,minItems
,uniqueItems
,multipleOf
2015-10-28 10:52:29 +01:00
xhh
ef29f70508
Handle default value for Integer, Double and Float properties
2015-10-28 16:37:31 +08:00
wing328
2e6199ac3b
Merge pull request #1456 from wing328/master
...
[C#] update C# petstore sample code
2015-10-28 16:08:49 +08:00
wing328
55d69d80bc
update c# sample code
2015-10-28 15:33:56 +08:00
xhh
2595992df7
Assign default value for model properties
...
in Java-related client and server codegen.
Closes #1448
2015-10-28 15:26:16 +08:00
wing328
55f1b0f642
Merge pull request #1450 from paralin/fix-path-var
...
Change usage of "path" in C# code generation
2015-10-28 15:21:01 +08:00
wing328
bd67cda1a7
Merge pull request #1451 from arnested/CURLFile-object
...
Use CURLFile object on PHP5.5+
2015-10-28 14:33:49 +08:00
Arne Jørgensen
47b2ae934b
Regenerated PHP petstore sample.
2015-10-27 22:58:25 +01:00
Arne Jørgensen
d907822fa9
Use CURLFile object on PHP5.5+.
2015-10-27 22:56:19 +01:00
Christian Stewart
5cdee3f424
Path is a commonly used variable name
2015-10-27 17:35:21 -04:00
Tony Tam
09c5aa3827
Merge pull request #1447 from lugaru1234/optionsTest
...
Options tests have been added for Java and JaxRS
2015-10-27 10:32:25 -07:00
Nadezhda Makarkina
9e791c229b
processOptions tests have been added for Java and JaxRS
2015-10-27 15:51:39 +03:00
wing328
4551076b22
Merge pull request #1438 from wing328/better_doc
...
Better documentation for DefaultCodegen.java
2015-10-27 15:53:17 +08:00
wing328
cf59b5dc7e
Merge pull request #1444 from xhh/retrofit-syntex-error
...
Fix syntax error on authMethods in java retrofit client
2015-10-27 13:56:53 +08:00
wing328
28521b34f2
Merge pull request #1439 from wing328/fix_jaxrs_path
...
[JAXRS] fix Jax-RS path with basePath
2015-10-27 11:57:55 +08:00
xhh
fa3661ff5d
Merge branch 'master' into retrofit-syntex-error
2015-10-27 11:32:29 +08:00
xhh
33358d44a9
Simplify tags in mustache
2015-10-27 11:08:37 +08:00
wing328
dd8ae250b2
Merge pull request #1433 from iushankin/allowableValues-fix
...
Fix for allowable values in the Mustache template
2015-10-27 11:04:42 +08:00
xhh
95113dbe22
Fix syntax error on authMethods in java retrofit client
2015-10-27 10:45:23 +08:00
xhh
f1e3809279
Fix partial template reading
2015-10-27 01:12:57 +01:00
Tony Tam
8914a30935
Merge pull request #1434 from lugaru1234/generatorOptions
...
Options processing has been fixed
2015-10-26 08:46:21 -07:00
wing328
5964f7b841
Merge pull request #1414 from dgreenbean/feature/csharp_binary_files
...
Raw Binary for File Output
2015-10-26 23:35:52 +08:00
wing328
cc7105b5d8
fix jarxs path with basepath
2015-10-26 18:00:15 +08:00
wing328
6792aea7f8
better comment for default codegen
2015-10-26 16:12:05 +08:00
Nadezhda Makarkina
c298b7d152
ReturnType processing has been fixed
2015-10-26 10:37:36 +03:00
Tony Tam
6b7ceab081
updated to dev version
2015-10-25 20:59:52 -07:00
Tony Tam
c00f4ba805
Merge pull request #1437 from swagger-api/release-prepare
...
updated versions for release
2015-10-25 19:41:11 -07:00
Tony Tam
dd3b253e15
updated versions
2015-10-25 19:31:36 -07:00
Tony Tam
3969a9f294
fix for #925
2015-10-25 17:02:08 -07:00
Tony Tam
78f8eaa687
set to release version
2015-10-25 16:31:40 -07:00
wing328
fe676c83c0
Merge pull request #1412 from Edubits/swift-alamofire-3.0
...
Swift Alamofire 3.0
2015-10-25 18:28:39 +08:00
wing328
18370b9076
Merge pull request #1402 from lugaru1234/issue960
...
Fixes #960 : Enums have been added to result file
2015-10-25 17:52:37 +08:00
wing328
70d987666e
Merge pull request #1436 from tomekc/swift_enum_naming
...
Swift enum names capitalization follows Swift convention.
2015-10-25 17:46:14 +08:00
Tomek Cejner
6247dd0cde
Swift enum names capitalization follows Swift convention.
2015-10-25 00:06:00 +02:00
Testo Nakada
f76a789a49
- make Meta generator take the swagger code gen version
...
- generate the class name correctly if the name contains hyphen
2015-10-24 11:36:00 -07:00
wing328
ea7ef990b9
Merge pull request #1432 from xhh/ruby-empty-array
...
Ruby client: include empty arrays in model serialization
2015-10-24 11:45:27 +08:00
Tony Tam
83afaffd92
Merge pull request #1430 from nbruno/java-child-enum-bug
...
Ensure hasMore is updated when reconciling enum properties from parent
2015-10-23 08:08:30 -07:00
Nadezhda Makarkina
c957641079
Options processing has been fixed
2015-10-23 17:59:40 +03:00
Ivan Ushankin
c6946a36c4
Fix for allowable values in the Mustache template
2015-10-23 15:49:51 +03:00
wing328
d2faa63ebc
Merge pull request #1431 from wing328/fix_empty_operation_id
...
Better error message for empty operationId
2015-10-23 18:47:04 +08:00
xhh
dcec2e7b5d
Forgot to use _to_hash for non-array value
2015-10-23 18:03:38 +08:00
xhh
940e76f45f
Ruby client: include empty arrays in model serialization
2015-10-23 17:08:12 +08:00
wing328
fecbc3c45d
Merge pull request #1306 from fdorothy/master
...
Specifying configuration files from Codegen class
2015-10-23 15:41:00 +08:00
Tony Tam
a6e4203cd5
added property check
2015-10-22 22:39:09 -07:00
wing328
dd34d75f00
better error message for empty operationId
2015-10-23 12:46:44 +08:00
Nick Bruno
1eed1917b9
Ensure hasMore is updated when reconciling enum properties from parent
2015-10-22 22:33:20 -04:00
Tony Tam
91afec43a6
fixed NPE on empty props
2015-10-22 15:43:02 -07:00
Tony Tam
adeff7855c
instructions for selective generation
2015-10-22 15:34:20 -07:00
Tony Tam
e289b858a9
Merge pull request #1428 from swagger-api/feature/selective-generation
...
made selective generation of models
2015-10-22 15:28:58 -07:00
Tony Tam
7170f7fa01
updated supporitng file support
2015-10-22 15:28:49 -07:00
Tony Tam
6253a592d9
added optional support for apis, supoprtingFiles
2015-10-22 14:54:29 -07:00
Tony Tam
9f842a1295
added environment variable support
2015-10-22 14:34:52 -07:00
Tony Tam
723cf9b823
made selective generation of models
2015-10-22 14:03:44 -07:00
Tony Tam
bbb59f93db
Merge pull request #1427 from crissdev/patch-1
...
Update TypeScriptAngularClientCodegen.java
2015-10-22 14:00:27 -07:00
Cristian Trifan
2fcb705826
Update TypeScriptAngularClientCodegen.java
...
Fix minor typo
2015-10-22 23:19:46 +03:00
David Greenberg
390ddc9ef3
Changing Stream deserialization to use raw bytes from response, rather than UTF-8 decoded text.
2015-10-22 09:04:54 -04:00
wing328
4723f51c63
Merge pull request #1397 from lugaru1234/issue1251
...
Fixes #1251 , #1212 : Form parameters has been added to the html template
2015-10-22 16:48:13 +08:00
wing328
485186e6b6
Merge pull request #1418 from ampem/master
...
[Perl] Ensure parameters to "each" is a hash in TO_JSON and from_hash
2015-10-22 15:14:27 +08:00
Richard Hunt
f44eb766b4
Replace File.separator with '/' to fix Windows path generation and avoid regular expression issues
2015-10-22 15:54:28 +13:00
Ampem Darko
1ac6842b5a
Update mustache template to pass hashes in TO_JSON and from_hash
2015-10-21 16:15:42 +00:00
Ampem Darko
57e3ea3e9c
Ensure parameters to "each" is a hash in TO_JSON and from_hash
2015-10-21 13:35:48 +00:00
wing328
0f75b053c8
Merge pull request #1417 from akkie/master
...
ApiException doesn't use deserialized data
2015-10-21 19:13:18 +08:00
wing328
eee69f1e05
Merge pull request #1416 from xhh/java-do-not-serialize-nulls
...
[Java] Ignore null fields in model serialization in Java clients
2015-10-21 19:00:09 +08:00
akkie
9b8a633435
ApiException doesn't use deserialized data
...
This is a fix for #1394 . I had not merged the data correctly after the rebase
2015-10-21 12:56:15 +02:00
Tony Tam
dcc47a92b5
added https support
2015-10-20 21:25:51 -07:00
Tony Tam
e9aaa6da36
enabled https
2015-10-20 21:25:35 -07:00
Tony Tam
568a7be994
enabled https
2015-10-20 21:25:21 -07:00
xhh
214e0186e8
Ignore null fields in model serialization
...
in Java clients.
Closes #1413
2015-10-21 12:05:27 +08:00
Tony Tam
7f5cdba606
rebuilt
2015-10-20 11:42:40 -07:00
Tony Tam
295af57c9a
fixed build error
2015-10-20 11:31:21 -07:00
Tony Tam
bade71c6ba
merged
2015-10-20 10:59:20 -07:00
Tony Tam
9adb077a7b
Merge branch 'feature/inline-models'
2015-10-20 10:57:50 -07:00
Tony Tam
10a9c62e2b
merged
2015-10-20 10:57:36 -07:00
Tony Tam
a6bd0773f7
added files
2015-10-20 10:56:18 -07:00
Tony Tam
b2506ab598
rebuilt
2015-10-20 10:32:19 -07:00
Tony Tam
a21f08118e
rebuilt
2015-10-20 10:31:42 -07:00
Tony Tam
96380bbc83
rebuilt
2015-10-20 10:31:17 -07:00
Tony Tam
abe4980449
rebuilt
2015-10-20 10:30:19 -07:00
Tony Tam
e3151c57a0
rebuilt
2015-10-20 10:29:48 -07:00
Tony Tam
d2dc333699
rebuilt
2015-10-20 10:29:25 -07:00
Tony Tam
b41a40f9be
rebuilt
2015-10-20 10:28:49 -07:00
Tony Tam
2f3a2413c7
rebuilt
2015-10-20 08:49:26 -07:00
Tony Tam
19ea3ecf66
update test for inline body param flattening
2015-10-20 08:48:44 -07:00
Tony Tam
5c29562926
ensure body params are flattened when type ModelImpl
2015-10-20 08:48:26 -07:00
Tony Tam
b827d06077
fix for npe on map models
2015-10-20 08:48:04 -07:00
Tony Tam
539496d735
rebuilt
2015-10-20 07:10:05 -07:00
wing328
6b7059d23f
Merge pull request #1394 from akkie/api-exception-json
...
Deserialize the response body in case of an ApiException
2015-10-20 18:01:09 +08:00
wing328
bff8f96b99
Merge pull request #1404 from tomekc/swift-enhanced
...
Add default initializer to Swift model classes.
2015-10-20 17:54:41 +08:00
Tony Tam
5e69d929a0
rebuilt
2015-10-19 23:13:27 -07:00
Tony Tam
e1ee7065d5
rebuilt client
2015-10-19 23:12:02 -07:00
Tony Tam
aaf1df1971
more flattening fixes
2015-10-19 23:10:48 -07:00
Tony Tam
555fd54fbb
updated swagger-core versions
2015-10-19 22:09:33 -07:00
Tony Tam
905a7746e7
updated test
2015-10-19 21:45:47 -07:00
Tony Tam
eeaf4071f9
updated to not flatten array, map properties in responses unless necessary
2015-10-19 21:35:45 -07:00
Tony Tam
84b7302f12
updated swagger-core version
2015-10-19 21:34:42 -07:00
Robin Eggenkamp
1b0963ebe0
Minimal changes to upgrade to Alamofire 3.0.0
2015-10-19 17:06:41 +02:00
akkie
b054cd3cc6
Deserialize the response body in case of an ApiException
...
Currently it's not possible to use custom models in the ApiException because the body gets not deserialized to Json and therefore the object deserializer cannot deserialize it to a custom model. This pull request uses the same mechanism as used to deserialize the response body in case of a 2xx status code.
2015-10-19 15:17:29 +02:00
wing328
4ea797d0e8
Merge pull request #1392 from nbruno/add-auth-annotations-jaxrs
...
Add authorization scope data to CodegenSecurity
2015-10-19 14:15:05 +08:00
Tony Tam
002feb3e7c
build error
2015-10-18 21:10:13 -07:00
Tony Tam
89dc4d29ab
added map support
2015-10-18 21:05:57 -07:00
Tony Tam
3cf1f1a56a
added support for array and model inline types
2015-10-18 20:51:55 -07:00
Nick Bruno
b83db8e535
Merge remote-tracking branch 'upstream/master' into add-auth-annotations-jaxrs
2015-10-18 17:19:44 -04:00
wing328
eb1e0b5034
Merge pull request #1408 from kkrauth/patch-1
...
Fix syntax issue when no auth methods defined
2015-10-18 16:34:11 +08:00
wing328
d7b4f58994
Merge pull request #1411 from wing328/master
...
Add support for top-level consumes and produces
2015-10-17 17:41:19 +08:00
wing328
e8fbdaabe3
replace tabs with spaces
2015-10-17 16:44:55 +08:00
wing328
b82333aea4
Add support for top-level consumes and produces
...
This reverts commit 0b4b5e8839 .
2015-10-17 16:30:19 +08:00
Nick Bruno
7bbb883a00
Generate JAXRS and SpringMVC samples to demo Authorization annotations
2015-10-16 21:25:54 -04:00
Nick Bruno
6477a27579
Update SpringMVC template to include Authorization annotations
2015-10-16 21:24:17 -04:00
Tony Tam
ad1626ad2d
added yaml sample
2015-10-16 18:22:13 -07:00
Tony Tam
bfa4303e6e
added inline model resolver
2015-10-16 18:21:34 -07:00
Tony Tam
9508579eed
added inline resolver
2015-10-16 18:21:06 -07:00
Steffen Furholm
8bc4c1f05e
Allow overriding of only some templates when using --template-dir option. Templates which aren't found in the template directory will fall back to the ones packaged/distributed with Swagger
2015-10-16 23:29:08 +02:00
Kosta Krauth
9ac980298f
Fix syntax issue when no auth methods defined
...
When no authentication methods are defined, the generated code does not compile due to where the authMethods closing tag is located. Moved the closing tag further down and opening tag further up so that the generated code is correct both when authentication are and aren't present.
2015-10-16 16:45:34 -04:00
wing328
a2fda604f8
Merge pull request #1396 from akkie/disable-ssl-verification
...
Allow to disable SSL verification
2015-10-16 21:08:31 +08:00
Tomek Cejner
8339e4b092
Add default initializer to Swift model classes.
2015-10-16 14:09:55 +02:00
wing328
90eab19305
Merge pull request #1401 from xhh/ruby-base-url-slashes
...
Ruby client: remove trailing slashes from base_url
2015-10-16 19:32:13 +08:00
wing328
8a2c34ba7a
Merge pull request #1403 from cbornet/retrofit_useless_import
...
Remove useless import
2015-10-16 19:12:35 +08:00
wing328
8c5991b793
Merge pull request #1372 from cbornet/retrofit_collectionformat
...
Add colllectionFormat support to retrofit
2015-10-16 18:50:59 +08:00
cbornet
3debd08a32
remove useless import
2015-10-16 12:47:25 +02:00
cbornet
92d1e8a1d9
use StringUtil to format csv
2015-10-16 12:21:45 +02:00
cbornet
71c5160739
add colllectionFormat support to retrofit
...
Fix #1364
2015-10-16 12:21:45 +02:00
Nadezhda Makarkina
3dd0b04fb9
Enums have been added to result file
2015-10-16 11:53:05 +03:00
Nadezhda Makarkina
04369ddfce
Form parameters has been added to the html template
2015-10-16 10:33:56 +03:00
wing328
084e7f7199
Merge pull request #1380 from xhh/java-global-security
...
Apply global security to operations when necessary
2015-10-16 12:50:41 +08:00
wing328
ab026fdde3
Merge pull request #1393 from gwen15/genfix
...
REST client code generation bug fix proposal
2015-10-16 12:42:32 +08:00
xhh
e0dfc1b43d
Ruby client: remove trailing slashes from base_url
...
Closes #1399
2015-10-16 12:02:30 +08:00
wing328
d5e2aea723
Merge pull request #1375 from xhh/issue-1308
...
Remove duplicate fields from sub-classes of the Java codegen
2015-10-16 12:02:25 +08:00
wing328
d2df310290
Merge pull request #1400 from testn/add-library
...
add library in the additional option
2015-10-16 12:00:28 +08:00
Nat Luengnaruemitchai
7db67aa192
add library in the additional option
2015-10-15 20:44:27 -07:00
xhh
a1fa0b0834
Rebuild Petstore samples
2015-10-16 10:47:00 +08:00
xhh
02a9fe2618
Add more test cases for global security
2015-10-16 10:30:26 +08:00
akkie
97a5a8922f
Allow to disable SSL verification
...
This pull request adds the possibility to disable SSL verification for hosts using a self-signed SSL certificate
2015-10-15 16:07:35 +02:00
gwen15
0802f94d94
Bug fix: some character replacement where done on the local directories
...
names.
The dot character was replaced by the file separator on the whole paths,
not only on the package name based part.
2015-10-15 12:35:23 +02:00
gwen15
21eb406140
Fix default long value in java client code generation
...
The generated java code for a Long was "Long id=1;" which is not
compilable by javac because "1" is a primitive integer that cannot be
cast to a Long object. This fix generates now "Long id=1l;".
2015-10-15 12:35:16 +02:00
xhh
84928abd8d
Merge branch 'master' into java-global-security
2015-10-15 17:57:27 +08:00
xhh
1c21730607
Log a warning on more than 1 security requirements
2015-10-15 17:56:38 +08:00
xhh
5a76a1b155
Fix tests regarding security
2015-10-15 16:51:43 +08:00
xhh
bc5a610567
Use the first security requirement from the array
...
According to swagger spec, "there is a logical OR between the security
requirements". The original behavior was to apply the security
requirements as the logic AND and skip security requirements that
include more that 1 security.
2015-10-15 15:17:30 +08:00
wing328
860b551e9b
Merge pull request #1376 from xhh/java-util-model-package
...
[Java] Add a config option to use fully qualified name for java.util classes
2015-10-15 12:12:37 +08:00
wing328
22218cb132
Merge pull request #1378 from xhh/java-invalid-enum-name
...
[Java] Handle enum names starting with number in Java client
2015-10-15 10:51:03 +08:00
Nick Bruno
300a0dc82c
Update retrofit library for changes to OAuth scope handling
2015-10-14 22:50:58 -04:00
wing328
3a66c0c710
Merge pull request #1384 from cbornet/retrofit_test_sample
...
Add retrofit to CI verified samples
2015-10-15 10:42:40 +08:00
xhh
a94384ca7f
Merge branch 'master' into java-util-model-package
2015-10-15 10:38:19 +08:00
xhh
6d50ce6a77
Fix a typo
2015-10-15 10:34:45 +08:00
wing328
583493f5ca
Merge pull request #1377 from cbornet/java_gradle_android
...
Add gradle files with android support to java templates
2015-10-15 10:28:28 +08:00
Nick Bruno
6cc17d8508
Add authorization scope data to CodegenSecurity, demo use in JAXRS
2015-10-14 22:07:43 -04:00
wing328
265b4b5945
Merge pull request #1385 from aersamkull/master
...
Updates to TypeScript Templates 2
2015-10-15 09:46:46 +08:00
xhh
65e63a8c52
Merge remote-tracking branch 'origin/master' into java-global-security
2015-10-14 20:42:20 +08:00
xhh
e4e77d03f5
Add test cases for global security
2015-10-14 20:40:10 +08:00
wing328
638bbfaf43
Merge pull request #1386 from swagger-api/revert-1370-global_consume
...
Revert "Add support for top-level consumes and produces"
2015-10-13 23:56:57 +08:00
wing328
0b4b5e8839
Revert "Add support for top-level consumes and produces"
2015-10-13 23:47:42 +08:00
wing328
c7b08bc112
Merge pull request #1373 from estiller/master
...
Fix bug in handling 204 "No Content" responses from the server in Android & Java generated clients
2015-10-13 22:47:47 +08:00
wing328
f1b0cf839a
Merge pull request #1370 from wing328/global_consume
...
Add support for top-level consumes and produces
2015-10-13 22:35:33 +08:00
aersamkull
988de07c17
Fixes noImplicitAny Error
2015-10-13 13:32:01 +02:00
cbornet
f603efc419
add retrofit to CI verified samples
2015-10-13 12:18:32 +02:00
aersamkull
4e7d893a8e
Updates to TypeScript Templates
2015-10-13 12:01:34 +02:00
xhh
1ef51e5ad7
Apply global security to operations when necessary
...
Closes #1365
2015-10-13 16:22:02 +08:00
xhh
17545e959a
Handle enum names starting with number in Java client
2015-10-13 10:32:07 +08:00
cbornet
5ed52b3e1d
add gradle files with android support
2015-10-12 16:16:38 +02:00
wing328
6ce09ee779
Update config option
2015-10-12 17:34:07 +08:00
xhh
7b1799f874
Merge branch 'master' into java-util-model-package
...
Conflicts:
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-10-12 17:11:43 +08:00
xhh
43b3acf550
Remove duplicate fields from sub-classes of the Java codegen
...
Closes #1308
2015-10-12 17:07:17 +08:00
wing328
d162d48fa3
Merge pull request #1359 from wing328/better_exception_handling2
...
Better exception handling
2015-10-12 16:58:01 +08:00
Eran Stiller
e562b0ae34
Fix indentation
2015-10-12 09:52:20 +03:00
Eran Stiller
748460488a
Regenerate only the ApiInvoker.java file in the sample
2015-10-12 09:25:24 +03:00
Eran Stiller
1fb2a97497
Revert "Regenerate Android-Java sample"
...
This reverts commit 15f5eae2a8 .
2015-10-12 09:22:36 +03:00
Eran Stiller
15f5eae2a8
Regenerate Android-Java sample
2015-10-12 08:52:52 +03:00
Eran Stiller
6fd54d5285
Fix bug in handling 204 responses
2015-10-12 08:51:00 +03:00
wing328
00517a1ad3
remove unused operation in test json file
2015-10-10 23:27:21 +08:00
wing328
5cd01af350
fix typo in test cases
2015-10-10 23:22:42 +08:00
wing328
9ecb2e92ae
restore sample files for objc, php and ruby
2015-10-10 23:13:26 +08:00
wing328
6cc5a32d40
update objc sample
2015-10-10 23:09:41 +08:00
wing328
64fd94262f
add globalConsumesAndProduces.json
2015-10-10 22:54:13 +08:00
wing328
5144c54895
add test case for global consumes and produces
2015-10-10 22:47:24 +08:00
wing328
9311dcaccb
update codegen to support global consumes and produces
2015-10-10 18:39:54 +08:00
Tony Tam
a5a6ae72c3
Merge pull request #1368 from ducin/badge-maven-central
...
maven central badge added
2015-10-09 09:38:50 -07:00
Tomasz Ducin
c31ed5a30d
maven central badge added
2015-10-09 18:14:27 +02:00
xhh
aa0fbada07
Add a "fullJavaUtil" option to Java clients
...
to toggle whether to use full qualified name (with full package prefix)
for classes under java.util
2015-10-09 22:10:22 +08:00
xhh
ab34dc5697
Rebuild Java cilents of the Petstore sample
2015-10-09 22:10:21 +08:00
xhh
edf2642e73
Support model name like "List" in Java clients
...
Support generating model files with name like "List", "Map" and "Date"
by using full qualified names when using them from the java.util
package.
2015-10-09 22:10:21 +08:00
wing328
d95660aca1
Merge pull request #1340 from onnertech/ios-tweaks
...
[objc] Add casts that avoid method resolution errors for `count`
2015-10-09 16:44:54 +08:00
wing328
297f9e961c
Merge pull request #1362 from cristiangarciascmspain/fix-OSX-Pom-TestNG
...
Add StartAttachListener that fixes #1330
2015-10-09 15:34:15 +08:00
wing328
42b716207f
Merge pull request #1360 from wing328/nodejs_server_port
...
[NodeJS] update index.js to use the var serverPort
2015-10-09 11:32:01 +08:00
wing328
7d69107696
Merge pull request #1356 from arnested/deserialize-httpHeader
...
Deserialize httpHeader.
2015-10-09 11:31:24 +08:00
wing328
4d2fb1cc9a
Merge pull request #1355 from arnested/usage-of-httpHeader-in-exceptions
...
Use HTTP headers from ApiException in PHP client.
2015-10-09 11:31:15 +08:00
cristiangarciascmspain
503ffd06d0
Add StartAttachListener that fixes #1330
2015-10-08 18:30:13 +02:00
wing328
725df15dd5
update sample for nodejs
2015-10-08 23:57:14 +08:00
wing328
8e9e3a6171
update nodejs to use the var serverport
2015-10-08 23:52:41 +08:00
wing328
6ee42bebe6
add exception handling for #1267
2015-10-08 23:38:09 +08:00
wing328
69a346cb57
remove python3 frmo all-petstore.sh
2015-10-08 23:38:09 +08:00
wing328
d451d4efb8
fix NPE when model's allof with no property
2015-10-08 23:38:09 +08:00
Arne Jørgensen
b7b8b527db
Use HTTP headers from ApiException in PHP client.
...
The `$httpHeader` variable was not set when catching exceptions.
See also #1354 .
Regenerated php-petstore sample.
2015-10-08 11:46:36 +02:00
Arne Jørgensen
3bd4502bbf
Deserialize httpHeader.
...
See #1354 .
Regenerated php-petstore sample.
2015-10-08 11:25:43 +02:00
Tony Tam
733e19c113
fixed NPE for objc client
2015-10-07 17:11:52 -07:00
wing328
735cae7b49
Merge pull request #1335 from wing328/html_remove_site_css
...
[HTML] remove site.css from html docs
2015-10-07 16:26:53 +08:00
wing328
3b36bbe97d
Update README.mustache
2015-10-06 18:39:44 +08:00
wing328
228e039046
Merge pull request #1333 from wing328/csharp_fix_accept
...
[C#] better Accept header selection for C# API client
2015-10-06 18:26:02 +08:00
wing328
b27663e1ad
Update README.md
2015-10-06 16:14:13 +08:00
wing328
eaddebe220
Update list of generator
2015-10-06 16:13:06 +08:00
wing328
f8485f26d3
Merge pull request #1317 from cbornet/online_options
...
Add options to online generator
2015-10-06 12:00:51 +08:00
Ches Martin
d9117480f8
[objc] Add casts that avoid method resolution errors
...
Because the `data` that we're deserializing is of type `id` (essentially
untyped), it's possible to have method resolution clashes without
explicitly casting here once we've parsed a type. I had this issue with
a pagination container model, for instance, which has a field named
`count` that conflicts with the property of the same name on `NSArray`
or `NSDictionary`.
2015-10-06 10:58:48 +07:00
wing328
7b79abef63
update c# sample
2015-10-06 11:33:00 +08:00
wing328
dbd89092f0
add accept header select to async method
2015-10-06 11:30:17 +08:00
wing328
6ed7663466
add remarks to csharp method
2015-10-06 11:28:18 +08:00
wing328
d882e9fe0a
remove site.css from html docs
2015-10-05 22:33:25 +08:00
wing328
ea1c2809f7
Merge pull request #1329 from iushankin/issue-1304-part3
...
Fixed #1304 : Migrate tests from the Scala to the plain Java. Part 3
2015-10-05 18:29:36 +08:00
wing328
3c78e29a12
better Accept header for C#
2015-10-05 13:19:58 +08:00
wing328
6cb4473526
Merge pull request #1328 from ducin/docs-toc
...
readme: Table of Contents
2015-10-05 00:05:32 +08:00
wing328
65a9c78544
Merge pull request #1319 from cbornet/online_version
...
Add version to swagger.json from pom's version
2015-10-04 23:57:16 +08:00
wing328
69911a1974
Merge pull request #1311 from xhh/java-okhttp-gson-ssl
...
Add some SSL options to Java okhttp-gson client
2015-10-04 23:02:25 +08:00
wing328
761029241e
Merge pull request #1331 from qswinson/csharp_comments
...
Csharp comments
2015-10-03 10:31:44 +08:00
Quenby Mitchell
1018ca634d
generic types need to be escaped for the xmldoc to work for return documentation. List<Foo> should be List{Foo} for the c# compiler to generate the documentation for the generic type. since there is not a spare parameter on the CodegenOperation model to put this correctly formatted documentation, for right now, don't include the return type in the documentation.
2015-10-02 13:11:54 -05:00
Quenby Mitchell
ff0b0c15a8
fix build warnings on CSharp xml comments
2015-10-02 12:14:41 -05:00
wing328
727c32f2a2
Merge pull request #1312 from iushankin/issue-1304
...
Issue #1304 : Migrate tests from the Scala to the plain Java. Part 2
2015-10-02 23:50:37 +08:00
wing328
3c0eab65f3
Merge pull request #1323 from cbornet/fix_scopes_npe
...
Fix NPE in empty operation oauth scopes
2015-10-02 23:39:25 +08:00
wing328
a72ac99c91
Merge pull request #1316 from cbornet/dynamic_enum
...
Dynamically fill swagger enum from codegen client names
2015-10-02 23:37:15 +08:00
Ivan Ushankin
4b62a94350
Fixed #1304 : Migrate tests from the Scala to the plain Java. Part 3
2015-10-02 16:20:16 +03:00
Tomasz Ducin
12d8f97aee
improving ToC
2015-10-01 23:26:24 +02:00
Tomasz Ducin
acaf1b1cd0
added Table of Contents
...
Initial version of table of contents - showing all headers in the current shape.
2015-10-01 23:14:34 +02:00
cbornet
c1c3439b86
fix some wrong indentations
2015-10-01 17:42:33 +02:00
cbornet
5744bb4053
fix npe in empty operation scopes
...
Fix #1322
2015-10-01 17:35:07 +02:00
wing328
2711e375cc
Merge pull request #1310 from wing328/fix_dynamic_html_parameter_name
...
[HTML] Fix parameter name in dynamic-html
2015-10-01 20:07:29 +08:00
cbornet
25abc15233
add version to swagger.json from pom's version
...
Fix #1314
2015-10-01 14:00:19 +02:00
cbornet
984b645ea1
add options to online generator
...
Fix #1313
2015-10-01 11:09:25 +02:00
wing328
253c46a0d5
Merge pull request #1309 from wing328/fix_springmvc_object
...
[SpringMVC] fix compilation error by removing import of Object
2015-10-01 10:02:20 +08:00
cbornet
7c431a8e11
dynamically fill swagger enum from codegen client names
2015-10-01 01:12:09 +02:00
Ivan Ushankin
3c98e32765
Issue #1304 : Migrate tests from the Scala to the plain Java. Part 2
2015-09-30 17:38:01 +03:00
xhh
f483f934d8
Add some SSL options Java okhttp-gson client
...
* Add the `verifyingSsl` option to allow skipping verifying SSL
certificate and host name (default to verify)
* Add `sslCaCert` to allow customizing the CA certificates
2015-09-30 19:48:18 +08:00
wing328
053af7a749
Merge pull request #1305 from iushankin/issue-1304
...
Fixed #1304 : Migrate tests from the Scala to the plain Java. Part 1
2015-09-30 17:57:05 +08:00
wing328
d2d6ff661a
fix parameter name in dynamic html
2015-09-30 17:24:11 +08:00
wing328
17bdd73891
fix springmvc by removing import of Object
2015-09-30 16:28:17 +08:00
Tony Tam
d9bfb884da
Merge pull request #1307 from warnyul/master
...
Fix objc model inheritance.
2015-09-29 22:58:43 -07:00
Balázs Varga
19d8766363
Fix model inheritance.
2015-09-29 10:07:51 +02:00
wing328
e270fdcfd9
Merge pull request #1300 from geekerzp/python_client_cert
...
[Python] Support client certificate file and client key file in TLS/SSL
2015-09-29 14:50:11 +08:00
wing328
a2f47672e7
Merge pull request #1297 from geekerzp/objc_upload_file
...
[Objc] Add test case in objc client
2015-09-29 14:49:37 +08:00
wing328
90dc0a7bd8
Merge pull request #1302 from geekerzp/ruby_client_cert
...
[Ruby] Support client ceritficate in ruby client
2015-09-29 14:44:17 +08:00
Fredric Dorothy
2a679f798a
Merge https://github.com/fdorothy/swagger-codegen
2015-09-28 11:52:30 -05:00
Fredric Dorothy
dbecb9e562
Added ability to set a configuration file for custom code generators. This should work the same as when you're using one of the built-in generators.
2015-09-28 11:50:08 -05:00
Ivan Ushankin
4db86003f5
Fixed #1304 : Migrate tests from the Scala to the plain Java. Part 1
2015-09-28 19:03:02 +03:00
Tony Tam
d5cf2b6cfe
made host dynamic for link generation
2015-09-28 08:51:39 -07:00
geekerzp
6a3108a6bf
Support client ceritficate in ruby client
2015-09-28 16:31:47 +08:00
wing328
2ea3816e65
Merge pull request #1290 from geekerzp/model_name
...
[Python, Ruby] Fix issues in python and ruby clients
2015-09-28 08:35:28 +08:00
wing328
baca3027f4
Merge pull request #1298 from geekerzp/ruby_upload_file
...
[Ruby] Add test case in ruby client
2015-09-27 22:20:20 +08:00
wing328
0e9e2046e7
Merge pull request #1293 from xhh/fix-set-date-format
...
[Java jersey2]: Fix ApiClient.setDateFormat in Java jersey2 client
2015-09-27 21:48:53 +08:00
wing328
e301020acc
Merge pull request #1295 from geekerzp/python_upload_file
...
[Python] Fix issue in python client
2015-09-27 21:48:29 +08:00
geekerzp
cf1f113852
Support client certificate file and client key file in TLS/SSL in python client
2015-09-26 16:16:59 +08:00
wing328
c26a387d9a
Merge pull request #1271 from laurentvdl/master
...
implement form parameter support using Angular $httpParamSerializer
2015-09-26 09:37:40 +08:00
geekerzp
c70ca9d572
Add test case in ruby client
2015-09-25 17:33:39 +08:00
geekerzp
6bdfb8810c
Add test case in objc client
2015-09-25 16:48:19 +08:00
wing328
2a5ab78056
Merge pull request #1296 from xhh/fix-enum-constructor
...
Fix hard-coded constructor name of enum class in Java okhttp-gson client
2015-09-25 16:34:13 +08:00
xhh
e5a4ef3ba0
Fix hard-coded constructor name of enum class
...
in Java okhttp-gson client
2015-09-25 15:52:52 +08:00
geekerzp
9b148be57e
Fix issue in python client.
...
If upload only file it will not send file content.
2015-09-25 15:10:32 +08:00
wing328
0380fc5a35
Merge pull request #1274 from geekerzp/objc_log
...
[Objc] Update objc debug logging
2015-09-25 11:57:28 +08:00
xhh
597282742b
Fix ApiClient.setDateFormat in Java jersey2 client
2015-09-24 21:56:50 +08:00
wing328
5e805c2be6
Merge pull request #1284 from acourtneybrown/master
...
Fixed method name in Java ApiClient mustache template
2015-09-24 16:39:46 +08:00
wing328
b080abeb01
Merge pull request #1280 from xhh/primitive-string-response
...
[Java] Support primitive string response in Java clients
2015-09-24 16:37:17 +08:00
geekerzp
2943f41cdd
Update python and ruby clients.
...
Use `sanitizeName` to sanitize model name.
2015-09-24 16:29:20 +08:00
geekerzp
84e0df6115
Fixed issue that model name not camelized in python client and ruby client
2015-09-24 16:23:44 +08:00
wing328
a49826e4d7
Merge pull request #1289 from geekerzp/python_log
...
[Python] Update python log
2015-09-24 16:09:06 +08:00
wing328
b8792b6a71
Merge pull request #1276 from bedag/master
...
Better diagnostics when something goes wrong
2015-09-24 11:42:48 +08:00
wing328
5ee86b9816
Merge pull request #1264 from xhh/java-enum-improvements
...
[Java] Improvements on enum var name in Java client
2015-09-24 11:42:11 +08:00
geekerzp
e32272aedb
Update log in python client
2015-09-24 10:54:24 +08:00
wing328
ee7f447f77
Merge pull request #1187 from Edubits/swift-2.0
...
[Swift] Update generated code to Swift 2.0
2015-09-24 10:51:05 +08:00
wing328
a5fb689615
Merge pull request #1260 from wing328/remove_python3_generator
...
[Python] remove python3 generator
2015-09-24 10:50:47 +08:00
geekerzp
a26cf60a22
Revert "Revert "[Python] Fix issue in python client""
...
This reverts commit c59e2b88b1 .
2015-09-24 10:08:16 +08:00
wing328
ed13d7b1b8
Merge pull request #1288 from swagger-api/revert-1281-python_log
...
Revert "[Python] Fix issue in python client"
2015-09-24 09:41:18 +08:00
wing328
c59e2b88b1
Revert "[Python] Fix issue in python client"
2015-09-24 09:30:49 +08:00
wing328
e8d40a146c
Merge pull request #1281 from geekerzp/python_log
...
[Python] Fix issue in python client
2015-09-24 09:27:00 +08:00
Adam Brown
4ef69794a3
Fixed method name in Java ApiClient mustache template
2015-09-23 14:16:26 -07:00
geekerzp
30fbdd4d05
Add class prefix to macro DebugLog in objc client
2015-09-23 17:18:07 +08:00
geekerzp
13c079342e
Fixed issue #1262
2015-09-23 14:55:46 +08:00
xhh
a284bb7a51
Rebuild Java clients of the Petstore sample
2015-09-23 13:31:28 +08:00
xhh
44bbe301cb
Support primitive string response in Java clients
2015-09-23 12:50:38 +08:00
wing328
69f8274287
Merge pull request #1272 from wing328/add_cli_parameter_order
...
Add CLI option to sort method arguments
2015-09-23 09:47:00 +08:00
wing328
770ea9d12e
Merge pull request #1270 from xhh/php-sanitize-model-name
...
Fix #1145 : sanitize model name in PHP client
2015-09-23 09:44:38 +08:00
wing328
d09d8bb495
Merge pull request #1269 from efossier/expose-readonly-to-template
...
Expose readOnly attribute on model properties to templates
2015-09-23 09:29:49 +08:00
wing328
85f99934c8
Merge pull request #1256 from cbornet/java_retrofit_lib
...
Set retrofit as a java library
2015-09-23 09:12:07 +08:00
Adrian Moos
66dee928d2
consistent indentation (spaces, not tabs)
2015-09-22 18:08:47 +02:00
Adrian Moos
d4a94fbf52
- DefaultGenerator now communicates failures by throwing exceptions
...
rather than setting a status flag in a public field
- DefaultGenerator now decorates exceptions to record where a failure
occured (which api, model or operation?)
- CodeGenMojo now propagates this exception to maven to abort the build
2015-09-22 18:01:29 +02:00
geekerzp
844cae75b7
Update debug logging in objc client
2015-09-22 16:32:15 +08:00
wing328
4e4e9e7893
add a CLI option to sort method argument
2015-09-22 15:57:22 +08:00
Laurent Van der Linden
61690d625f
change the constructor signature to be backwards compatible
...
update petstore samples for angular and node
2015-09-22 09:20:52 +02:00
Laurent Van der Linden
1cd8141645
implement form parameter support using Angular $httpParamSerializer
2015-09-22 08:37:49 +02:00
wing328
98ff2d231f
Merge pull request #1261 from wing328/typescript-node-fix-param-name
...
[TypeScript] fix parameter name for typescript-node using baseName
2015-09-22 14:22:07 +08:00
xhh
09add2d871
Fix test failure by allowing backslash in model name
2015-09-22 14:03:27 +08:00
xhh
9cbf2d3707
Fix #1145 : sanitize model name in PHP client
2015-09-22 11:33:11 +08:00
geekerzp
0622838947
Fixed issues about logging in objc client
2015-09-22 09:29:48 +08:00
Evan Fossier
a6df340cdc
Expose readOnly attribute on model properties to templates, can now use isReadOnly property in model templates
2015-09-21 17:34:23 -07:00
xhh
bcbf9c54c7
Remove unnecessary checking of empty string
2015-09-21 18:14:57 +08:00
xhh
6dcaa890cf
Improvements on enum var name in Java client
...
* Place each enum var in a separate line
* Truncate common prefix when present
2015-09-21 17:29:26 +08:00
wing328
2b06a81a52
remove extra line break in typescript-node sample code
2015-09-20 23:17:04 +08:00
wing328
956624f1a4
remove extra line break for typescript-node
2015-09-20 23:15:02 +08:00
wing328
b1728aed7c
update sample for typescript-node
2015-09-20 23:11:46 +08:00
wing328
8733be9ac9
update sample, fix formData basename
2015-09-20 23:06:29 +08:00
wing328
c203854254
fix parameter name for typescript-node using baseName
2015-09-20 22:59:56 +08:00
wing328
3dc3af8d18
remove python3 generator
2015-09-20 22:43:43 +08:00
wing328
cbc2fb237d
Merge pull request #1252 from seanbright/model-with-no-props
...
Fix NPE in JavaClientCodegen when model has no properties of its own
2015-09-20 21:57:05 +08:00
wing328
b7d64d1352
Merge pull request #1254 from GoodTRKR/master
...
[Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance
2015-09-19 01:04:10 +08:00
cbornet
047b06ac84
remove retrofit codegen from config
2015-09-18 15:03:55 +02:00
cbornet
f29f5d6f13
fix error with formParams in async ops
2015-09-18 14:45:37 +02:00
cbornet
1863aca0fa
set retrofit as a java library
...
Fix #1247
Fix #1248
2015-09-18 14:21:48 +02:00
wing328
cf300c09da
Merge pull request #1246 from laurentvdl/patch
...
Use the baseName when referring to path and query parameters.
2015-09-18 16:46:46 +08:00
wing328
27ab9c2e57
Merge pull request #1238 from DariusMR/master
...
unicode type forgotten in api_client.mustache for python
2015-09-18 16:44:35 +08:00
Laurent Van der Linden
c83c564a19
Use the baseName when referring to header parameters.
2015-09-18 08:05:13 +02:00
wing328
8978a0a906
Merge pull request #1242 from xhh/options-http-method
...
[Java okhttp-gson] Support the "OPTIONS" HTTP method
2015-09-18 10:47:27 +08:00
wing328
6d21422bad
Merge pull request #1245 from geekerzp/objc_ssl
...
[Objc] Enhancements of objc client
2015-09-18 10:45:43 +08:00
Matthew Davis
65cfa735d5
[Obj-C] removed extraneous logs unless logging is specifically enabled in the [SWGConfiguration sharedConfig] instance
2015-09-17 17:39:26 -07:00
Sean Bright
e2ce427fb1
Fix NPE in JavaClientCodegen when model has no properties of its own
...
A model that inherits from another model and does not add its own properties
causes JavaClientCodegen to crash silently with an NPE.
Fixes #1141
2015-09-17 14:35:07 -04:00
Laurent Van der Linden
781458b0d1
Use the baseName when referring to path and query parameters.
2015-09-17 12:46:20 +02:00
DariusM
65f86dbb0f
unicode type forgotten in api_client.mustache for python2, works also with python3
2015-09-17 10:31:40 +02:00
DariusM
cc1c495ea5
unicode type forgotten in api_client.mustache
2015-09-17 10:26:08 +02:00
geekerzp
261ae79528
Remove space from parameterToString in objc client
2015-09-17 15:59:03 +08:00
geekerzp
fb14585adf
Add parameterToString method
2015-09-17 15:20:11 +08:00
wing328
27e434d786
Merge pull request #1239 from ePaul/feature/use-baseName-for-jsonproperty
...
Use the swagger property names in all Java models.
2015-09-17 14:43:21 +08:00
wing328
2a37c48e12
Merge pull request #1243 from process/patch-1
...
[DOC] fix typo in Python api_client template
2015-09-17 14:42:45 +08:00
Justin Chines
85df7c8ed7
[DOC] fix typo in Python api_client template
2015-09-16 22:09:01 -07:00
wing328
b3ca9cdbe0
Merge pull request #1154 from cbornet/retrofit_oauth
...
[Retrofit] add authorizations to retrofit client
2015-09-17 11:47:06 +08:00
xhh
477d5c40d9
Rebuild Java okhttp-gson client of Petstore sample
2015-09-17 10:22:53 +08:00
xhh
460c8caa8a
Support OPTIONS in Java okhttp-gson client
2015-09-17 10:22:53 +08:00
wing328
53e13aee19
Merge pull request #1234 from geekerzp/python_http_verb
...
[Python] Enhancements http verbs of python client
2015-09-16 22:32:58 +08:00
wing328
ec05dc4414
Merge pull request #1236 from wing328/springmvc_file_upload
...
[SpringMVC] Replaced hard-coded fileDetail with {{baseName}}
2015-09-16 18:17:12 +08:00
Paul Ebermann
7eec769654
Use the swagger property names in all Java models.
...
This changes `@JsonProperty({{name}})` to `@JsonProperty({{baseName}})` in model.mustache for JavaInflector, JavaJaxRS and JavaSpringMVC.
In pull request #535 this was already done for the plain Java files (which get used on client side).
This replaces the sanitized names in the generated code by the original property names from the swagger document.
2015-09-16 11:36:51 +02:00
wing328
f483b8dfa8
Merge pull request #1233 from geekerzp/ruby-apiclient
...
Fix issue that using temp_folder_path from ApiClient in ruby client
2015-09-15 22:28:54 +08:00
wing328
2ac41ff080
repalced hard-coded fileDetail with {{baseName}}
2015-09-15 22:14:13 +08:00
geekerzp
ade61c0701
Support http body in OPTIONS request in python client
2015-09-15 17:48:59 +08:00
geekerzp
bd63c1d9d9
Support OPTIONS http verb in python client.
2015-09-15 16:40:23 +08:00
geekerzp
5d1e70544c
Fix issue that using temp_folder_path from ApiClient
...
It should use the one from the Configuration object
2015-09-15 15:04:39 +08:00
wing328
349702adf9
Merge pull request #1232 from geekerzp/python_issue
...
Fix issue in python client
2015-09-15 12:14:49 +08:00
wing328
88410635b3
Merge pull request #1228 from geekerzp/objc_ssl
...
Objc client ssl verification
2015-09-15 10:14:20 +08:00
geekerzp
0262d3c8d2
Fix issue #1230
2015-09-15 09:57:55 +08:00
wing328
96f4a3ab71
Merge pull request #1226 from xhh/java-okhttp-gson-file-downloading
...
[Java okhttp-gson] Add support of file downloading
2015-09-14 22:09:48 +08:00
geekerzp
b0063d9e9f
Objc client ssl verification
2015-09-14 18:29:49 +08:00
wing328
48bd888483
Merge pull request #1222 from madhukard/master
...
Java: Support List of Enums in postProcessModels
2015-09-14 01:21:34 +08:00
wing328
1358e33bf6
Merge pull request #1223 from GoodTRKR/master
...
[Obj-C] Fixed an issue where NSNumber parameters would cause a crash in multipart/form-data upload endpoints
2015-09-14 00:28:43 +08:00
wing328
c8edacb25c
Merge pull request #1225 from wing328/fix_getHasXXXParam
...
Fix getHasXxxParam in CodegenOperation
2015-09-13 22:15:50 +08:00
wing328
47dc4d7642
Merge pull request #1218 from wing328/csharp_fix_map_string
...
[C#] update map to use String instead of string
2015-09-13 22:15:22 +08:00
xhh
1ecb8a74c1
Allow customizing temp folder for file downloading
2015-09-13 21:02:22 +08:00
xhh
967c574f5b
Support file downloading in Java okhttp-gson client
2015-09-13 18:41:53 +08:00
wing328
8bb8a7a79a
fix getHasXxxParam
2015-09-12 16:00:10 +08:00
Matthew Davis
1268b0627f
added NSNumber catch to pathParams as well
2015-09-11 17:33:36 -07:00
Matthew Davis
761f172c2f
forgot an 'else' statement
2015-09-11 17:27:25 -07:00
Matthew Davis
1321d5f9a5
[Obj-C] Fixed an issue where NSNumber parameters would cause a crash in multipart/form-data upload endpoints
2015-09-11 17:23:48 -07:00
Madhukar Devaraju
35f462f571
Java: Support List of Enums in postProcessModels
2015-09-11 14:56:37 -07:00
wing328
f21fa08cd6
update C# ParamterToString to support array of object, add test case
2015-09-11 22:48:38 +08:00
wing328
16afd4ee9b
update map to use String instead of string
2015-09-11 18:02:51 +08:00
wing328
46f78f2180
Merge pull request #1215 from xhh/java-last-resp-info
...
[Java jersey2 okhttp-gson] Fix compilation error, record status code and response headers of last request
2015-09-11 16:05:09 +08:00
xhh
2e402bba97
Rebuild Java clients for the petstore sample
2015-09-11 13:22:37 +08:00
xhh
34f196a144
Java-okhttp-gson: allow access to status code and response headers of last (async) request
2015-09-11 13:22:37 +08:00
xhh
def3f5b3fb
Java-jersey2: record status code and response headers of last request
2015-09-11 13:22:37 +08:00
xhh
60e5a34534
Update Java-jersey2 client to skip binary support
...
Binary parameter/response support was added to the default Java client
codegen which changed the signature of the `invokeAPI` method in
"api.mustache", causing the "jersey2" client fail to compile.
Here an separate version of `api.mustache` is added for "jersey2" client
which does not handle binary support (for now).
2015-09-11 13:22:37 +08:00
wing328
1eed90f34e
Merge pull request #1214 from GoodTRKR/master
...
[Obj-C] Fixed an issue with incorrect references in the ApiClient when using a custom prefix.
2015-09-11 09:30:58 +08:00
wing328
e34063f0f2
Merge pull request #1213 from LeoYReyes/patch-1
...
[C#] Api.mustache - Remove the parameter in the BasePath getter
2015-09-11 08:41:08 +08:00
Matthew Davis
dbdcf34044
[Obj-C] Fixed an issue with incorrect references in the ApiClient when using a custom prefix.
2015-09-10 15:14:53 -07:00
Leo
43d71ed10c
Remove the parameter in the BasePath getter
...
The parameter in the BasePath getter is not needed.
2015-09-10 12:17:23 -05:00
wing328
b3db24ead6
Merge pull request #1210 from arnested/missing-head-and-options-in-php-client
...
Add HEAD and OPTIONS support in PHP client.
2015-09-10 22:07:31 +08:00
wing328
d21c6f2b45
Merge pull request #1205 from wing328/SLF4J_warning
...
update pom.xml to remove warning
2015-09-10 21:52:45 +08:00
Arne Jørgensen
3c3762fd92
Add HEAD and OPTIONS support in PHP client.
...
The generated PHP client didn't support the HEAD and OPTIONS methods.
Followup on #1156 and #1201 .
2015-09-10 14:55:49 +02:00
Robin Eggenkamp
0edbfeff15
Bump Alamofire version to final 2.0.0
2015-09-10 14:24:55 +02:00
Ron
4b539a9d6e
Merge pull request #1206 from wing328/fix_sinatra_type
...
[Sinatra] fix sinatra type (tag)
2015-09-09 15:59:22 +03:00
wing328
71a3218bb3
fix sinatra type (tag)
2015-09-09 20:27:59 +08:00
wing328
d37cf6595a
update pom.xml to get rid of the warning
2015-09-09 16:20:17 +08:00
wing328
1bac705876
Merge pull request #1200 from wing328/dart_permission
...
[Dart] update dart-petstore.sh permission
2015-09-08 22:28:12 +08:00
wing328
3385082e2c
Merge pull request #1201 from arnested/missing-head
...
Fix HEAD path item is missing.
2015-09-08 22:28:03 +08:00
wing328
2b1a63a7de
Merge pull request #1150 from ePaul/bugfix/1146-escape-line-breaks-in-response-description
...
jaxrs: escape line breaks in response description
2015-09-08 21:38:50 +08:00
wing328
93847d8dc7
Merge pull request #1149 from ePaul/feature/1146-do-not-escape-javadocs
...
jaxrs (and other Java generators): do not escape newlines in generated javadocs.
2015-09-08 21:17:14 +08:00
Arne Jørgensen
3514bf14b3
Fix HEAD path item is missing.
...
Fixes #1156 .
2015-09-08 10:00:17 +02:00
wing328
e215a1c87f
update dart permission
2015-09-08 11:38:01 +08:00
wing328
5bcd8fb207
Merge pull request #1199 from xhh/java-okhttp-gson
...
[Java okhttp-gson, Android] Set source and target compatibility to 1.7 in build.gradle
2015-09-08 11:31:38 +08:00
wing328
a8f7708789
Merge pull request #1198 from yissachar/dart
...
Add Dart support
2015-09-08 09:18:51 +08:00
wing328
26c0bfef7d
Merge pull request #1196 from wing328/typescript_basepath
...
[TypeScript] Fix base path
2015-09-07 21:57:23 +08:00
wing328
12190e0900
Merge pull request #1172 from xhh/ruby-apiclient
...
[Ruby] Implement API client structure for Ruby client
2015-09-07 21:56:59 +08:00
wing328
f340a389e9
Merge pull request #1182 from Helmsdown/cli-enhancements-2
...
Refactor codegen to support an "uber" meta model for user defined values
2015-09-07 21:55:50 +08:00
xhh
8b96cdb7d7
Set source/target compatibility in Android client
2015-09-07 16:35:34 +08:00
xhh
90307cafc6
Merge branch 'master' into java-okhttp-gson
2015-09-07 15:33:18 +08:00
Yissachar Radcliffe
58c5ecf13c
Generate auth files to correct location
2015-09-06 19:58:28 -04:00
Yissachar Radcliffe
e72a53448e
Add Dart support
2015-09-06 18:35:29 -04:00
wing328
90b89c6189
fix typescript basepath
2015-09-05 16:48:00 +08:00
wing328
ee1febcd95
Merge pull request #1188 from wing328/master
...
[NodeJS] fixed HTML-escaped description on nodejs json files
2015-09-05 15:44:16 +08:00
russellb337
6c079e95d9
Merge remote-tracking branch 'upstream/master' into cli-enhancements-2
2015-09-04 15:25:10 -07:00
russellb337
d22398eb73
put all values into dynamic properties map
2015-09-04 15:24:36 -07:00
wing328
30228dcca5
Merge pull request #1192 from SparrowJang/master
...
Python - response is empty object
2015-09-04 22:42:39 +08:00
wing328
2e30a3af27
Merge pull request #1189 from mad102190/feature/objc-response-headers
...
[Obj-C] Added ability to access HTTP Response headers
2015-09-04 16:42:25 +08:00
wing328
212d240316
Merge pull request #1190 from mad102190/fixes/objc-podspec-generation
...
[Obj-C][Cocoapods] Added extra CLI options to generate a valid podspec file.
2015-09-04 16:36:17 +08:00
sparrow.jang
ba701be2f2
fixed a empty object for response
2015-09-04 15:20:34 +08:00
SparrowJang
f6d624be2a
Merge pull request #2 from swagger-api/master
...
merge
2015-09-04 14:25:34 +08:00
Matthew Davis
f705e03fc4
changes to podspec.mustache to accept new params
2015-09-03 13:02:24 -07:00
Matthew Davis
75bb59572a
added extra CLI options required to generate a valid (lint-able) podspec file.
2015-09-03 12:54:25 -07:00
Matthew Davis
f067b86fa0
re-built sample objc-petstore
2015-09-03 12:31:30 -07:00
Matthew Davis
2822e9ea38
added support for retrieving HTTP response headers in obj-c. Also added a +sharedAPI class method for easy initialization of an API class without passing headers
2015-09-03 12:18:00 -07:00
russellb337
435ce7b9d5
make JsonAnySetter for dynamic properties "builder" style
2015-09-03 10:16:44 -07:00
russellb337
ab6118afe4
update default generator to skip generation of models that have import mappings defined
2015-09-03 08:24:33 -07:00
wing328
8ce06fc898
fix HTML-escaped description on nodejs json files
2015-09-03 22:38:19 +08:00
wing328
9e8e5db7b3
Merge pull request #1180 from ist-ltd/master
...
Support dots in output folder for C# generator
2015-09-03 22:26:38 +08:00
russellb337
44b5c22cd4
Merge remote-tracking branch 'upstream/master' into cli-enhancements-2
2015-09-02 09:28:58 -07:00
russellb337
6d7557971b
switch Generate to use CodegenConfigurator
2015-09-02 09:28:40 -07:00
Cameron
9af16c0d79
Support dots in output folder for C# generator
2015-09-02 13:36:35 +01:00
xhh
027e4c5a20
Set source and target compatibility to 1.7
...
in build.gradle to make it work with Android
2015-09-02 18:35:58 +08:00
wing328
c56d807a15
Merge pull request #1169 from boazsapir/master
...
Handle correctly the case of no default response (see comment in #1124 )
2015-09-02 18:03:02 +08:00
wing328
7d4ba27e01
Merge pull request #1162 from xhh/java-okhttp-gson
...
[Java] Add a new library template: okhttp-gson
2015-09-02 16:21:39 +08:00
Tony Tam
c8ed2b0d50
Merge pull request #1175 from swagger-api/feature/issue-1173
...
formatting, vendor extensions on operations
2015-09-02 00:02:20 -07:00
Tony Tam
1520ec536e
formatting, vendor extensions on operations
2015-09-01 23:34:29 -07:00
Tony Tam
e434380eae
Merge pull request #1174 from swagger-api/feature/issue-1173
...
Feature/issue 1173
2015-09-01 23:16:13 -07:00
Tony Tam
5940f46f56
added vendor extensions on parameters per #1173
2015-09-01 23:04:33 -07:00
xhh
7c60e2097f
Update API client initialization in Ruby test
2015-09-02 12:00:27 +08:00
xhh
fc7cffbab7
Merge branch 'master' into ruby-apiclient
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/RubyClientCodegen.java
2015-09-02 11:46:53 +08:00
Tony Tam
b099d1e7a2
added configuration to superclass for overriding param reordering for #1171
2015-09-01 15:53:58 -07:00
b_sapir
31e8aca357
Handle correctly the case of no default response (see comment in #1124 )
2015-09-01 18:26:15 +03:00
wing328
d746894ecb
Merge pull request #1168 from xhh/bug-enum-constructor
...
Fix bug of hard-coded enum name in Java client
2015-09-01 22:56:04 +08:00
xhh
2c64e0893b
Fix bug of hard-coded enum name in Java client
2015-09-01 20:06:44 +08:00
xhh
3c79a692aa
Use a separate library for base64-encoding in the okhttp-gson template
2015-09-01 19:56:06 +08:00
wing328
72255286b3
Merge pull request #1144 from ePaul/bugfix/1143-add-nullcheck-for-allowedvalues
...
Add null check to fix issue #1143
2015-09-01 11:54:22 +08:00
xhh
3112e4ad06
Add build files for Gradle and SBT
2015-09-01 11:20:44 +08:00
russellb337
38b1e1aad7
Merge branch 'master' into cli-enhancements-2
2015-08-31 15:20:17 -07:00
wing328
dfb87abe3a
Merge pull request #1151 from ePaul/feature/1146-trim-whitespaces-before-escaping
...
trim strings before escaping
2015-08-31 22:21:38 +08:00
wing328
b96fdb6766
Merge pull request #1164 from ePaul/bugfix/1142-sanitize-api-name-for-spring-mvc
...
Issue #1142 : sanitize api name before camelizing.
2015-08-31 21:46:25 +08:00
wing328
369ceb634d
Merge pull request #1163 from ePaul/bugfix/1142-sanitize-file-name-for-models
...
Issue #1142 : sanitize the class name for Java model classes.
2015-08-31 21:44:28 +08:00
Paul Ebermann
92f9b33eb6
Issue #1142 : sanitize api name before camelizing.
...
This builds on #1139 in order to solve another part of #1142 :
When the first component of a path contained a dash, the generated class name contained this dash too (for the "language" spring-mvc).
2015-08-31 15:14:54 +02:00
Robin Eggenkamp
5b12379a07
Add missing NSDateFormatter
2015-08-31 15:04:37 +02:00
Robin Eggenkamp
39b4034958
Replace NSError by ErrorType
2015-08-31 15:03:56 +02:00
Robin Eggenkamp
28030cba19
Merge branch 'master' into swift-2.0
...
Conflicts:
modules/swagger-codegen/src/main/resources/swift/APIs.mustache
modules/swagger-codegen/src/main/resources/swift/AlamofireImplementations.mustache
modules/swagger-codegen/src/main/resources/swift/Cartfile.mustache
modules/swagger-codegen/src/main/resources/swift/Models.mustache
modules/swagger-codegen/src/main/resources/swift/Podspec.mustache
modules/swagger-codegen/src/main/resources/swift/api.mustache
2015-08-31 14:41:41 +02:00
Paul Ebermann
e0679c0b14
Issue #1142 : sanitize the class name for Java model classes.
...
This builds on #1139 , calling the new sanitizeName() method before camelizing it when generating model names.
2015-08-31 14:13:48 +02:00
xhh
2fd8b8ff16
Update help text of config options in README
2015-08-31 20:10:29 +08:00
xhh
e35be1bd40
Generate Java petstore sample for okhttp-gson
2015-08-31 19:59:17 +08:00
wing328
39ac64d24a
Merge pull request #1161 from wing328/upgrade_JMockit
...
Upgrade JMockit to 1.19
2015-08-31 18:55:38 +08:00
wing328
b846fa5c3e
update JMockit to 1.19
2015-08-31 18:44:01 +08:00
xhh
3c84847adb
Add a new library template to Java client: okhttp-gson
...
which uses OkHttp as HTTP library and Gson as JSON processing library
2015-08-31 18:42:09 +08:00
wing328
2b48ec072c
Merge pull request #1153 from wing328/csharp_fix_encode
...
[C#] Fix UrlEncode in API client
2015-08-31 12:42:48 +08:00
wing328
8114c416b9
Merge pull request #1139 from wing328/sanitize_name
...
Add function to sanitize name (1)
2015-08-30 22:46:58 +08:00
wing328
adee62da7d
Merge pull request #1138 from Helmsdown/cli-enhancements
...
Expose more configuration items in the CLI
2015-08-30 22:46:25 +08:00
cbornet
a207251b29
minor changes
...
removed gson version in pom and added a space between the parameters
2015-08-29 18:41:16 +02:00
cbornet
265de9654b
add authorizations to retrofit client
...
added basic auth, api key and oauth support to the service generator using okhttp interceptors
Fix #962
2015-08-29 18:14:33 +02:00
wing328
177436e69c
fix decode with encode
2015-08-29 22:43:22 +08:00
wing328
1331484a0f
fix urlencode in apiclient
2015-08-29 22:39:44 +08:00
geekerzp
4477009ef8
Handle special characters in parameter names in ruby client
2015-08-29 16:19:43 +08:00
Paul Ebermann
930c5191e0
Issue #1146 : trim string before escaping
...
This removes leading and trailing whitespace before escaping strings. This gets rid of annoying `\n` in some string literals (e.g. in annotations).
2015-08-28 19:56:37 +02:00
russellb337
5f811f3ba7
merge from upstream/master
2015-08-28 10:47:08 -07:00
Paul Ebermann
74bffbaadb
Issue #1146 : fix indentation in the generated API file.
2015-08-28 19:41:32 +02:00
Paul Ebermann
cdd104d3fb
Issue #1146 : escape the response description.
...
This prevents line breaks in string literals, which are not allowed in Java.
2015-08-28 19:39:01 +02:00
Paul Ebermann
be84f03d14
Issue #1146 : do not escape newlines in generated javadocs.
...
For this, we add a property `unescapedDescription` to CodegenModel + CodegenProperty, and use them for the Javadoc generation, while the annotation uses the escaped `description`.
2015-08-28 18:40:14 +02:00
wing328
28579cee03
Merge pull request #1135 from restlet/fix/nodejs_server_swagger_invalid_json
...
[Node.js] fix invalid JSON being generated in swagger.json
2015-08-28 18:31:39 +08:00
Paul Ebermann
32ffab4519
fix issue #1143 : add another null check.
...
The problem was trying to iterate over a null list.
2015-08-28 11:39:45 +02:00
wing328
e3c6cc3220
Merge pull request #1121 from Edubits/prevent-NPE
...
Fix possible NullPointerException
2015-08-28 16:05:20 +08:00
wing328
84346c0ba6
Merge pull request #1122 from F481/master
...
added some useful log/output messages and exception handling
2015-08-28 15:53:35 +08:00
russellb337
acbf3d3cc5
comment twak
2015-08-27 15:59:10 -07:00
russellb337
5c74146879
a few tweaks
2015-08-27 15:56:58 -07:00
russellb337
a59c128f90
curse you github desktop client for not refreshing when i want you to
2015-08-27 15:40:56 -07:00
russellb337
810bf58c3a
first draft of CodegenConfigurator
2015-08-27 15:40:33 -07:00
russellb337
724683fab0
Merge branch 'master' into cli-enhancements
2015-08-27 10:18:55 -07:00
russellb337
074ba1ea54
undo some of the debugging changes I made
2015-08-27 09:11:49 -07:00
wing328
9e5de7da5e
Merge pull request #1132 from geekerzp/python-configuration
...
[Python] Add option `verify_ssl` to switch SSL/TLS verification
2015-08-27 17:01:29 +08:00
wing328
50f6067831
add a case to handle space in name
2015-08-27 16:47:41 +08:00
wing328
9453967815
add function to sanitize name
2015-08-27 16:14:07 +08:00
F481
fc4fce3731
write processOperation debug output only if the debugOperations property is set
2015-08-27 08:06:24 +02:00
russellb337
d31013d977
remove reflections from parent pom
2015-08-26 18:50:29 -07:00
russellb337
ccf0cc8375
whoops, didn't mean to upgrade the minor version
2015-08-26 18:35:22 -07:00
russellb337
99ed012fc6
trying a new version of jetty
2015-08-26 18:31:29 -07:00
russellb337
8ba4a6d7ad
downgrade reflections version
...
I’m guessing
2015-08-26 18:25:23 -07:00
russellb337
60fddcf378
adding back imports that somewhere got deleted during reformatting
2015-08-26 17:55:02 -07:00
russellb337
cf5982d2c4
remove class comment
2015-08-26 17:51:19 -07:00
russellb337
1378976d37
merging upstream changes
2015-08-26 17:40:49 -07:00
russellb337
e5811ebdc7
expose more generate options in the cli
2015-08-26 17:38:51 -07:00
Hugo Wood
d434b7c440
fix invalid JSON being generated in swagger.json of Node.js server
2015-08-26 17:34:53 +02:00
wing328
8de9e23814
Merge pull request #1131 from wing328/csharp_fix_compilebat
...
[C#] fix invokerPackage with packageName in compile.mustache
2015-08-26 17:30:07 +08:00
wing328
b35a7b696e
Merge pull request #1127 from ivanmartinvalle/master
...
Add status code and response headers of the last request to java and c#
2015-08-26 17:27:34 +08:00
wing328
587028efd1
Merge pull request #1129 from geekerzp/objc-test
...
[Objc] Add test cases for sanitizeForSerialization method in objc client
2015-08-26 17:02:55 +08:00
wing328
af8d61cc02
Merge pull request #1130 from geekerzp/python-test
...
[Python] Add test cases for sanitize_for_serialization method in python client
2015-08-26 16:46:42 +08:00
wing328
1996aa9244
Merge pull request #1126 from xhh/java-enum-refactor
...
[Java] Support special characters in enum values
2015-08-26 16:41:56 +08:00
wing328
f79f8895c5
Merge pull request #1125 from wing328/php_param_name
...
[PHP] add camelCase support for variable naming
2015-08-26 09:49:08 +08:00
geekerzp
b3d28f07f1
Add option verify_ssl to switch SSL/TLS verification.
2015-08-25 17:58:14 +08:00
wing328
570a595ffb
fix invokerPackage with packageName in compile.mustache
2015-08-25 15:35:22 +08:00
geekerzp
568b7a4fcd
Add test cases for sanitize_for_serialization method in python client.
2015-08-25 15:04:46 +08:00
geekerzp
1b2f491b0e
Add tese case for sanitizing array of models in objc client.
2015-08-25 11:16:19 +08:00
geekerzp
eb21963fa5
Update test case testSanitizeForSerialization in objc client.
2015-08-25 10:51:03 +08:00
geekerzp
ab5483cd04
Add test cases for sanitizeForSerialization method in objc client.
2015-08-25 09:54:30 +08:00
Tony Tam
392e5172b5
changed default behavior for inflector to have unimplemented handlers
2015-08-24 17:26:26 -07:00
ivanmartinvalle
52dc7e210c
Add status code and response headers of the last request to java and csharp templates per #990
2015-08-24 18:35:06 -05:00
Tony Tam
15e336b90a
Merge pull request #1123 from wing328/python_typo
...
[Python] better wording for documentation
2015-08-24 07:18:42 -07:00
Tony Tam
698ed970dc
Merge pull request #1124 from boazsapir/binary
...
support binary input and output
2015-08-24 07:16:29 -07:00
wing328
a43d2163a0
add camelCase support for php variable naming
2015-08-24 21:53:28 +08:00
b_sapir
564dffa7e8
Merge remote-tracking branch 'origin/binary' into binary
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
2015-08-24 16:15:18 +03:00
wing328
68f61d9a37
use snake_case instead of under_score
2015-08-24 21:11:52 +08:00
wing328
a7c08e680c
update python samples
2015-08-24 21:08:21 +08:00
wing328
2251a2f892
fix typo, update documentation for python lib
2015-08-24 21:08:21 +08:00
b_sapir
b0c776bbea
Support binary input and output - fix some merge problems
2015-08-24 15:59:58 +03:00
F481
3d89399b58
fixed syntax error
2015-08-24 14:28:13 +02:00
F481
0261121d78
added some useful log/output messages and exception handling
2015-08-24 14:04:50 +02:00
b_sapir
c177cf75d2
Support binary input and output (for body parameters or responses with type "string" and format "binary". Implemented for Java.
2015-08-24 15:04:10 +03:00
b_sapir
d4b4fe4b47
Support binary input and output (for body parameters or responses with type "string" and format "binary". Implemented for Java.
2015-08-24 14:33:15 +03:00
Robin Eggenkamp
e956495665
[Swift] Update to new Swift 2.0 syntax and Xcode 7
...
Note: configs with responseAs: “PromiseKit” won’t work yet
2015-08-24 12:27:33 +02:00
xhh
8408a97aef
Java: Support special characters in enum values
...
and use upper case for enum names
Conflicts:
samples/client/petstore/java/default/src/main/java/io/swagger/client/JSON.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-08-24 18:21:16 +08:00
Robin Eggenkamp
b3afbe73b9
[Swift] Add missing checks for usePromiseKit
2015-08-24 12:20:34 +02:00
Robin Eggenkamp
85aabbe810
Fix possible NullPointerException
...
getWrapped() returns a Boolean which can be null
2015-08-24 12:09:14 +02:00
Ron
3f8dbf416d
Update README.md
2015-08-24 11:20:51 +03:00
Ron
0e0bfde3a8
Update README.md
2015-08-24 11:20:30 +03:00
Tony Tam
29a2eedc1e
java8 tag fixes
2015-08-24 01:04:33 -07:00
Tony Tam
0d5c066605
fixed scalatest version
2015-08-24 01:04:28 -07:00
Tony Tam
6820179903
fixed scalatest version
2015-08-24 01:04:24 -07:00
Tony Tam
617fa43a89
updated development version
2015-08-24 00:52:35 -07:00
Tony Tam
dd67287d63
updated development version
2015-08-24 00:51:18 -07:00
Tony Tam
6aa66897aa
updated readme
2015-08-24 00:44:03 -07:00
Tony Tam
9b0ddd3a7f
Merge branch 'develop_2.0'
2015-08-24 00:39:03 -07:00
Tony Tam
ee05366d0b
updated README for release
2015-08-24 00:37:23 -07:00
Tony Tam
d048a68438
added sample
2015-08-24 00:33:26 -07:00
Tony Tam
9cc7615b71
rebuilt, updated versions
2015-08-24 00:32:58 -07:00
Tony Tam
dfb9d26c75
Merge branch 'wing328-fix_java_serialize' into develop_2.0
2015-08-24 00:03:31 -07:00
Tony Tam
715c0af41f
merged & rebuilt
2015-08-24 00:03:20 -07:00
Tony Tam
65829e5b6e
merged & rebuilt
2015-08-24 00:03:08 -07:00
Tony Tam
a3c7e22d55
Merge pull request #1116 from swagger-api/issue-1115
...
fixes for jaxrs codegen
2015-08-23 23:56:14 -07:00
Tony Tam
d8ceb8c648
enabled samples
2015-08-23 23:47:01 -07:00
Tony Tam
87f1ef4dc2
re-ordered
2015-08-23 23:46:54 -07:00
Tony Tam
7c2310a13f
updated to jersey 1.18.1, fixes for #1115
2015-08-23 23:34:35 -07:00
Tony Tam
6dcb8da2d8
altered to return inner type only
2015-08-23 23:33:55 -07:00
Tony Tam
a83f01ad60
made string safe
2015-08-23 23:33:27 -07:00
Tony Tam
6c1f7243bf
rebuilt
2015-08-23 23:29:53 -07:00
wing328
164ed99812
fix serializableModel (boolean)
2015-08-24 11:50:21 +08:00
Tony Tam
355cc88e0d
Merge pull request #1113 from swagger-api/issue-1112
...
moved file
2015-08-23 19:04:14 -07:00
Tony Tam
35ed412d1e
moved file
2015-08-23 18:58:46 -07:00
Tony Tam
a5190266b6
Merge pull request #1111 from swagger-api/revert-1029-jaxrs-server-codegen-improvements
...
Revert "fixed generated code to go to target/generated-sources, added…
2015-08-23 18:53:05 -07:00
Tony Tam
d51fe80138
Revert "fixed generated code to go to target/generated-sources, added maven-c…"
2015-08-23 18:28:42 -07:00
Tony Tam
ec9cdca7cb
Merge pull request #1109 from swagger-api/rebase-issue-838
...
update files as rebase from #838
2015-08-23 17:38:34 -07:00
Tony Tam
8a9f43b142
Merge pull request #910 from swagger-api/maven-plugin-configuration-improvements
...
Maven plugin configuration improvements
2015-08-23 17:33:55 -07:00
Tony Tam
0fc5702e4d
Merge pull request #1029 from swagger-api/jaxrs-server-codegen-improvements
...
fixed generated code to go to target/generated-sources, added maven-c…
2015-08-23 17:32:29 -07:00
Tony Tam
3390fae15b
Merge branch 'tiffanyperumpail-develop_2.0' into develop_2.0
2015-08-23 17:25:24 -07:00
Tony Tam
e19b883c89
Merge branch 'develop_2.0' of ssh://github.com/tiffanyperumpail/swagger-codegen into tiffanyperumpail-develop_2.0
2015-08-23 17:24:27 -07:00
Tony Tam
9531e1ae59
Merge branch 'Rogercf-support-to-array-of-enums' into develop_2.0
2015-08-23 17:22:44 -07:00
Tony Tam
3d38c41b0e
resolved merge issue
2015-08-23 17:22:34 -07:00
Tony Tam
718e1ff68a
Merge branch 'TobiasPfeifer-develop_2.0' into develop_2.0
2015-08-23 14:23:33 -07:00
Tony Tam
a6a9d743be
added template
2015-08-23 14:23:20 -07:00
Tony Tam
414de00894
fixed return type, rebuilt
2015-08-23 14:23:00 -07:00
Tony Tam
cc7366787f
Merge branch 'develop_2.0' of ssh://github.com/TobiasPfeifer/swagger-codegen into TobiasPfeifer-develop_2.0
2015-08-23 11:20:02 -07:00
Tony Tam
3486eecdfc
Merge branch 'xhh-library-template-jersey2' into develop_2.0
2015-08-23 11:10:12 -07:00
Tony Tam
66e6d4fb8a
rebuilt client
2015-08-23 11:10:04 -07:00
Tony Tam
f7dc066dec
merged
2015-08-23 11:09:47 -07:00
Tony Tam
3160913433
update files as rebase from #838
2015-08-23 11:05:19 -07:00
Ole Lensmar
e253fdea33
Merge branches 'develop_2.0' and 'jaxrs-server-codegen-improvements' of https://github.com/swagger-api/swagger-codegen into jaxrs-server-codegen-improvements
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java
2015-08-23 10:26:07 -04:00
Ole Lensmar
ac49d0dcdc
post-merge fixes
2015-08-23 09:37:28 -04:00
Ole Lensmar
b956d47a9d
Merge branches 'develop_2.0' and 'maven-plugin-configuration-improvements' of https://github.com/swagger-api/swagger-codegen into maven-plugin-configuration-improvements
...
Conflicts:
modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
2015-08-23 09:37:08 -04:00
wing328
f662699fd0
Merge pull request #1107 from wing328/php_fix_datetime
...
[PHP] Fixed deserialization for datetime object
2015-08-23 17:11:55 +08:00
wing328
1c1571cc3a
Merge pull request #1106 from geekerzp/python-query
...
[Python] Fix issue that missing query parameters in python client.
2015-08-23 17:11:19 +08:00
wing328
e13374e1df
Merge pull request #1105 from who/serializable_java_models
...
[Java] Adding an option so java models can implement Serializable
2015-08-23 17:10:57 +08:00
wing328
f2df26f6e6
fix deserializing datetime, add test case
2015-08-22 23:09:12 +08:00
xhh
569082743f
Remove the unused LibraryHelp command
2015-08-22 22:05:43 +08:00
xhh
595c01c537
Merge branch 'develop_2.0' into library-template-jersey2
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/JsonUtil.mustache
2015-08-22 21:53:04 +08:00
geekerzp
dc423cc11d
Fix issue that Mssing query parameters in python client.
2015-08-22 17:46:13 +08:00
Andrew B
4f25a0e6c5
adding an option so java models can implement Serializable
2015-08-21 18:36:03 -07:00
Tony Tam
0af29cc5cf
Merge pull request #1104 from swagger-api/issue-1103
...
added check, fix for #1103
2015-08-21 15:22:22 -07:00
Tony Tam
44b4af0374
added check, fix for #1103
2015-08-21 15:02:56 -07:00
Tony Tam
b68beefa69
Merge pull request #1101 from swagger-api/issue-1099
...
optional files are never written
2015-08-21 09:35:11 -07:00
Tony Tam
07162811a7
fix for #1099 , added file check
2015-08-21 08:56:22 -07:00
wing328
4023460f2e
Merge pull request #1096 from geekerzp/objc-param-to-str
...
[Objc] Sanitize request parameters in objc client
2015-08-21 22:22:17 +08:00
wing328
83bea6a0c5
Merge pull request #1095 from who/fix_issue_1089
...
[Java] Sanitize configurable package names (fixes #1089 )
2015-08-21 22:15:53 +08:00
wing328
d03f680c64
Merge pull request #1090 from geekerzp/python-keyword
...
[Python] Change reserved word handling in python client.
2015-08-21 21:51:32 +08:00
geekerzp
4189d0765b
Update api body template of objc client
2015-08-21 11:40:59 +08:00
geekerzp
6218ad139f
Fix issue that it will throw error if not pass optional form param in objc client.
2015-08-21 11:20:29 +08:00
geekerzp
b7cd38d38b
Update objc client.
...
Sanitize request parameters (path, query, header, form, body).
2015-08-21 09:42:31 +08:00
Andrew B
2b61305582
Fixing issue #1089
2015-08-20 14:16:10 -07:00
wing328
2057d0e144
Merge pull request #1068 from Helmsdown/add-generated-annotation
...
Add @Generated annotation to all generated Java templates
2015-08-20 17:45:17 +08:00
xhh
af2ec4cf85
Merge branch 'develop_2.0' into library-template-jersey2
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/api.mustache
2015-08-20 17:36:42 +08:00
wing328
9a239ad2a4
Merge pull request #1076 from DavidBiesack/static-html
...
improve static html; add template guards for collections.
2015-08-20 17:31:03 +08:00
wing328
a610fb5ac3
Merge pull request #1051 from who/develop_2.0
...
[Java] Fixing subClassed types so that they can use enums
2015-08-20 17:14:17 +08:00
Andrew B
fb4c62cc28
Fixing merge conflict in pom.xml
2015-08-19 23:08:49 -07:00
geekerzp
6d58d44542
Merge branch 'ruby-api-client' into ruby-apiclient
2015-08-20 11:34:07 +08:00
xhh
0e2e7838ae
Merge branch 'bug-fix-ruby-file-upload' into ruby-api-client
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
samples/client/petstore/ruby/lib/petstore/swagger/request.rb
2015-08-20 11:24:33 +08:00
xhh
2e3f94c2a5
Add file used in test: hello.txt
2015-08-20 11:18:05 +08:00
xhh
e02a9f1797
Merge branch 'develop_2.0' into ruby-api-client
2015-08-20 11:10:25 +08:00
xhh
0d399d3f6a
Add spec for file uploading
2015-08-20 11:07:20 +08:00
xhh
030e45982c
Add back support of file uploading to Ruby client
2015-08-20 10:45:40 +08:00
geekerzp
894d571ea5
Change reserved word handling in python client.
...
* First, remove the beginning underscores.
* Then, append underscore if the var is reserved word or number.
2015-08-19 18:05:47 +08:00
wing328
dc1992ad45
Merge pull request #1081 from wing328/php_var_name_number
...
[PHP, Perl, Silex] fixed variable names starting with number, made LOGGER protected
2015-08-19 14:56:13 +08:00
geekerzp
7be6e971fa
Update api client of ruby client.
...
Update ApiClient#build_request, change `@verify_ssl`, `@ssl_ca_cert`, `@debugging`
to `Configuration.verify_ssl`, `Configuration.ssl_ca_cert`, `Configuration.debugging`.
2015-08-18 20:21:56 +08:00
wing328
c62fca8c54
Merge pull request #1079 from wing328/add_flash_generator
...
[Flash] Add back Flash generator
2015-08-18 20:04:53 +08:00
geekerzp
828f8694c8
Fix typo in ruby client
2015-08-18 16:13:32 +08:00
geekerzp
31d948fc16
Update readme of ruby client
2015-08-18 14:35:54 +08:00
geekerzp
a481db7486
Add configuration object in ruby client
2015-08-18 14:27:09 +08:00
wing328
5d52952ebd
Merge pull request #1077 from geekerzp/objc-apiclient
...
[Objc] Change the ApiClient initialization of objc client
2015-08-18 09:39:48 +08:00
wing328
c1fbf6bb1c
Merge branch 'php_var_name_number' of https://github.com/wing328/swagger-codegen into php_var_name_number
2015-08-17 14:40:12 +08:00
wing328
10cd672529
fix variable name starting with number, make LOGGER protected
2015-08-17 14:39:29 +08:00
wing328
52918d325e
Merge pull request #1082 from wing328/fix_pom_swagger_parser
...
update swagger-parser-version to 1.0.10 (removed snapshot)
2015-08-17 14:38:11 +08:00
wing328
8cff8fc55a
update swagger-parser-version to 1.0.10 (removed snapshot)
2015-08-17 14:27:33 +08:00
wing328
90d5ce228a
Merge pull request #1067 from Helmsdown/path-level-params
...
Codegen should honor path level parameters
2015-08-17 14:13:22 +08:00
wing328
d4ff25f0b3
fix variable name starting with number, make LOGGER protected
2015-08-17 10:43:03 +08:00
wing328
4163f07911
Merge pull request #1069 from geekerzp/python-httplib
...
[Python] Fix issues in python client
2015-08-16 15:03:16 +08:00
wing328
560fd5718d
Merge pull request #1074 from wing328/php_improve1
...
[PHP] minor improvements
2015-08-16 14:59:43 +08:00
wing328
97580a8c45
Merge pull request #1070 from wing328/objc_readme_update
...
[Objc] minor wording change for readme based on feedback from developers
2015-08-16 14:59:27 +08:00
wing328
aee72d97c3
Merge pull request #1080 from wing328/update_pomxml
...
Update swagger-core-version to 1.5.4-SNAPSHOT
2015-08-16 00:22:54 +08:00
wing328
49ad008d7c
update pom.xml
2015-08-16 00:14:24 +08:00
wing328
7a2c0a076a
update readme, change default value, update pom
2015-08-16 00:03:19 +08:00
wing328
365f4bc0c0
beta release of flash generator
2015-08-15 23:56:01 +08:00
wing328
3478e053e1
add back flash generator
2015-08-15 18:12:14 +08:00
geekerzp
75536868f2
Add default api client in configuration class in objc client
2015-08-14 17:54:41 +08:00
geekerzp
84e8ef489c
Update pom.xml
2015-08-14 11:55:22 +08:00
wing328
cffba0299a
update core to 1.5.4
2015-08-14 11:19:04 +08:00
geekerzp
a6c07a8364
Change api client pool pattern to singleton pattern in objc client
2015-08-14 09:47:02 +08:00
David Biesack
b14edffc79
improve static html; add template guards for collections. Update -core dependency
2015-08-13 13:46:32 -04:00
wing328
b971aa7433
add example to config option, replace localhost with basePath
2015-08-13 23:27:59 +08:00
wing328
bb4311b7a2
minor wording change for objc readme based on feedback from developers
2015-08-12 20:53:15 +08:00
geekerzp
1c0eb60c71
Fix issues in python client
2015-08-12 11:19:29 +08:00
russellb337
a0eeb90a97
fixing bug
2015-08-11 12:50:19 -07:00
russellb337
38fccbd73d
add @Generated to all Java class templates
2015-08-11 12:42:18 -07:00
russellb337
6fbb8ab1e0
add @Generated annotation to all Java class templates
2015-08-11 12:42:06 -07:00
russellb337
6044f0586e
removing unnecessary getTypeDeclaration implementation in JaxRSServerCodegen
2015-08-11 09:19:22 -07:00
wing328
84ff5cfc87
Merge pull request #1064 from RMarinaro/develop_2.0
...
fix for #1061 java
2015-08-11 21:33:08 +08:00
wing328
96be2b196b
Merge pull request #1037 from restlet/fix/nodejs_server_swagger
...
Fix swagger.json supporting file for the node.js server (fixes #652 )
2015-08-11 21:28:06 +08:00
Hugo Wood
d93b404b23
Fix swagger.json supporting file for the node.js server ( fixes #652 )
2015-08-11 14:37:00 +02:00
wing328
be63776162
Merge pull request #1063 from geekerzp/objc-deserialize-bool
...
[Objc] Fix deserialize bool value issue
2015-08-11 10:18:52 +08:00
russellb337
ae4b4979a7
add defensive null check
2015-08-10 13:58:02 -07:00
russellb337
0a8fb1e532
codegen should honor path level parameters
2015-08-10 13:50:52 -07:00
wing328
e78844cb54
Merge pull request #1043 from marcospri/develop_2.0
...
Support for nested lists/maps for the python client
2015-08-10 18:30:02 +08:00
Ryan Marinaro
2eb0c8cea6
added a fix for #1061 . The only problematic spot was the api.mustache file, although if more parameterized templates were to evolve in the other mustache files we could definitely add {{localVariablePrefix}} to those. For now I didn't want to add any extra noise to the template files which didn't need the prefixes.
2015-08-08 10:19:31 -04:00
geekerzp
2aaad03ab6
Fix the issue of bool deserialization in objc client
2015-08-08 15:13:13 +08:00
xhh
cb181e3480
Merge branch 'develop_2.0' into library-template-jersey2
2015-08-08 11:18:17 +08:00
xhh
b686b53259
Support overriding API/model templates with library template
2015-08-08 11:14:06 +08:00
wing328
f27eb7e0de
Merge pull request #1058 from xhh/str-response-offset
...
Fix bug with truncated lone string responses for Android/Scala clients
2015-08-08 11:10:02 +08:00
wing328
36b7fb20b2
Merge pull request #1059 from geekerzp/objc-auth
...
[Objc] Fix issue about authentication
2015-08-08 09:37:47 +08:00
Ron
f2ef21e756
Merge pull request #1062 from swagger-api/dependencies-version-update
...
Update pom.xml
2015-08-07 17:32:28 -04:00
Ron
e57f1de21f
Update pom.xml
2015-08-07 17:10:35 -04:00
xhh
a41361c959
Change the "--library" option into a config option
2015-08-07 22:16:32 +08:00
xhh
167e95bb3a
Merge branch 'develop_2.0' into library-template-jersey2
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
2015-08-07 21:18:27 +08:00
geekerzp
732a9eb64d
Fix issue in Configuration-body.mustache in objc client
2015-08-07 18:31:07 +08:00
xhh
c7f595fc91
Fix bug with truncated lone string responses for Android/Scala clients
2015-08-07 10:40:42 +08:00
Tony Tam
29e8a8f573
Merge pull request #1057 from who/fix_1056
...
Fixing a bug with truncated lone string responses
2015-08-06 17:38:54 -07:00
Andrew B
d5b959d8cd
Fixing a bug with truncated lone string responses
2015-08-06 16:54:24 -07:00
Andrew B
7a92f53b55
Adding some tests for PR 1051
2015-08-06 15:22:18 -07:00
tiffanyperumpail
4ac8a93022
Change swagger-parser-version to 1.0.9-SNAPSHOT
2015-08-06 11:29:59 -07:00
Marcos Prieto
cad2f961bd
Undo unicode on sanitize method. Keep the PR on point
2015-08-06 10:21:56 +02:00
tiffanyperumpail
5328c00e8f
Simplified enum by changing CodeGenStatus to an enum instead of a wrapper. Updated version of swagger-parser to 1.0.9.
2015-08-05 16:53:39 -07:00
tiffanyperumpail
1b31a01b76
Added CodeGenStatus class with Status enum
2015-08-05 16:18:24 -07:00
Andrew B
c67a6582fc
Bumping the version of swagger-parser to 1.0.9
2015-08-05 15:58:54 -07:00
Andrew B
dc76887820
Fixing subClassed types so that they can use enums
2015-08-05 15:50:34 -07:00
xhh
4321339d4f
Java petstore sample: move to "default" sub-folder, add jersey2
2015-08-05 17:28:45 +08:00
xhh
07f10a8abc
Add command to display all library templates supported
...
for a specific language
2015-08-05 16:37:08 +08:00
xhh
4ba521a5c0
Add jersey2 library template for Java client
2015-08-05 15:37:26 +08:00
xhh
d88ec847ae
Remave unused imports
2015-08-05 09:43:15 +08:00
xhh
7c16dfcf13
Rebuild Java petstore sample
2015-08-04 18:36:03 +08:00
xhh
aff21e5e6b
Add a "library" option to generate with sub-template
2015-08-04 18:32:54 +08:00
Marcos Prieto
befacc41bd
Support for nested dict/list
...
Checking for `startwith` instead of just `in` to correctly categorize
nested structures.
2015-08-04 11:51:38 +02:00
Marcos Prieto
edebbcb802
Support for unicode headers, ie support for urlib3.util.make_headers
2015-08-04 11:51:25 +02:00
xhh
bfb4629ab7
Java client: decouple JSON handling
2015-08-04 15:47:55 +08:00
Tony Tam
1007534575
fix for #1042 , removed empty / when basePath is null
2015-08-03 16:47:51 -07:00
Rogercf
97d24a7119
Update DefaultCodegen.java
...
Fixed indentation
2015-08-03 19:50:29 -03:00
Rogercf
13038d2a12
Update DefaultCodegen.java
...
Replaced hardcoded "String" with property.items.baseType
2015-08-03 19:46:10 -03:00
Rogercf
c5dc070685
Update model.mustache
...
Fixed generating array of enums properties in the java template
2015-08-03 19:21:54 -03:00
Rogercf
a30b66beb1
Update DefaultCodegen.java
...
Setting the "items" field when the type is array and updating some values if the array is an array of enums
2015-08-03 19:20:51 -03:00
Rogercf
aff766b785
Update CodegenProperty.java
...
Added a "items" field to keep track of the inner type to be accessed in the mustache templates
2015-08-03 19:19:10 -03:00
xhh
112a7ec8c1
Java client: move form params handling to ApiClient
2015-08-03 18:33:42 +08:00
wing328
55be0330e3
Merge pull request #1039 from geekerzp/python-desciption
...
[Python] Fix issue in python client
2015-08-03 10:48:56 +08:00
wing328
fe83d18a09
Merge pull request #1026 from geekerzp/objc-deserializtion
...
[Objc] Fix deserialize nested map error
2015-07-31 16:17:11 +08:00
wing328
a6f8f9e4ff
Merge pull request #1017 from herveDarritchon/develop_2.0
...
Defect (Issue #905 ) : Add code to be able to override the configPackage …
2015-07-31 16:05:17 +08:00
geekerzp
79c988616c
Fix issue #1038
2015-07-31 16:01:45 +08:00
wing328
dc62f688d9
Merge pull request #1015 from tandrup/conditional-copy-from-parent
...
Conditional copy properties from parent
2015-07-31 15:56:48 +08:00
wing328
db10bd764b
Merge pull request #1036 from wing328/csharp_add_back_dll
...
[C#] add back RestSharp and Newtonsoft.Json DLL
2015-07-31 15:56:21 +08:00
wing328
92208b4ec2
Merge pull request #987 from xhh/retrofit-form-field-naming
...
Retrofit: fix form field naming by using baseName
2015-07-31 09:09:09 +08:00
xhh
0ef4702aa8
Merge branch 'develop_2.0' into retrofit-form-field-naming
...
Conflicts:
samples/client/petstore/retrofit/src/main/java/io/swagger/client/api/PetApi.java
2015-07-30 16:40:43 +08:00
wing328
cc358cf9ce
Merge pull request #1032 from xhh/retrofit-string-resp
...
Retrofit template: return body string directly when failed to parse response body as JSON
2015-07-30 15:58:05 +08:00
xhh
a1e6908b65
Merge branch 'develop_2.0' into retrofit-string-resp
2015-07-30 15:02:02 +08:00
xhh
2d4c07a474
Fix typo
2015-07-30 15:01:51 +08:00
wing328
05f00013f1
add back csharp dll, update sample
2015-07-30 10:19:46 +08:00
wing328
bc528ef928
Merge pull request #1027 from adamholdenyall/patch-3
...
Catch all exceptions on Deserialize
2015-07-30 10:06:32 +08:00
Tony Tam
318a239976
Merge pull request #1031 from Toilal/pom-issues
...
Fix issues in POM configuration
2015-07-29 07:35:05 -07:00
Toilal
189962208e
Update scala maven plugin and fix issues in POM configuration
2015-07-29 15:15:12 +02:00
wing328
bd28271b0b
Merge pull request #1019 from geekerzp/python-refactor
...
[Python] Enhancements of python client
2015-07-29 17:39:58 +08:00
xhh
14b808a910
Retrofit template: return body string directly
...
when failed to parse response body as JSON, fixing unit test for
UserApi#loginUser
2015-07-29 17:10:49 +08:00
wing328
d345f8fae3
Merge pull request #967 from moander/feature/docker
...
Docker build script and Dockerfile
2015-07-29 15:36:08 +08:00
Ole Lensmar
26336356cf
added generated samples for jaxrs and inflector
2015-07-28 14:56:23 -07:00
Ole Lensmar
9c3fad3040
fixed generated code to go to target/generated-sources, added maven-codegen-plugin to generated jaxrs project together with initial swagger definition, fixed overwrite flag to kick in only if file exists, fixed initial readme
2015-07-28 14:40:43 -07:00
moander
d396a0a0e4
Friendly error message when project is not built
2015-07-28 22:48:18 +02:00
Tony Tam
dc7c2a4bab
updated name
2015-07-28 13:35:33 -07:00
Tony Tam
0b85ad464a
Merge pull request #1028 from swagger-api/inflector-template
...
added template for the inflector
2015-07-28 10:31:40 -07:00
Ole Lensmar
c5d02fe98e
added template for the inflector
2015-07-28 10:19:36 -07:00
adamholdenyall
a81e5096f5
Catch all exceptions on Deserialize
...
If you look at the source of NewtonSoft.Json, you'll see that DeserializeObject never throws an IOException. All exceptions should be caught in this method, just like Serialize.
2015-07-28 09:53:10 -05:00
wing328
52971e6aa9
Merge pull request #1018 from wing328/fix_empty_operationid
...
[All] Better exception handling for empty operationId (method name)
2015-07-28 17:39:19 +08:00
geekerzp
b2e0d83f2e
Update objc client.
...
* Fix issue that list of primitive types deserialization.
* Add test cases for list of primitive types deserialization and nested list deserialization.
2015-07-28 17:21:10 +08:00
geekerzp
2be3414357
Update python client.
...
Add test case for nested list deserialization.
2015-07-28 15:23:44 +08:00
geekerzp
ea901bf1ce
Update python client.
...
Add test case for nested dict deserialization.
2015-07-28 14:34:50 +08:00
geekerzp
8bd282acd6
Change parameter name key to identifier of
...
Configuration#get_api_key_with_prefix in python client.
2015-07-28 11:25:19 +08:00
geekerzp
b51ef77401
Remove #!/usr/bin/env python from python client
2015-07-28 11:25:19 +08:00
geekerzp
3265ec0f72
Refactor python client.
2015-07-28 11:25:19 +08:00
wing328
732e645042
Merge pull request #1022 from SparrowJang/develop_2.0
...
fixed a error rule for parsing `)`
2015-07-28 11:15:28 +08:00
geekerzp
cc45ff17cb
Fix deserialize nested map error in objc client
2015-07-28 10:51:20 +08:00
wing328
b843b55339
Merge pull request #1001 from who/csharp_dotnet2_template
...
C# .Net 2.0 generator and template
2015-07-28 09:32:03 +08:00
Sparrow.jang
75711f954b
fixed a bug for parsing ) error
2015-07-27 18:50:32 +08:00
SparrowJang
d0b5af31a5
Merge pull request #1 from swagger-api/develop_2.0
...
Develop 2.0
2015-07-27 18:47:40 +08:00
wing328
c01c06b198
Merge pull request #1004 from mhardorf/conf-file-maven-plugin
...
Add support for specifying configuration file in maven plugin
2015-07-27 18:30:09 +08:00
Mads Mætzke Tandrup
586f4c14e1
Merge remote-tracking branch 'upstream/develop_2.0' into conditional-copy-from-parent
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/TypeScriptNodeClientCodegen.java
2015-07-27 11:30:47 +02:00
wing328
fe0e43f963
Merge pull request #1012 from tandrup/combine-ts-node
...
Combine TypeScript Node output and beautify Angular output
2015-07-27 17:24:34 +08:00
wing328
47abfe7079
Merge pull request #1014 from 2rs2ts/module-generation-readme-path-fix
...
Fix path in instructions for making your own codegen modules
2015-07-27 17:12:13 +08:00
Mads Mætzke Tandrup
d0a3def441
Adding npm run clean command to clean the sample dir
2015-07-27 11:02:38 +02:00
xhh
7af5db3565
Rebuild Ruby petstore sample
2015-07-27 16:37:26 +08:00
xhh
47c8597d36
Ruby: move request/response logic to api_client
2015-07-27 16:34:51 +08:00
Mads Mætzke Tandrup
64f2e85608
Update TypeScript angular sample
2015-07-27 10:20:55 +02:00
Mads Mætzke Tandrup
09ccf12a3b
Update Typescript node samples
2015-07-27 10:19:12 +02:00
Mads Mætzke Tandrup
fde5c60cb0
Support authentication from swagger in TypeScript Node
2015-07-27 10:18:38 +02:00
Mads Mætzke Tandrup
b18cc5e0de
Include header parameters
2015-07-27 10:13:36 +02:00
wing328
6d8dea5dfc
better exception handling for empty method name
2015-07-27 12:07:35 +08:00
wing328
a8f580032f
fix empty operationId in java codegen
2015-07-27 11:39:37 +08:00
wing328
d0baa48fcd
fix empty operationId
2015-07-27 11:21:51 +08:00
wing328
31200acc1a
Merge pull request #998 from geekerzp/objc-date
...
[Objc] Enhancements of objective-c client
2015-07-27 10:41:42 +08:00
xhh
5bfae7b78c
Ruby: use a default ApiClient when not provided
2015-07-27 10:32:51 +08:00
geekerzp
3b9b3e82f9
Update comments in objc client
2015-07-27 10:29:27 +08:00
wing328
783a4c0572
Merge pull request #1016 from ngs/swift-podspec-version
...
[Swift] Add version to Podspec template
2015-07-27 08:33:44 +08:00
wing328
9ce824d720
Merge pull request #1007 from ngs/swift-alamofire-1.3.0
...
[Swift] Support file upload with Alamofire 1.3.0
2015-07-27 08:29:34 +08:00
Mads Mætzke Tandrup
dee828622a
Test file upload in sample client
2015-07-26 14:26:01 +02:00
Hervé Darritchon
5c0ae7babe
Defect (PR #905 ) : Add code to be able to override the configPackage in the spring mvc template.
2015-07-26 12:11:29 +02:00
Mads Mætzke Tandrup
02da80e837
Update sample with small test script
2015-07-26 08:22:32 +02:00
Mads Mætzke Tandrup
e41a475335
Update typescript node sample
2015-07-25 22:05:43 +02:00
Mads Mætzke Tandrup
fea8e680df
Fix TypeScript node file upload
2015-07-25 22:05:29 +02:00
Mads Mætzke Tandrup
b0f6b49595
Fix TypeScript Map type
2015-07-25 22:02:06 +02:00
Atsushi Nagase
b56da43953
[Swift] Add version to Podspec template
2015-07-26 03:19:33 +09:00
Atsushi Nagase
979a704310
[Swift] Update Alamofire to 1.3 in Podspec
2015-07-26 03:01:11 +09:00
Atsushi Nagase
5dcdadb751
[Swift] tweak conditions
...
336bb87b53 (commitcomment-12318006)
2015-07-26 02:59:43 +09:00
Atsushi Nagase
f98974190e
[Swift] Support file upload with Alamofire 1.3.0
...
refs:
- https://github.com/Alamofire/Alamofire/milestones/1.3.0
- https://github.com/Alamofire/Alamofire/pull/539
2015-07-26 02:59:43 +09:00
wing328
6719a6cc74
Merge pull request #1013 from SparrowJang/develop_2.0
...
added a utf8 declaration to fix #1011 issue
2015-07-25 23:15:04 +08:00
Mads Mætzke Tandrup
3f9b2a9678
Adding build system for typescript AngularJS sample
2015-07-25 14:11:10 +02:00
Mads Mætzke Tandrup
bbf0ce8c80
Adding README for sample
2015-07-25 13:57:45 +02:00
Mads Mætzke Tandrup
9fc8c770d3
Adding build system for poetaster typescript node sample
2015-07-25 13:55:30 +02:00
wing328
8f2c99f0af
Merge pull request #1005 from mhardorf/sort-by-inheritance
...
Sort model objects by inheritance
2015-07-25 18:18:29 +08:00
Mads Mætzke Tandrup
81f5cc47e7
Rename property to be more language specific
2015-07-25 12:03:17 +02:00
wing328
db37c02ebd
Merge pull request #1010 from onovy/develop_2.0
...
[Python] Allow to set cookie in python(3) API constructor.
2015-07-25 17:03:11 +08:00
wing328
fc71b23464
Merge pull request #1006 from ngs/podspec
...
[Swift] Add podspec template
2015-07-25 16:46:13 +08:00
Mads Mætzke Tandrup
e924cec595
Conditional copy properties from parent.
...
Pull request #946 broke the TypeScript generation with inheritance where a superclass defined an enum. This makes it up to each language to decide the behavior appropriate for the language.
2015-07-25 07:45:08 +02:00
Andrew Garrett
90f152da75
Fix path in instructions for making your own codegen modules
2015-07-24 11:44:30 -07:00
Sparrow.jang
713ae4a957
added a utf8 declaration to fix #1011 issue
2015-07-24 22:40:24 +08:00
Ondrej Novy
50736458d0
Allow to set cookie in python(3) API constructor.
2015-07-24 11:48:43 +02:00
Mads Mætzke Tandrup
34b341874c
Include api and model package in angular
2015-07-24 11:05:36 +02:00
Mads Mætzke Tandrup
7a1f3dbf9e
Fix angular output to go to one dir to make it build
2015-07-24 10:23:07 +02:00
Mads Mætzke Tandrup
3723a9ba2d
Updating typescript samples
2015-07-24 10:22:41 +02:00
Mads Mætzke Tandrup
bc8eae838c
Beautify typescript angular output
2015-07-24 10:14:42 +02:00
Mads Mætzke Tandrup
88ed496b44
Extract abstract class for TypeScript generators
2015-07-24 10:03:02 +02:00
Mads Mætzke Tandrup
646da19c7d
Combine TypeScript node output in one file and add missing require statements
2015-07-24 09:48:49 +02:00
Atsushi Nagase
80b5363202
[Swift] add cliOptions for podspec
...
```
podSource
Source information used for Podspec
podVersion
Version used for Podspec
podAuthors
Authors used for Podspec
podSocialMediaURL
Social Media URL used for Podspec
podDocsetURL
Docset URL used for Podspec
podLicense
License used for Podspec
podHomepage
Homepage used for Podspec
podSummary
Summary used for Podspec
podDescription
Description used for Podspec
podScreenshots
Screenshots used for Podspec
podDocumentationURL
Documentation URL used for Podspec
```
2015-07-24 16:27:28 +09:00
Atsushi Nagase
071fc2ded6
[Swift] Add podspec template
2015-07-23 22:22:45 +09:00
Martin Hardorf
992b0c7e5e
Sort model objects by inheritance
2015-07-23 13:11:53 +02:00
Martin Hardorf
037f59d0df
Add support for specifying configuration file in maven plugin
2015-07-23 13:10:59 +02:00
geekerzp
5a235c642a
Update comments of objc client
2015-07-23 18:03:19 +08:00
geekerzp
08ea05f7a1
Update objc client.
...
* Add comments in SWGConfiguration.h
* Change `Date` to `date` in ObjcClientCodegen.java
* Update comments in model body template
2015-07-23 16:03:38 +08:00
Andrew B
e301d9d00e
Adding sample generator and output
2015-07-22 11:31:29 -07:00
Andrew B
8a399ee1cb
Renaming the C# .net 2.0 to be more generic
2015-07-22 11:13:13 -07:00
Andrew B
4e5b9e4af3
Renaming the C# .net 2.0 to be more generic
2015-07-22 11:13:08 -07:00
geekerzp
37c79525f7
Update model body template in objc client.
...
* Add some comments.
2015-07-22 18:31:50 +08:00
geekerzp
f9ad16e7aa
Update objc client.
...
* Add test cases for deserialization.
* Pretty print model infomation.
2015-07-22 17:45:31 +08:00
wing328
cde8d7ba4c
Merge pull request #984 from geekerzp/python-enum
...
[Python] Support enum for model property
2015-07-22 16:48:34 +08:00
xhh
a75b05b952
Update tests with latest code
2015-07-22 16:02:18 +08:00
geekerzp
bd6fa6a2e4
Update PetApiTests#test_find_pet_by_tags test case of python client
2015-07-22 15:50:40 +08:00
xhh
609d915541
Rebuild Ruby petstore sample
2015-07-22 15:39:48 +08:00
xhh
948cdb3a75
Done with API client structure for Ruby client
2015-07-22 15:37:29 +08:00
geekerzp
b9287cf417
Add to_str method in python client and add test cases.
2015-07-22 11:00:51 +08:00
Andrew B
df93ca80f7
Fixing an issue that was causing incorrect JSON key names
2015-07-21 15:49:37 -07:00
Andrew B
0247f0774d
Updating the mono compile script to target .net 2
2015-07-21 11:12:17 -07:00
wing328
37dbd6e4cd
Merge pull request #992 from who/develop_2.0
...
[C#] Fixing a mono compilation error
2015-07-21 21:43:06 +08:00
wing328
34db9814d8
Merge pull request #994 from wing328/fix_swagger_parser_version
...
Fix compilation error with a newer swagger parser
2015-07-21 17:39:24 +08:00
xhh
4ecc757bea
More on API client structure for Ruby client
2015-07-21 17:07:41 +08:00
wing328
cf7082c2e6
fix swagger parser version to use 1.0.9-SNAPSHOT
2015-07-21 16:54:14 +08:00
wing328
6b4f810fec
Merge pull request #981 from Edubits/develop_2.0
...
[Swift] Support use in Framework
2015-07-21 16:35:36 +08:00
Tony Tam
f7a07f72b8
added resolve option for #903
2015-07-20 23:31:49 -07:00
Andrew B
a6012ecf41
Initial commit of the Unity3D C# .net 2.0 generator
2015-07-20 23:26:59 -07:00
Andrew B
0b7b57bf4d
[C#] Fixing a mono compilation error
2015-07-20 21:22:49 -07:00
wing328
498a400d4e
Merge pull request #988 from wing328/csharp_update_unit_test
...
[C#] Updated unit test and minor change to conform style guide
2015-07-21 12:08:15 +08:00
wing328
405e5a7a35
Merge pull request #946 from xhh/model-all-of
...
Copy properties from parent models defined with allOf
2015-07-21 11:41:24 +08:00
xhh
3de42afed3
Implement API client structure for Ruby client
2015-07-21 11:37:46 +08:00
wing328
f1304022b0
Merge pull request #852 from tomtit/issue837
...
Fixed #837 : Generation of default values for complex arrays and maps has been improved.
2015-07-21 11:28:43 +08:00
wing328
fc7f2a92d0
Merge pull request #878 from lugaru1234/issue798
...
Fixed #798 : original jar generation has been fixed.
2015-07-20 21:50:51 +08:00
wing328
27113cf326
Merge pull request #859 from lugaru1234/issue831
...
Fixed #831 : skipOverwrite flag has been added
2015-07-20 21:14:33 +08:00
wing328
7179c15158
Merge pull request #966 from wing328/nodejs_fix_summary
...
[NodeJS] Add back summary and description to the endpoint definition
2015-07-20 11:12:15 +08:00
wing328
ba72e7344a
remove nuget pacakges
2015-07-20 10:48:20 +08:00
wing328
596bde2ef6
remove leading space for path variable, update unit test
2015-07-20 10:43:08 +08:00
wing328
a863e538a8
Merge pull request #943 from psmay/develop_2.0-RestSharp-path-params
...
[C#] Use RestSharp's mechanism for path parameters in URL templates
2015-07-20 10:16:01 +08:00
xhh
a134b5ca76
Retrofit: fix form field naming by using baseName
2015-07-20 10:12:36 +08:00
Peter S. May
1f7664f81e
Fixed case typo in previous edit.
2015-07-18 19:38:20 -04:00
geekerzp
68820e5a80
Update comments of api template of python client
2015-07-18 15:54:00 +08:00
geekerzp
195c71da37
Update comments of python client
2015-07-18 15:35:12 +08:00
geekerzp
ddfa713f55
Update wording of comment in api template of python client
2015-07-18 15:22:39 +08:00
geekerzp
c9889c5baf
Update api template of python client
2015-07-18 15:03:55 +08:00
geekerzp
60d6cd744a
Format python client using pep8
2015-07-18 14:30:19 +08:00
Peter S. May
1072c9d017
Merge remote-tracking branch 'upstream/develop_2.0' into develop_2.0-RestSharp-path-params
...
Conflicts:
modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache
modules/swagger-codegen/src/main/resources/csharp/api.mustache
2015-07-17 21:45:54 -04:00
Peter S. May
4bc4a8aed1
WIP pre-adding new sources for ApiClient and api
2015-07-17 21:09:05 -04:00
Robin Eggenkamp
0ad7005547
[Swift] Add support for basic form data
2015-07-16 17:56:20 +02:00
geekerzp
3993ef3dc8
Update python codegen.
...
Remove leading underscore.
2015-07-16 18:58:23 +08:00
geekerzp
8746f1544b
Merge branch 'develop_2.0' into python-enum
2015-07-16 17:27:17 +08:00
geekerzp
f0e09ae33a
Add enum support for model property of python client
2015-07-16 17:24:42 +08:00
wing328
e879268043
Merge pull request #941 from geekerzp/develop_2.0_python_async
...
[Python] Support asynchronous request in python client
2015-07-16 10:47:02 +08:00
geekerzp
33561fa159
Support date type in python client
2015-07-16 10:11:27 +08:00
Robin Eggenkamp
78760907a5
[Swift] Support use in a Framework
...
To support use in a Framework set access level of relevant classes,
methods and members to public
2015-07-15 18:22:36 +02:00
Robin Eggenkamp
30eb1f1075
Fix bug in api name placeholder
2015-07-15 18:20:05 +02:00
wing328
5c9afbafb2
Merge pull request #918 from geekerzp/develop_2.0_objc_issue
...
[Objc] Enhancements and Issue fix
2015-07-15 18:20:40 +08:00
geekerzp
0092d8a63b
Update unit tests of objc client
2015-07-15 18:11:04 +08:00
wing328
3c6f07cbe3
Merge pull request #975 from wing328/sinatra_fix_tag
...
[Sinatra] Fixed outdated tag in mustache template
2015-07-15 17:50:25 +08:00
geekerzp
95cb5f73a3
Remove SWGFile from objc client
2015-07-15 17:10:24 +08:00
geekerzp
02f6c805af
Update integration test of objc client
2015-07-15 17:10:24 +08:00
geekerzp
13d74f01a2
Add logging in objc client
2015-07-15 17:10:24 +08:00
geekerzp
8877be82f0
Update api-body.mustache of objc client
2015-07-15 17:10:24 +08:00
geekerzp
a25d3f2543
Update README file of objc client
2015-07-15 17:10:23 +08:00
geekerzp
3f017af464
Update objc client.
...
Replace SWGFile with NSURL.
2015-07-15 17:10:23 +08:00
geekerzp
0e56d0d1c6
Support file downloading in Objc codegen.
2015-07-15 17:10:23 +08:00
geekerzp
f48a7f20e6
Update config-help of objc cli
2015-07-15 17:10:23 +08:00
geekerzp
9a15ced211
Supoort customize classPrefix in objc client.
2015-07-15 17:10:23 +08:00
geekerzp
e244d20152
Remove lib files.
2015-07-15 17:10:23 +08:00
geekerzp
412b6b3839
Update objc client.
...
* Package objc client using cocoapods.
* Support cli options.
2015-07-15 17:08:45 +08:00
geekerzp
0a652a3d13
Fix issue#896 https://github.com/swagger-api/swagger-codegen/issues/896
2015-07-15 17:08:44 +08:00
geekerzp
4d302683f3
Update logging of python client
2015-07-15 15:58:45 +08:00
geekerzp
517717958d
Update doc string of RESTClientObject#agent method of python client
2015-07-15 15:27:15 +08:00
geekerzp
b42ead3c0f
Replace urllib3.util.url.parse_url with urllib3.util.parse_url
2015-07-15 15:27:14 +08:00
geekerzp
8a3c64aa41
Add logging and debug report for python client.
2015-07-15 15:27:14 +08:00
geekerzp
d97b0984cb
Update ApiClient of python client.
...
Add docstring for method call_api.
2015-07-15 15:25:32 +08:00
geekerzp
0e8cf70dc4
Fix typo
2015-07-15 15:25:32 +08:00
geekerzp
88e5860d9b
support asynchronous request in python client
2015-07-15 15:25:31 +08:00
wing328
157b07e552
Merge pull request #912 from gabrielar/develop_2.0-pull-requests/add-pathPrefix-key-to-operations
...
Add a `pathPrefix` key to the `operations` key
2015-07-15 10:26:13 +08:00
wing328
1f097ee1a1
Merge pull request #977 from who/develop_2.0
...
[PHP] Support for customizing namespace and Composer fields
2015-07-15 10:06:26 +08:00
wing328
7a5fd24785
Merge pull request #979 from xhh/auth-methods-fix
...
Fix NullPointerException for authMethods
2015-07-15 09:50:53 +08:00
wing328
59258be3dd
Merge pull request #978 from tkQubo/fix/swift_bug
...
[Swift] Fix a bug
2015-07-15 09:42:39 +08:00
xhh
e5bdb3a0c1
Fix NullPointerException for authMethods
2015-07-15 09:21:09 +08:00
wing328
dd35c672f0
Merge pull request #935 from geekerzp/python-file-response
...
[Python] Support file downloading for Python API client
2015-07-14 17:45:11 +08:00
geekerzp
18ea21087f
Update README file of python client
2015-07-14 17:34:38 +08:00
geekerzp
746a55be73
Update README file of python client
2015-07-14 17:15:24 +08:00
wing328
7242a664e3
Merge pull request #923 from xhh/ruby-debug
...
[Ruby] Some improvements & cleaning-up on Ruby API client
2015-07-14 16:34:41 +08:00
geekerzp
9f76acbbd7
Update README file of python client
2015-07-14 15:42:01 +08:00
geekerzp
af67353022
Update integration test of python client
2015-07-14 15:38:23 +08:00
kubo_takaichi
ecf4082d68
Fix bug in api name placeholder and api url
2015-07-14 13:41:28 +09:00
wing328
5821e41185
Merge pull request #927 from wing328/csharp_file_response
...
[C# ] Add file response
2015-07-14 12:34:51 +08:00
xhh
822e640e0a
Merge branch 'develop_2.0' into ruby-debug
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/configuration.mustache
modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
samples/client/petstore/ruby/lib/petstore/swagger/request.rb
samples/client/petstore/ruby/lib/swagger_client.rb
samples/client/petstore/ruby/lib/swagger_client/swagger/configuration.rb
2015-07-14 12:33:17 +08:00
geekerzp
30925b7800
Update pom.xml of python client
2015-07-14 10:28:36 +08:00
geekerzp
bb570d7efa
Update integration-test of python client
2015-07-14 09:43:59 +08:00
geekerzp
c88c85a317
Enhancements intergration-test of python client
2015-07-14 09:39:19 +08:00
geekerzp
23dfac0194
Update deserialization of python client.
...
Return None if deserialize data is None.
2015-07-14 09:39:19 +08:00
geekerzp
b99f006861
Update Python client.
...
Throw ApiException if fail to parse string to datetime.
2015-07-14 09:39:19 +08:00
geekerzp
80d1deb2dd
Update unit tests of Python client.
...
Add more test cases for deserialization.
2015-07-14 09:39:19 +08:00
geekerzp
2912ee8ae1
Update deserialize response of Python client.
2015-07-14 09:39:18 +08:00
geekerzp
6df6c079ee
Support file downloading in Python codegen.
2015-07-14 09:39:18 +08:00
Andrew B
f4226474e2
Updating command-line parameter description for artifactVersion
2015-07-13 15:02:14 -07:00
Andrew B
b70a0bf0c6
Fixing an issue with errant namespace in the sample petstore
2015-07-13 14:56:33 -07:00
Andrew B
7dca394eca
Support for customizing Composer package and namespaces
2015-07-13 14:46:56 -07:00
wing328
80303b524d
Merge pull request #884 from xhh/params-order
...
Make sure "required" parameters are placed in front of "optional" parameters
2015-07-13 17:51:22 +08:00
wing328
6e7c70f247
fix sinatra outdated tag, use version tag
2015-07-13 17:43:18 +08:00
xhh
715c56afcc
Rebuild petstore PHP sample with updated order on params
2015-07-13 16:51:19 +08:00
xhh
aad05c4dee
Merge branch 'develop_2.0' into params-order
...
Conflicts:
samples/client/petstore/php/SwaggerClient-php/lib/PetApi.php
samples/client/petstore/php/SwaggerClient-php/lib/StoreApi.php
samples/client/petstore/php/SwaggerClient-php/lib/UserApi.php
2015-07-13 16:48:19 +08:00
wing328
3f9d1607b6
Merge pull request #926 from wing328/php_support_file_response
...
[PHP] support "file" response
2015-07-13 15:51:20 +08:00
wing328
879c1b921c
update php petstore sample
2015-07-13 15:31:20 +08:00
xhh
fb0b7d622f
Merge branch 'develop_2.0' into params-order
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/api.mustache
2015-07-13 15:30:06 +08:00
wing328
f154e407d2
update coding style based on CodeSniffer
2015-07-13 15:26:12 +08:00
wing328
44705b566d
add default version for package
2015-07-13 15:24:12 +08:00
wing328
71a22141bf
add enum support for model property
2015-07-13 15:24:11 +08:00
wing328
38149173ff
revert petstore json, fixed test case
2015-07-13 15:21:39 +08:00
wing328
2258a4632d
fix test.php, fix default configuration
2015-07-13 15:21:39 +08:00
wing328
259b31ccd4
temporary folder setting
2015-07-13 15:21:38 +08:00
wing328
7f31da734d
add file response for php, update test case
2015-07-13 15:09:09 +08:00
wing328
fcd0b31d7d
add file response for php
2015-07-13 15:09:09 +08:00
wing328
4c2df94ec7
Merge pull request #953 from bletail/develop_2.0
...
Python/Python3 datetime and date type fixed
2015-07-13 15:05:13 +08:00
wing328
38760d2aa1
Merge pull request #915 from xhh/ruby-file-response
...
[Ruby] Support file downloading for Ruby API client
2015-07-13 14:50:40 +08:00
wing328
f6174051cb
Merge pull request #931 from cbornet/oauth_support
...
generate oauth2 fields in the data for the templates
2015-07-13 14:39:14 +08:00
wing328
68915eeb8f
Merge pull request #968 from mhardorf/develop_2.0
...
Cleaned up TypeScript code generator
2015-07-13 12:16:11 +08:00
wing328
1434691927
Merge pull request #916 from wing328/fix_optional
...
[Perl, Python AsyncScala] Fix optional tag in the template
2015-07-13 11:53:58 +08:00
wing328
b46efd839d
Merge pull request #914 from webjunkie/patch-1
...
Optional is used in PHP template although not available
2015-07-13 11:52:55 +08:00
wing328
c7f8f0171b
Merge pull request #919 from wing328/fix_java_android_path_issue
...
[Java, Android] Fix path variable name
2015-07-13 11:51:45 +08:00
wing328
045a3b44c1
Merge pull request #901 from tkQubo/feature/swift_develop_2.0
...
[Swift] Some fixes for SwiftGenerator for develop 2.0
2015-07-13 11:51:07 +08:00
wing328
6c85fc285a
Merge pull request #959 from dilipkrish/develop_2.0
...
Updated the swagger-codegen sample for generating the service side stubs
2015-07-13 10:14:05 +08:00
Dilip Krishnan
7cc9581f04
Updated the mustache template to remove the spurious import
...
Also regenerated the spring-mvc server sample
2015-07-12 20:56:36 -05:00
Dilip Krishnan
9283249963
Updated the swagger-codegen sample for generating the service side stubs
...
for spring mvc using springfox implementation
2015-07-12 20:56:31 -05:00
Tony Tam
461f556289
Merge pull request #893 from sudohippie/develop_2.0-fork
...
Android & Java template modifications to check collectionFormat when creating query parameters
2015-07-09 10:11:54 -07:00
Martin Hardorf
e3d3641b96
Removed unused import
2015-07-09 14:57:40 +02:00
Martin Hardorf
7e8f8e85d7
Changed default name of the modelPackage
2015-07-09 14:55:15 +02:00
Martin Hardorf
abc7100a17
Removed unused code from the api classes
2015-07-09 14:54:36 +02:00
Morten Andersen
661b9d6315
Docker generate example
2015-07-09 12:58:33 +02:00
moander
a21c2be877
Set executable flag
2015-07-09 10:39:35 +00:00
moander
5c29cbf33d
Build and run script for docker
2015-07-09 12:33:43 +02:00
Martin Hardorf
d3bc347e31
Changed base path to use contextPath
2015-07-09 10:34:39 +02:00
wing328
1f35f58841
add back summary and description to nodejs swagger.json
2015-07-09 14:05:08 +08:00
xhh
a51d71e728
Fix syntax error when there are no authMethods
2015-07-09 10:48:16 +08:00
wing328
b8c06505f6
use fully qualified name for Task
2015-07-09 10:21:55 +08:00
moander
80731633b4
Created a Dockerfile
2015-07-09 01:22:06 +02:00
Tobias Pfeifer
4c16366f45
fix SpringMVCServerCodegen for maps as in JavaClientCodegen
2015-07-08 15:45:38 +02:00
Martin Hardorf
4133cae2bc
Fixed mustache to handle non-required parameters
2015-07-08 11:19:25 +02:00
Martin Hardorf
f6a1af2831
Changed maps to any and DateTime to Date
2015-07-08 11:17:06 +02:00
xhh
a24fee00cb
Support primitive response in Ruby client
2015-07-08 16:46:31 +08:00
xhh
f42f329ace
Parse "date" as Date in Ruby client
2015-07-08 13:10:28 +08:00
xhh
6fd2ccabee
Merge branch 'develop_2.0' into ruby-debug
2015-07-08 12:38:21 +08:00
DariusM
20c7932df4
Python /python3 datetime and date fixed
2015-07-07 13:00:28 +02:00
wing328
e49fe7a12f
better style for model, add <value> to all properties
2015-07-07 16:25:33 +08:00
wing328
b1b0e28f59
update c# style
2015-07-06 23:06:28 +08:00
Tony Tam
dfd8d5ef64
updated to latest release version
2015-07-06 04:55:12 -07:00
wing328
94768d44b5
better type comparision
2015-07-06 13:55:33 +08:00
wing328
3b1999af4b
update csharp sample
2015-07-06 11:24:59 +08:00
wing328
7e4a82bcfb
add readme
2015-07-06 11:18:05 +08:00
wing328
f823c0e26a
update newtonsoft json
2015-07-06 11:03:36 +08:00
xhh
bf32777b67
Fix NullPointerException in tests, improve usage to addVars
2015-07-03 18:07:34 +08:00
wing328
987a61640b
fix file upload issue. add error handling for status code 0
2015-07-03 17:39:27 +08:00
xhh
66d16cfeaf
Validate parameter against allowed values (enum)
2015-07-03 16:46:23 +08:00
xhh
0bf4163389
Copy properties of intermediate (interface) models
2015-07-03 15:08:37 +08:00
xhh
b61a400d91
Copy properties of parent model to model with allOf
...
Also fix #936
2015-07-03 15:08:37 +08:00
wing328
55827fe516
fix model import for csharp
2015-07-03 14:20:54 +08:00
wing328
5c888ad039
better method comment
2015-07-03 13:55:51 +08:00
wing328
d7d6ba957e
fix comment and use 4-space indentation
2015-07-03 11:45:31 +08:00
wing328
57b54d8ad7
update code style for apiclient, configuration and apiexception
2015-07-03 10:36:21 +08:00
Peter S. May
4b896c759c
[C#] Use RestSharp's mechanism for path parameters in URL templates
...
Previously, a simple find-and-replace had been used to substitute path parameters into the path. Among other omissions, this resulted in special characters such as `/` being left unescaped.
The RestSharp request object, as it turns out, expects a path template in the same format as provided by Swagger (with param names in braces), to be filled in using `AddParameter()`. In this edit, the code now uses this mechanism. The form parameter values are now passed to `CallApi*()` as a `Dictionary<String, String>`, where they are added to the request before submission. Since this was already how query and form parameters (etc.) were implemented, the resulting code is more consistent with itself than before.
2015-07-02 15:33:30 -04:00
Ole Lensmar
aba755d3de
Merge pull request #940 from xhh/jax-rs-classname
...
Sanitize API class name in Jax RS server codegen
2015-07-02 11:38:10 +02:00
xhh
fe35675168
Allow numbers for classname
...
and remove spaces
2015-07-02 17:15:53 +08:00
xhh
d825b96720
Sanitize API class name in Jax RS server codegen
2015-07-02 12:00:18 +08:00
wing328
422da698f6
import model only if it has import for c#
2015-07-02 11:18:41 +08:00
wing328
488e604207
use stream for file
2015-07-01 21:37:48 +08:00
xhh
846d282ba0
Add helper methods for last response
2015-07-01 18:48:31 +08:00
xhh
6f1dd5ce35
Store last response in a thread-safe way
2015-07-01 17:37:16 +08:00
xhh
108b2241c0
Validate model property against allowed values (enum)
...
when present with attribute setters
2015-07-01 17:18:29 +08:00
wing328
4d6dbf7d92
show return in doc only if it has a return
2015-07-01 15:16:28 +08:00
Nadezhda Makarkina
eca827613d
Fixed #831 : skipOverwrite flag has been added
2015-06-30 17:58:35 +03:00
wing328
2e76b56f30
revert file to String, add test case for upload file
2015-06-30 17:50:22 +08:00
wing328
f290de95dd
update parameter name to camelize lower
2015-06-29 23:14:00 +08:00
wing328
59987a54a9
fix deserialization of string and other primitive
2015-06-29 22:16:38 +08:00
cbornet
2d59c5d190
generate oauth2 fields in the data for the templates
...
Fixes #347
2015-06-29 13:39:39 +02:00
wing328
9726ada8d1
fix return type and tempfolder
2015-06-29 15:30:34 +08:00
wing328
76ece5a4eb
add file response support for c# (passed test cases)
2015-06-29 12:17:49 +08:00
kubo_takaichi
91af76cf41
Use CLI option
2015-06-27 23:24:49 +09:00
kubo_takaichi
65af735d6c
Merge commit '4143e286374bdd384c39a68df1f8f3a3eb58e6a4' into feature/swift_develop_2.0
2015-06-27 21:19:32 +09:00
wing328
30bc58f6ff
Merge branch 'fix_optional' of https://github.com/wing328/swagger-codegen into fix_optional
2015-06-26 23:57:06 +08:00
wing328
3eca940e7d
fix perl and asyncscala optional tab
2015-06-26 23:56:20 +08:00
wing328
38d62d768a
fix optional for python, python3
2015-06-26 23:56:20 +08:00
xhh
1de6952279
Support customizing default headers via config option
...
for example:
config.default_headers['X-MY-HEADER'] = 'my-header-value'
2015-06-26 19:09:20 +08:00
xhh
54d6a7e19c
Merge branch 'develop_2.0' into ruby-file-response
2015-06-26 17:44:37 +08:00
xhh
fafddbf040
Fix naming in specs
2015-06-26 17:16:38 +08:00
xhh
d8b0cb739f
Add config file for bin/ruby-petstore.sh
...
to rename swagger_client to petstore
2015-06-26 17:15:14 +08:00
xhh
2d3d35cfd7
Rebuild Ruby petstore client
2015-06-26 16:37:58 +08:00
xhh
8c10e4f2b0
Remove unused code
2015-06-26 16:06:32 +08:00
xhh
0ac1ef266f
Avoid more monkey-patching
2015-06-26 16:04:18 +08:00
xhh
327128dbba
Fix "date" type deserialization
2015-06-26 15:57:46 +08:00
xhh
16e80c65d7
Avoiding monkey-patching in Ruby API client
2015-06-26 15:56:59 +08:00
xhh
40c9f05536
Merge branch 'develop_2.0' into ruby-debug
2015-06-26 10:38:58 +08:00
wing328
091e76703c
update sample
2015-06-26 10:35:50 +08:00
wing328
6a24b328e3
fix variable name in path
2015-06-26 10:30:12 +08:00
Tony Tam
4143e28637
Merge branch 'wing328-csharp_add_cli_support' into develop_2.0
2015-06-25 11:55:41 -07:00
Tony Tam
31efefe0b9
Merge branch 'csharp_add_cli_support' of ssh://github.com/wing328/swagger-codegen into wing328-csharp_add_cli_support
2015-06-25 11:54:30 -07:00
Tony Tam
e60bd564cb
Merge pull request #864 from geekerzp/python-cli-option
...
[Python] Enabling cli config options for python generator
2015-06-25 11:53:29 -07:00
Tony Tam
69b75bb1af
Merge pull request #885 from mhardorf/develop_2.0
...
Added support for TypeScript generation for AngularJS and Node.js
2015-06-25 11:53:21 -07:00
Tony Tam
1fb796f14d
Merge pull request #891 from who/develop_2.0
...
Replacing getClientResponseStatus() with getStatusInfo()
2015-06-25 11:53:10 -07:00
Tony Tam
e996498a24
Merge pull request #913 from xhh/scala-warnings
...
[Scala] Fix warnings and upgrade jersey for Scala client
2015-06-25 11:52:57 -07:00
Tony Tam
c3d1367e7c
Merge pull request #894 from wing328/csharp_add_nunit
...
[C#] Add NUnit test
2015-06-25 11:52:19 -07:00
Tony Tam
69eae7d35b
merged
2015-06-25 10:23:05 -07:00
Tony Tam
162d1d1f98
merged
2015-06-25 10:21:38 -07:00
Tony Tam
07d5365c5c
merged from #902 , rebuilt client
2015-06-25 10:17:28 -07:00
Tony Tam
f1239aba6c
Merge pull request #908 from wing328/fix_php_file_sep
...
[PHP] Fix regular expression in toPackagePath
2015-06-25 10:10:30 -07:00
Tony Tam
37620518e7
Merge pull request #892 from wing328/add_sinatra
...
[Ruby] Add back Sinatra tempates
2015-06-25 10:10:22 -07:00
William Cheng
9d739a44cd
update python test case
2015-06-25 21:47:00 +08:00
wing328
18ac6e8aae
fix perl and asyncscala optional tab
2015-06-25 23:10:25 +08:00
wing328
8cce7ac053
fix optional for python, python3
2015-06-25 22:40:14 +08:00
xhh
e6e1db2064
Support looser format when detecting filename
2015-06-25 16:26:04 +08:00
xhh
ceafbcc97f
Add config option for file downloading folder. Log about file downloading
2015-06-25 16:07:02 +08:00
xhh
f3a0f464f7
Support file downloading in Ruby generator
2015-06-25 15:35:48 +08:00
Raghav Sidhanti
1af23fb751
Unit tests for Android and Java parameterToPairs method
2015-06-24 11:55:03 -07:00
Raghav Sidhanti
ea76f34de5
Merge branch 'develop_2.0' of https://github.com/swagger-api/swagger-codegen into develop_2.0-fork
2015-06-24 11:25:32 -07:00
Julian Bez
8ce3823698
Change to not required
2015-06-24 16:34:32 +02:00
Julian Bez
644231b915
Change optional to required
2015-06-24 16:32:49 +02:00
xhh
621e3e7b1a
Add comments for some configuration options
2015-06-24 15:57:01 +08:00
wing328
6aac24398a
update model to support inheritance ( #879 )
2015-06-24 14:34:05 +08:00
xhh
545fb52b7d
Merge branch 'develop_2.0' into ruby-debug
2015-06-24 14:10:47 +08:00
Ole Lensmar
8e6c0f96fb
updated documentation and removed java-specific parameters from general configuration
2015-06-24 07:31:10 +02:00
Gabriel Radu
1b1f860c82
Add a pathPrefix key to the operations key
2015-06-24 03:28:38 +01:00
Ole Lensmar
50dd196d42
fixed code formatting and imports
2015-06-24 00:12:50 +02:00
Ole Lensmar
ce6ec20fef
added config parameters for all default parameters and a configOptions map for language specific parameters
2015-06-24 00:11:13 +02:00
Ole Lensmar
11e56f5c9c
Merge pull request #898 from garethjevans/develop_2.0
...
Contributed maven plugin to the swagger-codegen project
2015-06-23 23:20:49 +02:00
nmonterroso
efd5b806be
updating php generated samples and updating tests
2015-06-23 09:27:52 -07:00
nmonterroso
1b4c71c280
re-adding Configuration->deleteDefaultHeader
2015-06-23 09:27:34 -07:00
wing328
d83036ccdf
fix regular expression
2015-06-23 22:36:57 +08:00
wing328
d18426c69a
fix reg expression
2015-06-23 22:30:43 +08:00
wing328
351833a923
test fix
2015-06-23 21:52:00 +08:00
wing328
2979d93829
use replace instead of replaceAll
2015-06-23 21:47:10 +08:00
Martin Hardorf
2fce2e4109
Removed wrong hasMore from Angular TypeScript mustache
2015-06-23 15:37:07 +02:00
xhh
13d350be2e
Fix warnings and upgrade jersey for Scala client
...
* Upgrade jersey to latest version (from 1.7 to 1.19)
* Replace getClientResponseStatus() with getStatusInfo()
* Fix the following maven warnings and model import warnings
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 72, column 15
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[WARNING] Expected all dependencies to require Scala version: 2.10.4
[WARNING] com.fasterxml.jackson.module:jackson-module-scala_2.10:2.4.2 requires scala version: 2.10.4
[WARNING] org.scala-lang:scala-reflect:2.10.4 requires scala version: 2.10.4
[WARNING] io.swagger:swagger-scala-client:1.0.0 requires scala version: 2.10.4
[WARNING] org.scalatest:scalatest_2.10:2.1.3 requires scala version: 2.10.3
[WARNING] Multiple versions of scala libraries detected!
[WARNING] /Users/xhh/projects/swagger-codegen/samples/client/petstore/scala/src/main/scala/io/swagger/client/model/Pet.scala:3: warning: imported `Category' is permanently hidden by definition of object Category in package model
2015-06-23 21:23:48 +08:00
wing328
550493ba84
fix php separator
2015-06-23 21:20:12 +08:00
Martin Hardorf
c45af23946
Fixed headerParams and paramName
2015-06-23 12:05:43 +02:00
xhh
19ee56592e
Allow customizing SSL CA certificate
...
by adding a `ssl_ca_cert` configuration option
2015-06-23 17:23:22 +08:00
kubo_takaichi
aec4af1b88
Replace slash with File.separator
2015-06-23 16:10:21 +09:00
xhh
46869df631
Make HTTP response accessible by storing the last response
...
so that users are able to retrieve, for example, rate-limit headers
from the response
2015-06-23 15:02:40 +08:00
nmonterroso
c91a1b963b
change serializer to be instanced, rather than static methods
2015-06-22 21:33:44 -07:00
nmonterroso
2fced0f634
Revert "Updates to csharp model template to support inheritance"
...
This reverts commit 5f1df9e093 .
2015-06-22 21:12:13 -07:00
nmonterroso
60b0ffeb0e
don't prepend the invokerPackage - an artifact from an earlier implementation
2015-06-22 21:06:22 -07:00
nmonterroso
6623e120cd
renaming to Configuration
2015-06-22 20:53:59 -07:00
nmonterroso
46ec934a9c
java7 doesn't have replace, but put operates as such, so switch to that
2015-06-22 20:49:12 -07:00
nmonterroso
5a9e9550ca
fixing php-doc
2015-06-22 20:43:00 -07:00
nmonterroso
8e0142338e
removing unused imports
2015-06-22 20:36:57 -07:00
nmonterroso
61e368ce87
Merge remote-tracking branch 'swagger/develop_2.0' into php-upgrades
2015-06-22 20:29:09 -07:00
nmonterroso
c93b0dd3b8
make srcBasePath configureable
2015-06-22 20:24:19 -07:00
kubo_takaichi
79e31a5761
Add a workaround against void forcibly being converted to string
2015-06-23 12:20:00 +09:00
kubo_takaichi
fa3a9a9d61
Change class package
2015-06-23 12:20:00 +09:00
kubo_takaichi
febaa340e3
Treat object as String (temporary measure)
2015-06-23 12:20:00 +09:00
kubo_takaichi
bcab55e3ef
Tighten parameter requirement
2015-06-23 12:20:00 +09:00
kubo_takaichi
24465d2df4
Change model naming
2015-06-23 12:20:00 +09:00
kubo_takaichi
8540ac71c8
Update swift code generation script
2015-06-23 12:20:00 +09:00
kubo_takaichi
9e47042122
Update models
2015-06-23 12:20:00 +09:00
kubo_takaichi
e0109afc60
Fix typo
2015-06-23 12:20:00 +09:00
kubo_takaichi
ff88f7175d
Update models
2015-06-23 12:20:00 +09:00
kubo_takaichi
c9a9b0ad2b
Refine authMethods description
2015-06-23 12:20:00 +09:00
kubo_takaichi
db01ec801f
Add suppressRequired functionality
2015-06-23 12:20:00 +09:00
kubo_takaichi
495e528eec
Add generated code
2015-06-23 12:20:00 +09:00
kubo_takaichi
a7c91d610f
Add error response body to NSError
2015-06-23 12:20:00 +09:00
kubo_takaichi
d08acf7298
Add a dateTime formatter candidate
2015-06-23 12:20:00 +09:00
kubo_takaichi
7be35bb02e
Change method name to avoid name collision
2015-06-23 12:20:00 +09:00
Raghav sidhanti
b4d6fd3ba3
Returning when query param value is null.
2015-06-22 20:16:35 -07:00
nmonterroso
d5d1483656
properly account for custom and non-custom settings for modelPackage and apiPackage
2015-06-22 20:14:54 -07:00
Tony Tam
02c41ac574
fix for #900 , invalid param name for java client
2015-06-22 20:00:28 -07:00
nmonterroso
3a6f431f62
make packagePath configureable, and remove unused code
2015-06-22 19:34:03 -07:00
nmonterroso
4fe979a8c0
code compiles and *should* work, but need to re-organize for separate client/api-specific class namespaces
2015-06-22 19:26:26 -07:00
xhh
3b6a3b4a38
Add logging for API call entry and result
2015-06-23 10:12:20 +08:00
nmonterroso
da14c9e692
changing to invokerPackage
2015-06-22 19:09:32 -07:00
nmonterroso
b8b003bc83
Merge remote-tracking branch 'swagger/develop_2.0' into php-upgrades
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PhpClientCodegen.java
modules/swagger-codegen/src/main/resources/php/ApiClient.mustache
modules/swagger-codegen/src/main/resources/php/ApiException.mustache
modules/swagger-codegen/src/main/resources/php/api.mustache
modules/swagger-codegen/src/main/resources/php/autoload.mustache
modules/swagger-codegen/src/main/resources/php/configuration.mustache
modules/swagger-codegen/src/main/resources/php/model.mustache
modules/swagger-codegen/src/test/scala/php/PhpModelTest.scala
2015-06-22 19:09:13 -07:00
xhh
229ea93627
Add debugging switch to Ruby generator
2015-06-23 10:06:01 +08:00
xhh
24296eacea
Merge branch 'develop_2.0' into params-order
...
Conflicts:
samples/client/petstore/ruby/lib/swagger_client/api/pet_api.rb
2015-06-23 10:02:18 +08:00
Raghav Sidhanti
6958db3d3d
Refactored Pairs to use List instead of Set.
2015-06-22 17:14:18 -07:00
Raghav Sidhanti
32b50e7c8e
Refactored parameterToPairs
2015-06-22 17:02:00 -07:00
Tony Tam
b803895750
Merge pull request #865 from ammmze/feature/php-namespace-and-doc
...
Improve PHP namespace support
2015-06-22 16:53:57 -07:00
Tony Tam
d1153dfeb4
Merge pull request #866 from geekerzp/develop_2.0_objc_deserialize_map
...
[Objc] bug fix for map response
2015-06-22 16:53:28 -07:00
Tony Tam
385fab225e
Merge pull request #871 from xhh/ruby-object-type
...
[Ruby] Support deserialization of "object" type in Ruby generator
2015-06-22 16:53:21 -07:00
Tony Tam
89a5abb217
Merge pull request #870 from wing328/perl_cli_support
...
[Perl] Add CLI config options and code enhancement
2015-06-22 16:53:12 -07:00
Raghav Sidhanti
79a5614be9
Invalid strings will be passed as blank query param.
2015-06-22 15:55:29 -07:00
Raghav Sidhanti
a1b56c9b83
Renamed QueryParam to Pair class in Android templates.
2015-06-22 15:28:29 -07:00
Raghav Sidhanti
ecddfb7ccf
Renamed QueryParam to Pair class in Java templates.
2015-06-22 15:16:45 -07:00
nmonterroso
bd5eb7ace3
update tests
2015-06-22 12:30:52 -07:00
nmonterroso
8e15bd6a85
call setHost on config
2015-06-22 12:13:39 -07:00
nmonterroso
5ef50f9f4b
rename ApiConfiguration to ApiClientConfiguration
2015-06-22 12:07:48 -07:00
nmonterroso
a6331244e1
move all configuration to ApiConfiguration
2015-06-22 12:05:22 -07:00
nmonterroso
01d7776fc1
don't create a new response object, and keep the old string value in the exception and have the object as ApiException->responseObject
2015-06-22 11:47:23 -07:00
nmonterroso
109b7eeaec
adding static setters/getters for models since members are no public
2015-06-22 11:19:01 -07:00
nmonterroso
5de99bafa7
fixing package output
2015-06-22 11:18:36 -07:00
Gareth Evans
a664abcf51
Contributed maven plugin to the swagger-codegen project
2015-06-22 19:17:29 +01:00
nmonterroso
6f11092a57
call setHost using API baspath when no apiclient is provided
2015-06-22 10:35:57 -07:00
nmonterroso
e598384d97
move authentication to the API level, so that supporting classes aren't api-specific
2015-06-22 10:31:38 -07:00
nmonterroso
53bddae904
separate serialization responsibility to ObjectSerializer class
2015-06-22 09:47:28 -07:00
nmonterroso
1519912a1a
cleaning up some php doc
2015-06-22 09:26:45 -07:00
nmonterroso
b3a3bdd2e0
add fully-qualified class names to deserialize params
2015-06-22 09:18:41 -07:00
nmonterroso
04be474f56
moving $host back to ApiClient and making ApiClient setters fluent
2015-06-22 08:36:49 -07:00
nmonterroso
99e963709b
renaming configuration
2015-06-22 08:30:08 -07:00
nmonterroso
b9ca19168a
remove static fields in Configuration and make variable case more consistent
2015-06-22 08:28:22 -07:00
geekerzp
acf09da578
Fix typo in python codegen
2015-06-22 16:35:15 +08:00
wing328
1d59937150
add nunit test for csharp
2015-06-22 11:53:44 +08:00
nmonterroso
caa1b7f411
generate model imports for support files, and use them as imports
2015-06-19 15:20:29 -07:00
Raghav Sidhanti
7a9a41fe01
Java and Android template changes to accommodate query params defined by the collection-format.
2015-06-19 14:06:25 -07:00
nmonterroso
acdc5328fe
deserialize thrown exceptions
2015-06-19 11:24:56 -07:00
nmonterroso
3252dd0d18
check for null array in constructor
2015-06-19 10:32:38 -07:00
nmonterroso
5c409884b9
make setters fluent
2015-06-19 10:31:05 -07:00
nmonterroso
f9f58596b8
account for return type where the response type is in a list container, and properly import models into operations
2015-06-18 16:51:24 -07:00
nmonterroso
bb11322919
use proper namespaces, getters/setters, and phpdocs
2015-06-18 15:41:12 -07:00
nmonterroso
4495774fd5
proper autoloader and move generated files to PSR-4 compliant locations
2015-06-18 15:08:45 -07:00
Andrew B
1aeb50feef
Replacing getClientResponseStatus() with getStatusInfo()
2015-06-18 14:41:17 -07:00
Branden Cash
b74050dd7b
Change to use the autoload.php and change the namespacing
2015-06-18 11:45:08 -07:00
Branden Cash
2ac7384abf
Fix tests
2015-06-18 11:43:54 -07:00
Branden Cash
eed45a41a3
Fixed the missing closing doc chars and updated sample
2015-06-18 11:43:54 -07:00
Branden Cash
69c2f6f945
Add phpdoc for the api.apiClient
2015-06-18 11:43:54 -07:00
Branden Cash
5119299e8a
Remove unused code
2015-06-18 11:43:54 -07:00
Branden Cash
719a0b732e
Update sample client
2015-06-18 11:43:48 -07:00
Branden Cash
8ed690cad0
Better namespace support, so that your not limited to only having a single vendor space, you can have \Vendor\Package\Model as a namespace. Also updates with proper phpdoc comments so that IDE code hinting can function properly.
2015-06-18 11:41:14 -07:00
William Cheng
f957471509
update silex sample code location
2015-06-19 02:37:08 +08:00
William Cheng
0b0325b8af
update readme, fix swaggering name
2015-06-19 02:32:50 +08:00
William Cheng
d178d5e7d8
add sinatra template
2015-06-19 02:11:08 +08:00
nmonterroso
4ef34680cd
renaming to ApiClient.mustache
2015-06-18 10:30:53 -07:00
wing328
6ab7be4058
add package version
2015-06-18 22:20:52 +08:00
wing328
df72188bc0
add cli support to csharp
2015-06-18 22:06:59 +08:00
geekerzp
8d18aee2f2
Update test case test_deserialize_to_dict of python client
2015-06-18 22:02:54 +08:00
Martin Hardorf
449ba4f644
Fixed required parameters for APIs in TypeScript
2015-06-18 12:42:04 +02:00
geekerzp
194c8ff71d
Update config-help message of python client
2015-06-18 10:43:25 +08:00
geekerzp
62f4c252f2
Update python codegen.
...
* Update config-help message.
* Do not sanitize packageName to underscore format.
2015-06-18 10:43:24 +08:00
geekerzp
5d19ef6146
Generate the python into python/ folder directly
2015-06-18 10:43:24 +08:00
geekerzp
a32335dfbc
Enable cli config options for python generator
2015-06-18 10:43:24 +08:00
geekerzp
6b6480a026
Updated xcode project of objc client
2015-06-18 10:38:19 +08:00
geekerzp
a4df33d040
Add comments for SWGJSONResponseSerializer#responseObjectForResponse
...
method of objective-c client.
2015-06-18 10:03:51 +08:00
geekerzp
8b15416be5
Add SWGJSONResponseSerializer for objective-c client.
...
If the response data is valid json, return the deserialized json.
If the response data is invalid json, return the string of response data.
2015-06-18 10:03:51 +08:00
geekerzp
bc92465bf7
Update Objective-C method description (doc comments) style
2015-06-18 10:03:51 +08:00
geekerzp
a6bdc35d59
Support pure object response for objc client
2015-06-18 10:03:51 +08:00
geekerzp
c50c8b724d
Support map response for objc client.
...
completed.
2015-06-18 10:03:50 +08:00
geekerzp
0da3e58fff
Support map response for objc client.
...
not completed
2015-06-18 10:03:12 +08:00
xhh
edcb71ad22
Merge branch 'develop_2.0' into params-order
...
Conflicts:
bin/all-petstore.sh
2015-06-18 09:59:13 +08:00
xhh
d6d707543d
Merge branch 'develop_2.0' into ruby-object-type
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/RubyClientCodegen.java
2015-06-18 09:56:58 +08:00
William Cheng
8858e7d7e3
update perl sample
2015-06-18 02:44:40 +08:00
William Cheng
64b46c2e15
update indentation, remove export
2015-06-18 02:40:15 +08:00
wing328
82baa7ce4b
update help text
2015-06-18 10:57:10 +08:00
wing328
d7315b56dc
removed non-perl update
2015-06-18 10:57:10 +08:00
wing328
10e07eaf74
add support for cli (perl)
2015-06-18 10:57:09 +08:00
Martin Hardorf
e7d4a438dd
Added tests for TypeScript Angular and Node.js
2015-06-17 17:58:52 +02:00
Martin Hardorf
9e8631b75f
Added shell scripts for sample generation of TypeScript
2015-06-17 17:56:37 +02:00
Tony Tam
e39ec927a2
Merge pull request #879 from shoatman/master
...
Updates to csharp model template to support inheritance
2015-06-17 08:30:07 -07:00
Tony Tam
6ad3a717fe
Merge pull request #882 from wing328/php_add_silex
...
[PHP] add Silex server-side codegen
2015-06-17 08:29:48 -07:00
Tony Tam
f66b5cf65b
Merge pull request #867 from wing328/fix_jar_path
...
[Bug fix] Fix path inside JAR for non-template files
2015-06-17 08:28:30 -07:00
Tony Tam
d8c337185f
Merge pull request #857 from wing328/php_warning
...
[PHP] Remove PHP5.3 warning
2015-06-17 08:27:47 -07:00
Tony Tam
5ade64b3e1
Merge pull request #856 from wing328/csharp_upgrade_restsharp
...
[C#] upgrade restsharp to 105.1.0
2015-06-17 08:27:10 -07:00
Tony Tam
e65a079f0e
Merge pull request #855 from geekerzp/develop_2.0_python_deserialize_map
...
[Python] bug fix for map response
2015-06-17 08:26:58 -07:00
Tony Tam
378ffffdc7
Merge pull request #854 from geekerzp/develop_2.0_objc_pro_rename
...
[Objc] Change xcode project name in objc sample code
2015-06-17 08:26:42 -07:00
Tony Tam
dd356b54c0
Merge pull request #853 from wing328/perl_support_map3
...
[Perl] update deserialization to support Map and List
2015-06-17 08:25:45 -07:00
Tony Tam
f56388845c
Merge pull request #850 from xhh/ruby-cli-option2
...
[Ruby] Enabling cli config options for ruby generator
2015-06-17 08:25:34 -07:00
William Cheng
436db1f8e7
add __toString and update php sample
2015-06-17 19:00:29 +08:00
Martin Hardorf
ba4b88ef86
Fixed TypeScript mustache
2015-06-17 12:22:15 +02:00
xhh
b39d44db03
Add missing petstore scripts to bin/all-petstore.sh
2015-06-17 16:16:44 +08:00
xhh
9c4e5ed596
Rebuild Petstare sample for Java, Android, PHP, etc.
2015-06-17 16:15:37 +08:00
wing328
ce40da0f71
add php silex server side codegen
2015-06-17 16:01:24 +08:00
xhh
7f4586a47f
Fix comment regarding required parameter in PHP generator
2015-06-17 16:00:59 +08:00
xhh
24a2de7389
Sort parameters to move required ones in front of optional ones
2015-06-17 16:00:16 +08:00
Shane Oatman
5f1df9e093
Updates to csharp model template to support inheritance
2015-06-16 12:12:17 -07:00
xhh
5435777c65
Merge remote-tracking branch 'origin/develop_2.0' into ruby-object-type
2015-06-16 18:42:18 +08:00
xhh
7c355030f4
Add to_s method for models
2015-06-16 18:41:51 +08:00
Nadezhda Makarkina
7b5b874fdc
Fixed #798 : original jar generation has been fixed.
2015-06-16 11:58:22 +03:00
Martin Hardorf
f87bb12ebb
Added support for TypeScript generation for AngularJS and Node.js
2015-06-16 10:44:05 +02:00
xhh
d2d5cf0d57
Add convention notes to Ruby CLI options
2015-06-16 12:17:11 +08:00
xhh
6348f67b18
Merge remote-tracking branch 'origin/develop_2.0' into ruby-cli-option2
2015-06-16 12:07:15 +08:00
Ron
eaf5a371ff
Merge pull request #863 from wing328/fix_typo
...
Fixed a minor typo with the command example
2015-06-15 13:20:05 +03:00
Ron
dee0948e3e
Update README.md
2015-06-15 13:19:56 +03:00
xhh
a59d4ba346
Add test case for finding nonexistent pet
2015-06-15 16:51:38 +08:00
xhh
ec8e5179cb
Remove unused comments
2015-06-15 16:46:30 +08:00
xhh
9d5928551b
Unify ClientError and ServerError into ApiError
...
in Ruby generator
2015-06-15 16:38:08 +08:00
wing328
456e17430b
Merge branch 'php_warning' of https://github.com/wing328/swagger-codegen into php_warning
2015-06-15 15:51:12 +08:00
wing328
839f0971f0
rename php ApiClient
2015-06-15 15:50:40 +08:00
xhh
e9c1dd7842
Regard bare "object" type as Object, add comments
...
The handling of base "object" type (without definions of
"additionalProperties") is similar to Java generator now.
2015-06-15 12:49:17 +08:00
wing328
24b110be9d
show writing file for non-template file
2015-06-14 01:27:47 +08:00
wing328
7a560865a0
fix jar path in windows
2015-06-14 00:59:40 +08:00
geekerzp
718a9a79ed
Update test case test_deserialize_to_object of python client.
2015-06-13 19:05:15 +08:00
geekerzp
ff9623fb5c
Support pure object response for python client.
2015-06-13 18:58:27 +08:00
xhh
80616b4c2b
Add test cases for StoreApi#get_inventory
2015-06-12 23:03:17 +08:00
xhh
36f0ed6d0c
Add test cases for Response#deserialize
2015-06-12 22:44:52 +08:00
xhh
4c8c6c3880
Rebuild Ruby Petstore sample
2015-06-12 20:18:50 +08:00
xhh
e38fc2c3da
Deserialize response for "object" type in Ruby client
2015-06-12 20:15:48 +08:00
wing328
2fdae91cbc
fix a typo in readme
2015-06-12 16:12:54 +08:00
William Cheng
7aab1eaffb
update test.php to put exception test at last
2015-06-10 23:53:56 +08:00
wing328
a0c55693dc
add test case for loginUser, separate test cases into different files
2015-06-10 21:59:48 +08:00
wing328
9aca2868b9
change static method to instance method, update test case to remove php warning
2015-06-10 21:18:48 +08:00
wing328
4982784d7c
upgrade restsharp to 105.1.0
2015-06-10 15:57:07 +08:00
geekerzp
e2d441e862
support map type response for python client
2015-06-10 11:55:12 +08:00
wing328
303dbe7730
fix array,map for perl, add test case
2015-06-10 10:53:21 +08:00
geekerzp
d7b10a17c1
Renamed objc client from PetstoreClient to SwaggerClient
2015-06-10 10:53:16 +08:00
Alexey Nechaev
3f194d3288
Fixed #837 : Generation of default values for complex arrays and maps has been improved.
2015-06-09 19:34:09 +03:00
fehguy
672fcd5a14
updated dev version
2015-06-09 01:36:52 -07:00
fehguy
3768932ba2
updated dev version
2015-06-09 01:36:48 -07:00
Tony Tam
eafcc43295
Merge pull request #851 from swagger-api/develop_2.0
...
merge from develop 2.0 for release
2015-06-09 01:13:42 -07:00
xhh
1315e2d72c
Add new line to make code more readable
2015-06-09 15:47:37 +08:00
xhh
44780e6e1b
Merge branch 'develop_2.0' into ruby-cli-option2
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
2015-06-09 15:44:50 +08:00
fehguy
570383d5d5
updated name, disabled test
2015-06-09 00:41:08 -07:00
fehguy
3d2f09a693
updated versions
2015-06-09 00:25:09 -07:00
Tony Tam
33c2b1b623
Merge pull request #849 from wing328/fix_podfile
...
Fix objc podfile in sample
2015-06-09 00:18:24 -07:00
wing328
207776cec6
udpate podfile
2015-06-09 15:14:37 +08:00
Tony Tam
3b3738e587
Merge pull request #847 from wing328/fix_indentation
...
Fix indentation
2015-06-08 23:43:09 -07:00
wing328
680078dc58
fix csharp refer to apiinvoker
2015-06-09 13:52:01 +08:00
wing328
a593271de1
rollback flash apiinvoker based on 8ee8eddcff
2015-06-09 13:33:30 +08:00
wing328
7fd996bc86
update php sample
2015-06-09 13:31:14 +08:00
wing328
d155ddd026
rollback java spring mvc template
2015-06-09 13:15:03 +08:00
wing328
fc38b9bb79
rollback akkascala to another commit ( 637ee77d66)
2015-06-09 13:13:56 +08:00
wing328
29c41adddf
rollback java jxrs template
2015-06-09 13:11:16 +08:00
wing328
180d48e89d
rollback java template
2015-06-09 13:08:32 +08:00
wing328
900f39686d
rollback grovvy template
2015-06-09 13:07:45 +08:00
wing328
46c5b776ed
rollback csharp template
2015-06-09 13:04:34 +08:00
wing328
7b6480f7f8
rollback codegen template
2015-06-09 13:04:03 +08:00
wing328
f610958209
rollback asyncscala template
2015-06-09 13:03:29 +08:00
wing328
ab9daaacd6
rollback android template
2015-06-09 13:02:54 +08:00
wing328
a8f6044c9b
rollback akka-scala template
2015-06-09 13:01:50 +08:00
wing328
6efef51036
rollback validator template
2015-06-09 13:01:11 +08:00
wing328
6617af5209
rollback tizen template
2015-06-09 13:00:42 +08:00
wing328
410144ea1c
rollback swift template
2015-06-09 13:00:13 +08:00
wing328
d8060f47a8
rollback swagger-static template
2015-06-09 12:58:41 +08:00
wing328
f2ee63da3b
rollback scalatra template
2015-06-09 12:57:31 +08:00
wing328
b636d2a2c9
rollback scala template
2015-06-09 12:56:26 +08:00
wing328
7d6fdf96c0
rollback retroit template
2015-06-09 12:54:48 +08:00
wing328
b1f5c0314e
rollback objc templates
2015-06-09 12:53:33 +08:00
wing328
eede02a6ab
rollback nodejs and htmldocs template
2015-06-09 12:51:52 +08:00
wing328
eee8685847
rollback flash template
2015-06-09 12:47:18 +08:00
wing328
6253bbff3d
roll back qt5cpp template
2015-06-09 12:42:07 +08:00
wing328
263b4080ee
rollback python3 template
2015-06-09 12:40:45 +08:00
wing328
50ae9659ad
rollback php template
2015-06-09 12:37:30 +08:00
wing328
2e12ac5957
rollback perl template
2015-06-09 12:34:38 +08:00
wing328
5f6622c70d
rollback ruby template
2015-06-09 12:33:30 +08:00
wing328
d5cbbae182
rollback ruby swagger template
2015-06-09 12:26:02 +08:00
wing328
0dd8670724
rollback python template
2015-06-09 12:22:59 +08:00
xhh
d2a82d56aa
Enable CLI options for Ruby generator
2015-06-09 10:16:52 +08:00
Tony Tam
915ad77d03
Merge branch 'develop_2.0'
2015-06-08 16:22:15 -07:00
Tony Tam
f025dda4e2
merged
2015-06-08 16:21:58 -07:00
Ron
1644956a9c
Merge pull request #843 from swagger-api/repackage
...
merge repackage into development
2015-06-08 19:13:10 -04:00
Tony Tam
b1cea25237
updated version
2015-06-08 16:07:31 -07:00
Tony Tam
c1ddb84839
restored imports
2015-06-08 16:04:04 -07:00
Tony Tam
445d0f7928
rebuilt
2015-06-08 15:48:49 -07:00
Tony Tam
637ee77d66
added script, fixed templates
2015-06-08 15:40:05 -07:00
Ron
fb989fcd0e
Integrated UI with the generator's packaging process
2015-06-08 16:25:37 -04:00
Tony Tam
64ea3f8177
rebuilt
2015-06-07 20:50:35 -07:00
Tony Tam
aaa0603e29
rebuilt, added back imports
2015-06-07 20:47:22 -07:00
Tony Tam
450edae160
fixed imports
2015-06-07 20:35:56 -07:00
Tony Tam
4f0198dd13
rebuilt, fixed test imports
2015-06-07 20:30:41 -07:00
Ron
56714e6c07
Code fixes after reformatting
2015-06-07 23:20:34 -04:00
Ron
aa0586c666
Dependency update
2015-06-07 11:56:34 -04:00
Ron
8ee8eddcff
Code reformatting
2015-06-07 11:56:26 -04:00
Ron
1c2d0656b0
Code reformatting
2015-06-07 11:56:08 -04:00
Ron
22d7db2cb4
url changes
2015-06-07 11:46:11 -04:00
Ron
96107193e9
updated reverb references
2015-06-07 11:18:49 -04:00
Ron
1a39678206
Refactoring
2015-06-07 11:05:00 -04:00
Tony Tam
6c57810128
rebuilt
2015-06-07 00:08:01 -07:00
Tony Tam
8c340d52a4
updated packages
2015-06-06 23:58:36 -07:00
Tony Tam
1df3ed4487
repackaged
2015-06-06 23:44:20 -07:00
Tony Tam
0c1657d744
updated package
2015-06-06 23:43:34 -07:00
Tony Tam
44af46c9b3
updated files
2015-06-06 23:11:28 -07:00
Tony Tam
18eb3cde97
updated files
2015-06-06 23:11:20 -07:00
Ron
776508759d
Merge pull request #834 from xhh/fix-package
...
Fix package name for generator/online/Generator.java
2015-06-05 23:26:43 -04:00
xhh
6a7fa67581
Fix package name in test
2015-06-06 10:43:04 +08:00
xhh
3f97d63886
Fix package name for generator/online/Generator.java
2015-06-06 09:01:08 +08:00
Tony Tam
c3d2a581c9
Merge pull request #790 from xhh/java-accept-contenttype
...
Minor improvement to Java API client accept and content-type header
2015-06-05 17:51:23 -07:00
xhh
d345283ab5
Merge branch 'develop_2.0' into java-accept-contenttype
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/src/test/java/io/swagger/client/ApiClientTest.java
2015-06-06 08:46:19 +08:00
Tony Tam
ddbef8b25d
implemented processOpts to avoid clobbering by superclass
2015-06-05 11:40:30 -07:00
Tony Tam
d2cb05f14f
Merge pull request #797 from geekerzp/develop_2.0_python_auth
...
[Python] Add authentication support (API key, HTTP basic)
2015-06-05 09:15:54 -07:00
Tony Tam
3fe2169ffa
Merge branch 'Hadou1-Generic_API_Exception' into develop_2.0
2015-06-05 08:46:22 -07:00
Tony Tam
ab5b2da21a
Merge branch 'Generic_API_Exception' of ssh://github.com/Hadou1/swagger-codegen into Hadou1-Generic_API_Exception
2015-06-05 08:46:02 -07:00
Tony Tam
b4f153c202
Merge pull request #826 from xhh/java-auth
...
[Java] Add authentication support (API key, HTTP basic)
2015-06-05 08:45:08 -07:00
Tony Tam
0d09d43257
Merge pull request #823 from wing328/fix_file_rename
...
[C#] Fix ApiException file name
2015-06-05 08:43:08 -07:00
Tony Tam
98c303042e
Merge pull request #829 from wing328/php_support_map
...
[PHP] bug fix for map, added test case
2015-06-05 08:41:58 -07:00
wing328
d0f9345c5a
fix php map, add test case for get inventory
2015-06-05 21:57:12 +08:00
xhh
fffc5d7c35
Move authentications into ApiClient
2015-06-05 20:00:32 +08:00
Fredrik Gustafsson
e737964f66
minor refactoring
2015-06-05 13:51:52 +02:00
Fredrik Gustafsson
8f2e84d263
Merge branch 'develop_2.0' into Generic_API_Exception
...
Conflicts:
modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
2015-06-05 12:47:48 +02:00
xhh
947935f3d9
Merge remote-tracking branch 'origin/develop_2.0' into java-auth
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/Configuration.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/src/test/java/io/swagger/client/ConfigurationTest.java
samples/client/petstore/java/src/test/java/io/swagger/petstore/test/PetApiTest.java
2015-06-05 18:43:49 +08:00
Fredrik Gustafsson
277287a341
Merge branch 'develop_2.0' of https://github.com/Hadou1/swagger-codegen into develop_2.0
...
Conflicts:
modules/swagger-codegen/src/main/resources/csharp/api.mustache
2015-06-05 12:33:49 +02:00
wing328
5a75eba42b
regenerated perl sample
2015-06-05 18:30:58 +08:00
Fredrik Gustafsson
31c6a0a9da
Extended the api-class generation by a interface generation
2015-06-05 12:29:25 +02:00
Fredrik Gustafsson
a1f156ca19
Updated 'api.mustache' to generate asynchronous methods aswell
2015-06-05 11:39:15 +02:00
geekerzp
eb90b907e7
rebuild python client
2015-06-05 17:02:38 +08:00
wing328
61a7d848f7
rename files in csharp and perl to fix issue
2015-06-05 17:00:11 +08:00
xhh
d70742119b
Update unit tests
2015-06-05 16:45:19 +08:00
xhh
622b5c179a
Merge remote-tracking branch 'origin/develop_2.0' into java-accept-contenttype
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
2015-06-05 16:31:21 +08:00
geekerzp
ddc5293e6a
updated api.mustache of python.
2015-06-05 16:19:49 +08:00
geekerzp
a30f537f5f
fixed typo
2015-06-05 16:19:49 +08:00
geekerzp
813c0119aa
added test case for 500 response of python client
2015-06-05 16:19:49 +08:00
geekerzp
8ef4c4401e
updated rest.mustache of python client
2015-06-05 16:19:48 +08:00
geekerzp
5fbda0e206
added test case for 404 response of python client
2015-06-05 16:19:48 +08:00
geekerzp
fbe327ac2f
Updated PythonClientCodegen.java
...
* updated method apiFileFolder.
* udpated method modelFileFolder.
2015-06-05 16:19:48 +08:00
geekerzp
ab6f327f35
Updated python client.
...
* Rename `ResponseError` exception to `ApiException`
* Use `File.separatorChar` to build file path in
PythonClientCodegen.java
* Rename `config.py` module to `configuration.py`
* Rename `swagger.py` module to `api_client.py`
2015-06-05 16:19:48 +08:00
geekerzp
51887c64b5
Updated python codegen.
...
Use File.separatorChar to create invokerPacakge variable instread of '\'
char.
2015-06-05 16:17:29 +08:00
geekerzp
654a73c5a8
rebuild python client
2015-06-05 16:17:29 +08:00
geekerzp
eac884d85b
updated ApiClient of python sdk.
2015-06-05 16:16:48 +08:00
geekerzp
d7aaaea0df
updated config.py of python client.
2015-06-05 16:15:57 +08:00
geekerzp
b09250ed33
added authentication for python client.
...
completed.
2015-06-05 16:15:57 +08:00
geekerzp
0ca97e4b68
added authentication for python client.
...
Not completed
2015-06-05 16:15:14 +08:00
Tony Tam
59ca8bd986
Merge pull request #821 from geekerzp/develop_2.0_objc_test
...
[Objc] Update test case
2015-06-05 00:55:57 -07:00
Tony Tam
e1393d1912
Merge pull request #817 from who/develop_2.0
...
[Android] Enabling cli config options for android generator
2015-06-05 00:53:20 -07:00
Tony Tam
ddb3bd5477
Merge pull request #816 from geekerzp/develop_2.0_objc_auth
...
[Objc] Add authentication support (API key, HTTP basic)
2015-06-05 00:52:35 -07:00
Tony Tam
2ec18a1397
Merge branch 'wing328-php_object_support' into develop_2.0
2015-06-05 00:52:06 -07:00
Tony Tam
34072faccd
merged
2015-06-05 00:51:52 -07:00
Tony Tam
26d9215e43
Merge pull request #808 from wing328/csharp_api_instance
...
[C#] Added ApiClient (Pluggable) and authentication (API key and HTTP basic auth)
2015-06-05 00:42:44 -07:00
Tony Tam
496e06a373
Merge pull request #806 from geekerzp/develop_2.0_python_https
...
[Python] Verified HTTPS with SSL/TLS cert.
2015-06-05 00:42:13 -07:00
Tony Tam
513bd17610
Merge pull request #803 from wing328/objc_fix_filepath
...
[ObjC] Minor fix to output path
2015-06-05 00:41:52 -07:00
Tony Tam
d9fcb777c1
Merge pull request #799 from wing328/perl_apiinvoker_instance
...
[Perl] Make API client more pluggable (ref: #778 )
2015-06-05 00:41:26 -07:00
Tony Tam
05700a6799
Merge pull request #794 from wing328/php_debug_switch
...
[PHP] add debug switch
2015-06-05 00:40:32 -07:00
Tony Tam
29bd743391
Merge pull request #793 from geekerzp/develop_2.0_objc_apiclient
...
Make objc client more pluggable
2015-06-05 00:40:17 -07:00
Tony Tam
13e14652e3
Merge pull request #787 from geekerzp/develop_2.0_python_apiclient
...
[Python] Make API client more pluggable
2015-06-05 00:38:11 -07:00
Tony Tam
b41e88e83a
Merge pull request #785 from wing328/csharp_add_restsharp_dll
...
[C#] Added RestSharp.dll and updated compile.bat
2015-06-05 00:38:05 -07:00
Tony Tam
cbc4da58ab
Merge pull request #783 from xhh/ruby-auth
...
[Ruby] Add authentication support (API key, HTTP basic)
2015-06-05 00:36:12 -07:00
Tony Tam
aecb4adf4a
Merge pull request #791 from xhh/java-api-client
...
[Java] Make API client more pluggable
2015-06-05 00:36:05 -07:00
wing328
ba227b7e72
rename api client
2015-06-04 21:19:16 +08:00
wing328
0423e0a2df
support object response
2015-06-04 21:12:26 +08:00
wing328
afe816efb6
remove unused file
2015-06-04 20:30:41 +08:00
geekerzp
58feda7c8e
Updated test case testCreateAndGetPet of objc client.
2015-06-04 16:44:12 +08:00
Fredrik Gustafsson
217765998d
Extended the APIException by ErrorContent from response body
2015-06-03 16:23:45 +02:00
xhh
0ffe53933d
Bug fix: "null" was used as post body for empty form parameters
...
The form parameters could be empty when all of them are optional and no
values are assigned to them.
2015-06-03 21:17:42 +08:00
xhh
cf4b4de970
Skip null header/form parameters
...
and fix the bug of getting file name for file parameter
2015-06-03 20:26:14 +08:00
xhh
2e285ed562
Support skipping SSL certification verification
...
in Ruby clients by e.g.:
SwaggerClient::Swagger.configure do |config|
config.verify_ssl = false
end
2015-06-03 12:49:09 +08:00
wing328
9b919c54dd
added http basic auth test
2015-06-03 11:21:10 +08:00
xhh
9618960558
Merge branch 'develop_2.0' into ruby-auth
2015-06-03 11:19:40 +08:00
wing328
fceaed34e4
rename apiclient
2015-06-03 10:19:07 +08:00
xhh
eb4973237b
Add comments to code
2015-06-03 10:09:36 +08:00
wing328
9c747e3e37
fix query parameters
2015-06-03 09:21:45 +08:00
wing328
3d16d8b2b6
fix header
2015-06-03 08:34:45 +08:00
Andrew B
1a75489b42
Enabling cli config options for android generator
2015-06-02 09:04:50 -07:00
xhh
24c29acc09
Merge branch 'develop_2.0' into java-api-client
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
2015-06-02 22:36:55 +08:00
Ole Lensmar
2662167372
Merge pull request #805 from hyeghiazaryan/develop_2.0
...
Support for file based config. Implementation for #616 .
2015-06-02 09:33:52 -04:00
Ole Lensmar
e98320862c
Merge pull request #706 from 0legg/feature/retrofit-templates
...
[WIP] add template for Retrofit and Gson
2015-06-02 09:09:41 -04:00
wing328
2d6a7092e3
removed unused file
2015-06-02 20:43:11 +08:00
wing328
7080983521
return exception instead of null for 404, add properties to api exception class
2015-06-02 17:25:38 +08:00
xhh
19540ed7f0
Store response headers and body in ApiException
2015-06-02 15:33:44 +08:00
geekerzp
699df0029b
updated comments for objc client.
2015-06-02 15:33:33 +08:00
geekerzp
86971ee752
added comments for objc client
2015-06-02 11:50:47 +08:00
Hrachya Yeghiazaryan
d258a6c1c2
Merge branch 'develop_2.0' of https://github.com/hyeghiazaryan/swagger-codegen into develop_2.0
2015-06-01 10:44:23 -07:00
hrachya
3e0913a813
removing generic header comments
2015-06-01 10:43:23 -07:00
wing328
762a3279ea
clean up test.php
2015-06-01 14:50:57 +08:00
wing328
f357f4c9d7
fix default header
2015-06-01 14:24:09 +08:00
wing328
8d708c2442
add test case for default header
2015-05-31 11:17:59 +08:00
wing328
83d069d053
add support for obj, remove null from serialized json string
2015-05-31 09:49:24 +08:00
geekerzp
b5429d9e8e
Added authentication for objc client.
2015-05-30 18:04:20 +08:00
Richie Azaria
0996901e72
add documentation -c option and config-help
2015-05-29 13:01:42 -07:00
Oleg Godovykh
ec08d31031
add template for Retrofit and Gson
2015-05-29 12:23:18 -04:00
Ron
ca46405850
Update README.md
2015-05-29 08:53:06 -04:00
Ron
7d7ed15fdc
Update README.md
2015-05-29 08:52:48 -04:00
Ron
34315f7338
Create LICENSE
2015-05-29 08:52:29 -04:00
Ron
26a22a30a1
Create LICENSE
2015-05-29 08:52:03 -04:00
Fredrik Gustafsson
41e4fc79ae
Extended the api-class generation by a interface generation
2015-05-29 12:19:28 +02:00
Fredrik Gustafsson
049299f07f
Updated 'api.mustache' to generate asynchronous methods aswell
2015-05-29 10:53:48 +02:00
wing328
5f36ad3b75
add authentication support
2015-05-29 16:43:27 +08:00
geekerzp
18cf6bcfa6
Updated python client.
...
Verified HTTPS with SSL/TLS.
2015-05-29 15:09:19 +08:00
xhh
a8c526efd5
Add unit tests for Configuration and ApiClient
2015-05-29 12:08:42 +08:00
xhh
62c8f9e1e2
Rebuild Java Petstore sample
2015-05-29 12:08:42 +08:00
xhh
ac134c0afa
Make ApiClient more pluggable for Java
...
- Rename ApiInvoker to ApiClient
- Make ApiClient pluggable by allowing setting the ApiClient field of
API classes
- Introduce a Configuration class, containing the default
ApiClient (which is also customizable)
- Move basePath from API class to ApiClient
- Change static methods in ApiClient to instance level
2015-05-29 12:08:42 +08:00
xhh
a29c3abeb8
Use File.separatorChar in Ruby generator, add comments
2015-05-29 12:05:47 +08:00
xhh
623a1278cf
Add test case for API key auth
2015-05-29 11:57:46 +08:00
xhh
e52694cde0
Regenerate Ruby Petstore sample
2015-05-29 11:57:46 +08:00
xhh
95813714a5
Add support of HTTP basic and API key auth to Ruby codegen
2015-05-29 11:57:46 +08:00
xhh
6a6473ede3
Allow omitting username/password for HTTP basic auth
2015-05-29 11:55:48 +08:00
xhh
e10e1f5249
Refactor auth method naming, add comments
2015-05-29 11:29:06 +08:00
xhh
6eb1a89205
Add authentication helper methods and test cases
2015-05-29 11:28:03 +08:00
xhh
4d25d264c4
Merge remote-tracking branch 'origin/develop_2.0' into java-auth
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiInvoker.java
2015-05-29 10:08:50 +08:00
hrachya
ba7025d54b
Adding config-help command
2015-05-28 15:02:32 -07:00
hrachya
1f360961e0
Simplifying CliOption class
2015-05-28 14:55:36 -07:00
hrachya
08647b337f
fixing property name
2015-05-28 13:08:52 -07:00
hrachya
c5a7800ec6
fixing typo
2015-05-28 13:02:30 -07:00
hrachya
26a2290078
adding classPrefix, sourceFolder, projectName cli options to objc
2015-05-28 13:01:54 -07:00
wing328
2edcd82094
minor fix to output path
2015-05-28 19:16:26 +08:00
wing328
165efdbdbb
rename apiinvoker to apiclient, add configuration, make apiclient an instance
2015-05-28 18:24:03 +08:00
wing328
412fcf11f9
update file separator
2015-05-28 15:19:05 +08:00
wing328
e993d08563
rename APIClient to ApiClient, APIClientException to APIException
2015-05-28 15:06:31 +08:00
wing328
61bc652229
use file separator
2015-05-28 14:34:39 +08:00
wing328
699f6fff44
update file path
2015-05-28 14:18:05 +08:00
wing328
1a868abdfa
rename APIClient to ApiClient
2015-05-28 10:51:36 +08:00
hrachya
c9c58cbe4c
new -c/--config option for swagger-cli to specify json config file path
...
setting options passed in config file if those were allowed by lang specific CodegenConfig
2015-05-27 17:37:07 -07:00
hrachya
c3055c7cc4
Adding Config and ConfigParser classes
2015-05-27 17:30:42 -07:00
hrachya
2cca1a8c2c
Changing templateDir back to explicit option for cli
2015-05-27 17:22:44 -07:00
hrachya
a9e767cbd8
Rolling back changes to deprecated class
2015-05-27 17:19:34 -07:00
Ron
1657f2e5f7
Merge pull request #801 from rlo2014/develop_2.0
...
Removing comment (// do some magic!) that is no longer necessary and …
2015-05-27 19:48:51 -04:00
rlo2014
e93a377982
Removing comment (// do some magic!) that is no longer necessary and confusing. After olensmar refactor of jax-rs codegen, magic/implementation should be placed in the delegate/implementation as opposed to the api itself. Any logic put in api itself will be overwritten with the next code gen, whereas the delegate implemenation will remain intact.
2015-05-27 14:55:28 -07:00
wing328
2c12312b97
update user agent and add more test cases
2015-05-27 22:44:56 +08:00
wing328
866b546cfd
make api client pluggable
2015-05-27 17:56:39 +08:00
hrachya
74f5c769f9
removing extra file, was committed by mistake
2015-05-26 17:10:19 -07:00
hrachya
1e09f5149e
Add 'invokerPackage', 'groupId', 'arifactId', 'artifactVersion', 'sourceFolder' command line options for java (and all the derived ones jaxrs, spring-mvc ...)
...
Add processOpts override to process java specific options
Move supporting file initialization from constructor to processOpts, since it uses some of the options that are not yet set in the constructor
Add setters
2015-05-26 17:05:53 -07:00
hrachya
e08a5a9d83
Add 'modelPackage' and 'apiPackage' as command line options
...
Add setters for modelPackage and apiPackage
2015-05-26 17:01:07 -07:00
hrachya
d7dec5a43d
Use new functionality to add 't' as a command line option to set 'templateDir'
2015-05-26 16:02:27 -07:00
hrachya
33436d62c3
Get all cliOptions for available codegen configs and add to command line options
...
Add all the specified ones to clientOpts properties
2015-05-26 15:57:01 -07:00
hrachya
9f1504062a
add List<CliOption> cliOptions() method to CodegenConfig interface with default implementation in DefaultCodegen
2015-05-26 15:52:25 -07:00
hrachya
f8cafaaee7
new CliOption class for wrapping org.apache.commons.cli.Option
2015-05-26 15:49:32 -07:00
wing328
4d1d163a73
update php template to debug curl
2015-05-26 23:52:35 +08:00
wing328
171bf969c7
add debug switch to configuration
2015-05-26 23:20:34 +08:00
geekerzp
ca145297e9
Updated ApiClient of objc sdk.
...
When create api instance, if we don't pass the `apiClient` parameter,
then get api client instance from the pool.
2015-05-26 18:00:45 +08:00
wing328
c2c43bba37
make datetime nullable
2015-05-26 17:48:52 +08:00
xhh
951b7a9075
Do not use JSON as default Accept header when no produces present
2015-05-26 10:35:49 +08:00
wing328
f807e34b2b
refactor csharp (no compile error)
2015-05-25 18:21:17 +08:00
xhh
aa03be7f76
Clean up old code
2015-05-25 17:25:32 +08:00
xhh
ed14c515bf
Add comments to string utility methods
2015-05-25 16:01:57 +08:00
geekerzp
2d545c7f0b
updated ApiClient of python sdk.
...
Change staticmethod to instance method.
2015-05-25 15:29:31 +08:00
geekerzp
3beeb6125e
updated ApiClient of python sdk.
...
When create api instance, if we don't pass the `api_client` parameter,
then use the default api_client in `config` module.
2015-05-25 14:31:55 +08:00
xhh
19a8ac4841
Add unit tests
2015-05-25 12:32:24 +08:00
xhh
85d0e08a80
Rebuild Java Petstore client
2015-05-25 12:31:54 +08:00
xhh
fff8972a77
Extract utility methods to the StringUtil class
...
and ignore case when comparing Accept/Content-Type
2015-05-25 12:29:41 +08:00
wing328
92dd5cab93
add restsharp.dll, update compile.bat
2015-05-25 11:44:08 +08:00
xhh
141b580c8c
Minor improvement to Java API client accept and content-type header
2015-05-24 08:52:14 +08:00
Tony Tam
095771d345
Merge pull request #738 from tomtit/issue429
...
Fixes #429 : Handling of composed models has been added.
2015-05-23 15:10:38 -07:00
Alexey Nechaev
5d581c3b03
Fixes #429 : Handling of composed models has been added.
2015-05-24 00:54:25 +03:00
Tony Tam
087c28dae4
rebuilt client
2015-05-23 09:04:46 -07:00
Tony Tam
85c37fbe27
fix for #781
2015-05-23 09:04:40 -07:00
Tony Tam
ad9b790712
updated sample
2015-05-23 09:04:06 -07:00
Tony Tam
82436c5b44
Merge pull request #780 from geekerzp/develop_2.0_objc_contenttype
...
Minor improvement to Objc API Client 'accept' and 'content-type' header
2015-05-23 08:54:53 -07:00
Tony Tam
156afa7795
Merge pull request #778 from wing328/php_apiclient_instance
...
[PHP] Make API client more pluggable
2015-05-23 08:54:33 -07:00
Tony Tam
74dc05bbf5
Merge pull request #776 from wing328/php53_fix_warning
...
[PHP] Fix warning/error related to PHP5.3
2015-05-23 08:53:52 -07:00
Tony Tam
b6d206aff7
Merge pull request #774 from geekerzp/develop_2.0_python_contenttype
...
Minor improvement to Python API Client 'accept' and 'content-type' header
2015-05-23 08:53:34 -07:00
Tony Tam
e3c116312b
Merge pull request #773 from hyperworks/master
...
Adds isPrimitiveType flag to CodegenParameter.
2015-05-23 08:53:06 -07:00
Tony Tam
5527932a8e
Merge branch 'xhh-ruby-void-response' into develop_2.0
2015-05-23 08:52:15 -07:00
Tony Tam
3cb9d094d3
Merge branch 'ruby-void-response' of ssh://github.com/xhh/swagger-codegen into xhh-ruby-void-response
2015-05-23 08:49:28 -07:00
Tony Tam
d83a275b6e
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-23 08:48:40 -07:00
Tony Tam
98d5dd727b
Merge branch 'tkQubo-feature/swift-PromiseKit' into develop_2.0
2015-05-23 08:48:28 -07:00
Tony Tam
565f054b79
merged
2015-05-23 08:48:18 -07:00
Tony Tam
f4aee62fb4
Merge pull request #775 from wing328/csharp_fix_object_type
...
[C#] Fix "object' type for response
2015-05-23 08:43:14 -07:00
Tony Tam
864f0f5a3a
Merge branch 'sosso-origin/develop_2.0' into develop_2.0
2015-05-23 08:34:01 -07:00
Tony Tam
d447c423b5
updated test to get expected value
2015-05-23 08:33:48 -07:00
Tony Tam
f9ed8a9a08
updated test to get expected value
2015-05-23 08:33:40 -07:00
Tony Tam
3638d79291
updated test to get expected value
2015-05-23 08:33:27 -07:00
geekerzp
2514f3aa08
update SWGApiClient.h of objc client.
2015-05-23 15:29:38 +08:00
geekerzp
3d3cbe115e
minor improvement to objc client accept and content-type header
2015-05-23 15:22:12 +08:00
wing328
691838c47d
add test case for api client instance
2015-05-23 10:35:19 +08:00
wing328
612abf134b
api client as instance (not static class)
2015-05-22 22:09:51 +08:00
geekerzp
87a730b5a2
Merge branch 'develop_2.0' into develop_2.0_objc_contenttype
...
Conflicts:
samples/client/petstore/objc/client/SWGPetApi.m
2015-05-22 17:32:57 +08:00
geekerzp
8d0efd812c
updated unittests of python client
2015-05-22 15:50:09 +08:00
geekerzp
245ce642ce
add test cases for ApiClient.select_header_accept and
...
ApiClient.select_header_content_type of python client.
2015-05-22 15:28:36 +08:00
wing328
df4b952312
fix object type without ref for CSharp
2015-05-22 14:12:53 +08:00
xhh
43cfc7d401
Setup authentications in test cases
2015-05-22 12:07:08 +08:00
xhh
16ba2a54ea
Add test cases for API key and HTTP basic auth
2015-05-22 11:17:44 +08:00
geekerzp
bc9abceef3
removed temp files from python client
2015-05-22 11:12:35 +08:00
geekerzp
8a311d693b
updated python client samples
2015-05-22 10:50:11 +08:00
geekerzp
52807c0724
minor improvement to python client accept and content-type header
2015-05-22 10:45:38 +08:00
William Cheng
fa15f58506
fix warning/error in php5.3
2015-05-22 05:15:46 +08:00
xhh
f616605e7e
Regenerate Java Petstore sample
2015-05-21 22:09:08 +08:00
xhh
3d4b5a10c9
Add support of HTTP basic and API key auth to Java codegen
2015-05-21 22:05:46 +08:00
Ron
2b7bbd9513
Merge pull request #772 from tomtit/issue771
...
Fixes #771 : Unit test has been fixed after merge.
2015-05-21 06:07:00 -06:00
Chakrit Wichian
89e3bcc4bb
Adds isPrimitiveType flag to CodegenParameter.
...
This is required in some languages like Obj-C where there is no automatic value boxing and
handling of primitive types require extra work compared to non-primitive types.
Case in point: BOOL type. To assign BOOL into a dictionary, one needs to box it into an
(NSValue *) instance, so to build a dictionary for sending form data, for example, you
cannot do this in the template:
dict["{{paramName}}"] = {{paramName}};
Because if the parameter ends up being of type BOOL, an error about boxing values will be
generated:
BOOL boolValue = NO;
dict["boolValue"] = boolValue;
^---------------- Cannot do the assignment here.
The fix is to wrap it in @() like so:
BOOL boolValue = NO;
dict["boolValue"] = @(boolValue);
So a flag is needed in CodegenParameter so we can selectively emit the right boxing or
non-boxing assignment in the templates.
2015-05-21 15:28:57 +07:00
Alexey Nechaev
a590239df9
Fixes #771 : Unit test has been fixed after merge.
2015-05-21 10:49:20 +03:00
Tony Tam
0c3f7a54cd
Merge pull request #770 from swagger-api/jaxrs-interface-generation
...
Jaxrs interface generation
2015-05-20 22:52:00 -07:00
Tony Tam
99a11636da
rebuilt
2015-05-20 22:51:30 -07:00
Tony Tam
3a2f258517
Merge branch 'geekerzp-develop_2.0_python_urllib3' into develop_2.0
2015-05-20 22:51:09 -07:00
Tony Tam
3629a190ae
merged
2015-05-20 22:50:59 -07:00
Tony Tam
715a9b8678
merged
2015-05-20 22:50:41 -07:00
Tony Tam
4187be2dc3
Merge pull request #767 from geekerzp/develop_2.0_python_model
...
Pretty print for models of python client
2015-05-20 22:46:41 -07:00
Tony Tam
dd70a13c02
Merge branch 'wing328-php_auth_setting' into develop_2.0
2015-05-20 22:46:02 -07:00
Tony Tam
c8a56add5d
merged
2015-05-20 22:45:52 -07:00
Tony Tam
01ebdb6122
Merge pull request #763 from tomtit/issue728
...
Fixed #728 : Handling of recursive model definitions has been improved.
2015-05-20 22:42:37 -07:00
Tony Tam
e66f9d7fce
Merge pull request #760 from geekerzp/develop_2.0_objc_required_parameter
...
Fix required parameter validation for Objc
2015-05-20 22:42:10 -07:00
Tony Tam
35f63b3f6a
Merge branch 'wing328-php-improve-header' into develop_2.0
2015-05-20 22:41:23 -07:00
Tony Tam
9bf9b3edb7
rebuilt
2015-05-20 22:41:09 -07:00
Tony Tam
92b1a13438
Merge branch 'swinz-develop_2.0_fixSpringMVCRequestParamDefaultValue' into develop_2.0
2015-05-20 22:37:59 -07:00
Tony Tam
515f5440a1
merged
2015-05-20 22:37:51 -07:00
Tony Tam
632480787d
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-20 22:35:23 -07:00
Tony Tam
e4faa82cfa
Merge branch 'geekerzp-develop_2.0_objc_iso8601' into develop_2.0
2015-05-20 22:35:12 -07:00
Tony Tam
779915a51f
rebuilt
2015-05-20 22:34:54 -07:00
Tony Tam
c509bbcb99
updated
2015-05-20 22:34:29 -07:00
Tony Tam
8231e7e36a
Merge branch 'develop_2.0_objc_iso8601' of ssh://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_iso8601
2015-05-20 22:29:26 -07:00
Tony Tam
ee145aebe7
Merge pull request #743 from lugaru1234/model_ids_with_dots
...
Fixed #593 : Python code failure caused by Model IDs with dots has been fixed
2015-05-20 22:27:53 -07:00
Tony Tam
11dd7784f8
rebuilt
2015-05-20 22:20:51 -07:00
Tony Tam
6fe6a6daa7
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-20 22:16:55 -07:00
Tony Tam
e921b7cbdc
Merge branch 'Helmsdown-mime-type-fixes' into develop_2.0
2015-05-20 22:16:38 -07:00
Tony Tam
fd928a3d16
merged
2015-05-20 22:16:24 -07:00
Tony Tam
5a4d3317c2
Merge pull request #723 from swinz/develop_2.0_fixSpringMVCHeaderRequired
...
SpringMVC template is ignoring the required attribute in swagger definition when generating RequestHeader annotation
2015-05-20 22:14:29 -07:00
Tony Tam
ab23cccab4
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-20 22:13:03 -07:00
Tony Tam
7d4cc82077
Merge branch 'who-feature/android-maven-artifact-publishing' into develop_2.0
2015-05-20 22:12:45 -07:00
Tony Tam
e58f8db9aa
merged
2015-05-20 22:12:37 -07:00
Tony Tam
b059910a01
Merge pull request #700 from wing328/csharp_restcsharp
...
Use RestSharp for CSharp API client
2015-05-20 21:52:28 -07:00
Ole Lensmar
19de558f4a
Merge branches 'develop_2.0' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2015-05-20 22:51:49 -06:00
Tony Tam
2d9772e7a9
Merge branch 'tomtit-issue646' into develop_2.0
2015-05-20 21:48:14 -07:00
Tony Tam
0c1bdc0fd6
merged
2015-05-20 21:48:03 -07:00
Tony Tam
e592d1b46b
Merge pull request #660 from denyago/master
...
Improve README for OS X Users with random Java versions
2015-05-20 21:42:40 -07:00
Tony Tam
8dbb1aa8e9
Merge pull request #654 from kvelakur/master
...
Issue #642 - Removing the unnecesary \n added to generated example reque...
2015-05-20 21:42:25 -07:00
Tony Tam
ef5cb5021b
Merge branch 'cchafer-akka-scala' into develop_2.0
2015-05-20 21:41:24 -07:00
Tony Tam
ff81789b37
merged
2015-05-20 21:41:17 -07:00
Tony Tam
e6efcdb6af
added files, updated parser version
2015-05-20 21:39:09 -07:00
xhh
9cf4c66331
Update method returning value comment
2015-05-21 11:30:30 +08:00
Tony Tam
956a3c024c
Merge pull request #766 from swagger-api/core-1.5.2-M2-compatibility
...
updated core dependency version to 1.5.2-M2 with related fixes
2015-05-20 17:55:01 -07:00
Ole Lensmar
efb40e149f
brought back scala tests
2015-05-20 18:23:44 -06:00
Ole Lensmar
a6876b8028
Merge branches 'core-1.5.2-M2-compatibility' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation
2015-05-20 18:14:54 -06:00
Ole Lensmar
713e7a6584
updated core dependency version to 1.5.2-M2 with related fixes
2015-05-20 18:06:37 -06:00
Ole Lensmar
778ce0b9f6
Merge branches 'develop_2.0' and 'jaxrs-interface-generation' of https://github.com/swagger-api/swagger-codegen into jaxrs-interface-generation
2015-05-20 17:03:51 -06:00
Ole Lensmar
05268c2742
added system property for setting impl folder
2015-05-20 16:50:26 -06:00
Ole Lensmar
17d8d14cc8
defaulted sources to go to src/gen/main and added possibility to set impl folder via system property at command-line
2015-05-20 16:49:50 -06:00
wing328
4f310cd7b1
update function comment
2015-05-20 22:13:24 +08:00
geekerzp
9ff0d90853
Updated python models.
...
Overwrite the instance method `__repr__`,
make the `pprint` method output properties infos of the models.
2015-05-20 22:05:34 +08:00
wing328
6e13403a37
fix http basic auth, add test cases for new api client without host
2015-05-20 21:55:16 +08:00
xhh
8bf84aabe5
Add test case for nil return value
2015-05-20 21:13:20 +08:00
xhh
50a767ef03
Regenerate Ruby Petstore sample
2015-05-20 21:13:02 +08:00
xhh
4702285184
Correct indentation
2015-05-20 21:08:14 +08:00
xhh
dde73d592d
Return nil in Ruby clients for operations that have no response type defined
2015-05-20 21:06:42 +08:00
wing328
9a1dedbe76
add test case (getPetbyId), remove old authenetication (only supports header)
2015-05-20 18:43:34 +08:00
wing328
20439e646f
add test case and prefix support
2015-05-20 18:25:35 +08:00
wing328
06c7a6a109
add todo for oauth, support multiple api key
2015-05-20 17:13:52 +08:00
wing328
278a653154
add authentication
2015-05-20 17:13:52 +08:00
geekerzp
3a8b149f09
minor improvement to objc api client accept and content-type header
2015-05-20 15:52:00 +08:00
Tony Tam
deca6a0329
Merge pull request #662 from xhh/ruby-module-structure
...
Organize the generated Ruby code into a module structure
2015-05-19 20:16:52 -07:00
kubo_takaichi
7205407818
Add another date formatter (which should be externalized though)
2015-05-20 11:27:45 +09:00
kubo_takaichi
2f6b975669
Remove final mark
2015-05-20 11:27:45 +09:00
kubo_takaichi
16a4b60526
Handle NSNull
2015-05-20 11:27:45 +09:00
kubo_takaichi
9cf1835230
Fix bug
2015-05-20 11:27:45 +09:00
kubo_takaichi
3623a0dd56
Modify Cartfile
2015-05-20 11:27:45 +09:00
kubo_takaichi
e0c0d2a72a
Remove dependency on SwiftyJSON
2015-05-20 11:27:45 +09:00
kubo_takaichi
dbfc46658f
Add once-removed Array extension method
2015-05-20 11:27:45 +09:00
kubo_takaichi
bb3ec04ed1
Introduce Decoders class
2015-05-20 11:27:45 +09:00
kubo_takaichi
be7fccce68
Update JSONEncodable implementations
2015-05-20 11:27:45 +09:00
kubo_takaichi
f21d8503d5
Add manager storage to prevent request cancellation
2015-05-20 11:27:45 +09:00
kubo_takaichi
063e6d062d
Introduce decodable array and dictionary
2015-05-20 11:27:45 +09:00
kubo_takaichi
0b7d758077
Add extension methods for primitives
2015-05-20 11:27:45 +09:00
kubo_takaichi
5dfa753f5c
Do refactor and add extension methods
2015-05-20 11:27:45 +09:00
kubo_takaichi
23d714f2f1
Add swift code generator
2015-05-20 11:27:45 +09:00
kubo_takaichi
f627c81399
Remove some characters from param name and operation id
...
(since swagger-doc emits improper characters)
2015-05-20 11:27:45 +09:00
xhh
0fb1918196
Revert unnecessary changes on whitespace
2015-05-20 10:13:29 +08:00
xhh
312f1c6f25
Avoid the importPath field
2015-05-20 09:23:45 +08:00
xhh
792059f195
Avoid warnings for ruby gem building
2015-05-20 09:23:45 +08:00
xhh
70c74d282f
Fix tests
2015-05-20 09:23:45 +08:00
xhh
ab4975b7f1
Regenerate petstore ruby sample
2015-05-20 09:23:44 +08:00
xhh
6eaaa5cc69
Include base_object model into module structure
2015-05-20 09:23:44 +08:00
xhh
f766614b4d
Clean old files generated
2015-05-20 09:23:44 +08:00
xhh
fcf1327c1f
Rename swagger-client to swagger_client
...
according to guides from rubygems: http://guides.rubygems.org/name-your-gem/
2015-05-20 09:23:44 +08:00
xhh
b140f1f152
Fix example code in README.md of Ruby petstore sample
2015-05-20 09:23:44 +08:00
xhh
87904e8b69
Set version dynamically in ruby codegen
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
samples/client/petstore/ruby/lib/swagger/version.rb
2015-05-20 09:23:44 +08:00
xhh
194e9e6f05
Make petstore tests pass
2015-05-20 09:23:43 +08:00
xhh
8dd7d3aacd
Regenerate ruby petstore sample code
2015-05-20 09:23:43 +08:00
xhh
104bcc1f89
Organize generated Ruby code into a module
2015-05-20 09:23:43 +08:00
Fake Bob Dobbs
a55c03013d
use the defaultValue for spring mvc RequestHeader annotations; carry over the required value if set for RequestPart annotations
2015-05-19 11:47:34 -04:00
Fake Bob Dobbs
b783363c56
move the defaultValues for Forms and Headers as well
2015-05-19 11:45:48 -04:00
Alexey Nechaev
f0e4ea1780
Fixed #728 : Handling of recursive model definitions has been improved.
2015-05-19 18:36:03 +03:00
Tony Tam
6a336f2e1e
Merge pull request #758 from xhh/fix-android-form-test
...
Fix test of updatePetWithForm for Android Petstore sample
2015-05-19 08:29:48 -07:00
Ron
312637c94b
Merge pull request #762 from wing328/update_readme
...
Update README.md with new generators
2015-05-19 07:21:52 -06:00
William Cheng
e717f74a0a
update readme with new generators
2015-05-19 21:15:09 +08:00
Nadezhda Makarkina
3dde19bb59
Fixed #593 : Python code failure caused by Model IDs with dots has been fixed
2015-05-19 14:31:42 +03:00
geekerzp
a0abea4b72
added required parameters check for objc
2015-05-19 17:12:46 +08:00
wing328
5744bd0138
better exception using InvalidArgumentException
2015-05-19 16:21:06 +08:00
xhh
db9ca1a485
Fix test of updatePetWithForm for Android Petstore sample
2015-05-19 15:42:29 +08:00
wing328
af260cba41
update api client to support default header
2015-05-19 15:33:03 +08:00
geekerzp
a77ae51318
update python tests
2015-05-19 15:21:09 +08:00
wing328
5aad44e628
added back test case for updatePetWithForm
2015-05-19 10:15:36 +08:00
wing328
41e178e268
better accept and content-type for php, added test cases
2015-05-18 22:16:54 +08:00
Tony Tam
e068ad4494
Merge pull request #756 from wing328/perl_improve_accept_header
...
[Perl] better logic for accept and content-type, added test cases
2015-05-18 06:36:11 -07:00
wing328
7fc2f74851
remove commented code
2015-05-18 16:39:33 +08:00
wing328
abbea5ec4c
better logic for accept and content-type, added test cases
2015-05-18 16:23:46 +08:00
Tony Tam
72a4d2df2f
Merge pull request #755 from wing328/ruby_cleanup_sample
...
[Ruby] Cleanup Ruby Petstore sample and bug fix
2015-05-17 21:41:21 -07:00
William Cheng
05ac516ffa
clean up ruby sample, remove commented code, bug fix
2015-05-18 04:30:26 +08:00
Tony Tam
01423d4a6b
Merge pull request #753 from wing328/ruby_model_improve
...
[Ruby] bug fixes for posting with sub-models and enhancements (refactoring)
2015-05-17 09:34:20 -07:00
William Cheng
3de9b4bfc8
remove (duplicated) object_to_http_body and object_to_hash from swagger.rb
2015-05-17 23:47:55 +08:00
William Cheng
92a2011207
fix post model, update rspec
2015-05-17 23:38:51 +08:00
William Cheng
8710fbfde7
add base object
2015-05-17 23:36:13 +08:00
Ron
0c94b89e42
Merge pull request #750 from sebest/patch-1
...
Fix a typo in the README
2015-05-17 07:33:48 +02:00
Sebastien Estienne
9e382ecf9a
Fix a typo in the README
2015-05-16 22:05:44 -07:00
Tony Tam
0e0e265a2a
Merge pull request #746 from wing328/ruby_fix_contenttype
...
Minor improvement to Ruby API Client 'accept' and 'content-type' header
2015-05-16 09:13:58 -07:00
Tony Tam
d6ac7c5ecf
Merge pull request #659 from wing328/add_php_unit_test
...
Bug fix for PHP client POST (model) and add more PHP test cases
2015-05-16 09:13:35 -07:00
Tony Tam
8501ffe240
Merge pull request #716 from ponelat/fix/click-on-return-type-in-dynamic-html
...
Fix/click on return type in dynamic html
2015-05-16 09:11:26 -07:00
Tony Tam
919bab0765
Merge pull request #717 from ponelat/fix/dyn-html-pos-error
...
Fix dynamic-html positioning of parameters
2015-05-16 08:56:51 -07:00
Ron
3e719d087f
Merge pull request #715 from ponelat/fix/dead-css-include
...
html: build and remove dead css include
2015-05-16 17:23:49 +02:00
Tony Tam
472e2afd8e
Merge pull request #749 from wing328/perl_add_unittest
...
Add unit testing for Perl
2015-05-16 06:56:53 -07:00
geekerzp
68b0259c47
updated readme.md of python
2015-05-16 18:05:06 +08:00
geekerzp
9809ce1d18
updated python unittests
2015-05-16 17:30:42 +08:00
William Cheng
7a5db5e665
add pom.xml for perl integration test
2015-05-16 16:44:32 +08:00
Tony Tam
6ec7cf5a9d
updated request process
2015-05-16 01:09:01 -07:00
Tony Tam
f4cbd88e2c
fixed ordering
2015-05-16 00:45:42 -07:00
William Cheng
9904c0e09f
add unit testing for pet
2015-05-16 15:37:58 +08:00
Fake Bob Dobbs
e4f5243e54
add defaultValues value to the SpringMVC RequestParam annotation
2015-05-15 17:17:46 -04:00
Fake Bob Dobbs
33138c139f
A parameter's default value is not flowing from the swagger definition to the actual API implementation. This change makes the property from the swagger def json available to the templates.
2015-05-15 16:55:49 -04:00
Tony Tam
a2d2deeb0c
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-15 11:27:16 -07:00
Tony Tam
b4674d6fc5
template updates, tests
2015-05-15 11:27:03 -07:00
wing328
1f6a19b684
minor improvement to ruby api client accept and content-type header
2015-05-15 20:58:59 +08:00
geekerzp
c06cb38d64
updated objc client to support iso8601 datetime format
2015-05-15 17:49:56 +08:00
Josh Ponelat
3bc319d534
dynamic-html: refactor parameters view
2015-05-15 09:28:57 +02:00
Josh Ponelat
30496ffdc3
html: remove dead css line
2015-05-15 09:22:40 +02:00
Josh Ponelat
3544136ab1
dynamic-html: make sure clicking on return type works
2015-05-15 09:21:54 +02:00
geekerzp
6826a1d7df
updated readme.mustache in python client
2015-05-15 14:51:51 +08:00
geekerzp
d798b943f5
added python 2.7 and python 3.4 test environments
2015-05-15 14:38:06 +08:00
wing328
4466b6e15e
add test case for upload file, improve error handling
2015-05-15 11:08:33 +08:00
Tony Tam
0248d6fd9f
Merge pull request #677 from wing328/fix_swagger_type2
...
Fix PHP swagger type
2015-05-14 11:50:57 -04:00
Tony Tam
bc66894553
Merge pull request #688 from xhh/scala-form-params
...
Add form parameters support to Scala codegen
2015-05-14 11:50:42 -04:00
wing328
c12673a407
fix error handling for 4xx, 5xx returned by server
2015-05-14 14:16:12 +08:00
geekerzp
86e48ceef8
refactor python client using urllib3
2015-05-14 10:45:05 +08:00
Ole Lensmar
adcd0f4bb8
changed interface to abstract class instead so we can use Override annotation to warn if we get dead methods when the definitions changes
2015-05-13 15:58:20 -07:00
Ole Lensmar
75b39e812e
refactored to create separate serviceinterface, implementation and corresponding factory. JaxRs class uses the factory to find the implementation. Also fixed possibility for a code generator to control which API files that should be overwritten
2015-05-12 13:18:35 -04:00
Tony Tam
622d883344
fixed input type
2015-05-12 06:57:37 -04:00
Tony Tam
8519480f2c
removed some cruft
2015-05-12 06:50:45 -04:00
Tony Tam
f9db729e75
added qt5
2015-05-12 06:05:09 -04:00
Tony Tam
0b2eced6a3
rebuilt
2015-05-12 06:05:00 -04:00
Tony Tam
dae01b5043
template update
2015-05-12 06:04:44 -04:00
Tony Tam
1912973d36
enabled qt5
2015-05-12 06:04:23 -04:00
Tony Tam
037a00720f
added qt5 samples, script
2015-05-12 06:04:10 -04:00
Tony Tam
c2ee64e669
fixed version
2015-05-12 06:03:45 -04:00
Tony Tam
e703fc7982
fixed version
2015-05-12 06:03:37 -04:00
Tony Tam
5a1fa6ee65
added qt5 c++ templates
2015-05-12 05:56:12 -04:00
Tony Tam
d6016757cb
Merge pull request #705 from wing328/fix_required_parameter
...
Fix required parameter validation for Java, Android, PHP and Ruby
2015-05-12 05:48:22 -04:00
Tony Tam
08184aab1d
Merge pull request #679 from xhh/petstore-scala-tests
...
Fix tests for Scala petstore sample
2015-05-12 05:48:11 -04:00
Tony Tam
e33fbc67ad
Merge pull request #648 from geekerzp/develop_2.0_objc_naming
...
Updated naming convention in objc client.
2015-05-12 05:47:51 -04:00
Tony Tam
f80238ae2d
Merge pull request #737 from wing328/perl_codegen
...
Add templates for Perl
2015-05-12 05:47:25 -04:00
Ron
75ff9089af
Merge pull request #739 from tomtit/revert726
...
Reverted JsonUtil.mustache for JavaClientCodegen after PR #726 .
2015-05-12 09:42:37 +02:00
wing328
2f5f2b367b
update package name to confirm to csharp convention, fix default header
2015-05-12 12:45:59 +08:00
Alexey Nechaev
66dea18b61
Reverted JsonUtil.mustache after PR #726 .
2015-05-08 12:47:35 +00:00
Lorinda Brandon
bae40ded74
Update README.md
2015-05-07 19:23:49 -04:00
William Cheng
fc43828c20
update type mapping, update test.pl to use local file for testing upload
2015-05-08 03:58:02 +08:00
William Cheng
063a1ffd36
update type list in deserialize
2015-05-08 03:58:02 +08:00
William Cheng
1d4735f76d
update subroutine argument
2015-05-08 03:58:01 +08:00
William Cheng
c03250132d
update error message, update test script
2015-05-08 03:58:01 +08:00
William Cheng
48844442fc
test post body (model), fix to_hash attribute mapping
2015-05-08 03:58:01 +08:00
William Cheng
f69fb40c71
add methods for static variable
2015-05-08 03:58:01 +08:00
William Cheng
0a34793f5a
add inheritance to object (model)
2015-05-08 03:58:00 +08:00
William Cheng
07cd23edac
seralization and deserialization work, get_pet_by_id and
...
update_pet_with_form work
2015-05-08 03:58:00 +08:00
William Cheng
a7ef1262e5
fix all swagger.pl syntax issue
2015-05-08 03:58:00 +08:00
William Cheng
c5fcf3ba2c
remove pl files
2015-05-08 03:58:00 +08:00
William Cheng
d206035e0f
add perl support - api template, bin, codegen
2015-05-08 03:57:59 +08:00
russellb337
2eeb96116d
simplifying diff
2015-05-07 12:16:44 -07:00
russellb337
2edfb96c36
swagger codegen should honor global mime types
2015-05-07 12:02:25 -07:00
Tony Tam
c7e22b7a3b
Merge pull request #726 from who/feature/gson-for-android-client
...
Feature: Use gson for android-client instead of jackson
2015-05-07 06:26:37 -07:00
Andrew B
20ced771ba
Restoring the pom.xml so integration tests work
2015-05-07 01:09:25 -07:00
Andrew B
01b7385a5e
Implementing gson in android client templates
2015-05-06 22:54:25 -07:00
wing328
070a6203e0
remove php comment
2015-05-07 13:35:19 +08:00
who
902c56f09b
Initial commit of jackson-to-gson
2015-05-06 17:46:54 -07:00
russellb337
129086eea7
merge latest from develop_2.0 to fork
2015-05-06 13:44:10 -07:00
Tony Tam
157da246c0
added async test sample
2015-05-06 12:56:45 -07:00
Fake Bob Dobbs
321dfb7311
For SpringMVC, RequestHeader annotations are not setting the required attribute, even when required is false (RequestHeader uses default of true). This change always sets the required param
2015-05-06 09:05:57 -04:00
Tony Tam
65097a4908
Merge pull request #680 from geekerzp/develop_2.0_python_testing
...
Bug fix for deserialize model issue and added unit tests for python client
2015-05-04 21:11:35 -07:00
Tony Tam
df2cbfd0e9
Merge pull request #720 from akras14/master
...
Fixes a bug with Node.js example generating invalid package.json and swa...
2015-05-04 16:07:26 -07:00
Alex Kras
df95114a93
Fixes a bug with Node.js example generating invalid package.json and swagger.json
...
Currently string "... You can find out more about Swagger at <a href=\"http://swagger.io \">http://swagger.io </a> or ... " gets URL encoded, resuling in Node js throwing "Unable to parse" error.
Use of {{{ }}} forces mustache to skip URL encoding
http://mustache.github.io/mustache.5.html#Partials
2015-05-04 15:07:03 -07:00
Anthony Sosso
f7d30c847f
Java: support x-www-form-urlencoded for PUT, POST, DELETE
2015-05-01 15:25:54 -07:00
who
b94eb443ea
Adding some tests that were accidentally deleted
2015-04-30 12:52:21 -07:00
Ron
b70f5bc98b
Merge pull request #709 from eerwitt/update_documentation_links
...
Found the 2.0.17 tag under 2.0.17 instead of v2.0.17.
2015-04-30 21:27:15 +03:00
e3
9876e792f1
Found the 2.0.17 tag under 2.0.17 instead of v2.0.17.
2015-04-30 11:22:45 -07:00
Ron
e3f09ae4cc
Merge pull request #708 from eerwitt/update_documentation_links
...
Linked to the 2.0.18 tag instead of the no longer existing 2.0.17.
2015-04-30 21:21:32 +03:00
e3
cd2e030dc1
Linked to the 2.0.18 tag instead of the no longer existing 2.0.17.
2015-04-30 11:16:16 -07:00
who
6be2c06ed3
Adding maven publish functionality for android client
2015-04-30 10:34:43 -07:00
wing328
2e85871a4b
remove hello.txt (created by mvn test)
2015-04-30 17:12:25 +08:00
wing328
47a8ef3031
fix required parameters in ruby
2015-04-30 17:01:36 +08:00
wing328
93e4ef0eec
fix required parameters check for php
2015-04-30 16:52:33 +08:00
wing328
303378c5eb
fix android required parameter check
2015-04-30 16:29:21 +08:00
Andrew B
5082f69631
Adding maven publish functionality for android client
2015-04-29 22:08:27 -07:00
Tony Tam
abe072c83d
Merge pull request #703 from MaorBril/master
...
Added support for Basic Auth
2015-04-29 21:09:48 -07:00
maorb
5fbd0afdc5
Added support for Basic Auth
2015-04-29 18:19:16 -07:00
Tony Tam
4725dfb121
Merge pull request #702 from 0legg/feature/android-gradle
...
Jar and aar support for Android
2015-04-29 17:50:09 -07:00
Oleg Godovykh
14c2d14fc2
provide both jar and aar
2015-04-29 14:18:44 -04:00
Oleg Godovykh
119a981701
add possibility to create aar library
2015-04-29 13:39:00 -04:00
wing328
fb3088b765
fixed required parameter in java api
2015-04-29 17:31:38 +08:00
wing328
e7b170bf3c
better comment on csharp api, add ParameterToString to handle date
2015-04-29 16:27:08 +08:00
wing328
96d837274e
udpate csharp template with better comment and ParameterToString
2015-04-29 11:00:05 +08:00
wing328
8818c209df
udpate csharp client with restsharp
2015-04-29 10:56:24 +08:00
wing328
5c057e1306
refactor csharp client using restsharp, getpetbyid working
2015-04-29 10:55:49 +08:00
Tony Tam
6c23a21312
Merge pull request #675 from marcinkiewiczblazej/issue-674
...
Fix for issue #674
2015-04-28 15:21:51 -07:00
Tony Tam
2f8e0bb09c
Merge pull request #699 from 0legg/feature/android-gradle
...
Replace maven settings for Android client with gradle
2015-04-28 15:13:23 -07:00
Oleg Godovykh
b6495a9fc2
replace maven settings for Android client with gradle
2015-04-28 17:49:59 -04:00
Tony Tam
8952759eda
Merge pull request #693 from lugaru1234/multiple_tags_operations
...
Generation of operations with multiple tags has been fixed #356
2015-04-28 07:03:23 -07:00
Tony Tam
c96f5f6fa8
added excludes for logback.xml per https://github.com/swagger-api/swagger-codegen/issues/689
2015-04-27 22:51:52 -07:00
Nadezhda Makarkina
b0d2d1116b
Generation of operations with multiple tags has been fixed #356
2015-04-27 13:25:08 +03:00
xhh
4a55223a8f
Add form parameters support to Scala codegen
2015-04-24 23:57:17 +08:00
geekerzp
3aa9982b23
Fixed issue that it will throw error when deserialize model in python client.
2015-04-23 18:19:08 +08:00
geekerzp
7d706f6a00
Added pom.xml for python client.
2015-04-23 18:09:32 +08:00
geekerzp
161aeb393b
Add image file for python unit tests.
2015-04-23 17:38:57 +08:00
geekerzp
f9195a8a0e
Added unit tests for python client.
2015-04-23 17:13:26 +08:00
Alexey Nechaev
9a36174685
Clean up of '\n' escaping.
2015-04-23 11:50:07 +03:00
xhh
4f5f6a9e8f
Include Scala petstore sample into integration test
2015-04-23 15:27:44 +08:00
xhh
78072f753c
Fix tests for Scala petstore sample
2015-04-23 09:38:27 +08:00
wing328
d5a3cc7300
fix php swagger type
2015-04-23 00:42:36 +08:00
Alexey Nechaev
fc0be6d503
Fixes #646 : Example field handling has been fixed.
2015-04-22 16:17:28 +03:00
Alexey Nechaev
699973dcfe
Group and version are avaiable from parent pom.
2015-04-22 16:11:16 +03:00
Blazej Marcinkiewicz
465266e219
Updated Java Spring MVC query param generation to include 'required' parameter if it's available.
2015-04-22 11:52:46 +02:00
Tony Tam
5c935a4c29
Merge pull request #668 from wing328/fix_swagger_type
...
[CSharp] Bug fix for swagger type
2015-04-21 10:01:35 -07:00
wing328
95ff0b9313
remove pettest, which is for testing only
2015-04-21 23:16:54 +08:00
wing328
eed04560c0
fix string?
2015-04-21 23:16:17 +08:00
William Cheng
2c0e8f6079
fix csharp model name issue
2015-04-21 22:42:13 +08:00
geekerzp
152eabbd6a
Fixed PetstoreClient.xccheckout.
2015-04-21 16:33:28 +08:00
geekerzp
60ab624b23
Updated xcode project for petstore
2015-04-21 16:23:08 +08:00
geekerzp
4dd793c0ac
Updated naming convention in objc client.
2015-04-21 16:23:08 +08:00
Tony Tam
7f4916f333
Merge pull request #664 from geekerzp/develop_2.0_python_content_type
...
Fixed encoding issue for request json body in python client.
2015-04-20 21:46:06 -07:00
Tony Tam
bf4d0a5466
Merge pull request #663 from wing328/better_method_doc
...
Better method documentation
2015-04-20 21:43:41 -07:00
geekerzp
d053d464dd
Fixed encoding issue for request json body in python client.
2015-04-20 18:05:16 +08:00
William Cheng
5465708a42
add method documentation to android and scala
2015-04-19 23:51:46 +08:00
William Cheng
3622cfd169
add method documentation for objc client
2015-04-19 23:41:26 +08:00
William Cheng
ae389a8993
update python method documentation
2015-04-19 23:23:09 +08:00
Denis Yagofarov
1d175c1c7d
+ advices for OS X Users
2015-04-18 22:41:18 +03:00
wing328
7e37f3294a
bug fix for post (model) and update php test cases
2015-04-17 20:01:58 +08:00
Karthik Velakur
1e273640b4
Issue #642 - Removing the unnecesary \n added to generated example requests
2015-04-16 13:26:52 -04:00
Tony Tam
cbbe29cf70
Merge pull request #651 from wing328/method_name_style
...
Update method name based on style guide
2015-04-16 10:09:47 -07:00
wing328
c87579e1f7
fix rspec due to change of optional parameter in ruby method
2015-04-17 01:03:15 +08:00
wing328
c30ed059fe
update php api test with SwaggerClient.php
2015-04-17 00:26:06 +08:00
wing328
676c4d0835
add back php unit testing and readme to PHP SwaggerClient sample code
2015-04-17 00:26:06 +08:00
wing328
4c717829b3
update test.php, remove old SwaggerPetstore-php
2015-04-17 00:26:06 +08:00
wing328
8512259d02
update method name based on style guide, update petstore sample
2015-04-17 00:26:06 +08:00
Tony Tam
e45b04ef32
Merge pull request #649 from xhh/ruby-optional-params
...
Add support of optional parameters to Ruby codegen
2015-04-16 09:11:28 -07:00
xhh
de21088619
Support optional body parameter
2015-04-16 18:20:36 +08:00
xhh
61bf7f49cc
Remove redundant blank lines
2015-04-16 15:56:08 +08:00
xhh
a819e4d523
Support optional parameters in Ruby client
...
* Pass optional parameters via the `opts` Hash
* Handle query parameters in a way similar to header/form parameters to
support parameter name normalization, e.g. the "additional_metadata"
key is passed for "additionalMetadata"
* Rename variables to be consistent: `query_params`, `header_params` and
`form_params`
* Remove unnecessary blank lines
2015-04-16 15:56:08 +08:00
Tony Tam
57ca71fcc9
Merge pull request #626 from wing328/fix_ruby_rspec
...
Fixed Ruby rspec
2015-04-15 22:56:54 -07:00
Tony Tam
a03574e119
Merge pull request #631 from xhh/ruby-config
...
Fix hard-coded values in Ruby client: scheme, host and base_path
2015-04-15 22:54:46 -07:00
Tony Tam
19d7dad33c
Merge pull request #618 from wing328/python3_codegen
...
Added back python 3 codegen
2015-04-15 22:53:15 -07:00
Tony Tam
2cd8ba9875
Merge branch 'geekerzp-develop_2.0_objc_tests' into develop_2.0
2015-04-15 22:49:05 -07:00
Tony Tam
dc11c94514
Merge branch 'develop_2.0_objc_tests' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_tests
2015-04-15 22:46:46 -07:00
Tony Tam
037fe442dc
Merge branch 'geekerzp-develop_2.0_objc_optional_property' into develop_2.0
2015-04-15 22:44:03 -07:00
Tony Tam
0525d66b86
regenerated
2015-04-15 22:43:48 -07:00
Tony Tam
a168c4bf06
Merge branch 'develop_2.0_objc_optional_property' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_optional_property
2015-04-15 22:12:01 -07:00
Tony Tam
a465edd890
Merge pull request #645 from who/develop_2.0
...
[PHP Templates] Fixing a bug which was preventing payloads to serialize into JSON
2015-04-15 16:51:24 -07:00
who
164a01ed12
Fixing a bug which was preventing payloads to serialize into JSON
2015-04-15 16:17:21 -07:00
Tony Tam
39602c4b2b
Merge pull request #644 from hyeghiazaryan/develop_2.0
...
Adding defaultHeaders dictionary to generated API classes.
2015-04-15 14:24:20 -07:00
hrachya
33dfcd247d
Adding defaultHeaders dictionary to generated API classes. defaultHeaders will be merged with headerParams before sending the request.
...
fix for https://github.com/swagger-api/swagger-codegen/issues/638
2015-04-15 13:02:09 -07:00
Tony Tam
1617b76e27
Merge pull request #637 from hyeghiazaryan/develop_2.0
...
Adding import for Foundation.h to SWGQueryParamCollection.h
2015-04-15 10:08:21 -07:00
geekerzp
0a9df88e53
Using propertyIsOptional to implement optional property instead of
...
using `Optional` protocol in objc client.
2015-04-15 17:53:45 +08:00
geekerzp
989641892e
Remove outdated tests in objc client
2015-04-15 15:10:46 +08:00
hrachya
21fcbc7acb
Adding import for Foundation.h to SWGQueryParamCollection.h
...
fix for https://github.com/swagger-api/swagger-codegen/issues/636
2015-04-14 13:20:38 -07:00
Tony Tam
dfa17d2291
Merge pull request #630 from who/develop_2.0
...
Making default PHP namespace generic and fix issues 628 and 635
2015-04-14 12:35:44 -07:00
who
f4a2eff4b7
Fixing nested model deserialization - Issue #635
2015-04-14 12:24:59 -07:00
Tony Tam
f9fd511eb0
Merge pull request #634 from hyeghiazaryan/develop_2.0
...
Adding toParamName override to ObjcClientCodegen.java
2015-04-14 11:36:25 -07:00
hrachya
ff71a2cc60
Adding toParamName override to ObjcClientCodegen.java
...
fix for https://github.com/swagger-api/swagger-codegen/issues/633
2015-04-14 11:23:09 -07:00
xhh
41371bd901
Initialize a default configuration object
2015-04-14 15:03:21 +08:00
xhh
7db7b146be
Fix hard-coded values in Ruby client: scheme, host and base_path
2015-04-14 12:32:25 +08:00
who
de25d63838
Making the default PHP package name more generic instead of being specific to Petstore
2015-04-13 16:27:30 -07:00
who
42829ffb13
A proposed fix for Issue #628
2015-04-13 13:14:10 -07:00
Tony Tam
444666a365
Merge pull request #629 from who/develop_2.0
...
Correct usage of strpos in PHP APIClient mustache template
2015-04-13 12:30:41 -07:00
who
41db8798af
correct usage of strpos
2015-04-13 12:22:38 -07:00
Tony Tam
33bd614a42
Merge pull request #625 from geekerzp/develop_2.0_python_form_params
...
Fixed request content-type in python client
2015-04-13 10:26:17 -07:00
Tony Tam
10ad0b48dc
Merge pull request #623 from wing328/php_fix_double
...
Fixed "double" response type in PHP client
2015-04-13 10:24:54 -07:00
wing328
4a0314849e
fix ruby spec
2015-04-13 22:23:52 +08:00
geekerzp
10a9d298d7
Fixed request content-type in objc client.
...
In api.mustache the name of content-type is `Content-Type`,
but in swagger.mustache the name of content-type is `Content-type`.
2015-04-13 17:30:43 +08:00
William Cheng
13d513f02b
fix double in php client response
2015-04-12 23:06:07 +08:00
Tony Tam
7f84deaf30
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-04-10 23:07:27 -07:00
Tony Tam
765a5c6aa1
added uniqueness for nickname, #612
2015-04-10 23:07:00 -07:00
Tony Tam
f7c195a7ac
updated pom for #612
2015-04-10 23:06:47 -07:00
Tony Tam
252cb18aeb
Merge pull request #619 from geekerzp/develop_2.0_python_package
...
Update Python codegen to support packaging via Setuptools
2015-04-10 21:03:08 -07:00
Tony Tam
54a5ecb101
Merge pull request #620 from geekerzp/develop_2.0_objc_content_type
...
Fixed request content-type in objc client
2015-04-10 21:01:25 -07:00
geekerzp
63ca000482
fixed request content-type to multipart/form-data when upload file is null
2015-04-11 11:46:55 +08:00
geekerzp
00aa844964
update readme.md
2015-04-11 10:38:32 +08:00
geekerzp
e6bf58a707
package python sdk using setuptools
2015-04-11 10:38:32 +08:00
William Cheng
ccc0653923
add python 3 codegen
2015-04-10 19:42:09 +08:00
Tony Tam
70c14092f9
Merge pull request #610 from xhh/ruby-gemspec
...
Generate Ruby gemspec
2015-04-09 07:37:26 -06:00
Tony Tam
a1e62ea4b1
Merge pull request #611 from wing328/csharp_date_iso8601
...
Updated CSharp client to support ISO8601 format
2015-04-09 07:26:12 -06:00
wing328
22f72e2b23
update comment for escapeString
2015-04-09 16:05:13 +08:00
wing328
a0756bf6f2
remove composer.lock
2015-04-09 15:57:25 +08:00
wing328
78e1fb231e
remove php vendor
2015-04-09 15:56:19 +08:00
wing328
5cbe5d60aa
add iso8601 support to csharp, add more comments, add PATCH support
2015-04-09 15:55:13 +08:00
xhh
e9c5c1434b
Fix spec
2015-04-09 11:37:48 +08:00
xhh
817a74d4df
Add README.md file containing instructions on Ruby petstore sample
2015-04-09 11:34:10 +08:00
xhh
02fa04aec8
Generate gemspec for Ruby client
2015-04-09 11:34:09 +08:00
xhh
7cd8d0a1ac
Restructure gemspec related files to ease importing the files
2015-04-09 11:34:09 +08:00
Tony Tam
7dcdaca288
Merge pull request #609 from geekerzp/develop_2.0_python_better_import
...
Better import for python client
2015-04-08 21:15:38 -06:00
geekerzp
3259a1d814
Fixed module name in __init__.py in python client.
2015-04-09 10:37:15 +08:00
geekerzp
806c26d54f
Merge branch 'develop_2.0' into develop_2.0_python_better_import
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/PythonClientCodegen.java
2015-04-09 09:31:50 +08:00
geekerzp
f2ecc271b5
Better import for python client.
2015-04-09 09:21:21 +08:00
Tony Tam
a05251da51
Merge pull request #601 from geekerzp/develop_2.0_python_unicode
...
Support unicode string in python client.
2015-04-08 06:56:19 -06:00
Tony Tam
555ef7677d
Merge pull request #600 from wing328/python_variable_naming
...
Fixed parameter name, better naming convention for python client
2015-04-08 05:04:02 -06:00
Tony Tam
eb2ec92b66
Merge pull request #604 from wing328/php_fix_warning
...
Fixed PHP5.3 warning
2015-04-08 05:01:54 -06:00
Tony Tam
e1a3540caf
fixed version
2015-04-08 05:00:10 -06:00
Tony Tam
c1d51266b3
fixed version
2015-04-08 04:51:54 -06:00
William Cheng
9de22c8146
update petstore php sample
2015-04-08 12:00:37 +08:00
William Cheng
eb0fccd1d2
fixed content-type check for model
2015-04-08 11:54:57 +08:00
William Cheng
cb2f5d3e25
fix php warning in php5.3
2015-04-08 11:33:09 +08:00
Tony Tam
73665a2b67
Merge pull request #602 from wing328/php_unit_test
...
Added unit testing for PHP Petstore client
2015-04-07 09:41:56 -06:00
geekerzp
24d5dc093f
Support unicode string in python client.
2015-04-07 15:33:05 +08:00
William Cheng
18476114b9
update test case for php, add readme.md
2015-04-07 04:02:09 +08:00
William Cheng
bd07425b25
update php test case for PetApi
2015-04-07 03:59:20 +08:00
William Cheng
49ad6f47a5
fix parameter name, better naming convention for python client
2015-04-07 01:37:32 +08:00
Tony Tam
b85c8bbe7f
rebuilt client
2015-04-06 08:08:36 -06:00
Tony Tam
e8ae9178af
merged
2015-04-06 08:02:37 -06:00
Tony Tam
12d4e812a6
removed samples
2015-04-06 08:02:02 -06:00
Tony Tam
07030e1f42
Merge branch 'develop_2.0'
2015-04-06 08:01:24 -06:00
Tony Tam
c04f947a85
prepare for release
2015-04-06 08:00:16 -06:00
Tony Tam
d55aaffc48
Merge pull request #597 from wing328/php_package
...
Updated PHP codegen to support packaging via Composer
2015-04-06 07:44:00 -06:00
Tony Tam
b9514a40de
Merge pull request #585 from wing328/ruby_fix_path_variable
...
Fixed Ruby path variable url-encoded twice, removed duplicated path variable replacement
2015-04-06 07:42:58 -06:00
William Cheng
ed43a38db2
Merge branch 'ruby_fix_path_variable' of https://github.com/wing328/swagger-codegen into ruby_fix_path_variable
2015-04-06 19:06:50 +08:00
William Cheng
2967cc3801
moved store spec into a separate file, update order id to 5 (as the
...
order with ID 2 is no longer found)
2015-04-06 19:05:19 +08:00
William Cheng
9c5153e8c8
fix test cases
2015-04-06 18:52:30 +08:00
William Cheng
0a4fc6a40f
update ruby petstore sample
2015-04-06 18:52:30 +08:00
William Cheng
a717aba826
fixed path variable double uri-encoded issue
2015-04-06 18:52:30 +08:00
wing328
5c335beb60
removed description testing for Category
2015-04-06 18:28:43 +08:00
wing328
8d6d1cb329
recovered APIclient due to merge
2015-04-06 18:10:43 +08:00
wing328
6b2035e353
Merge branch 'php_package' of https://github.com/wing328/swagger-codegen into php_package
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/APIClient.mustache
samples/client/petstore/php/SwaggerPetstore-php/lib/APIClient.php
samples/client/petstore/php/SwaggerPetstore-php/lib/PetApi.php
samples/client/petstore/php/SwaggerPetstore-php/lib/StoreApi.php
samples/client/petstore/php/SwaggerPetstore-php/lib/UserApi.php
samples/client/petstore/php/SwaggerPetstore-php/lib/models/Category.php
samples/client/petstore/php/SwaggerPetstore-php/lib/models/Order.php
samples/client/petstore/php/SwaggerPetstore-php/lib/models/Pet.php
samples/client/petstore/php/SwaggerPetstore-php/lib/models/Tag.php
samples/client/petstore/php/SwaggerPetstore-php/lib/models/User.php
2015-04-06 18:05:10 +08:00
wing328
3811a5a209
resolve conflict during rebase
2015-04-06 18:03:15 +08:00
wing328
c1046cc87b
add php packaging support
2015-04-06 17:59:42 +08:00
Tony Tam
2bb42a1147
updated version
2015-04-05 16:12:04 -07:00
Tony Tam
1b4367ffba
updated readme
2015-04-05 13:50:49 -07:00
Tony Tam
b4df8477d8
updated parser version
2015-04-05 13:48:48 -07:00
Tony Tam
27c7e69fba
updated templates
2015-04-05 13:42:20 -07:00
Tony Tam
5a5bb6edbf
Merge branch 'geekerzp-develop_2.0_objc_form_params' into develop_2.0
2015-04-04 22:12:41 -07:00
Tony Tam
448462552f
updated logic, merged
2015-04-04 22:12:30 -07:00
Tony Tam
14cbc2d90d
Merge branch 'develop_2.0_objc_form_params' of https://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_form_params
2015-04-04 21:34:26 -07:00
Tony Tam
dfa2c22e0c
Merge pull request #566 from geoand/Apache_HttpClient_Connection_Manager
...
Switched SingleClientConnManager with ThreadSafeClientConnManager.
2015-04-04 21:33:38 -07:00
Tony Tam
a57588caa1
Merge pull request #588 from wing328/csharp_response_warning
...
Eliminated warning related to response in CSharp API files
2015-04-04 21:00:31 -07:00
Tony Tam
fad7246e05
removed file
2015-04-04 20:59:57 -07:00
Tony Tam
a0c9296ee8
name rebuilds, tests
2015-04-04 20:04:10 -07:00
Tony Tam
0c2e464c71
updated jetty version
2015-04-04 17:49:36 -07:00
Tony Tam
15236ef376
updated ruby template
2015-04-04 17:45:22 -07:00
Tony Tam
950bfff1c1
fixed serialization of arrays
2015-04-04 17:20:18 -07:00
Tony Tam
bba91c7e92
added android tests
2015-04-04 17:20:04 -07:00
Tony Tam
33c87e8e72
added sample
2015-04-04 17:02:16 -07:00
Tony Tam
ba2ccf788c
name rebuilds, tests
2015-04-04 17:00:22 -07:00
Tony Tam
e114875f02
updated test
2015-04-04 16:58:28 -07:00
Tony Tam
09346c761b
added script
2015-04-04 16:28:53 -07:00
Tony Tam
f0e41bf43e
template updates
2015-04-04 16:28:43 -07:00
Tony Tam
9c75304832
updated to overwrite files
2015-04-04 16:28:33 -07:00
Tony Tam
02fd96a24a
added spring-mvc sample
2015-04-04 13:46:35 -07:00
Tony Tam
568ca26747
renamed folder
2015-04-04 11:53:02 -07:00
Tony Tam
1e82fc5d24
removed old code
2015-04-04 11:49:40 -07:00
Tony Tam
d9f8fcb7a4
fixes for #501
2015-04-04 00:02:34 -07:00
Tony Tam
17ca7c4648
ahhhh scala
2015-04-03 23:18:03 -07:00
Tony Tam
acf2c8cc9d
removed printlns
2015-04-03 23:12:50 -07:00
Tony Tam
43c88f51c6
fixed #497
2015-04-03 23:04:18 -07:00
Tony Tam
60e5899dc3
updated codegen
2015-04-03 23:02:38 -07:00
Tony Tam
f75312105d
added property file
2015-04-03 22:41:00 -07:00
Tony Tam
610143f4ad
fix for #577 , added newline replacement
2015-04-03 22:22:31 -07:00
Tony Tam
2cc9b10a1e
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-04-03 22:15:10 -07:00
Tony Tam
f3ab28b92d
fix for #589 , escape text for parameter description
2015-04-03 22:15:00 -07:00
wing328
660d336646
fix warning related to csharp response, better code format for csharp api
2015-04-03 23:10:10 +08:00
Tony Tam
15c25c8277
Merge pull request #587 from geekerzp/develop_2.0_python_user_agent
...
Fixed user agent in python client
2015-04-03 07:34:19 -07:00
geekerzp
b4d4fa1a43
Update python sample code.
2015-04-03 18:21:33 +08:00
geekerzp
d4ac668cd4
Set default User-Agent for Python client.
2015-04-03 18:04:05 +08:00
Tony Tam
38e34e0dd6
Merge pull request #584 from wing328/ruby_fix_accept
...
Fixed Ruby header: "Accept", "Content-Type"
2015-04-02 21:56:44 -07:00
Tony Tam
9159892965
updated templates
2015-04-02 18:32:16 -07:00
Tony Tam
eda1a44fa3
updated parser
2015-04-02 18:30:00 -07:00
Camille Chafer
65b6d210bc
Examples updated with names lower-camelized
2015-04-02 18:02:21 +02:00
Camille Chafer
6c4765fd00
Parameters names where camelized with first letter not lower
2015-04-02 18:00:25 +02:00
Camille Chafer
ef3811390f
Some fixes for Wordnik & Petstore examples
2015-04-02 17:46:26 +02:00
Camille Chafer
2ce55115a6
Add wordnik and petstore examples
2015-04-02 16:26:16 +02:00
Camille Chafer
0811e0bce3
Add Akka-Scala client generator. This client uses Spray as Http Client.
2015-04-02 16:22:52 +02:00
William Cheng
40d512fe43
fix test cases
2015-04-02 21:37:54 +08:00
William Cheng
e73957e790
update ruby petstore sample
2015-04-02 21:12:01 +08:00
William Cheng
b773d40034
fixed path variable double uri-encoded issue
2015-04-02 16:15:08 +08:00
Tony Tam
b6be19b266
Merge pull request #582 from guptasu/develop_2.0
...
Fixed the compile time error in the generated code caused due to unescaped new line characters.
2015-04-01 20:58:01 -07:00
William Cheng
1c0cb7f884
fix syntax
2015-04-02 06:12:07 +08:00
William Cheng
bc24e5e290
update ruby accept header
2015-04-02 05:23:53 +08:00
Sunny Gupta
80259fbcc4
Fixed the compile time error in the generated code caused due to unescaped new line characters.
...
Since the description text is not being escaped, if there is a new line character, it will cause a new line to be added to the source code. This can cause compile time error if the new line character is part of a string (e.g. java string) and there is no '+' sign explicitly added to the code. Note: The code was doing escapeText for properties but not for models. This patch fixes that.
2015-04-01 12:33:44 -07:00
Tony Tam
64292cdc9b
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-04-01 07:41:54 -07:00
Tony Tam
df771b5a4d
updated springfox templates
2015-04-01 07:41:45 -07:00
Tony Tam
8b8e8d70f9
Merge pull request #580 from wing328/php_content_type
...
Fix content-type and accept in PHP API
2015-04-01 07:29:57 -07:00
William Cheng
27dfa12335
remove csharp model files (lower case)
2015-04-01 17:43:36 +08:00
Tony Tam
13ee40a4b8
added test script
2015-03-31 21:48:12 -07:00
Tony Tam
df9efe5734
added script
2015-03-31 21:48:04 -07:00
Tony Tam
f142474a54
updated templates
2015-03-31 21:47:30 -07:00
Tony Tam
084d448fd4
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-31 21:00:34 -07:00
Tony Tam
1385a157e9
moved count
2015-03-31 21:00:15 -07:00
Tony Tam
fe3c3cc8bc
fix for #578
2015-03-31 20:59:57 -07:00
Tony Tam
97e44679d3
Merge pull request #579 from xhh/fix-android-datetime-pattern
...
Fix date time format for Android client
2015-03-31 20:12:59 -07:00
xhh
d5ad4c4ae7
Fix date time format for Android client
...
According to Android's docs (https://developer.android.com/reference/java/text/SimpleDateFormat.html )
the `SimpleDateFormat` class in Android does not accept `XXX` as the timezone, it uses `Z` instead.
Also updated the date time format of Android and Java clients to include milliseconds.
2015-04-01 10:22:04 +08:00
Tony Tam
6ac497d774
rebuilt
2015-03-31 16:12:42 -07:00
Tony Tam
cd2c8f6527
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-31 16:08:53 -07:00
Tony Tam
d4b9a41786
added ruby
2015-03-31 16:08:47 -07:00
Tony Tam
93fef67c7e
added required check
2015-03-31 16:08:37 -07:00
Tony Tam
f72e5907bb
formatting
2015-03-31 16:08:09 -07:00
Tony Tam
01c956caba
cleanup
2015-03-31 16:07:56 -07:00
Tony Tam
5f07fb0b03
sorted
2015-03-31 16:07:37 -07:00
Tony Tam
f17968d5b3
fixed required flag
2015-03-31 16:07:24 -07:00
Tony Tam
055c4397e9
renamed
2015-03-31 16:07:07 -07:00
Tony Tam
62a99115fc
renamed
2015-03-31 16:06:52 -07:00
Tony Tam
7483a06226
renamed
2015-03-31 16:06:46 -07:00
Tony Tam
f265ce361a
Merge pull request #556 from FindTheBest/develop_2.0
...
Python Binding Request Headers
2015-03-31 15:58:34 -07:00
Tony Tam
744952aee4
formatting
2015-03-31 15:57:50 -07:00
Tony Tam
66591f567c
Merge pull request #576 from wing328/ruby_petstore_test
...
Fix Ruby rspec
2015-03-31 15:47:54 -07:00
William Cheng
03c48af9e6
Fix content-type and accept in PHP API
2015-04-01 04:26:32 +08:00
Tony Tam
3096c6c3ce
updated versions
2015-03-31 08:47:35 -07:00
William Cheng
cb2f1e1bb1
update test case for StoreApi.getOrderById (id: 1 => 2)
2015-03-31 14:37:59 +08:00
William Cheng
59140bd3f3
remove commented unused code from response spec
2015-03-31 14:17:58 +08:00
James Ebentier
ce700b9421
Fixing one more issue with the defaultHeaders merging and removing unnecessary code
2015-03-30 12:47:56 -07:00
James Ebentier
761ab22f08
Adding Self to setDefaultHeader method signature
2015-03-30 12:28:17 -07:00
William Cheng
0ee39c67fe
fix rspec, update ruby client default configuration
2015-03-31 01:28:33 +08:00
James Ebentier
148b2daaa3
Python Formatting: removing semicolons from the python code
2015-03-30 08:42:12 -07:00
geekerzp
a927d679f0
fixed issue that it throw exceptions when request with form parameters
...
in objective-c client
2015-03-30 17:42:47 +08:00
Tony Tam
a4ce6d7074
updated scripts
2015-03-29 20:55:26 -07:00
Tony Tam
3739d2876e
removed file
2015-03-29 20:50:23 -07:00
Tony Tam
0c50d9807e
added jaxrs
2015-03-29 20:50:10 -07:00
Tony Tam
5e83b6602e
updated templates for baseName
2015-03-29 20:49:51 -07:00
Tony Tam
5ab425e82d
rebuilt
2015-03-29 20:42:20 -07:00
Tony Tam
b5be12a25b
Merge branch 'wing328-add_csharp_codegen' into develop_2.0
2015-03-29 20:03:25 -07:00
Tony Tam
367f81d52d
Merge branch 'add_csharp_codegen' of https://github.com/wing328/swagger-codegen into wing328-add_csharp_codegen
2015-03-29 20:03:16 -07:00
Tony Tam
b10445f3f6
Merge pull request #561 from wing328/ruby_doc
...
Update ruby api files with better documentation
2015-03-29 19:58:21 -07:00
Tony Tam
1e7862a466
Merge pull request #574 from geekerzp/develop_2.0_python_urlencode
...
Fixed issue that query parameters double url encoded in python client
2015-03-29 19:56:02 -07:00
Tony Tam
943efce971
rebuilt
2015-03-29 19:43:29 -07:00
Tony Tam
e7675e48ed
updated snapshot
2015-03-29 19:42:12 -07:00
Tony Tam
63efc4f442
removed println
2015-03-29 19:41:58 -07:00
Tony Tam
a5c92be360
updated sample
2015-03-29 19:41:37 -07:00
Tony Tam
8de8f48679
fix for Optional
2015-03-29 19:41:24 -07:00
Tony Tam
63fae85ff4
updated sample
2015-03-29 19:40:54 -07:00
geekerzp
8f6afda99a
fixed issue that query parameters double url encoded
2015-03-30 10:34:01 +08:00
Tony Tam
510254e5a3
fixed required flag
2015-03-29 19:17:54 -07:00
wing328
9981daad61
add back php petstore samples
2015-03-30 09:39:37 +08:00
wing328
c1824b5387
fix parameter name in API, update petstore sample
2015-03-30 09:31:49 +08:00
Tony Tam
517c0a4f52
Merge pull request #558 from geekerzp/develop_2.0_objc_jsonmodel
...
Add JSONModel to objective-c client
2015-03-29 08:53:14 -07:00
Tony Tam
cab50ccb59
Merge pull request #548 from xhh/java-android-user-agent
...
Set default User-Agent for Java and Android clients
2015-03-29 08:52:56 -07:00
Tony Tam
e51f548807
Merge pull request #559 from wing328/java_doc
...
Update Java documentation for methods (endpoints)
2015-03-29 08:52:32 -07:00
Tony Tam
8a214838e5
Merge pull request #565 from wing328/php_doc
...
Update PHP documentation for method
2015-03-29 08:52:01 -07:00
geekerzp
37118cab47
Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
...
Conflicts:
samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m
2015-03-29 18:15:02 +08:00
geekerzp
e6d7517e63
Update api-body.mustache, api-header.mustache,
...
apiBodyResponseWithContainer.mustache and apiNonPrimitiveResponse.mustache
templates in objective-c client.
* Update `asDictionary` method to `toDictionary` method which provided by
JSONModel.
* Update `initWithValues` method to `initWithDictionary` method which
provided by JSONModel.
2015-03-29 18:06:52 +08:00
xhh
90db8e2147
Add setUserAgent method to Java and Android clients
2015-03-29 09:55:20 +08:00
xhh
65883a5d85
Set default User-Agent for Java and Android clients
2015-03-29 09:55:19 +08:00
Tony Tam
7383520639
added objc target
2015-03-28 10:48:18 -07:00
Tony Tam
49e9c74324
Merge pull request #572 from swagger-api/issue-567
...
Issue 570
2015-03-28 10:46:17 -07:00
Tony Tam
492ab20c00
fix for issue 567, added reserved words, rebuilt client
2015-03-28 10:42:02 -07:00
Tony Tam
92621f2f2d
fix for issue 567, added reserved words, rebuilt client
2015-03-28 10:41:51 -07:00
Tony Tam
f2ce5ef273
Merge pull request #571 from lanwen/cli-doc
...
update docs and bash about CLI usage, deprecate old cli classes
2015-03-28 08:50:46 -07:00
William Cheng
836f7ecb95
rebase with develop_2.0
2015-03-28 22:55:15 +08:00
MerkushevKirill
0dcd307333
update docs and bash about CLI usage, deprecate old cli classes
...
(after #547 )
2015-03-28 12:34:44 +03:00
William Cheng
c2b3e68f8c
rebase on develop_2.0
2015-03-28 16:48:07 +08:00
William Cheng
11c8e2268a
Merge branch 'java_doc' of https://github.com/wing328/swagger-codegen into java_doc
2015-03-28 16:48:02 +08:00
William Cheng
a12cc1c544
remove {{newline}} as it has no impact at all
2015-03-28 16:43:16 +08:00
William Cheng
27e1b1c4b2
update java doc
2015-03-28 16:43:15 +08:00
Tony Tam
a62cd193ad
Merge pull request #569 from swagger-api/issue-567
...
updated camelize function for #567
2015-03-27 23:23:02 -07:00
Tony Tam
0686a91690
updated camelize function for #567
2015-03-27 23:18:54 -07:00
Tony Tam
4f6d5f6265
Merge pull request #568 from swagger-api/feature/objc-templates
...
Feature/objc templates
2015-03-27 23:04:16 -07:00
Tony Tam
99271e77ab
added multi-param args
2015-03-27 22:55:06 -07:00
Tony Tam
c9a2a14da5
added queryParamCollection
2015-03-27 22:17:50 -07:00
Tony Tam
236a1147b7
minor comment
2015-03-27 09:53:40 -07:00
gandrianakis
7eba8670e3
Switched SingleClientConnManager with ThreadSafeClientConnManager.
...
The SingleClientConnManager cannot be used safely in multi-threaded environments
2015-03-27 18:41:16 +02:00
William Cheng
bdd1d1621f
remove {{newLine}} and replace tab wtih 2 spaces
2015-03-27 23:55:26 +08:00
Tony Tam
98c8f867e5
enabled java test
2015-03-27 08:52:22 -07:00
William Cheng
bfb35aa3ee
remove {{newline}} as it has no impact at all
2015-03-27 23:49:27 +08:00
William Cheng
6ab51bcb4e
remove tab with 2 spaces in php api template
2015-03-27 23:11:13 +08:00
William Cheng
1c547e9598
update php documentation
2015-03-27 22:40:59 +08:00
geekerzp
19c05eefab
Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
...
Conflicts:
pom.xml
2015-03-27 17:27:58 +08:00
Tony Tam
3d12c8847f
Merge pull request #562 from swagger-api/feature/java-client
...
Feature/java client
2015-03-26 23:31:47 -07:00
Tony Tam
5d6d563a8e
updated versions
2015-03-26 23:17:17 -07:00
Tony Tam
442be8624c
rebuilt client, added tests
2015-03-26 23:10:10 -07:00
Tony Tam
287bb7d936
fixed builder, error msg
2015-03-26 23:09:47 -07:00
Tony Tam
ddb1d6e0d3
removed 404 handling
2015-03-26 23:09:29 -07:00
Tony Tam
8b98a92805
adds tests, fixes for java templates
2015-03-26 20:32:59 -07:00
William Cheng
8b4a077f8a
Merge branch 'ruby_doc' of https://github.com/wing328/swagger-codegen into ruby_doc
2015-03-27 02:12:33 +08:00
William Cheng
3d53cfc298
better ruby method argument format
2015-03-27 02:11:49 +08:00
William Cheng
fb2ab79455
update ruby doc
2015-03-27 02:11:49 +08:00
William Cheng
731bfc1fc6
Merge branch 'java_doc' of https://github.com/wing328/swagger-codegen into java_doc
2015-03-27 02:00:05 +08:00
William Cheng
ae52a62c09
update java doc
2015-03-27 01:59:05 +08:00
russellb337
62d4516fe7
Merge remote-tracking branch 'upstream/develop_2.0' into develop_2.0
2015-03-26 09:06:35 -07:00
William Cheng
9ba1398831
better ruby method argument format
2015-03-26 20:20:28 +08:00
William Cheng
a4690d76db
update ruby doc
2015-03-26 19:55:48 +08:00
William Cheng
fe11b064af
update java doc
2015-03-26 16:27:00 +08:00
Tony Tam
a2dc767559
Update .travis.yml
2015-03-25 20:57:48 -07:00
geekerzp
93e19e48db
update swagger-core version to 1.5.4-M1-SNAPSHOT
2015-03-26 11:23:47 +08:00
geekerzp
fbe069cf5c
add jsonmodel in objective-c client
2015-03-26 10:07:33 +08:00
Tony Tam
20add5b58e
updated tests, jetty
2015-03-25 16:16:03 -07:00
Tony Tam
b7c2c3448e
renamed package
2015-03-25 12:12:04 -07:00
Tony Tam
f577345b14
fixed examples, readme
2015-03-25 12:11:40 -07:00
James Ebentier
bf46da7c14
Python: modifying request headers in ApiClient to act like those in Java and PHP
2015-03-25 11:44:46 -07:00
Tony Tam
d2f5b9ea65
added recursion check
2015-03-25 11:11:04 -07:00
Tony Tam
e8052f0505
Merge pull request #550 from swagger-api/feature/ios-templates
...
added command-line tests
2015-03-25 09:27:42 -07:00
Tony Tam
be373f88d4
fixed test errors
2015-03-25 09:27:12 -07:00
Tony Tam
ceffa10ab7
added command-line tests
2015-03-24 23:24:13 -07:00
Tony Tam
b36f3c98ca
Merge pull request #547 from lanwen/cli
...
add - new command line interface in distribution module
2015-03-24 20:34:34 -07:00
Tony Tam
f459982560
Merge pull request #549 from swagger-api/feature/ios-templates
...
Feature/ios templates
2015-03-24 19:59:54 -07:00
Tony Tam
56104566fc
added void response
2015-03-24 19:57:51 -07:00
Tony Tam
85463f049c
rebuilt sample
2015-03-24 19:56:45 -07:00
Tony Tam
30acfc1869
added sys property
2015-03-24 19:56:38 -07:00
Tony Tam
2ce0049ce4
updated templates to fix petstore build error
2015-03-24 19:56:28 -07:00
Tony Tam
e82ecf695d
added array support
2015-03-24 19:56:04 -07:00
Tony Tam
dc9a00809c
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-24 17:13:02 -07:00
Tony Tam
31418b3936
added property for app name
2015-03-24 17:12:20 -07:00
Tony Tam
db14a3fd05
added property for app name
2015-03-24 17:02:12 -07:00
Tony Tam
de0e108d27
added property for app name
2015-03-24 17:02:03 -07:00
Tony Tam
b8cd52aa07
Merge pull request #540 from lanwen/develop_2.0
...
rft - only codestyle, remove wildcard imports and use string-utils from apache
2015-03-24 16:56:01 -07:00
Tony Tam
16403950d5
Merge pull request #545 from wing328/ruby_better_naming
...
Update ruby codgen for better naming convention
2015-03-24 16:53:20 -07:00
MerkushevKirill
8ba444141e
add - new command line interface in distribution module
...
can replace Codegen and MetaGenerator classes. Provides a bit different cli interface
based on refactored pom from #541 ,
affects #349
```
usage: swagger <command> [<args>]
The most commonly used swagger commands are:
generate Generate code with chosen lang
help Display help information
langs Shows available langs
meta MetaGenerator. Generator for creating a new template set and configuration for Codegen. The output will be based on the language you specify, and includes default templates to include.
```
**generate** and **meta** commands have same as current cli options
2015-03-25 01:59:55 +03:00
William Cheng
fb3e44ecc4
break down ruby reservedWord list into multiple lines
2015-03-24 16:34:41 +08:00
William Cheng
8107162540
update ruby codgen for better naming convention
2015-03-24 16:24:31 +08:00
MerkushevKirill
ee096569c4
rft - only codestyle with indents, remove wildcard imports and use string-utils from apache
2015-03-24 11:13:01 +03:00
Tony Tam
81e1fd53e2
Merge pull request #544 from geekerzp/develop_2.0_python_key_map
...
Support attribute key mapping in python client
2015-03-23 22:18:25 -07:00
geekerzp
07237f8eb9
add model attribute name json key mapping in python clent
2015-03-24 11:55:20 +08:00
Tony Tam
9442e23fd9
Merge pull request #543 from wing328/remove_old_php_sample
...
Remove old model files in PHP petstore
2015-03-23 20:35:13 -07:00
russellb337
970facaa8a
merge latest from develop_2.0 to fork
2015-03-23 17:01:49 -07:00
russellb337
fe92889b10
merge latest from develop_2.0 to to fork
2015-03-23 17:01:35 -07:00
Tony Tam
fe82d7dc05
Merge pull request #542 from mrwanny/fix_MissingTag_StringIndexOutOfBoundsException
...
fix StringIndexOutOfBoundsException when tag is not provided
2015-03-23 16:22:01 -07:00
Wanny
915fcf9b92
fix cleanup
2015-03-23 16:08:26 -07:00
Wanny
31e8d58b1d
fix StringIndexOutOfBoundsException when tag is not provided
2015-03-23 15:29:39 -07:00
William Cheng
87b85e5b93
remove old php model files
2015-03-24 02:33:08 +08:00
Tony Tam
823ac04abb
Merge pull request #534 from Juliens/master
...
add version in properties
2015-03-23 08:47:06 -07:00
Tony Tam
0cf1c3c74a
Merge pull request #536 from wing328/android_better_naming
...
better naming convention for android-java codegen
2015-03-23 08:44:01 -07:00
William Cheng
fd602af180
better naming convention for android-java codegen
2015-03-23 15:41:24 +08:00
Tony Tam
048bea6249
Merge pull request #535 from wing328/java_beter_naming
...
Better variable and model property naming for Java
2015-03-22 21:19:01 -07:00
Tony Tam
601a519cb6
Merge pull request #530 from FindTheBest/master
...
PHP Request Headers and Deserialization
2015-03-22 21:17:10 -07:00
Tony Tam
f1f9805a01
Merge pull request #527 from geekerzp/develop_2.0_python
...
Support iso8601 datetime format in Python client
2015-03-22 19:35:18 -07:00
William Cheng
62d28ebca5
better variable and model property naming for java
2015-03-22 23:24:43 +08:00
Julien SALLEYRON
c46f3f9ee4
add version in properties
2015-03-21 20:12:44 +01:00
Tony Tam
f008b75e99
Merge pull request #528 from wing328/php_better_variable_naming
...
PHP better naming convention
2015-03-21 08:18:46 -07:00
Tony Tam
38204b2237
Merge pull request #531 from geekerzp/develop_2.0_python_datetime
...
Update santizeForSerialization to normalize parameters for Python client
2015-03-21 08:18:00 -07:00
Tony Tam
d71785470b
Merge pull request #532 from xhh/android-form-params
...
Add support of form parameter to Android client
2015-03-21 08:16:20 -07:00
xhh
b5a4d5be04
Add support of form parameter to Android client
...
* Handle form parameters in a way similar to Java client.
* Handle file uploading.
* Normalize query, header and form parameters with the
ApiInvoker.parameterToString method, which formats Date value to ISO 8601.
2015-03-21 22:20:28 +08:00
geekerzp
f085860eb1
Update sanitizeForSerialization to sanitize parameters to Python client
...
* Refactor santizeForSerialzation to static method.
* Sanitize header/query/form/body parameters.
* Sanitize datetime.datetime and datetime.date to iso8601 format string.
* Sanitize swagger model to dict.
2015-03-21 14:58:32 +08:00
James Ebentier
8323fdf8e8
Fixing deserialization bug in PHP bindings
2015-03-20 15:35:09 -07:00
James Ebentier
0c3f06604d
Correcting spelling error in comment
2015-03-20 14:54:53 -07:00
James Ebentier
e782ea2c05
Default Headers: allowing the setting of defaultHeaders on ApiClient
2015-03-20 14:45:12 -07:00
Tony Tam
9062016bf0
Merge pull request #529 from mrwanny/add_springdox
...
Add server codegen for springdox
2015-03-20 14:17:31 -07:00
Wanny
2301e604b3
clean up README.md
2015-03-20 13:53:07 -07:00
Wanny
34eab98ce4
Merge branch 'develop_2.0' into add_springdox
2015-03-20 13:47:08 -07:00
Wanny
00c1018d79
add basi Springdox server generation
2015-03-20 13:45:01 -07:00
William Cheng
c36e5a96fe
update php codegen with better naming convention
2015-03-20 21:56:41 +08:00
geekerzp
c024a4c099
use dateutil to parse string to datetime in python
2015-03-20 14:38:18 +08:00
Tony Tam
92e5574ec1
Merge pull request #526 from swagger-api/feature/example-generator
...
Feature/example generator
2015-03-19 15:49:47 -07:00
Tony Tam
cdf8648d3b
made noservice option
2015-03-19 14:59:32 -07:00
Tony Tam
de56f76284
rebuilt sample
2015-03-19 14:52:45 -07:00
Tony Tam
ae1d43dc84
added more instructions, service template
2015-03-19 14:47:43 -07:00
Tony Tam
531e2d7032
added example generator, updated signatures to match
2015-03-19 14:45:22 -07:00
Tony Tam
32fe6b0333
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-19 09:04:16 -07:00
Tony Tam
75714ac518
added default for filename generation
2015-03-19 09:04:12 -07:00
Tony Tam
8262d30202
Merge pull request #459 from geoand/objc-dictionary-fix-dev2_0
...
Fixed bug that prevented Objective-C code from compiling when using a Sw...
2015-03-19 08:52:25 -07:00
Tony Tam
d332cdf200
Merge pull request #522 from wing328/ruby_user_agent
...
Fix User-Agent in Ruby API cleint
2015-03-19 08:32:59 -07:00
Tony Tam
f6c18cd50f
Merge pull request #524 from wing328/php_property_mapping
...
Add Attribute Mapping to PHP model
2015-03-19 08:28:02 -07:00
William Cheng
ab8d62214a
add attributemap to php model, update php petstore sample
2015-03-19 20:58:22 +08:00
William Cheng
a149bb9120
update ruby petstore example
2015-03-19 17:17:39 +08:00
William Cheng
02283fae46
udpate ruby api client to support user-agent
2015-03-19 17:09:27 +08:00
gandrianakis
c82b31aa61
Reintroduce objc dictionary fix to updated develop_2.0 branch
2015-03-19 11:07:54 +02:00
gandrianakis
37303745df
Merge branch 'develop_2.0' into objc-dictionary-fix-dev2_0
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2015-03-19 10:59:47 +02:00
gandrianakis
e5357df67a
Merge remote-tracking branch 'upstream/master' into objc-dictionary-fix-dev2_0
2015-03-19 10:45:27 +02:00
Tony Tam
c109c11bea
added yaml output
2015-03-18 23:26:45 -07:00
Tony Tam
3a8c798596
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-18 23:25:48 -07:00
Tony Tam
9311bdf972
added yaml generator
2015-03-18 23:24:47 -07:00
Tony Tam
925caa223a
Merge pull request #482 from FindTheBest/master
...
Python: fixing an issue in swagger python code generation
2015-03-18 22:59:26 -07:00
Tony Tam
95e7265bd7
Merge pull request #498 from burmanm/issue_495
...
Fix NPE with resourcePath = /, issue #495
2015-03-18 22:58:45 -07:00
Tony Tam
93afc3bd95
Merge pull request #516 from wing328/ruby_header_param
...
Bug fix for ruby header parameter and better code format
2015-03-18 22:58:31 -07:00
Tony Tam
cbdb31048e
updated to release version
2015-03-18 22:40:41 -07:00
Tony Tam
6b1f176a66
Merge pull request #417 from Helmsdown/additional-codegen-properties
...
Add API Version to Codegen Additional Properties
2015-03-18 17:05:59 -07:00
Tony Tam
f2ee9b39e9
Merge pull request #519 from swagger-api/feature/swagger-tools
...
updated nodejs server to swagger-tools, supports 2.0 spec
2015-03-18 16:30:57 -07:00
Tony Tam
b6e5c55817
updated nodejs server to swagger-tools, supports 2.0 spec
2015-03-18 16:10:54 -07:00
Tony Tam
963d92e23f
Merge pull request #518 from cchafer/add_response_headers
...
Add defined response headers in CodegenResponse. at this time, only the ...
2015-03-18 14:10:08 -07:00
Camille Chafer
081757c592
headers list is CodegenResponse is always defined (no null list)
2015-03-18 19:01:45 +01:00
Camille Chafer
ac78c15fbf
Add defined response headers in CodegenResponse. at this time, only the headers of the 'default' response are included in the operation.
2015-03-18 18:38:27 +01:00
Tony Tam
dd78de1ed8
updated basePath, contextPath
2015-03-18 09:34:38 -07:00
Tony Tam
64fbcb6045
rebuilt client
2015-03-18 09:34:19 -07:00
Tony Tam
86c6892eb6
rebuilt samples
2015-03-18 09:32:45 -07:00
Tony Tam
9cfbd8bde0
updated sample
2015-03-18 09:32:18 -07:00
Tony Tam
1e1d193556
Merge pull request #517 from xhh/java-param-to-str
...
Add parameterToString to normalize parameters for Java client
2015-03-18 07:12:32 -07:00
xhh
f8a5e900f8
Add parameterToString to normalize parameters for Java client
...
* Convert values to string for query/header/form parameters.
* For parameter of type Date, convert to ISO 8601 format.
* Also add utility methods to parse date in ISO 8601 format.
2015-03-18 18:58:13 +08:00
William Cheng
d0dcb2fb43
fix bug with ruby header parameter, remove extra linebreak in generated
...
code
2015-03-18 16:33:00 +08:00
Tony Tam
bb45790375
Merge pull request #513 from wing328/add_ruby_to_readme
...
update README with ruby on the codegen usage
2015-03-17 17:51:54 -07:00
Tony Tam
369689d001
merged
2015-03-17 16:30:59 -07:00
Tony Tam
df39fe5d08
added Json schema fields
2015-03-17 16:30:42 -07:00
sosso
b73340ab83
Java: properly add request headers
...
https://jersey.java.net/nonav/apidocs/1.8/jersey/com/sun/jersey/api/client/PartialRequestBuilder.html#header (java.lang.String, java.lang.Object)
We were running into issues with our headers not making it into our requests. Upon some research, it appears that Jersey's header() method returns the builder object, meaning we have to do this assignment to properly construct the request. After making the change, our requests work as expected.
2015-03-17 11:39:32 -07:00
William Cheng
a1d02785af
update README with ruby on the codegen usage
2015-03-18 00:14:39 +08:00
Tony Tam
4f32e9dbff
Merge pull request #502 from FindTheBest/develop_2.0
...
PHP Generated Models
2015-03-17 08:51:02 -07:00
Tony Tam
b6ca69f57a
Merge pull request #510 from xhh/patch-2
...
update null comparison for query params in Java
2015-03-17 07:10:52 -07:00
Tony Tam
62992c2de1
Merge pull request #509 from wing328/ruby_form_parameter
...
update ruby client to support form parameters, add PATCH support
2015-03-17 07:05:09 -07:00
Xu Hui Hui
b2da6dc8a2
update null comparison for query params in Java
...
to make it clear and also allow a query parameter to be set with string value: "null" (4 characters string)
2015-03-17 16:34:01 +08:00
Tony Tam
c96853d5aa
Merge pull request #507 from cchafer/security_schemes_definition
...
Adding defintion of security schemes in CodegenSecurity
2015-03-16 22:13:19 -07:00
Tony Tam
c215d8ab91
fix and tests for #503
2015-03-16 22:10:35 -07:00
Tony Tam
46d1950fbd
removed unnecessary file
2015-03-16 21:04:21 -07:00
Tony Tam
03b764d404
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-03-16 20:54:14 -07:00
Tony Tam
a8aebec9ba
removed description
2015-03-16 20:54:08 -07:00
Tony Tam
fd72ff56bf
fixed context path
2015-03-16 20:54:01 -07:00
Tony Tam
ebec85fd54
added context path
2015-03-16 20:53:48 -07:00
Tony Tam
fd792ef180
added more helpful error trace
2015-03-16 20:53:34 -07:00
Tony Tam
486186e042
Merge pull request #505 from wing328/php_support_user_agent
...
update User-agent in PHP API client
2015-03-16 20:44:46 -07:00
Tony Tam
8111d4e909
Merge pull request #506 from wing328/ruby_codegen
...
Add ruby codegen, update sample (petstore) for ruby
2015-03-16 19:49:21 -07:00
William Cheng
fc9d632522
update ruby client to support form parameters, add PATCH support, update
...
ruby petstore client
2015-03-17 05:24:43 +08:00
Camille Chafer
d580d294b6
Adding defintion of security schemes in CodegenSecurity
2015-03-16 11:58:29 +01:00
William Cheng
e9227ad7e5
add ruby codegen, update sample (petstore) for ruby
2015-03-16 18:47:22 +08:00
Tony Tam
156ec2a2dd
Merge pull request #485 from wing328/fix_php_string_response
...
minor bug fixes and enhancement to Swagger.php
2015-03-15 21:02:37 -07:00
William Cheng
186310b553
Merge branch 'fix_php_string_response' of https://github.com/wing328/swagger-codegen into fix_php_string_response
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/Swagger.mustache
samples/client/petstore/php/Swagger.php
2015-03-15 22:08:44 +08:00
William Cheng
bcdee4e038
update php petstore sample code
2015-03-15 22:06:42 +08:00
William Cheng
6bc8de1230
rebase on develop_2.0
2015-03-15 22:02:16 +08:00
William Cheng
b8166f283a
update php to support user agent
2015-03-15 16:33:57 +08:00
Tony Tam
ad7a5967ff
Merge pull request #504 from wing328/php_param_supppor_datetime
...
PHP parameters to suppport datetime (ISO8601)
2015-03-14 22:41:54 -07:00
William Cheng
a0dc2097eb
update php api client to support datetime (iso8601) for parameters
...
(header, path, url, form)
2015-03-14 23:48:05 +08:00
James Ebentier
24842d4a29
PHP Models: fixing an issue with commas being where they shouldn't
2015-03-13 10:53:42 -07:00
James Ebentier
0854ca5ce5
PHP Models: updating the models generated for PHP styling
2015-03-13 10:53:19 -07:00
James Ebentier
6ca34e362d
PHP Models: updating the models generated for PHP to be array accessable and have a simple constructor
2015-03-13 10:51:45 -07:00
Tony Tam
470ba201d8
build error fix
2015-03-13 10:45:12 -07:00
Tony Tam
fc52ab972b
Merge pull request #494 from FindTheBest/develop_2.0
...
Fixing bug in new APIClientException
2015-03-13 09:44:02 -07:00
Tony Tam
7aca1cfb3f
Merge pull request #486 from wing328/php_fix_deserialize
...
Bug fixes for Swagger.php deserialize function
2015-03-13 09:39:50 -07:00
Ron
d9b247f302
Merge pull request #500 from jwyterlin/patch-1
...
Update README.md
2015-03-13 09:38:18 -04:00
Jhonathan Wyterlin
c1e45a5931
Update README.md
2015-03-13 10:35:59 -03:00
Michael Burman
4748af4d59
Fix NPE with resourcePath = /, issue #495
...
(cherry picked from commit 01515e4ded6fa59da87d109dd8056c1b4a64e0f7)
2015-03-13 14:38:19 +02:00
James Ebentier
575967b5de
Fixing bug in new APIClientException
...
This new exception had a typo in it for the construct class declaration.
2015-03-12 13:23:46 -07:00
Tony Tam
6c57d6a76e
Merge pull request #491 from FindTheBest/develop_2.0
...
PHP Bindings: exposing response and response info in Exceptions
2015-03-12 12:23:34 -07:00
James Ebentier
56ff34dc47
PHP Bindings: exposing response and response info to be accessible through thrown exceptions when non 200 response code is received
2015-03-12 12:12:07 -07:00
David Valdez
5b72653d7f
Update README.md
2015-03-12 12:07:24 -07:00
Tony Tam
0a949e26f0
Merge pull request #487 from wing328/update_php_form
...
form parameter(single quote), add more comments
2015-03-11 08:44:26 -07:00
William Cheng
5347915c12
form parameter(single quote), add more comment
2015-03-11 21:14:17 +08:00
William Cheng
d0edb836ac
fix syntax error at 223, update array comparision (case insensitive)
2015-03-11 15:47:28 +08:00
James Ebentier
c75cd55e2c
Merge remote-tracking branch 'wordnik/master'
2015-03-10 13:05:16 -07:00
Tony Tam
911be4360a
Merge pull request #483 from wing328/add_patch_php
...
Add PATCH support to PHP API client
2015-03-10 11:42:57 -07:00
Tony Tam
939b4c713d
per #458
2015-03-10 11:42:31 -07:00
Tony Tam
e6abc2a881
Merge pull request #458 from djvaldez/master
...
Update README.md - fixed incorrect flag for custom generator class
2015-03-10 11:40:34 -07:00
Tony Tam
b2977cd29b
Merge pull request #477 from wing328/fix_php_basename
...
use baseName for parameter name in PHP api
2015-03-10 11:39:28 -07:00
Tony Tam
da6f0eec84
Merge pull request #481 from godaddy/develop_2.0
...
Develop 2.0 - Fix for python3 client deserialize passing wrong parameter
2015-03-10 11:38:59 -07:00
William Cheng
7555dda2bf
add logic to handle all 2xx response code, bug fix for string response,
...
bug fix for showing error message using serialize
2015-03-11 01:37:39 +08:00
William Cheng
941f6e7757
add PATCH support to PHP API client
2015-03-10 18:13:55 +08:00
Tony Tam
1887170dad
updated links
2015-03-09 18:50:23 -07:00
James Ebentier
b2cfb77222
Python: fixing an issue in swagger python code generation where attribute classes aren't respected
2015-03-09 18:18:20 -07:00
Brad Figler
5d77321dca
syncing remote 2.0 branch
2015-03-09 20:47:48 +00:00
Brad Figler
f20522a586
Merge remote branch 'upstream/master'
2015-03-09 19:10:14 +00:00
Brad Figler
17435212ed
Properly serailze the correct object type versus the parent objClass
2015-03-09 19:00:35 +00:00
Tony Tam
6207c2b5e9
fix for #475 building on java8
2015-03-09 10:09:33 -07:00
Tony Tam
b6f7f85baa
updated links
2015-03-09 09:32:22 -07:00
Tony Tam
9c77742046
updated links
2015-03-09 09:31:34 -07:00
Tony Tam
e9d0619358
updated versions
2015-03-09 08:59:16 -07:00
William Cheng
7c23eedf07
use baseName for parameter name in PHP api
2015-03-09 23:15:12 +08:00
Ron
27c6af3491
Update README.md
2015-03-07 16:34:39 -05:00
Tony Tam
dc5ee9dcf5
added reserved words
2015-03-04 20:44:26 -08:00
Tony Tam
07ff6a2278
Merge pull request #468 from cor3ntin/fix_base_path_upstream
...
Fix {{basePath}} value in support files.
2015-03-04 07:25:29 -08:00
Tony Tam
dce9a81536
Merge pull request #467 from cor3ntin/security_upstream
...
Expose Security schemes of operations.
2015-03-04 07:25:00 -08:00
Corentin Jabot
156055fdd5
Fix {{basePath}} value in support files.
...
Make {{basePath}} value in support files be the
same as in operation files, aka host/path, instead of /path.
2015-03-04 15:01:07 +01:00
Corentin Jabot
3a5c03c778
Expose Security schemes of operations.
...
A template can now refer to the type ( oath2.0, apiKey, basic )
as well as the name of the security schemes it rquires.
Usage :
{{#operations}}
{{#authMethods}}
{{type}} {{name}}
{{/authMethods}}
{{/operations}}
2015-03-04 14:54:48 +01:00
Tony Tam
9ce4156e4c
Merge pull request #455 from cchafer/responses
...
Implements CodegenResponse, and return default response in Operaiton.Responses (#293 )
2015-03-03 17:34:47 -08:00
Tony Tam
f82afe0026
Merge pull request #452 from herveDarritchon/develop_2.0
...
Defect (Issue #445 ) : change the call of initialCaps for getter and setter proper generation
2015-03-03 17:33:01 -08:00
Ron
c3bb458ed9
Merge pull request #463 from yzats/patch-3
...
Fixed spelling errors in README.md
2015-03-03 18:45:46 -05:00
yzats
5c2c8e1d76
Update README.md
...
Fix spelling errors
2015-03-03 12:42:15 -08:00
Tony Tam
ced95d658f
added instructions for the meta generator
2015-03-02 23:37:21 -08:00
Tony Tam
a724cd0780
added meta generator
2015-03-02 23:28:59 -08:00
Tony Tam
6b823b88d9
moved logic into abstract class for extensions
2015-03-02 17:29:29 -08:00
Tony Tam
8fb180133a
merged from master
2015-03-02 10:59:35 -08:00
Tony Tam
e877abf153
Merge pull request #461 from natechadwick/master
...
The --auth parameter was setup to ignore values.
2015-03-01 13:45:50 -08:00
nate
dd0ccff58a
Minor typo in help text.
2015-03-01 14:18:11 -05:00
nate
a793d5c6cc
Changed the --auth parameter to require a value so it is not ignored.
2015-03-01 14:13:08 -05:00
gandrianakis
d313d4da3f
Fixed bug that prevented Objective-C code from compiling when using a Swagger 'map' type
2015-02-27 10:11:35 +02:00
David Valdez
dfc8f7c60f
Update README.md
2015-02-26 12:42:41 -08:00
Camille Chafer
c15ac0b6d4
Each type used by any response is now added to the imports list
2015-02-25 17:12:28 +01:00
Camille Chafer
f9a16d856c
Add 'default' response (200) to responses list, and add Types to the CodegenResponse object ( #293 ). In the same time, clarify, simplfy and factorize code.
2015-02-25 16:46:33 +01:00
Camille Chafer
5713dce00a
add missing types on the Responses Object implementation( CodegenResponse.java) (part of #293 )
2015-02-25 16:39:10 +01:00
Tony Tam
23e848b437
added ignored test for #453 , nested containers
2015-02-25 07:35:05 -08:00
Tony Tam
5b01e78a72
Merge branch 'godaddy-master' into develop_2.0
2015-02-24 23:23:40 -08:00
Tony Tam
eb68d0bdbd
Merge branch 'master' of https://github.com/godaddy/swagger-codegen into godaddy-master
2015-02-24 23:23:19 -08:00
Tony Tam
05297e05a5
made annotations FQ to avoid collisions
2015-02-24 21:12:08 -08:00
Tony Tam
1a0d2d19f5
updated template
2015-02-24 18:07:13 -08:00
Tony Tam
292fc99bd5
fixed response types
2015-02-24 11:03:00 -08:00
Hervé Darritchon
b339db65be
Pull request #452 : Add some unit tests for this PR
2015-02-24 09:23:07 +01:00
Tony Tam
e5c70d5961
updated online version, added tag example
2015-02-23 23:23:37 -08:00
Hervé Darritchon
69be95d586
Defect (Issue #445 ) : change the call of initialCaps for getter and setter with Introspector.decapitalize from pakage java.beans.
2015-02-24 08:20:49 +01:00
Tony Tam
c82dfa3a64
updated version
2015-02-23 23:03:18 -08:00
Tony Tam
4fd4c17036
Merge pull request #451 from swagger-api/develop_2.0
...
Merged from develop_2.0
2015-02-23 22:51:46 -08:00
Tony Tam
4bd227271a
updated version
2015-02-23 22:45:06 -08:00
Tony Tam
5c31d68fee
updated to add resolve flag
2015-02-23 22:42:45 -08:00
Tony Tam
bfc1ed3081
added async scala generator #440
2015-02-22 08:57:40 -08:00
Tony Tam
1c7c39c1ab
added logback
2015-02-22 08:56:31 -08:00
Tony Tam
4ce0a65ad5
fix for #444 , paths on windows
2015-02-22 08:56:03 -08:00
Tony Tam
784afee7b7
prepare for next dev version
2015-02-17 22:06:25 -08:00
Tony Tam
f89e04d210
Update README.md
2015-02-17 22:04:12 -08:00
Tony Tam
12531943d0
Merge pull request #438 from swagger-api/develop_2.0
...
merged to master for patch release
2015-02-17 21:48:20 -08:00
Tony Tam
3061cd8277
put parser back to 1.0.0
2015-02-17 21:41:36 -08:00
Tony Tam
686f3656c5
updated to new patch
2015-02-17 21:38:02 -08:00
Tony Tam
9ae106affd
rebuilt clients
2015-02-17 21:37:51 -08:00
Tony Tam
2550539495
added shade plugin to properly include service descriptions
2015-02-17 18:54:57 -08:00
Tony Tam
06164cdc51
updated file separator replacement
2015-02-17 15:04:06 -08:00
Tony Tam
583a932fba
Merge pull request #436 from kreymerman/patch-python-codegen
...
Fix StringIndexOutOfBoundsException on Windows
2015-02-17 15:02:58 -08:00
Mikhail Kreymerman
fdd485608f
fixed StringIndexOutOfBoundsException on Windows
2015-02-17 23:00:23 +01:00
Tony Tam
0307d3818a
added friendly download links
2015-02-17 12:59:31 -08:00
Tony Tam
9a473ceae6
enabled url-only reading of specs
2015-02-17 12:43:10 -08:00
Tony Tam
12365b9591
removed cruft
2015-02-17 12:43:01 -08:00
Tony Tam
c832889db8
added slf4j, updated server gen logic
2015-02-17 11:15:08 -08:00
Tony Tam
39487d9917
disabled outdated routes, made languages GET method dynamic
2015-02-17 10:29:35 -08:00
Tony Tam
aa37542411
added version to make swagger valid
2015-02-17 10:29:06 -08:00
Tony Tam
279f43d697
Update README.md
2015-02-17 08:57:39 -08:00
Tony Tam
fee6de5974
Merge branch 'geoand-jackson_array' into develop_2.0
2015-02-17 07:08:55 -08:00
gandrianakis
5fa98b12b8
Fixed bug that did not allow json arrays to be deserialized by Jackson
2015-02-17 15:17:32 +02:00
Tony Tam
ff94196295
updated to snapshot version
2015-02-16 22:16:40 -08:00
Tony Tam
0195749f3b
merged
2015-02-16 22:08:52 -08:00
Tony Tam
97fca910a1
removed cruft
2015-02-16 22:06:10 -08:00
Tony Tam
577aad3364
added file
2015-02-16 22:02:27 -08:00
Tony Tam
05c6cc756c
remove cruft
2015-02-16 22:01:33 -08:00
Tony Tam
66c6662f42
cleaned up poms
2015-02-16 21:53:51 -08:00
Tony Tam
6319167464
added placeholder for javadocs
2015-02-16 21:53:43 -08:00
Tony Tam
aea2909490
Merge pull request #434 from swagger-api/develop_2.0
...
Merged from develop_2.0
2015-02-16 21:16:09 -08:00
Tony Tam
842421bb44
Merge pull request #433 from tfoxcroft/develop_2.0
...
Minor fix to cater for empty array in php
2015-02-16 21:14:56 -08:00
Terence Foxcroft
c6f10ef1ea
Minor fix to cater for empty array
2015-02-17 07:10:08 +02:00
Tony Tam
3df04839a6
Update README.md
2015-02-16 21:03:36 -08:00
Tony Tam
618b4698c2
Merge branch 'develop_2.0'
...
Conflicts:
README.md
bin/Version.scala
build.sbt
modules/swagger-codegen/src/main/resources/Java/api.mustache
modules/swagger-codegen/src/main/resources/android-java/api.mustache
modules/swagger-codegen/src/main/resources/nodejs/api.mustache
modules/swagger-codegen/src/main/resources/objc/SWGApiClient.h
modules/swagger-codegen/src/main/resources/objc/SWGApiClient.m
modules/swagger-codegen/src/main/resources/objc/SWGDate.h
modules/swagger-codegen/src/main/resources/objc/SWGDate.m
modules/swagger-codegen/src/main/resources/objc/SWGFile.m
modules/swagger-codegen/src/main/resources/objc/SWGObject.h
modules/swagger-codegen/src/main/resources/objc/SWGObject.m
modules/swagger-codegen/src/main/resources/objc/api-header.mustache
modules/swagger-codegen/src/main/resources/php/api.mustache
modules/swagger-codegen/src/main/resources/python/api.mustache
modules/swagger-codegen/src/main/resources/scala/apiInvoker.mustache
modules/swagger-codegen/src/main/resources/scala/pom.mustache
project/build.properties
samples/client/petstore/android-java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/android-java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/android-java/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/scala/pom.xml
samples/client/petstore/scala/src/test/scala/PetApiTest.scala
samples/client/petstore/scala/src/test/scala/StoreApiTest.scala
samples/client/petstore/scala/src/test/scala/UserApiTest.scala
samples/client/wordnik-apiobjc/client/SWGAccountApi.h
samples/client/wordnik-apiobjc/client/SWGAccountApi.m
samples/client/wordnik-apiobjc/client/SWGApiClient.h
samples/client/wordnik-apiobjc/client/SWGApiClient.m
samples/client/wordnik-apiobjc/client/SWGApiTokenStatus.h
samples/client/wordnik-apiobjc/client/SWGAudioFile.h
samples/client/wordnik-apiobjc/client/SWGAuthenticationToken.h
samples/client/wordnik-apiobjc/client/SWGBigram.h
samples/client/wordnik-apiobjc/client/SWGCitation.h
samples/client/wordnik-apiobjc/client/SWGCitation.m
samples/client/wordnik-apiobjc/client/SWGContentProvider.h
samples/client/wordnik-apiobjc/client/SWGContentProvider.m
samples/client/wordnik-apiobjc/client/SWGDate.h
samples/client/wordnik-apiobjc/client/SWGDate.m
samples/client/wordnik-apiobjc/client/SWGDefinition.h
samples/client/wordnik-apiobjc/client/SWGDefinition.m
samples/client/wordnik-apiobjc/client/SWGDefinitionSearchResults.h
samples/client/wordnik-apiobjc/client/SWGDefinitionSearchResults.m
samples/client/wordnik-apiobjc/client/SWGExample.h
samples/client/wordnik-apiobjc/client/SWGExample.m
samples/client/wordnik-apiobjc/client/SWGExampleSearchResults.h
samples/client/wordnik-apiobjc/client/SWGExampleSearchResults.m
samples/client/wordnik-apiobjc/client/SWGExampleUsage.h
samples/client/wordnik-apiobjc/client/SWGExampleUsage.m
samples/client/wordnik-apiobjc/client/SWGFacet.h
samples/client/wordnik-apiobjc/client/SWGFacet.m
samples/client/wordnik-apiobjc/client/SWGFacetValue.h
samples/client/wordnik-apiobjc/client/SWGFacetValue.m
samples/client/wordnik-apiobjc/client/SWGFile.h
samples/client/wordnik-apiobjc/client/SWGFile.m
samples/client/wordnik-apiobjc/client/SWGFrequency.h
samples/client/wordnik-apiobjc/client/SWGFrequency.m
samples/client/wordnik-apiobjc/client/SWGFrequencySummary.h
samples/client/wordnik-apiobjc/client/SWGFrequencySummary.m
samples/client/wordnik-apiobjc/client/SWGLabel.h
samples/client/wordnik-apiobjc/client/SWGLabel.m
samples/client/wordnik-apiobjc/client/SWGNote.h
samples/client/wordnik-apiobjc/client/SWGObject.h
samples/client/wordnik-apiobjc/client/SWGObject.m
samples/client/wordnik-apiobjc/client/SWGRelated.h
samples/client/wordnik-apiobjc/client/SWGScoredWord.h
samples/client/wordnik-apiobjc/client/SWGSentence.h
samples/client/wordnik-apiobjc/client/SWGSentence.m
samples/client/wordnik-apiobjc/client/SWGSimpleDefinition.h
samples/client/wordnik-apiobjc/client/SWGSimpleExample.h
samples/client/wordnik-apiobjc/client/SWGStringValue.h
samples/client/wordnik-apiobjc/client/SWGStringValue.m
samples/client/wordnik-apiobjc/client/SWGSyllable.h
samples/client/wordnik-apiobjc/client/SWGTextPron.h
samples/client/wordnik-apiobjc/client/SWGUser.h
samples/client/wordnik-apiobjc/client/SWGWordApi.h
samples/client/wordnik-apiobjc/client/SWGWordList.h
samples/client/wordnik-apiobjc/client/SWGWordList.m
samples/client/wordnik-apiobjc/client/SWGWordListApi.h
samples/client/wordnik-apiobjc/client/SWGWordListApi.m
samples/client/wordnik-apiobjc/client/SWGWordListWord.h
samples/client/wordnik-apiobjc/client/SWGWordListsApi.h
samples/client/wordnik-apiobjc/client/SWGWordListsApi.m
samples/client/wordnik-apiobjc/client/SWGWordObject.h
samples/client/wordnik-apiobjc/client/SWGWordOfTheDay.h
samples/client/wordnik-apiobjc/client/SWGWordOfTheDay.m
samples/client/wordnik-apiobjc/client/SWGWordSearchResult.h
samples/client/wordnik-apiobjc/client/SWGWordSearchResults.h
samples/client/wordnik-apiobjc/client/SWGWordSearchResults.m
samples/client/wordnik-apiobjc/client/SWGWordsApi.h
samples/client/wordnik-apiobjc/client/SWGWordsApi.m
samples/client/wordnik-api-objc/Podfile
samples/client/wordnik-api-objc/client/SWGAccountApi.h
samples/client/wordnik-api-objc/client/SWGAccountApi.m
samples/client/wordnik-api-objc/client/SWGApiClient.h
samples/client/wordnik-api-objc/client/SWGApiClient.m
samples/client/wordnik-api-objc/client/SWGApiTokenStatus.h
samples/client/wordnik-api-objc/client/SWGApiTokenStatus.m
samples/client/wordnik-api-objc/client/SWGAudioFile.h
samples/client/wordnik-api-objc/client/SWGAudioFile.m
samples/client/wordnik-api-objc/client/SWGAuthenticationToken.h
samples/client/wordnik-api-objc/client/SWGAuthenticationToken.m
samples/client/wordnik-api-objc/client/SWGBigram.h
samples/client/wordnik-api-objc/client/SWGBigram.m
samples/client/wordnik-api-objc/client/SWGCitation.h
samples/client/wordnik-api-objc/client/SWGCitation.m
samples/client/wordnik-api-objc/client/SWGContentProvider.h
samples/client/wordnik-api-objc/client/SWGContentProvider.m
samples/client/wordnik-api-objc/client/SWGDate.h
samples/client/wordnik-api-objc/client/SWGDate.m
samples/client/wordnik-api-objc/client/SWGDefinition.h
samples/client/wordnik-api-objc/client/SWGDefinition.m
samples/client/wordnik-api-objc/client/SWGDefinitionSearchResults.h
samples/client/wordnik-api-objc/client/SWGDefinitionSearchResults.m
samples/client/wordnik-api-objc/client/SWGExample.h
samples/client/wordnik-api-objc/client/SWGExample.m
samples/client/wordnik-api-objc/client/SWGExampleSearchResults.h
samples/client/wordnik-api-objc/client/SWGExampleSearchResults.m
samples/client/wordnik-api-objc/client/SWGExampleUsage.h
samples/client/wordnik-api-objc/client/SWGExampleUsage.m
samples/client/wordnik-api-objc/client/SWGFacet.h
samples/client/wordnik-api-objc/client/SWGFacet.m
samples/client/wordnik-api-objc/client/SWGFacetValue.h
samples/client/wordnik-api-objc/client/SWGFacetValue.m
samples/client/wordnik-api-objc/client/SWGFile.h
samples/client/wordnik-api-objc/client/SWGFile.m
samples/client/wordnik-api-objc/client/SWGFrequency.h
samples/client/wordnik-api-objc/client/SWGFrequency.m
samples/client/wordnik-api-objc/client/SWGFrequencySummary.h
samples/client/wordnik-api-objc/client/SWGFrequencySummary.m
samples/client/wordnik-api-objc/client/SWGLabel.h
samples/client/wordnik-api-objc/client/SWGLabel.m
samples/client/wordnik-api-objc/client/SWGNote.h
samples/client/wordnik-api-objc/client/SWGNote.m
samples/client/wordnik-api-objc/client/SWGObject.h
samples/client/wordnik-api-objc/client/SWGObject.m
samples/client/wordnik-api-objc/client/SWGRelated.h
samples/client/wordnik-api-objc/client/SWGRelated.m
samples/client/wordnik-api-objc/client/SWGScoredWord.h
samples/client/wordnik-api-objc/client/SWGScoredWord.m
samples/client/wordnik-api-objc/client/SWGScrabbleScoreResult.h
samples/client/wordnik-api-objc/client/SWGScrabbleScoreResult.m
samples/client/wordnik-api-objc/client/SWGSentence.h
samples/client/wordnik-api-objc/client/SWGSentence.m
samples/client/wordnik-api-objc/client/SWGSimpleDefinition.h
samples/client/wordnik-api-objc/client/SWGSimpleDefinition.m
samples/client/wordnik-api-objc/client/SWGSimpleExample.h
samples/client/wordnik-api-objc/client/SWGSimpleExample.m
samples/client/wordnik-api-objc/client/SWGStringValue.h
samples/client/wordnik-api-objc/client/SWGStringValue.m
samples/client/wordnik-api-objc/client/SWGSyllable.h
samples/client/wordnik-api-objc/client/SWGSyllable.m
samples/client/wordnik-api-objc/client/SWGTextPron.h
samples/client/wordnik-api-objc/client/SWGTextPron.m
samples/client/wordnik-api-objc/client/SWGUser.h
samples/client/wordnik-api-objc/client/SWGUser.m
samples/client/wordnik-api-objc/client/SWGWordApi.h
samples/client/wordnik-api-objc/client/SWGWordApi.m
samples/client/wordnik-api-objc/client/SWGWordList.h
samples/client/wordnik-api-objc/client/SWGWordList.m
samples/client/wordnik-api-objc/client/SWGWordListApi.h
samples/client/wordnik-api-objc/client/SWGWordListApi.m
samples/client/wordnik-api-objc/client/SWGWordListWord.h
samples/client/wordnik-api-objc/client/SWGWordListWord.m
samples/client/wordnik-api-objc/client/SWGWordListsApi.h
samples/client/wordnik-api-objc/client/SWGWordListsApi.m
samples/client/wordnik-api-objc/client/SWGWordObject.h
samples/client/wordnik-api-objc/client/SWGWordObject.m
samples/client/wordnik-api-objc/client/SWGWordOfTheDay.h
samples/client/wordnik-api-objc/client/SWGWordOfTheDay.m
samples/client/wordnik-api-objc/client/SWGWordSearchResult.h
samples/client/wordnik-api-objc/client/SWGWordSearchResult.m
samples/client/wordnik-api-objc/client/SWGWordSearchResults.h
samples/client/wordnik-api-objc/client/SWGWordSearchResults.m
samples/client/wordnik-api-objc/client/SWGWordsApi.h
samples/client/wordnik-api-objc/client/SWGWordsApi.m
samples/client/wordnik-api-php/wordnik/AccountApi.php
samples/client/wordnik-api/scala/src/test/scala/AccountApiTest.scala
samples/client/wordnik-api/scala/src/test/scala/WordApiTest.scala
samples/client/wordnik-api/scala/src/test/scala/WordListApiTest.scala
samples/client/wordnik-api/scala/src/test/scala/WordsApiTest.scala
samples/client/wordnik/objc/client/SWGAccountApi.h
samples/client/wordnik/objc/client/SWGAccountApi.m
samples/client/wordnik/objc/client/SWGApiTokenStatus.h
samples/client/wordnik/objc/client/SWGAudioFile.h
samples/client/wordnik/objc/client/SWGAuthenticationToken.h
samples/client/wordnik/objc/client/SWGBigram.h
samples/client/wordnik/objc/client/SWGCitation.h
samples/client/wordnik/objc/client/SWGCitation.m
samples/client/wordnik/objc/client/SWGContentProvider.h
samples/client/wordnik/objc/client/SWGContentProvider.m
samples/client/wordnik/objc/client/SWGDefinition.h
samples/client/wordnik/objc/client/SWGDefinition.m
samples/client/wordnik/objc/client/SWGDefinitionSearchResults.h
samples/client/wordnik/objc/client/SWGDefinitionSearchResults.m
samples/client/wordnik/objc/client/SWGExample.h
samples/client/wordnik/objc/client/SWGExample.m
samples/client/wordnik/objc/client/SWGExampleSearchResults.h
samples/client/wordnik/objc/client/SWGExampleSearchResults.m
samples/client/wordnik/objc/client/SWGExampleUsage.h
samples/client/wordnik/objc/client/SWGExampleUsage.m
samples/client/wordnik/objc/client/SWGFacet.h
samples/client/wordnik/objc/client/SWGFacet.m
samples/client/wordnik/objc/client/SWGFacetValue.h
samples/client/wordnik/objc/client/SWGFacetValue.m
samples/client/wordnik/objc/client/SWGFile.h
samples/client/wordnik/objc/client/SWGFrequency.h
samples/client/wordnik/objc/client/SWGFrequency.m
samples/client/wordnik/objc/client/SWGFrequencySummary.h
samples/client/wordnik/objc/client/SWGFrequencySummary.m
samples/client/wordnik/objc/client/SWGLabel.h
samples/client/wordnik/objc/client/SWGLabel.m
samples/client/wordnik/objc/client/SWGNote.h
samples/client/wordnik/objc/client/SWGRelated.h
samples/client/wordnik/objc/client/SWGScoredWord.h
samples/client/wordnik/objc/client/SWGSentence.h
samples/client/wordnik/objc/client/SWGSentence.m
samples/client/wordnik/objc/client/SWGSimpleDefinition.h
samples/client/wordnik/objc/client/SWGSimpleExample.h
samples/client/wordnik/objc/client/SWGStringValue.h
samples/client/wordnik/objc/client/SWGStringValue.m
samples/client/wordnik/objc/client/SWGSyllable.h
samples/client/wordnik/objc/client/SWGTextPron.h
samples/client/wordnik/objc/client/SWGUser.h
samples/client/wordnik/objc/client/SWGWordApi.h
samples/client/wordnik/objc/client/SWGWordList.h
samples/client/wordnik/objc/client/SWGWordList.m
samples/client/wordnik/objc/client/SWGWordListApi.h
samples/client/wordnik/objc/client/SWGWordListApi.m
samples/client/wordnik/objc/client/SWGWordListWord.h
samples/client/wordnik/objc/client/SWGWordListsApi.h
samples/client/wordnik/objc/client/SWGWordListsApi.m
samples/client/wordnik/objc/client/SWGWordObject.h
samples/client/wordnik/objc/client/SWGWordOfTheDay.h
samples/client/wordnik/objc/client/SWGWordOfTheDay.m
samples/client/wordnik/objc/client/SWGWordSearchResult.h
samples/client/wordnik/objc/client/SWGWordSearchResults.h
samples/client/wordnik/objc/client/SWGWordSearchResults.m
samples/client/wordnik/objc/client/SWGWordsApi.h
samples/client/wordnik/objc/client/SWGWordsApi.m
samples/server-generator/node/README.md
samples/server/petstore/jaxrs/src/main/java/io/swagger/model/Pet.java
samples/server/petstore/nodejs/app/apis/PetApi.js
samples/server/petstore/nodejs/app/apis/StoreApi.js
samples/server/petstore/nodejs/app/apis/UserApi.js
sbt
src/main/resources/objc/api-body.mustache
src/main/resources/php/Swagger.mustache
src/main/resources/python/swagger.mustache
src/main/scala/com/wordnik/swagger/codegen/BasicAndroidJavaClient.scala
src/main/scala/com/wordnik/swagger/codegen/BasicGenerator.scala
src/main/scala/com/wordnik/swagger/codegen/BasicPythonGenerator.scala
src/main/scala/com/wordnik/swagger/codegen/BasicScalaGenerator.scala
src/main/scala/com/wordnik/swagger/codegen/Codegen.scala
src/main/scala/com/wordnik/swagger/codegen/ScalaAsyncClientGenerator.scala
src/main/scala/com/wordnik/swagger/codegen/model/AuthorizationModels.scala
src/main/scala/com/wordnik/swagger/codegen/spec/SwaggerSpecValidator.scala
src/main/scala/com/wordnik/swagger/codegen/util/RemoteUrl.scala
src/test/scala/CodegenTest.scala
2015-02-16 21:01:17 -08:00
Tony Tam
72feda8346
updated readme
2015-02-16 20:53:26 -08:00
Tony Tam
2e88dea3ac
updated versions
2015-02-16 20:44:22 -08:00
Tony Tam
678bbd6676
made dynamic swagger config example
2015-02-16 20:17:00 -08:00
Tony Tam
5853326f6a
removed file
2015-02-16 20:15:24 -08:00
Tony Tam
8befb95986
added type tag
2015-02-16 18:19:06 -08:00
Tony Tam
026c93a104
fixed models
2015-02-16 18:03:15 -08:00
Tony Tam
15fde46ca5
removed debug
2015-02-16 17:56:28 -08:00
Tony Tam
f3455397ec
rebuilt clients
2015-02-16 17:56:13 -08:00
Tony Tam
4f0823bffa
rebuilt client
2015-02-16 17:55:59 -08:00
Tony Tam
31eb392d40
rebuild client
2015-02-16 17:55:15 -08:00
Tony Tam
fde5014bf9
fix for #224 , added safe php comparison
2015-02-16 17:49:22 -08:00
Tony Tam
39b2bf4204
fixed test errors from updating sample json
2015-02-16 17:38:04 -08:00
Tony Tam
a1cf365288
rebuilt
2015-02-16 17:37:45 -08:00
Tony Tam
166a18bfc8
pulled from live server
2015-02-16 17:37:25 -08:00
Tony Tam
a0ea195ffc
rebuilt client
2015-02-16 17:37:05 -08:00
Tony Tam
0563be891c
made scripts call local file to avoid transient server issues
2015-02-16 17:36:48 -08:00
Tony Tam
5790c7d289
fix for #191 , not detecting correct file name
2015-02-16 17:18:19 -08:00
Tony Tam
c7c3c969db
moved output
2015-02-15 22:22:42 -08:00
Tony Tam
04074bd853
updated client
2015-02-15 22:20:56 -08:00
Tony Tam
76a367072c
updated client
2015-02-15 22:20:26 -08:00
Tony Tam
e4cf9c5d55
updated scripts
2015-02-15 22:20:08 -08:00
Tony Tam
a4bde0368e
updated for separation with enums
2015-02-15 22:19:43 -08:00
Tony Tam
da8176e170
updated templates
2015-02-15 22:19:26 -08:00
Tony Tam
bd276f5680
rebuilt client
2015-02-15 22:18:13 -08:00
Tony Tam
f10da06188
updated client
2015-02-15 22:17:32 -08:00
Tony Tam
13ef879703
rebuilt client
2015-02-15 22:14:38 -08:00
Tony Tam
8cbba12282
rebuilt client
2015-02-15 22:14:25 -08:00
Tony Tam
d98e894b41
rebuilt client
2015-02-15 22:12:48 -08:00
Tony Tam
73a6c0c42d
rebuilt client
2015-02-15 22:09:07 -08:00
Tony Tam
7363365447
rebuilt client
2015-02-15 22:06:22 -08:00
Tony Tam
3b501f4134
added better enum support
2015-02-15 22:05:45 -08:00
Tony Tam
ffe5353987
rebuilt client
2015-02-15 22:04:50 -08:00
Tony Tam
1556bf16a9
rebuilt client
2015-02-15 21:26:35 -08:00
Tony Tam
88351ed844
rebuilt client
2015-02-15 21:25:41 -08:00
Tony Tam
9707f0a1ab
updated client
2015-02-15 21:18:54 -08:00
Tony Tam
4daac48c6b
added readme, rebuilt client
2015-02-15 19:50:41 -08:00
Tony Tam
e943f5c864
added readme, rebuilt client
2015-02-15 19:50:23 -08:00
Tony Tam
719820c089
added help response if args not set
2015-02-15 19:11:15 -08:00
Tony Tam
fe06652931
removed scala compile step #205
2015-02-15 19:04:53 -08:00
Tony Tam
098f7930eb
added script
2015-02-15 18:07:05 -08:00
Tony Tam
f942e82691
updated templates
2015-02-15 18:06:50 -08:00
Tony Tam
db5259b913
updated script, addressed #189 with type mapping
2015-02-15 18:06:40 -08:00
Tony Tam
dfc7750dda
rebuilt client
2015-02-15 18:05:56 -08:00
Tony Tam
dd971f19e7
added support for headers when generating per #102
2015-02-15 17:15:40 -08:00
Tony Tam
785cc4e29a
fixed file suffix
2015-02-14 17:49:33 -08:00
Tony Tam
0c3e82e375
updated templates
2015-02-14 17:49:19 -08:00
Tony Tam
a6744507ef
updated version
2015-02-14 17:49:10 -08:00
Tony Tam
9614dd8b95
added sample
2015-02-14 17:48:55 -08:00
Tony Tam
5208b36939
updated client
2015-02-14 17:36:52 -08:00
Tony Tam
779bdb23eb
rebuilt client
2015-02-14 17:36:39 -08:00
Tony Tam
4bd1b99213
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-02-14 17:34:27 -08:00
Tony Tam
4841485456
Merge pull request #427 from lucamilanesio/scala-mustache-backward-compatibility
...
Scala api.mustache: make new constructor backward compatible
2015-02-14 17:34:23 -08:00
Tony Tam
d5ddf0c404
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-02-14 17:33:46 -08:00
Tony Tam
7d4cc6bdde
Merge pull request #425 from lucamilanesio/develop_2.0
...
SPNEGO auth fix: Authentication scheme should be set as String
2015-02-14 17:33:30 -08:00
Tony Tam
a0d74531f7
added petstore script
2015-02-14 17:09:07 -08:00
Tony Tam
feb6119572
added supporting data post processing
2015-02-14 17:08:51 -08:00
Tony Tam
dbc4ab51b1
removed deprecated call
2015-02-14 17:08:37 -08:00
Tony Tam
8daebf78f4
updated sample
2015-02-14 17:06:32 -08:00
Tony Tam
391806570c
updated script
2015-02-14 16:30:38 -08:00
Tony Tam
ed1e082896
updated versions
2015-02-13 22:16:54 -08:00
Tony Tam
0640c63573
updated readme
2015-02-12 22:32:00 -08:00
Tony Tam
9985d9e2d9
removed template path
2015-02-12 22:26:42 -08:00
Tony Tam
cd3dfe164b
rebuilt
2015-02-12 22:25:29 -08:00
Tony Tam
85b396ce88
rebuilt sample
2015-02-12 22:24:17 -08:00
Tony Tam
241c69fef7
updated templates
2015-02-12 22:24:04 -08:00
Tony Tam
20deb15c8c
updated client
2015-02-12 21:54:34 -08:00
Tony Tam
2bc5e71f91
updated year in comments
2015-02-12 21:53:37 -08:00
Tony Tam
dd9da67f51
made match case insensitive
2015-02-12 21:51:44 -08:00
Tony Tam
10e9e8a51d
rebuilt
2015-02-12 21:40:42 -08:00
Tony Tam
c3978d2ea3
updated dependencies for compat
2015-02-12 21:38:52 -08:00
Tony Tam
54db9f8f24
updated scripts
2015-02-12 21:38:31 -08:00
Tony Tam
8785759fdf
Merge pull request #431 from devnulled/develop_2.0
...
Fixed The html.sh Sample Generation Script
2015-02-12 16:26:30 -08:00
Brandon Harper
59b0a062a0
Fixed/updated the swagger.json URL in the html.sh script so that it would generate a sample again.
2015-02-12 14:46:02 -07:00
Tony Tam
95155f07d8
added snapshots back
2015-02-11 08:27:52 -08:00
Luca Milanesio
14795df85d
Scala api.mustache: make new constructor backward compatible
...
When default values have been provided with the api.mustache
constructor, backward compatibility was broken because of the public
instance variables becoming immutable vals whilst they were vars before.
We can now use the constructor arguments as default values for the internal
vars and establish backward compatibility with existing code.
2015-02-11 11:00:41 +00:00
Tony Tam
d821a897b3
Merge pull request #426 from lucamilanesio/scala-mustache-easy-override
...
Scala api.mustache: allow easy basePath and ApiInvoker override
2015-02-10 08:22:39 -08:00
Luca Milanesio
fd560f4dc1
Scala api.mustache: allow easy basePath and ApiInvoker override
...
Gets rid of the smelly vars inside Scala api.mustache allowing the
override of default basePath and ApiInvoker on the constructor.
Previously the code for overriding was:
val myApi = new MyApi()
myApi.basePath = "http://myapi.endpoint.com "
myApi.apiInvoker = new ApiInvoker(authScheme = "SPNEGO")
after the change everything can be simply declared in the constructor:
val myApi = new MyApi("http://myapi.endpoint.com ",
new ApiInvoker(authScheme = "SPNEGO"))
2015-02-10 14:07:13 +00:00
Luca Milanesio
6ecc569abd
SPNEGO auth fix: Authentication scheme should be set as String
...
Default authentication scheme is a String and must be later
on decoded as Realm enum
2015-02-10 12:17:27 +00:00
Tony Tam
ece072aee3
Merge pull request #418 from lucamilanesio/scala-async-http-support
...
Support for HTTP Async client transport for Jersey on Scala (legacy master)
2015-02-09 13:43:07 -08:00
Tony Tam
759c0aea80
Merge pull request #421 from lucamilanesio/scala-spnego-preemptive-auth-2.0
...
Support Secure SPNEGO kerberos negotiation for Scala
2015-02-09 12:33:59 -08:00
Luca Milanesio
8e327aa24b
Support for Secure SPNEGO kerberos negotiation
...
Ability to integrate with a SPNEGO-protected REST API
with KerberosV5 ticket preemptive authentication.
2015-02-09 20:14:13 +00:00
Luca Milanesio
592d59ceb2
Support for HTTP Async client transport for Jersey on Scala
...
When generating Scala client, the ApiInvoker is a class with
overridable options, avoiding the need of public vars to be
manually modified.
Additionally it is possible to plug the AsyncHttp protocol
for Jersey in order to achieve Netty support and maximum scalability.
NOTE: Support for Scala 2.10.0-3 removed as largely obsolete
2015-02-09 19:59:26 +00:00
Luca Milanesio
2386e394ae
Support for HTTP Async client transport for Jersey on Scala
...
When generating Scala client, the ApiInvoker is a class with
overridable options, avoiding the need of public vars to be
manually modified.
Additionally it is possible to plug the AsyncHttp protocol
for Jersey in order to achieve Netty support and maximum scalability.
NOTE: Support for Scala 2.10.0-3 removed as largely obsolete
2015-02-09 19:36:28 +00:00
Tony Tam
781c9f7d83
Merge pull request #416 from FindTheBest/develop_2.0
...
PHP/Python Enhancements
2015-02-08 22:15:34 -08:00
Tony Tam
70803a1d09
Update README.md
2015-02-07 15:32:06 -08:00
Tony Tam
ffe5fc7fd2
changed signature for usage in generator
2015-02-07 14:59:35 -08:00
Tony Tam
cbc9fdbe34
updated annotations
2015-02-07 11:08:21 -08:00
russellb337
bd91922072
Add API Version to Codeine Additional Properties
...
Also updated htmlDocs template so html documentation shows API version.
2015-02-06 16:26:33 -08:00
Tony Tam
416c087be0
removed old files
2015-02-06 11:36:58 -08:00
James Ebentier
09bfecf76e
Python: adding in support for formParams as well as multipart-form requests
2015-02-06 11:32:15 -08:00
James Ebentier
8b4180ca4a
PHP: moving over the addition of a setTimeout function for the APIClient
2015-02-06 11:16:16 -08:00
James Ebentier
73a702f91e
PHP: adding the ability to use multipart-form submissions as well as adding formParams to the api
2015-02-06 11:15:22 -08:00
Tony Tam
f55d9eaa68
Merge pull request #412 from FindTheBest/master
...
Python/PHP Multipart-Form request support
2015-02-06 10:47:10 -08:00
Tony Tam
7315b0ce2c
changed scope per #414
2015-02-06 05:55:30 -08:00
Tony Tam
de4534475c
removed old samples
2015-02-06 05:52:57 -08:00
Tony Tam
0bf660ebe8
added podfile
2015-02-06 05:52:15 -08:00
Tony Tam
8b32db73c2
formatting
2015-02-06 05:52:05 -08:00
Tony Tam
bffd43c8fc
fixed container type
2015-02-06 05:51:56 -08:00
Tony Tam
6f7a1bb7e3
added reserved words
2015-02-06 05:51:23 -08:00
Tony Tam
eb1dce3d11
fixed paths
2015-02-06 05:50:43 -08:00
Tony Tam
a841f94273
updated response types
2015-02-06 05:50:12 -08:00
Tony Tam
a7f12c04e6
updated samples
2015-02-06 05:49:38 -08:00
Tony Tam
422cd88b51
rebuilt samples
2015-02-06 05:49:08 -08:00
Tony Tam
eb9e95952d
updated templates
2015-02-06 05:48:47 -08:00
Tony Tam
1e717addf4
removed old samples
2015-02-06 05:48:27 -08:00
Tony Tam
3885991439
rebuilt samples
2015-02-05 21:45:48 -08:00
Tony Tam
3815dfa6a2
updated packages
2015-02-05 21:06:35 -08:00
Tony Tam
5f65c5aa49
added client
2015-02-05 21:06:22 -08:00
Tony Tam
e86837dd9a
added samples
2015-02-05 21:02:12 -08:00
Tony Tam
585311c06a
added files
2015-02-05 21:00:24 -08:00
Tony Tam
69dceb7f69
updated samples
2015-02-05 20:58:32 -08:00
Tony Tam
f1ac82f8a0
updated dependencies
2015-02-05 20:58:21 -08:00
Tony Tam
2c55649797
renamed package
2015-02-05 20:57:21 -08:00
Tony Tam
5c519f6429
revert last commit
2015-02-05 16:17:53 -08:00
Tony Tam
20e600c80e
updated multi-module pom
2015-02-05 16:16:19 -08:00
Tony Tam
2ed8e10fe4
added null check for simple definitions with no models
2015-02-05 16:16:04 -08:00
Tony Tam
caaa753f58
Merge pull request #413 from swagger-api/assembly
...
Created assembly and submodules
2015-02-05 11:51:00 -08:00
Tony Tam
f7c6810757
updated samples
2015-02-05 11:35:13 -08:00
Tony Tam
2f16ee3b29
renamed package
2015-02-05 11:34:23 -08:00
Tony Tam
d97c7c7668
updated bin scripts
2015-02-05 10:22:28 -08:00
Tony Tam
11df3530f3
added wordnik sample
2015-02-05 10:22:19 -08:00
Tony Tam
6bb2e4ccb4
moved to modules per #411
2015-02-05 07:17:38 -08:00
Tony Tam
450894c52e
moved to modules
2015-02-05 07:16:56 -08:00
James Ebentier
0f041dae90
MultipartForm: adding support for php
2015-02-04 12:48:00 -08:00
James Ebentier
6c97a9c6c7
MultipartForm: some more fixing of formating
2015-02-04 10:54:55 -08:00
James Ebentier
257d67346c
MultipartForm: fixing some spacing issues
2015-02-04 10:41:25 -08:00
James Ebentier
e955c9dcfd
MultipartForm: getting the file uploading working
2015-02-04 09:56:10 -08:00
Tony Tam
8414046fc5
added test for form params
2015-02-04 07:21:26 -08:00
Tony Tam
fd270d7733
added copy function
2015-02-04 07:21:17 -08:00
Tony Tam
67a3fffad7
added copy function
2015-02-04 07:21:08 -08:00
Tony Tam
7d0e003bf2
added form params template
2015-02-04 06:51:16 -08:00
Tony Tam
bad6798433
added consumes, produces
2015-02-03 23:54:37 -08:00
Tony Tam
949b321e13
updated path
2015-02-03 21:52:03 -08:00
Tony Tam
c84fd54215
updated to m1 version
2015-02-03 21:51:38 -08:00
Tony Tam
5acb01eb6b
moved to 2_0 folder
2015-02-03 21:51:20 -08:00
Tony Tam
568504ffb4
move to 2_0 folder
2015-02-03 21:51:05 -08:00
Tony Tam
eec525a40f
shortened line breaks
2015-02-03 21:50:28 -08:00
Tony Tam
f8624dbcaa
update to m1 release
2015-02-03 21:50:02 -08:00
Tony Tam
5fdb609767
changed package to io.swagger
2015-02-03 21:49:45 -08:00
Tony Tam
4c53d7b8c4
added formParam values
2015-02-03 21:49:21 -08:00
Tony Tam
3b96894e75
added file & forms
2015-02-03 21:49:05 -08:00
James Ebentier
63bb20238b
MultipartForm: fixing syntax error
2015-02-03 19:01:31 -08:00
James Ebentier
55575541d8
MultipartForm: better formatting
2015-02-03 18:28:56 -08:00
James Ebentier
33e6105822
MultipartForm: adding in basic support for multipart form submissions on python bindings
2015-02-03 18:03:20 -08:00
Tony Tam
87be442ad9
Merge pull request #409 from ethanjcohen/master
...
Fix "properties" name in node server example template
2015-02-02 22:42:56 -08:00
Tony Tam
33834d6cce
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-02-02 06:28:24 -08:00
Tony Tam
212b7cee72
added void to default includes
2015-02-02 06:28:17 -08:00
Tony Tam
d9ca26c40d
updated to m1
2015-02-02 06:27:58 -08:00
Ethan Cohen
65b3b594e3
Renamed the "params" operation property to "parameters" to conform to the swagger spec
2015-02-01 16:02:27 -06:00
Ethan Cohen
94ceb504b8
Changed the "params" operation property to "parameters" to conform to the swagger spec
2015-02-01 15:54:47 -06:00
Tony Tam
fcb21da7f9
Merge pull request #392 from ikuo/develop_2.0-support-upper-case-property-name
...
Support upper case-proprty names
2015-01-30 12:26:56 -08:00
Tony Tam
124e17fb8a
Merge pull request #401 from fleque/fleque-fix-response-selection
...
Fix for the selection of the methodResponse during code-generation
2015-01-28 22:07:06 -08:00
Tony Tam
f914f26f3b
Merge pull request #400 from FindTheBest/master
...
Fixing curl $postData for php bindings
2015-01-28 22:06:23 -08:00
Tony Tam
1bc5fcc29e
Merge pull request #397 from fleque/fleque-python-codegen
...
[WIP] Support Python code generation
2015-01-28 21:53:14 -08:00
James Ebentier
4a6e719d6a
APIClient: making the cURL timeout able to be variably set for better dynamic api calls
2015-01-28 16:04:11 -08:00
Fleque
35dc8d4e5d
Fix for the selection of the methodResponse from an operation during code generation. Now all the smallest 2xx code is used
2015-01-27 23:01:21 +01:00
James Ebentier
61ea9564f8
building a fix for postData that will pass TravisCI build
2015-01-27 13:48:59 -08:00
James Ebentier
bfc14938d0
Fixing curl $postData for php bindings
2015-01-27 13:16:20 -08:00
Tony Tam
c98a78062f
Merge pull request #398 from FindTheBest/master
...
Fixing issue with deserialization in PHP
2015-01-27 12:50:24 -08:00
James Ebentier
fd128cbab0
Update Swagger.mustache
2015-01-27 12:28:28 -08:00
James Ebentier
59568915de
Fixing minor typo
2015-01-27 12:08:41 -08:00
James Ebentier
bff2515bf2
Fixing issue with deserialization in PHP
...
No longer will deserialize throw errors when converting a json response to a string
2015-01-27 11:48:20 -08:00
Tony Tam
d196c6656e
added test for #393
2015-01-25 20:21:40 -08:00
Tony Tam
a2b01e9599
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-01-25 20:20:36 -08:00
Tony Tam
34a61e1256
added scala client support for #393
2015-01-25 20:20:27 -08:00
Dan Peschman
ec995838fb
python3: support PATCH verb for partial updates - http://tools.ietf.org/html/rfc5789
2015-01-24 21:58:33 +00:00
Ikuo Matsumura
b49572005b
Fix typo name{ -> s}
2015-01-24 16:32:38 +09:00
Ikuo Matsumura
ea11b4fc35
Added spec on upper-case property name
2015-01-24 16:17:40 +09:00
Ikuo Matsumura
556485538f
Added @JsonProperty to Java/model.mustache
2015-01-24 16:17:18 +09:00
Tony Tam
53e8683a5d
Merge pull request #388 from fleque/template-resolving-fix
...
Fix for template resolving from classpath on windows
2015-01-23 16:55:09 -08:00
Fleque
6491223ed9
First attempt to port pythong code generation
2015-01-22 23:01:44 +01:00
Fleque
29a7375082
Applied import style of swagger-codegen project
2015-01-22 11:50:05 +01:00
Fleque
8f9947a20a
Fix for the template resovling from classpath on Windows
2015-01-22 11:38:42 +01:00
Tony Tam
dcaf639bec
Merge branch 'STRML-fixPHPFormParams'
2015-01-21 23:19:19 -08:00
Tony Tam
2f6bf95fa2
merged
2015-01-21 23:19:13 -08:00
Tony Tam
154c28b062
Merge pull request #385 from STRML/fixPHPComments
...
Rework generated PHP function comments.
2015-01-21 22:10:20 -08:00
Samuel Reed
8106de95dc
Rework PHP function comments to match PHPDoc style.
...
Also eliminated bad newline.
2015-01-21 10:58:57 +01:00
Samuel Reed
7c342a060a
Add missing formParams to PHP api.mustache. Fixes #383 .
...
Also fixed mixed tabs and spaces in template.
2015-01-21 10:01:41 +01:00
Tony Tam
a15eb6f905
updated java version
2015-01-20 11:23:31 -08:00
Dan Peschman
4198779b5b
python3: support datetime produced by datetime.isoformat like '2015-01-17T00:15:29.515'
2015-01-17 00:41:37 +00:00
Dan Peschman
711d2c8cf4
revert previous: no special handling for '' in python3 parseDatetime
2015-01-16 23:44:02 +00:00
Dan Peschman
42ad403e5e
python3 parseDatetime: return None if passed ''
2015-01-16 23:09:54 +00:00
Dan Peschman
527fca5a8b
python3 parseDatetime: return None if passed None
2015-01-15 23:19:01 +00:00
Dan Peschman
60bd56b91c
python3: support more iso8601 datetime formats - http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#date.and.time.format.examples
2015-01-15 22:42:59 +00:00
Tony Tam
89c776a3b9
Update README.md
2015-01-14 11:16:06 -08:00
Tony Tam
6a5b4e2fb4
Merge pull request #364 from Helmsdown/jaxrs-path-annotation-fix
...
JAXRS Codegen should omit @PATH variable when it is not necessary
2015-01-11 22:55:36 -08:00
Tony Tam
fd39402116
Merge pull request #371 from cantecim/develop_2.0
...
Fixed apiFileFolder and modelFileFolder function results for android-java Fixes #369
2015-01-10 12:37:55 -08:00
Can Tecim
f6055dde30
Fixed apiFileFolder and modelFileFolder function results for android-java Fixes #369
2015-01-10 22:31:38 +02:00
Tony Tam
3abc42eee9
Merge pull request #368 from amandaducrou/master
...
Adding first and hasRequiredParams parameters to Codegen
2015-01-09 10:26:50 -08:00
Amanda Ducrou
2d81c71b52
Adding first and hasRequiredParams parameters to Codegen
2015-01-09 10:59:21 +10:00
Tony Tam
52db5b0925
Update README.md
2015-01-07 10:40:16 -08:00
russellb337
9aa9f4e842
fix JaxRS code gen to only generated @PATH annotation on a given resource function when that function is a "sub resource" (e.g. @PATH("/{id}") or @PATH("/{id}/operation")
2015-01-02 13:52:36 -08:00
Tony Tam
21396d0797
added map support for #360
2014-12-25 08:17:41 -08:00
Tony Tam
93eca2a6b6
php fixes
2014-12-24 19:29:25 -08:00
Tony Tam
74b9257de4
variable type fixes
2014-12-24 15:00:10 -08:00
Tony Tam
a921278650
added php generator
2014-12-24 10:19:42 -08:00
Tony Tam
2d193a0e92
Merge pull request #218 from JDiPierro/output_resource_path_for_no_models_found
...
Output the resourcePath when no models are found rather than the basePath
2014-12-23 22:23:14 -08:00
Tony Tam
09e7bd9c43
Merge pull request #286 from jebentier/master
...
Java binding comment creation issue fixed
2014-12-23 22:17:35 -08:00
Tony Tam
0ece4a084f
Merge pull request #303 from butlermh/master
...
Can't run ./bin/scala-petstore.sh as instructed at README
2014-12-23 22:16:35 -08:00
Tony Tam
0821d1859b
Merge pull request #321 from Laurent-Sarrazin/patch-doc
...
Fix a typo
2014-12-23 22:14:39 -08:00
Tony Tam
25aef5fd6e
Merge pull request #240 from GerardSoleCa/master
...
Edit line 76 to place pom.xml correctly and dependency-jar generation
2014-12-23 20:31:26 -08:00
Tony Tam
20c21cb2f7
added debug info per #330
2014-12-23 19:56:32 -08:00
webron
3a77287f8b
Update README.md
2014-12-23 17:29:49 +02:00
webron
d2111a8e68
Merge pull request #352 from FMJaguar/patch-2
...
Update README.md
2014-12-23 17:28:59 +02:00
Tony Tam
8fa4b196b4
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2014-12-19 14:49:51 -08:00
Tony Tam
3bf45de1f7
added null check
2014-12-19 14:49:32 -08:00
Rich DeLauder
3c0d639d0e
Update README.md
2014-12-19 13:10:02 -08:00
Tony Tam
ed1d0948a3
Merge pull request #351 from earldouglas/exec-maven-plugin
...
Add the Exec Maven Plugin
2014-12-18 11:01:52 -08:00
James Earl Douglas
83699e5324
Add the Exec Maven Plugin
...
This allows execution of the Codegen class via `mvn exec:java`,
with optional args passed via `-Dexec.args="..."`:
mvn exec:java -Dexec.args="-i .../swagger.json -l html -o samples/..."
2014-12-18 10:58:25 -08:00
Tony Tam
1f30c65464
Update README.md
2014-12-12 12:47:30 -08:00
Tony Tam
45d5e480c0
configured scala version #344
2014-12-11 09:42:39 -08:00
Tony Tam
5ecada11ef
moved java-specific reserved words out of default
2014-12-08 13:13:29 -08:00
Tony Tam
4f6878a278
fallbacks for unmatched inner types
2014-12-08 11:49:47 -08:00
Tony Tam
50e0445ab4
Merge pull request #342 from martoe/codegenfactory
...
Introduced a factory for codegen data containers
2014-12-08 07:22:22 -08:00
Martin Ehrnhoefer
78b36e0ba9
Introduced a factory for codegen data containers
...
Moved parameter/response generation code to
dedicated methods so that subclasses may extend it
2014-12-08 11:21:17 +01:00
Martin Ehrnhoefer
7a5068d632
Introduced a factory for codegen data containers
...
Missing model elements added
2014-12-08 10:27:29 +01:00
Tony Tam
c010b4c9c6
Merge pull request #341 from martoe/responseheaders
...
Make response headers available to the code generator
2014-12-07 21:30:57 -08:00
Tony Tam
cc9029236b
Merge pull request #340 from martoe/codegenfactory
...
Introduced a factory for codegen data containers
2014-12-07 21:29:18 -08:00
Martin Ehrnhoefer
3f0b71b3e0
Make response headers available to the code generator
2014-12-07 10:08:42 +01:00
Martin Ehrnhoefer
0eb467e46e
Introduced a factory for codegen data containers
...
implementation completed
2014-12-07 09:52:52 +01:00
Tony Tam
f2c64a0fbb
removed comments
2014-12-06 15:55:42 -08:00
Martin Ehrnhoefer
f4424a5eae
Introduced a factory for codegen data containers
...
This enables users to extend the Codegen* classes
and add their own methods there (which then can
be accessed from the mustache templates)
2014-12-06 16:07:45 +01:00
webron
1b68671e98
Update README.md
2014-12-04 16:27:44 +02:00
Tony Tam
f3ac9a579f
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2014-12-03 00:55:55 -08:00
Tony Tam
6e858ee645
updated samples
2014-12-03 00:55:38 -08:00
Tony Tam
96ea15a4d0
updated readme
2014-12-03 00:55:25 -08:00
Tony Tam
586420b919
Merge pull request #335 from wing328/master
...
update deserialize to handle both array(primitive) and Array(model)
2014-12-02 22:07:24 -08:00
Tony Tam
c05e07c8aa
Merge pull request #331 from yutenglei/develop_2.0
...
Assigned Accept and Content-Type request-header for python's api.mustach...
2014-12-02 21:44:51 -08:00
Tony Tam
43a5ece5b3
Merge pull request #312 from idosh/master
...
add support to multipart form data and urlencoded for android client
2014-12-02 20:40:02 -08:00
William Cheng
9f6d883e68
update deserialize to handle both array(primitive) and Array(model)
2014-11-29 18:23:44 +08:00
Tony Tam
23d2d09136
added help, dynamic loading
2014-11-26 16:37:44 -10:00
Tony Tam
f35c748fb2
added help, dynamic loading
2014-11-26 15:20:50 -10:00
Tony Tam
a24556f0be
added static, updated reference to swagger parser
2014-11-26 14:06:00 -10:00
Tony Tam
a1d604feb3
updated to use swagger parser
2014-11-25 12:01:13 -10:00
webron
524497a606
Merge pull request #332 from mhurne/patch-1
...
Fix spelling errors and improve sentence in Compatibility section
2014-11-24 22:13:29 +02:00
Matt Hurne
665ba22c7a
Fix spelling errors and improve sentence in Compatibility section
2014-11-24 15:11:38 -05:00
Yu Teng Lei
9085a0d148
Assigned Accept and Content-Type request-header for python's api.mustache
...
This was done in PHP but not in python
2014-11-23 16:39:35 -05:00
Tony Tam
74d4ff0fc9
added swagger output for conversion
2014-11-21 08:30:21 -10:00
Tony Tam
29d956d424
added static html generator
2014-11-21 08:14:33 -10:00
Tony Tam
06031a0a34
added 1.2 conversion
2014-11-21 08:14:14 -10:00
Tony Tam
9ffece910d
added basePath
2014-11-19 13:36:59 -08:00
Tony Tam
d12a565032
added debug mode
2014-11-19 13:36:52 -08:00
Tony Tam
9d6e6b56c6
added tizen c++ support
2014-11-13 09:29:13 -08:00
Tony Tam
acc0bad668
changed permissions
2014-11-13 09:28:32 -08:00
Tony Tam
697457415d
updated spec with auth
2014-11-10 21:18:19 -08:00
Tony Tam
bcfd2e8ab6
println
2014-11-10 21:17:29 -08:00
Tony Tam
5adb82f6f6
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2014-11-10 13:15:36 -08:00
Tony Tam
4415cfe30d
added escape
2014-11-10 13:15:27 -08:00
Ido Shamun
0614d1b221
update pom.xml with dependencies
...
fix Codegen.scala to support file as a param type
2014-11-08 01:19:53 +02:00
Ido Shamun
fb3f331e3c
Merge remote-tracking branch 'upstream/master'
...
merge fork with master
2014-11-07 18:27:58 +02:00
Tony Tam
4e9378965b
Merge pull request #324 from FindTheBest/pull_request
...
Adding the casting of integer -> int for python generated code
2014-11-05 15:47:44 -08:00
James Ebentier
d1fe146522
Adding the casting of integer -> int for python generated code
2014-11-05 15:37:22 -08:00
Tony Tam
718e6ba7b4
Merge pull request #302 from martoe/externalDocs
...
"External Documentation Object" implemented (according to spec)
2014-11-04 20:25:41 -08:00
Tony Tam
b9758107c3
Merge pull request #322 from Laurent-Sarrazin/patch-php-server-generator
...
Add a basic PHP server-generator example
2014-10-31 09:32:08 -07:00
Laurent Sarrazin
06332e5dce
Add a basic PHP server-generator example
2014-10-31 17:00:34 +01:00
Laurent Sarrazin
aa262f6021
Fix a typo
2014-10-30 14:30:55 +01:00
Martin Ehrnhoefer
436d2530e4
"External Documentation Object" implemented (according to spec)
...
Depends on https://github.com/wordnik/swagger-core/pull/716
2014-10-30 10:22:00 +01:00
Tony Tam
77053fa855
added test case, update for #316
2014-10-28 13:21:50 -07:00
Tony Tam
810c7f9ed2
added test case, update for #316
2014-10-28 13:21:32 -07:00
Tony Tam
59b477d2da
added test case, update for src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2014-10-28 13:08:41 -07:00
Tony Tam
4c674ca94b
rebuilt samples
2014-10-26 21:46:26 -07:00
Tony Tam
63c428d048
updated templates
2014-10-26 21:46:14 -07:00
Tony Tam
2454bfa225
updated templates per #316
2014-10-26 21:40:13 -07:00
Tony Tam
d6bdd09273
removed unimplemented scripts
2014-10-24 14:50:40 -07:00
Tony Tam
73425fe582
rebuilt client
2014-10-23 21:22:19 -07:00
Tony Tam
bc974e6514
added bodyParam
2014-10-23 21:21:58 -07:00
Tony Tam
237f00e2e3
updated references
2014-10-22 15:46:47 -07:00
Tony Tam
88692ec42d
updated references
2014-10-22 15:45:21 -07:00
Tony Tam
ee833da0ca
fixed notes
2014-10-22 14:06:59 -07:00
Tony Tam
36aad8bc0a
updated examples
2014-10-22 13:54:28 -07:00
Ivan Porto Carrero
a656ea301e
updates the codegen to also include the project name for sbt
2014-10-21 10:59:35 -07:00
Tony Tam
e2ae99acac
fixed import types
2014-10-21 00:02:28 -07:00
Tony Tam
461cb51f6a
fixed summary/description mapping
2014-10-20 17:34:48 -07:00
Tony Tam
681628dba2
added model pacakge
2014-10-20 17:11:28 -07:00
Tony Tam
7167bf28c7
changed to Boolean to allow null values
2014-10-20 17:11:19 -07:00
Ido Shamun
5e4e838a48
add support to multipart form data and urlencoded for android client
2014-10-21 01:58:31 +03:00
Ivan Porto Carrero
f3dc69a7e7
update dependencies in async scala project
2014-10-20 15:42:10 -07:00
Tony Tam
86f9a0a58a
fixed build error
2014-10-20 08:42:35 -07:00
Tony Tam
df1a987e2d
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-10-20 08:24:46 -07:00
Tony Tam
40b4d34870
added required flag for parameter
2014-10-20 08:24:34 -07:00
Tony Tam
c6e3608ffa
Merge pull request #310 from martoe/param_required
...
Parameter.required flag implemented
2014-10-20 07:07:50 -07:00
Martin Ehrnhoefer
0aa87cfbeb
Parameter.required flag implemented
...
Made the "required" flag for Parameter objects available to the code generator templates
2014-10-20 15:56:25 +02:00
Tony Tam
053419234a
renamed field to avoid nested naming collisions
2014-10-19 11:18:38 -07:00
Tony Tam
12eba440ae
Update README.md
2014-10-18 17:14:00 -07:00
Tony Tam
5d43282f51
fixed typo
2014-10-17 14:46:47 -07:00
Tony Tam
2826b69487
removed profile
2014-10-17 14:31:26 -07:00
Tony Tam
63c6bc28c3
Merge branch 'berngp-feature/develop_2.0/scala_2.11' into develop_2.0
2014-10-17 14:29:37 -07:00
Tony Tam
bf3eb94c51
Merge branch 'feature/develop_2.0/scala_2.11' of github.com:berngp/swagger-codegen into berngp-feature/develop_2.0/scala_2.11
2014-10-17 14:28:58 -07:00
Tony Tam
350d736706
fixed case on scheme
2014-10-16 17:43:15 -07:00
Tony Tam
e0aed88e98
added default value
2014-10-16 17:42:39 -07:00
Tony Tam
52a4370c35
added default value
2014-10-16 17:42:27 -07:00
Bernardo Gomez Palacio
5c0577aa8e
Adding Echo YAML Sample
2014-10-14 15:09:55 -07:00
Bernardo Gomez Palacio
1e1abde846
Updating the Scalatra Template for Scala 2.11
...
* Moved to Scala 2.11.2
* Updated the dependencies to use latest Jetty as well as Akka
* Added the SBT Dependency Graph plugin
* Build Properties now use SBT 0.13.5
* Updated the sbt executable.
2014-10-14 14:39:12 -07:00
Bernardo Gomez Palacio
b2f34a152b
Enabling Maven Profile gen-scalatra
2014-10-14 14:24:59 -07:00
webron
4676c4cdf7
Merge pull request #307 from catherinedodge/master
...
Fixed broken link in README.md
2014-10-13 16:58:22 +03:00
catherinedodge
d5674c9a7b
Fixed broken link in README.md
2014-10-13 09:48:29 -04:00
Tony Tam
7c998a2d67
addressed import mappings
2014-10-10 22:07:08 -07:00
Tony Tam
5a70550a37
added scalatra support
2014-10-10 21:41:21 -07:00
Tony Tam
4d214dbcef
updated client
2014-10-10 21:39:45 -07:00
Tony Tam
97623af8df
added apiInfo
2014-10-10 21:26:07 -07:00
Tony Tam
b87bc2a908
added scalatra
2014-10-10 21:25:19 -07:00
Mark H. Butler
c8dac4a3cf
Reverting these files, they don't need to change
2014-10-08 08:25:23 -07:00
Mark H. Butler
6f30a6d65a
Modifying the pom.xml template because it defaults to building with Scala 2.9.1, but that is broken because BeanProperty moved, so instead use 2.10 as the default but add the option of using Scala 2.11
2014-10-08 08:20:02 -07:00
Mark H. Butler
9d1f0bf568
Adding ignore for gedit files (Linux)
2014-10-08 08:19:08 -07:00
Tony Tam
643c211d72
Merge pull request #296 from lloydmeta/update/fix_deprecations
...
Update deprecated method calls
2014-10-07 21:42:13 -07:00
Tony Tam
fb84985e9b
Merge pull request #298 from dreamfactorysoftware/master
...
adding a space in call to completionHandler to kill latest Xcode parse errors
2014-10-02 16:45:38 -07:00
Jason Sykes
afb34b4f2f
adding a space in call to completionHandler to kill latest Xcode parse errors
2014-10-02 12:20:17 -04:00
Tony Tam
5024e0bbda
added root checking per #279
2014-10-02 00:32:15 -07:00
Tony Tam
e771ed3332
added scheme, host, basePath per #295
2014-10-02 00:18:36 -07:00
Tony Tam
2e81b38838
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-10-02 00:10:42 -07:00
Tony Tam
67d28e8b3c
added test
2014-10-02 00:10:39 -07:00
Tony Tam
b834ba436f
added nodejs server
2014-10-02 00:10:15 -07:00
Tony Tam
6da7cbf095
Merge pull request #297 from martoe/#268
...
Windows path problem fixed
2014-10-02 00:00:54 -07:00
Martin Ehrnhoefer
d5d1eb2833
Windows path problem fixed
...
see #268 , #269 , #288
2014-10-02 08:56:30 +02:00
Tony Tam
e66f3c48ac
Merge pull request #288 from martoe/268
...
Windows path problem fixed (again)
2014-10-01 23:29:46 -07:00
Tony Tam
c10cf7bf7f
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-10-01 23:22:43 -07:00
Tony Tam
178d7d19c4
added files
2014-10-01 23:22:39 -07:00
Tony Tam
3c2845aaa6
updated file locations
2014-10-01 23:21:59 -07:00
Tony Tam
a215e93505
Merge pull request #294 from martoe/287
...
[2.0 Spec] Java generator: Implement Enums #287
2014-10-01 23:13:58 -07:00
Tony Tam
bc99361100
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-10-01 22:13:50 -07:00
Tony Tam
48f8e16fb0
added models support per #291
2014-10-01 22:12:50 -07:00
Tony Tam
ffda821f68
updated imports
2014-10-01 22:12:18 -07:00
Tony Tam
1bce51de7a
updated imports
2014-10-01 22:11:51 -07:00
Lloyd
1734ac2e18
Update deprecated method calls
...
1. Update specs to inherit via `with Matchers`
2. Update `URLEncoder.encode` to pass "UTF-8" as charset
2014-10-02 10:49:20 +09:00
Tony Tam
ddb7aad530
Merge pull request #289 from maneeshsahu/develop_2.0
...
Added support for Map<String, Object>
2014-10-01 08:50:06 -07:00
Martin Ehrnhoefer
31ca832bdf
[2.0 Spec] Java generator: Implement Enums #287
...
Unittest
2014-10-01 17:42:03 +02:00
Martin Ehrnhoefer
a80af33260
[2.0 Spec] Java generator: Implement Enums #287
...
Very basic implementation
2014-10-01 17:10:51 +02:00
Martin Ehrnhoefer
3971bbf334
[2.0 Spec] Java generator: Implement Enums #287
...
Very basic implementation
2014-10-01 16:58:38 +02:00
Maneesh Sahu-SSI
8cf9cb95f5
Added support for Map<String, Object>
2014-09-30 21:57:21 -07:00
Tony Tam
2787fa82c6
added docs
2014-09-30 06:11:51 -07:00
Tony Tam
05e1d02341
added custom class loading for configurations
2014-09-30 06:06:01 -07:00
Tony Tam
277f26a5bb
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-09-30 05:10:30 -07:00
Tony Tam
c05a3c3a99
updated client
2014-09-30 05:10:24 -07:00
Tony Tam
ca06241307
updated scripts
2014-09-30 05:09:47 -07:00
Martin Ehrnhoefer
cb25eb6bc0
Windows path problem fixed (again) - #268 #269
2014-09-30 09:32:52 +02:00
James Ebentier
72bef1fb68
fixing the java comments above the api calls to allow for multiline comments in the swagger docs
2014-09-29 17:53:53 -07:00
Tony Tam
b7452fa8ee
Merge pull request #284 from martoe/699
...
[2.0 Spec] Implement Schema Object.example field
2014-09-29 10:48:57 -07:00
Martin Ehrnhoefer
89a009c411
[2.0 Spec] Implement Schema Object.example field
...
see issue https://github.com/wordnik/swagger-core/issues/699 ,
pull-request https://github.com/wordnik/swagger-core/pull/700
2014-09-29 16:26:06 +02:00
Tony Tam
c75a951668
updated sample
2014-09-28 00:52:32 -07:00
Tony Tam
d714f097eb
updated static template
2014-09-28 00:50:47 -07:00
Tony Tam
48f05b41e4
updated android sample
2014-09-27 17:00:30 -07:00
Tony Tam
f04827c6d3
updated android sample
2014-09-27 17:00:03 -07:00
Tony Tam
2729070d7f
updated android sample
2014-09-27 16:59:08 -07:00
Tony Tam
9e5576d3fe
added empty var check
2014-09-27 16:50:36 -07:00
Tony Tam
530ebe1f7d
added map, list model types with tests
2014-09-27 09:13:26 -07:00
Tony Tam
ba45641801
updated for objc tests
2014-09-26 22:52:27 -07:00
Tony Tam
f2b03d2930
added test files
2014-09-26 14:21:43 -07:00
Tony Tam
7006c2f6e9
updated README
2014-09-26 13:59:07 -07:00
Tony Tam
108880cbe9
updated README
2014-09-26 13:56:12 -07:00
Tony Tam
64aa948445
added android client
2014-09-26 10:25:44 -07:00
Tony Tam
eb6c09bfce
merged from #271
2014-09-26 09:39:39 -07:00
Tony Tam
2dd73872a4
updated with tests
2014-09-26 09:38:07 -07:00
Tony Tam
ba94dc3d68
added subclass for ArrayModel support #273 , removed path param brackets for auto-generated operationId #274
2014-09-23 21:44:09 -07:00
Tony Tam
5bc907f1d4
added template variable
2014-09-23 09:14:25 -07:00
Tony Tam
1406c36ced
Merge branch 'develop_2.0' of github.com:wordnik/swagger-codegen into develop_2.0
2014-09-22 16:44:23 -07:00
Tony Tam
394a064cc3
added scripts
2014-09-22 16:44:19 -07:00
Tony Tam
db29ecc8d0
added file from master
2014-09-22 16:44:01 -07:00
Tony Tam
ec99bef893
Merge pull request #266 from FindTheBest/pull_request
...
Python binding generation pull request
2014-09-20 13:39:07 -07:00
Tony Tam
64f7aece12
Merge pull request #269 from martoe/develop_2.0
...
#268 Windows path problem fixed
2014-09-20 10:42:43 -07:00
Martin Ehrnhoefer
46f5fe0611
#268 Windows path problem fixed
2014-09-20 19:39:54 +02:00
Tony Tam
923ed596ac
Merge pull request #267 from martoe/develop_2.0
...
Issue 244 - checkout on windows fails due to special chars
2014-09-20 08:47:44 -07:00
Tony Tam
2fd29d74f2
Merge pull request #263 from wordnik/basic-auth
...
Adds Basic auth as an authentication mechanism
2014-09-20 08:43:30 -07:00
Tony Tam
033a9a4b97
Merge pull request #262 from xhh/patch-1
...
Fixes #260 convert form parameters to string for Java client
2014-09-20 08:41:33 -07:00
isf
8762f38470
Issue 244 - checkout on windows fails due to special chars
2014-09-20 11:48:50 +00:00
Tony Tam
e5392dc21a
added script
2014-09-19 16:41:09 -07:00
Tony Tam
7630fd4f85
added scripts
2014-09-19 16:36:28 -07:00
Tony Tam
134c900aa1
reorded for cleanliness
2014-09-19 16:28:56 -07:00
Tony Tam
a0876f24a3
added travis file
2014-09-19 14:38:00 -07:00
Tony Tam
504e1b28c5
added model package to templates
2014-09-19 14:05:31 -07:00
Tony Tam
885e463bcb
added compatibility table
2014-09-19 11:50:20 -07:00
James Ebentier
b8f3201dba
fixing a minor generation issue in api.mustashe to make sure that python scripts are as clean as possible for apis
2014-09-19 10:53:03 -07:00
James Ebentier
983edbd85b
Adding in the ability to post forms using swagger codegen generate bindings for python
2014-09-19 10:52:57 -07:00
Tony Tam
24268661af
Merge pull request #265 from fehguy/develop_2.0
...
added 2.0 support
2014-09-19 07:30:13 -07:00
Tony Tam
b90742e995
updated template location, added snapshot
2014-09-18 08:28:19 -07:00
Ivan Porto Carrero
86d56b978a
also work on java 7
2014-09-16 20:52:07 -07:00
Ivan Porto Carrero
ed86bfb79b
adds basic auth support
2014-09-16 20:41:32 -07:00
Ivan Porto Carrero
44a73c32fa
more lenient Version.scala
2014-09-16 20:15:09 -07:00
Xu Hui Hui
39662e45b1
Fixes #260 convert form parameters to string for Java client
2014-09-16 18:58:17 +08:00
Tony Tam
9ab12eeda3
added mapping
2014-09-14 22:44:29 -07:00
Tony Tam
2128741218
removed println
2014-09-14 22:44:18 -07:00
Tony Tam
4442dcf203
added operationId generator
2014-09-14 22:44:05 -07:00
Tony Tam
fff1f30dba
updated the query params
2014-09-14 21:44:07 -07:00
Tony Tam
c123bb9130
template cleanup
2014-09-14 17:52:25 -07:00
Tony Tam
5112b655bd
added auth and response models
2014-09-14 17:47:59 -07:00
Tony Tam
d4122d197f
updated to support jaxrs
2014-09-14 17:47:36 -07:00
webron
998bf633d8
Merge pull request #261 from czenker/patch-1
...
Fix typo in README.md
2014-09-12 15:48:22 +03:00
Christian Zenker
b927ffbd53
Fix typo in README.md
2014-09-12 14:26:15 +02:00
Tony Tam
cab4ffa286
property renames
2014-09-10 06:13:49 -07:00
Tony Tam
1ff47393ed
Merge pull request #255 from martoe/master
...
Issue 244 - checkout on windows fails due to special chars
2014-09-07 23:59:01 -07:00
isf
a6ecc7a65b
Issue 244 - checkout on windows fails due to special chars
2014-09-08 08:50:35 +02:00
Tony Tam
d5e62086c8
added cli parser, input opts
2014-09-04 12:42:35 -07:00
Tony Tam
370c22cddb
made templates same as 2.0
2014-09-03 22:17:26 -07:00
Tony Tam
fbf8398324
fixes for return types, arrays
2014-09-03 22:10:34 -07:00
Tony Tam
79c456ecfc
updates for reserved words
2014-09-03 11:18:19 -07:00
Tony Tam
bc0cc567d9
updated output filenames
2014-09-03 11:07:48 -07:00
Tony Tam
ad3006d49c
added support for supporting files
2014-09-03 10:20:13 -07:00
Tony Tam
73ad502251
updated 2.0 support for objc
2014-09-03 01:10:02 -07:00
Tony Tam
7901d8a7c6
fixed api filenames
2014-09-03 00:41:06 -07:00
Tony Tam
6f63ba43ad
added return types, media types
2014-09-03 00:38:24 -07:00
Tony Tam
812520e29f
added support for models, partial for ops
2014-09-01 13:31:01 -07:00
Tony Tam
d1daf3a0e6
added 2.0 support files
2014-08-29 09:47:46 -07:00
Tony Tam
c5ccc0a908
update to swagger 2.0
2014-08-29 09:47:17 -07:00
Tony Tam
dbf04a9563
updated scripts
2014-08-27 01:09:28 -07:00
Tony Tam
d1603ba25e
updated scalatest
2014-08-27 01:04:02 -07:00
Tony Tam
d4ce57bd15
added bigdecimal support
2014-08-27 01:03:49 -07:00
Tony Tam
5e56346dc9
updated scripts to use only assembly
2014-08-27 01:03:32 -07:00
Tony Tam
05db83a067
set to petstore
2014-08-27 00:17:45 -07:00
Tony Tam
707ee1c85b
set version to 2.10.4
2014-08-27 00:17:33 -07:00
Tony Tam
a54adb925f
added big decimal support
2014-08-27 00:16:12 -07:00
Tony Tam
8c53837802
updated scripts for assembly
2014-08-27 00:15:26 -07:00
Tony Tam
3625b89a15
updated to snapshot build
2014-08-26 16:53:52 -07:00
Tony Tam
2ed68c2df8
version 2.0.17
2014-08-26 16:52:26 -07:00
Tony Tam
db1915ec89
Merge pull request #252 from earldouglas/path-not-optional
...
Drop the 'optional' param for path params
2014-08-26 14:40:14 -07:00
James Earl Douglas
77e9ce5ede
Drop the 'optional' param for path params
2014-08-26 14:38:27 -07:00
Tony Tam
013c19eb36
Merge pull request #251 from earldouglas/not-so-required
...
Set param as 'required' iff required, else set as 'optional'
2014-08-26 14:33:00 -07:00
James Earl Douglas
61c04ddaf1
Set param as 'required' iff required, else set as 'optional'
2014-08-26 14:31:45 -07:00
Tony Tam
b4d361130c
Merge pull request #247 from xoom/issues/java_pom
...
Issues/java pom - remove scala dependencies from Java pom files
2014-08-25 23:05:04 -07:00
Tony Tam
8e7571c34f
Merge pull request #248 from xhh/patch-1
...
Fixes #242 - Ruby model syntax error
2014-08-25 23:03:45 -07:00
xhh
1ba42ef6cc
Fixes #242 - Ruby model syntax error
2014-08-26 09:18:54 +08:00
Rob Blair
fc77521d49
Simplify java sample poms.
...
* remove scala references from the java client pom template files.
* regenerate the petstore sample pom.xml, verify they can build properly.
2014-08-25 17:37:36 -07:00
Rob Blair
1522069281
Regenerate the java code before modifying templates
2014-08-25 17:35:44 -07:00
Tony Tam
a13f46e781
Merge pull request #245 from ganeshs/master
...
Added import mappings for java.util.Set and java.sql.Timestamp
2014-08-20 23:43:05 -07:00
Ganesh Subramanian
3ad1ecf153
Added import mapping for Timestamp
2014-08-21 12:11:19 +05:30
Ganesh Subramanian
6087181634
Added import mapping for Timestamp
2014-08-21 12:10:14 +05:30
Ganesh Subramanian
c09adc4539
Fix for issue #226
2014-08-21 12:01:44 +05:30
Tony Tam
a626dea181
Update api.mustache
2014-08-11 08:58:45 -07:00
Tony Tam
454ec4b438
fix for #235
2014-08-08 16:38:38 -04:00
Gerard Solé
4a64d602a0
Add plugin to build a jar with dependencies
2014-08-07 12:17:05 -07:00
Gerard Solé
f294656073
Edit line 76 to place pom.xml correctly
2014-08-07 11:28:08 -07:00
Ivan Porto Carrero
c7da910e68
remove sample files again
2014-08-05 10:56:20 -07:00
Ivan Porto Carrero
40d33693cf
add typesafe releases resolver, fixes #232
2014-08-05 10:43:28 -07:00
Tony Tam
13eaf2bf63
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-08-03 09:19:01 -07:00
Tony Tam
d4508ed112
updated resolvers
2014-08-03 09:16:30 -07:00
Tony Tam
c252e9f7c6
added sonatype as resolver
2014-08-03 09:12:16 -07:00
Tony Tam
6690b80b29
Update .travis.yml
2014-08-02 16:32:10 -07:00
Tony Tam
19bb97a725
updated travis to 2.10.4
2014-08-02 16:09:00 -07:00
Tony Tam
62ee62ebd3
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-08-02 16:04:55 -07:00
Tony Tam
87083034ee
Merge pull request #215 from JDiPierro/fix_java_generator_lists
...
Use config.processResponseClass to determine type of returnContainer
2014-07-24 11:48:19 -07:00
Tony Tam
d9de57da6f
Merge pull request #223 from darkcube/master
...
CSharp: Multipart form submission
2014-07-23 08:43:37 -04:00
Timothy Lusk
d0b0323925
CSharp: Implement multipart form submission
2014-07-22 17:17:54 -04:00
Tony Tam
f592414409
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-07-18 09:52:57 -06:00
Tony Tam
e1c8f58d28
added 2.10.4
2014-07-18 09:52:53 -06:00
Tony Tam
4870ed7e51
Merge pull request #220 from darkcube/master
...
CSharp Changes
2014-07-16 16:30:15 -06:00
Timothy Lusk
bbe48814b4
CSharp: Add optional api constructor argument to set the basePath
2014-07-15 15:41:57 -04:00
Timothy Lusk
3b6ffa4a1f
CSharp: Close the WebResponse if we throw an ApiException
2014-07-15 15:41:56 -04:00
Tony Tam
527c40b996
Merge pull request #211 from wcandillon/patch-1
...
Link back to the swagger-js-codegen project
2014-07-13 07:21:22 -07:00
Justin DiPierro
3aa2c86991
Output the resourcePath when no models are found rather than the basePath
2014-07-10 10:14:22 -04:00
Justin DiPierro
e2a20447df
Fixed comment in test
2014-07-10 10:02:18 -04:00
Tony Tam
5d42c8cc5f
moved to petstore
2014-07-04 10:19:48 -07:00
Tony Tam
256485ec5b
updated template
2014-07-04 10:19:28 -07:00
Tony Tam
7ab0394e76
added node.js instead of jetty
2014-07-04 10:19:09 -07:00
Tony Tam
89b04b2e10
formatting
2014-07-04 10:18:44 -07:00
Tony Tam
a019a438e0
changed to petstore sample
2014-07-04 10:08:54 -07:00
Justin DiPierro
9834059786
Fixed BasicScalaGeneratorTest to expect Some(List)
2014-07-03 11:32:37 -04:00
Justin DiPierro
550fade9e0
Codegen.apiToMap should use config.processResponseClass when setting the returnContainer property. Test passes now
2014-07-03 11:24:05 -04:00
Justin DiPierro
aa1b4fc0fb
Wrote failing test for Codegen
2014-07-03 11:23:07 -04:00
Tony Tam
5a659803a8
Merge pull request #212 from darkcube/master
...
Various csharp codegen fixes
2014-06-29 13:59:21 -07:00
Timothy Lusk
7bc7789e81
CSharp: Invoker should handle WebException and rethrow ApiException
2014-06-27 17:55:10 -04:00
Timothy Lusk
cf0721da73
CSharp: Use nullable primitive types to allow optional parameters
2014-06-27 16:10:45 -04:00
Timothy Lusk
dcbf4d1bfd
CSharp: Use the correct model package name
2014-06-27 16:01:24 -04:00
William Candillon
017b578502
Link back to the swagger-js-codegen project
2014-06-26 15:05:33 +02:00
Tony Tam
58bade3b01
Update README.md
2014-06-19 09:33:41 -07:00
Tony Tam
02631e674a
Merge pull request #207 from emmekappa/master
...
Fixing extensions and namespaces for csharp common files.
2014-06-17 10:53:17 -07:00
Michele Cantelli
5f5e534d05
CSharp: renaming the "packages" to follow the .NET style.
2014-06-17 16:22:04 +02:00
Michele Cantelli
51deeb478d
Fixing extensions for csharp common files.
2014-06-17 15:18:58 +02:00
Tony Tam
acff8229b3
Merge pull request #206 from xoom/issue/modelsFromStatus
...
Issue/models from status - utilize the responseModel, if present
2014-06-16 17:03:17 -07:00
Rob Blair
233555790a
Regenerate sample java files with example response status codes
...
* none of existing examples use the responseMessage.responseModel feature, but I have tested it.
* Didn't want to muck with sample json
* update the scripts used to generate both java versions.
* see https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#525-response-message-object
2014-06-16 12:59:53 -07:00
Rob Blair
d5ddac8e7e
Update java mustache to show error status codes and models in generated API, in comments.
...
* I wonder if there is some clever way to make exceptions based on the model thrown, and automatically fill them in with the parsed error models?
* Until then, it's comments, and roll your own.
2014-06-16 12:51:35 -07:00
Rob Blair
e8210cd5e3
allow list of models to be returned in errors
...
* for example, a list of validation errors with an exceptional status
2014-06-16 12:40:44 -07:00
Rob Blair
2dc6b485e0
Generate classes from the models declared in 'responseModel'
...
* ResponseMessage has new constructor parameter, an optional string for responseModel
* Make sure we add it to list of models
* make sure the responseModel is part of the error list available to mustache
2014-06-16 12:34:44 -07:00
Tony Tam
11bede2b7d
improved validation messages
2014-06-12 00:45:27 -07:00
Tony Tam
ed51dd9dea
added files
2014-06-11 06:41:59 -07:00
Tony Tam
218f514005
updated node sample
2014-06-11 06:41:31 -07:00
Tony Tam
209e8e066c
Merge pull request #201 from xoom/issue/JavaSafeApiName
...
coerce API names for classesand files to valid Java names
2014-06-11 06:12:55 -07:00
Tony Tam
7d05b01a56
Merge pull request #202 from gonimar/patch-1
...
Unused local variable 'json_data'.
2014-06-11 06:12:36 -07:00
Tony Tam
64f6bedc37
Merge branch 'repackage'
2014-06-11 06:12:15 -07:00
Tony Tam
4ae4aa98bb
formatting
2014-06-11 06:11:45 -07:00
Tony Tam
db8bda087b
made nickname optional
2014-06-11 06:11:31 -07:00
Tony Tam
06eb52118e
updated to 2.3.0 release
2014-06-11 06:03:44 -07:00
Tony Tam
63be7d0069
removed println
2014-06-11 05:50:44 -07:00
Tony Tam
c7468125fa
added clientName
2014-06-10 20:37:36 -07:00
Tony Tam
7b3d8bf799
added file upload support
2014-06-10 20:37:24 -07:00
Tony Tam
c4913fe583
wrapped in apiInfo
2014-06-10 20:37:08 -07:00
Tony Tam
d3339cb087
fixed string default
2014-06-10 20:36:58 -07:00
Tony Tam
ba4fda12dc
added additional params
2014-06-10 20:36:29 -07:00
Tony Tam
7a6d6d27ff
enabled logging
2014-06-10 20:36:10 -07:00
Tony Tam
bcabb03225
added support for nickname generation
2014-06-10 20:05:19 -07:00
Tony Tam
a404823c54
updated copyright
2014-06-10 17:23:35 -07:00
Tony Tam
96ea70e3c9
added className key
2014-06-10 17:23:20 -07:00
Tony Tam
9a01331ddd
updated copyright
2014-06-10 16:58:43 -07:00
Tony Tam
3bfa468ed1
fixed filemap
2014-06-10 16:57:39 -07:00
Tony Tam
fdf8572535
updated copyright
2014-06-10 16:57:12 -07:00
Tony Tam
cff8b1552d
updated copyright
2014-06-10 16:57:01 -07:00
Tony Tam
e73dd0a7c4
updated copyrights
2014-06-10 16:56:06 -07:00
Tony Tam
9c4c2dfd37
updated copyrights
2014-06-10 16:55:57 -07:00
Tony Tam
2f8355c953
regenerated client
2014-06-10 16:55:34 -07:00
Tony Tam
3f480482b6
regenerated client
2014-06-10 16:55:17 -07:00
Tony Tam
8274196999
regenerated client
2014-06-10 16:55:13 -07:00
Tony Tam
4e8c71f754
regenerated client
2014-06-10 16:54:48 -07:00
Tony Tam
57e7b41e9c
regenerated client
2014-06-10 16:52:16 -07:00
Tony Tam
58d9894f1f
regenerated client
2014-06-10 16:51:41 -07:00
Tony Tam
4b4d4d32cd
regenerated client
2014-06-10 16:51:36 -07:00
Tony Tam
6a2ea9f614
regenerated client
2014-06-10 16:51:10 -07:00
Tony Tam
0d6754e167
regenerated client
2014-06-10 16:50:17 -07:00
Tony Tam
cb5c2a9708
regenerated client
2014-06-10 16:48:27 -07:00
Tony Tam
dc8ad7edf5
updated client
2014-06-10 16:48:05 -07:00
Tony Tam
52bc82149f
file rename
2014-06-10 16:34:40 -07:00
Tony Tam
f53b5e27e0
updated scalatra version, templates for files, forms
2014-06-10 15:51:15 -07:00
Tony Tam
ce5be3452c
added patch class
2014-06-10 15:50:49 -07:00
Tony Tam
ce14c225e5
added patch
2014-06-10 10:36:46 -07:00
Tony Tam
b78721826e
regenerated client
2014-06-10 10:36:13 -07:00
Tony Tam
85113df113
regenerated client
2014-06-10 08:41:44 -07:00
Tony Tam
607b56cb87
removed println
2014-06-10 08:40:19 -07:00
Tony Tam
2dbf8b7d41
regenerated
2014-06-10 08:40:03 -07:00
Tony Tam
7d4c10043d
updated client
2014-06-10 08:22:40 -07:00
Tony Tam
64604124c9
added array support
2014-06-10 08:22:08 -07:00
Tony Tam
50f20ad836
updated templates
2014-06-10 08:21:51 -07:00
Tony Tam
ac40283501
updated samples
2014-06-10 08:01:53 -07:00
Sergey Gonimar
e03d4fc1a5
Unused local variable 'json_data'.
...
The value of the variable is not used anywhere.
2014-06-10 19:25:00 +06:00
Rob Blair
05e9443db5
coerce API names of class and file valid Java names
...
* Swagger allows names of apis to include characters like '-' Java does not like that
* use same replace strings as used in toVarName
2014-06-09 17:04:57 -07:00
Tony Tam
1250cc758f
updated version
2014-06-09 16:34:42 -07:00
Tony Tam
a18784da6c
updated file maps
2014-06-09 15:05:23 -07:00
Tony Tam
c87d637edd
regenerated
2014-06-06 00:27:40 -07:00
Tony Tam
bf4a4e5296
fixed imports, nesting
2014-06-06 00:27:15 -07:00
Tony Tam
4f7b80dad2
added debug, fixed headers
2014-06-05 22:49:09 -07:00
Tony Tam
8a2f9bc7bb
compatibility
2014-06-05 20:08:59 -07:00
Tony Tam
b9806c183b
fixed case
2014-06-05 20:08:37 -07:00
Tony Tam
5aa4c4c999
made snapshot
2014-05-31 16:04:19 -07:00
Tony Tam
424cfac80f
updated config
2014-05-30 16:27:54 -07:00
Ivan Porto Carrero
715913f3b4
Update slightly add some test files
2014-05-30 15:17:53 -07:00
Tony Tam
1c2c4fdcd3
removed function override
2014-05-30 15:03:10 -07:00
Ivan Porto Carrero
2ea6c2a3a7
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-05-30 14:25:57 -07:00
Tony Tam
d91da857a0
removed unused code
2014-05-30 09:59:27 -07:00
Tony Tam
31e65969b3
removed printlns, cruft
2014-05-30 07:53:27 -07:00
Tony Tam
df250bc056
fixed model mapping, refactoring the processing of apiMap and modelMap so it's executed just once
2014-05-30 07:29:19 -07:00
Tony Tam
1569274684
fixed package
2014-05-20 00:14:01 -07:00
Tony Tam
6d8f751da4
added model package
2014-05-19 23:23:23 -07:00
Tony Tam
c2dd00a4ab
fixed return type
2014-05-19 15:08:44 -07:00
Tony Tam
9e6ae6eef8
added opts for input
2014-05-15 08:51:41 -04:00
Tony Tam
58b985ba02
moved packages to address collisions with swagger-core per #145
2014-05-14 18:23:32 -04:00
Tony Tam
b4f3143c8c
Merge pull request #159 from yanoosh/php-fix-sanitize
...
PHP - Improved/fixed serialization and deserialize.
2014-05-01 20:31:13 -07:00
Tony Tam
84ad6b5d50
rebuilt docs
2014-05-01 20:19:40 -07:00
Tony Tam
32c14af5ce
added resize
2014-05-01 20:18:23 -07:00
Tony Tam
46023c47f5
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-05-01 20:17:53 -07:00
Tony Tam
71212e5f68
reverted to artifactVersion
2014-05-01 20:16:46 -07:00
Tony Tam
6d1c34048c
fix for #176
2014-05-01 20:16:27 -07:00
Tony Tam
f67006057e
updated version
2014-05-01 20:14:41 -07:00
Tony Tam
e1e397a7b5
Merge pull request #179 from j-unior/scala-2.10
...
Added scala 2.10 support in generated maven profile.
2014-05-01 18:03:22 -07:00
Tony Tam
0f35799a77
fixed start script #188
2014-04-29 09:46:49 -07:00
Tony Tam
be44221d98
Merge pull request #187 from earldouglas/return-generated-files
...
Return files generated from BasicGenerator#generateClientWithoutExit
2014-04-24 16:06:12 -07:00
James Earl Douglas
94ad254a58
Return files generated from BasicGenerator#generateClientWithoutExit
2014-04-24 15:14:41 -07:00
James Earl Douglas
666a4be1f2
Return files generated from Codegen#writeSupportingClasses
2014-04-24 15:12:11 -07:00
James Earl Douglas
e542fbd0a2
De-duplicate code from Codegen#writeSupportingClasses
2014-04-24 15:07:45 -07:00
Pat
f4b2d13aa4
Update README.md
2014-04-09 10:15:08 -07:00
j-unior
abcae6da96
Added scala 2.10 support in generated maven profile. You can enable it with mvn install -P scala_2.10 on generated client
2014-04-01 16:56:08 +03:00
Tony Tam
1b9b3eaa8e
Merge pull request #175 from STEAMULO/master
...
Filename misprint for Android generation
2014-03-25 11:33:03 -07:00
aansel
0babc4f192
Filename misprint for Android generation
2014-03-25 18:44:05 +01:00
webron
e51ffb37b4
Update README.md
2014-03-23 13:16:02 +02:00
Tony Tam
2fba96713c
Merge pull request #172 from giovannibotta/master
...
Minor change to map used when generating supporting files
2014-03-19 08:27:49 -07:00
giodude
dccf8edc25
Minor change to map used when generating supporting files.
2014-03-19 11:18:23 -04:00
webron
d98aeac818
Create LICENSE
2014-03-19 16:08:55 +02:00
webron
62bfc4ea19
Update README.md
...
Updated license year.
2014-03-19 16:08:38 +02:00
Tony Tam
8d74029fba
Merge pull request #170 from hsanjuan/master
...
Issue #168 : Let runscala.sh run from everywhere without breaking
2014-03-18 18:54:28 -07:00
Hector Sanjuan
809cb5cf1f
Issue #168 : Let runscala.sh run from everywhere without breaking and correctly
...
setting the classpath
2014-03-17 16:21:36 +01:00
Tony Tam
a4196609c9
added friendly error message when SSL validation fails
2014-03-06 08:29:02 -08:00
Tony Tam
e7eedcf48d
removed printlns
2014-03-05 07:54:12 -08:00
Tony Tam
8bf042b153
updated sample with form param support
2014-03-05 07:54:03 -08:00
Tony Tam
8325a12faf
fixed hasMore
2014-03-04 20:05:16 -08:00
Tony Tam
03abccd8e8
fix for #154
2014-03-04 19:48:13 -08:00
Janusz Jablonski
19e79fedb2
Added backslash before DateTime object.
2014-03-03 00:40:45 +01:00
Tony Tam
71eacaa3b1
Merge pull request #160 from yanoosh/php-removed-escape
...
PHP - Removed escapeReservedWord method.
2014-03-02 13:30:08 -08:00
Janusz Jablonski
7cfa46d838
Removed escapeReservedWord method.
2014-03-02 18:31:35 +01:00
Janusz Jablonski
7989e78460
Improved/fixed serialization and deserialize.
2014-03-02 14:44:46 +01:00
Tony Tam
08466f615f
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-02-25 12:54:12 -08:00
Tony Tam
880d14990f
added patch support
2014-02-25 12:53:11 -08:00
Tony Tam
39ac8f6d46
added patch support
2014-02-25 12:52:49 -08:00
Tony Tam
685fc7066f
Update README.md
2014-02-22 07:21:13 -08:00
Tony Tam
127600e728
Update README.md
2014-02-21 17:29:22 -08:00
Tony Tam
d764328026
updated readme
2014-02-21 17:22:48 -08:00
Tony Tam
cae8296999
updated readme
2014-02-21 17:21:56 -08:00
Tony Tam
86efb71124
updated readme
2014-02-21 17:21:50 -08:00
Tony Tam
0899b08b8c
Merge branch 'master' of github.com:wordnik/swagger-codegen
2014-02-21 17:20:16 -08:00
Tony Tam
a770db9d3e
added readme
2014-02-21 17:20:06 -08:00
Tony Tam
87b5c43166
Merge pull request #158 from mkantor/objc-safe-var-names
...
Prevent ObjC generator from producing invalid var names.
2014-02-21 13:41:26 -08:00
Matt Kantor
d14ab2aeff
Prevent ObjC generator from producing invalid var names.
2014-02-21 13:35:13 -08:00
Ivan Porto Carrero
b39a609226
Merge branch 'master' of github.com:wordnik/swagger-codegen
2013-11-09 12:18:42 -08:00
Ivan Porto Carrero
d25f64cca0
change to return transpor client in async scala client
2013-11-09 12:18:20 -08:00