Commit Graph

3327 Commits

Author SHA1 Message Date
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
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
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
Kristof Vrolijkx
816ba6fb39 Code review remarks 2016-05-18 08:42:37 +02: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
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
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
cbornet
596a076077 fix wrong method call 2016-05-17 10:35:37 +02: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
Aditya Kajla
5633fdfb3d Java: Add basic junit test templates for api clients 2016-05-16 17:55:29 -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
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
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
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
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
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
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
cda6bc380e update android volley dependencies, add source and target in pom.xml 2016-05-15 17:06:46 +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
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
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
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
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
492dbcb572 added travis yml to code gen 2016-05-13 13:29:51 -07: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
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
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
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
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
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
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
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
Mikolaj Przybysz
329d22ec00 Revert "Fixing php sdk composer project path"
This reverts commit 4bbc911664.
2016-05-12 14:29:00 +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
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