Commit Graph

4051 Commits

Author SHA1 Message Date
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
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
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
4fe0b3350c Merge pull request #3576 from ModelSolv/issue-3572
Issue 3572 Remove duplicate CLI Options
2016-08-12 14:39:58 +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
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
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
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
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
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
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
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
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
Tony Tam
c4f3cb1d9e updated dev versions 2016-08-07 23:03:44 +02:00
Tony Tam
be3a49183e Merge branch 'master' into release-prepare 2016-08-07 18:41:16 +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
wing328
b547d56d29 add enum test case to php generator (java) 2016-08-07 06:39:56 +08: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
wing328
148a842f3b fix #2538 (#3535) 2016-08-05 18:09:00 +08: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
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
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