Commit Graph

9307 Commits

Author SHA1 Message Date
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