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
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
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
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
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
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
delenius
8a8e9432e1
Generate type annotations in JS model constructors
...
Fixes #3207
2016-06-29 13:53:33 -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
wing328
d79274d548
better code injection handling for c#
2016-06-29 22:52:12 +08:00
wing328
f89333c8c3
better code injection handling for javascript closure client
2016-06-29 22:07:14 +08:00
wing328
aec2f4e27c
better code injection handling for js
2016-06-29 21:18:35 +08:00
wing328
fd72409e3b
better default value for enum variable declaration
2016-06-29 17:30:33 +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
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
9e216c0ca2
better code injection handling for ruby
2016-06-28 17:36:00 +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
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
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
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
e26416b351
Merge pull request #3073 from bitcloud/fix-datetime-example
...
fix date format in example generator
2016-06-27 14:39:03 +08:00
wing328
74239c422b
add enum class support, merged test cases for php
2016-06-26 17:41:29 +08:00
Scott Davis
80666394f6
CVE-2016-5641
2016-06-23 06:06:21 -07: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
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
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