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
zhenjun115
ee15ef3579
a new pom.mustache for android api client using volley HTTP library;
2016-05-11 13:05:54 +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
Mikolaj Przybysz
82f1a1bce5
Added gitUserId and gitRepoId to php config-help
2016-05-10 20:05:31 +02:00
wing328
745e1aba32
fix broken links in php doc
2016-05-11 00:03:14 +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
wing328
4f28ed3cd3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-10 20:02:33 +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
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
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
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
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
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
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
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
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
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
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
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
Mateusz Mackowiak
fbd6a95799
[Objc] Generator supports binary and BiteArray and maps data to NSData
2016-05-08 12:54:12 +02: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
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
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
Scott Williams
fed22a1f72
Add regex support
2016-05-06 22:52:44 +01: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
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
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
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
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
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
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
3dccc7d2a1
Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer
2016-05-05 15:28:10 +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
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
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
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
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
a5b08a8ce7
fixed merge conflict
2016-05-03 10:16:47 -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
6b0b343b92
add option to support ES6
2016-05-03 16:42:02 +08: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
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
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
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
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
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
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
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
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
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
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
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
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
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
91a023569b
Update missing dependencies ApiInfoBuilder
2016-04-28 10:50:25 +02: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
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
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
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
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
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
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
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
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
f1d75f46cf
fix #2688
2016-04-23 16:49:52 +08:00