Commit Graph

8696 Commits

Author SHA1 Message Date
wing328
898ead17fe add tests for resttemplate-withXml in circleci 2017-07-11 17:02:44 +08:00
mobreza
5d32edd964 Java support for application/xml (#5962)
* WIP: CodegenProperty with XML

* WIP: CodegenModel XML bits

* WIP: Jackson XML

* WIP: Java templating

* WIP: Java client withXml flag

* WIP: resttemplate work

* WIP: withXml only when Jackson is used

* WIP: Tabs to spaces

* WIP: java-petstore-resttemplate-withxml sample

* WIP: language: spring

* WIP: language "spring" using library "spring-boot" should include apiPackage in @ComponentScan to detect the API

* WIP: javax.xml for non-Jackson Java and enabled payload logging for jersey2

* WIP: updated java petstore samples

* WIP: JavaSpring with non-jackson XML

* WIP: bin/spring-all-pestore.sh
2017-07-11 17:01:51 +08:00
stkrwork
f2f303b2e8 [C++] [Restbed] Reworked Resource class names (#6017)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* Started work on restbed improvment

* - Updated samples
- Reworked Resource class names
- Added vendor extension for new formatted resource class names

* fix indention
2017-07-11 00:37:08 +08:00
Konstantin Simon Maria Möllers
d522236cec Symfony generator enhancements (#6016)
* Fix error in Symfony models #5985

* Parse Symfony params #5985

* Implement auth metods in Symfony #5985

* Make "get" to "is" in Symfony's booleans #5985

* Use `camelize` instead of `initialCaps` in Symfony #5985

* Use File.separator instead of "/" in PHP/Symfony #5985

* Improve README generation for Symfony #5985

* Create an options test for Symfony #5985
2017-07-11 00:34:43 +08:00
wing328
ca988039cc Merge branch 'phiz71-feature/java-vert.x' 2017-07-10 23:52:45 +08:00
wing328
929627722a make java vertx shell scripts executable 2017-07-10 23:52:10 +08:00
wing328
d56b7ae037 Merge branch 'feature/java-vert.x' of https://github.com/phiz71/swagger-codegen into phiz71-feature/java-vert.x 2017-07-10 23:41:47 +08:00
mmosemmle
455e53b2ae [CPP] Fix cpp escape issue part of #5949 (#5952)
* Fix cpp escape issue.

* whitespace.
2017-07-09 16:34:57 +08:00
serezha93
140826b47f minor fixes (#5981)
* Update configuration.mustache

added return tag in PHPDoc

* made sanitizeFilename as static method

* updated petstore
2017-07-09 16:23:18 +08:00
wing328
5f44486238 add swift4 to README.md 2017-07-09 01:36:12 +08:00
ehyche
2ce3365eaf Add a swift4 client generator (#6010)
* Add a swift4 client generator

* Updates per review comments:

- Changed Alamofire dependency from 4.0 to 4.5
- Added "Codable", "Encodable", and "Decodable" to list of reserved words in generator
- Ran "pod update" in default, promisekit, and rxswift samples test projects
2017-07-09 01:33:52 +08:00
Frank Fleige
0274ba79ad #6012 - fixed mustache template for lumen server (#6013) 2017-07-09 00:51:47 +08:00
wing328
b7ffad9a21 update 2.3.0 circleci badge 2017-07-08 22:25:04 +08:00
Florent Chamfroy
d044498de4 adding Vert.X Codegen
Adding the possibility to generate java Vert.X servers.
It uses Vertx-Swagger-Router project.
It can generate an Async callback version or a Rx version.
2017-07-08 16:10:07 +02:00
marcotta
7ae4146a2b [objc] Initialize default BOOL with @(YES)/@(NO). (#5982) (#5999)
This will prevent submitting integer numbers instead of booleans
when posting objects to the REST API.
2017-07-07 17:16:49 +08:00
Joel Reymont
4b9d0e6a10 Fix Erlang auth method code generation (#5994)
Broken code is generated when no authentication methods are supplied
in the API schema. Fix this by providing code to fall back to.
2017-07-07 15:14:06 +08:00
Konstantin Simon Maria Möllers
c29e16f36f Add Sponsoo to list of companies using swagger codegen (#5988) 2017-07-05 21:33:28 +08:00
wing328
18e7c6a712 add php symfony 2017-07-05 16:58:21 +08:00
Konstantin Simon Maria Möllers
8e62ef7b8c [PHP][Symfony] Add a Symfony server generator #3486 (#5973) 2017-07-05 16:43:56 +08:00
Jan
2774d47a2b fix: es6 style of Array inheritance to fix transpiler error (#5977)
* fix: es6 style of Array inheritance to fix transpiler error

* fix: rebuild of promise-es6 petstore samples with fixed mustache
style: added space between classname and bracket

* style: rebuild javascript-all to reflect style changes in mustache
2017-07-05 01:04:07 +08:00
wing328
f756bd7a72 add style guide for C++ tizen 2017-07-04 19:09:18 +08:00
Julien Fouilhé
c2b575607c fix(swift3): add en_US_POSIX locale to date formatters (#5602) 2017-07-04 11:21:25 +08:00
wing328
1187950df4 update links to snapshot 2017-07-03 22:39:31 +08:00
wing328
44d112e9c6 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-07-03 21:25:39 +08:00
wing328
bec6eaa9dc minor fix to output path in javascript-es6-petstore.bat 2017-07-03 21:25:16 +08:00
wing328
ecf924e78f [Spring] Adds feature useOptional (#5968)
* Adds Valid annotation for request body (#4847)

If useBeanValidation is active, this change will add Valid annotation to ReqeustBody

* Adds generated samples for bean vaildation in spring boot (#4847)

* Adds feature option (#3819)

When you enable the feature useOptional the JavaSpring generator will use type Optional for non required parameters.

* Adds generated sample for #3819

* Adds generated sample for #3819

* Reverts commit for bean validation

* Adds generated sample for #3819

* Reverts commit for bean validation

* Fix alignment

* update spring samples

* update pom.xml to include spring use optional samples

* update artifactId to "spring-boot-beanvalidation"

* rpelace tab with 4-space

* check mvn task result
2017-07-03 17:40:00 +08:00
wing328
e50a4cca36 update ts angular2 petstore 2017-07-02 22:39:18 +08:00
Paŭlo Ebermann
5de6f7b86e Change all sample-generators for typescript-angular2-* to use the YAML version. (#5859) 2017-07-02 22:32:58 +08:00
mmosemmle
94814176b7 [CPP] Fixing some more ordering of checks (#5951)
* Fix more ordering of checks.

* Update cpp petstores.
2017-07-02 22:30:42 +08:00
wing328
f3d83eb925 update ruby gem dependency version (#5964) 2017-07-02 21:46:04 +08:00
wing328
304a7ae19a fix regex escape forward slash (#5963) 2017-07-02 20:51:45 +08:00
wing328
011c6fd01c postpone release date to Jul/Aug 2017 2017-07-01 22:43:34 +08:00
wing328
e7d6bf5d04 add links to snapshot versions 2017-07-01 22:40:53 +08:00
wing328
7fa53773fc mvn deploy for master only (#5946) 2017-07-01 15:16:26 +08:00
stkrwork
fbd888d298 [CONFIG] [APACHE] Fix for Java7 issue (#5960)
* - Added Restbed Generator

* - Added Json processing functions to model
- Removed unnused code from restbed codegen class
- Added response header processing to api template

* Changed it to respect alphabetical order

* Made the string joining java 7 compatible

* Added samples

* fix java7 issue with apache
2017-06-30 23:58:31 +08:00
wing328
b2366670d7 update ts fetch petstore samples 2017-06-29 23:06:25 +08:00
Gavin Sitthiampornphan
d210236040 fix(ts-fetch): preserve available headers (#5650) 2017-06-29 22:47:03 +08:00
rubms
6fa4853fe7 [NancyFx] Fixed bug in the generation of enum models that were generated with compilation errors (#5910) (#5913)
* NancyFx - Fixed bug in the generation of enum types in the NancyFx server, which cause enums to be generated as general classes, without the enum values and with compilation errors (#5910)

* NancyFx - Changes in the nancyfx sample after the updates in the nancyfx model.mustache template. (#5910)
2017-06-29 22:35:41 +08:00
Juan Pablo Marzetti
64df75d8b6 Docs and examples need model name to be passed as baseType (#5944) 2017-06-29 22:34:12 +08:00
Dennis Kieselhorst
407d728908 updated Spring and Spring Boot dependencies (#5948) 2017-06-29 22:28:08 +08:00
wing328
846ee63f38 [C#] Update C# API client dependencies to the latest version (#5935)
* update C# client dependency

* add back csproj file for c# petstore

* update test result

* downgrade version 1.51.3

* add logo as embedded resource
2017-06-29 21:37:24 +08:00
Dennis Kieselhorst
7a9981b350 updated swagger-ui dependency (#5945) 2017-06-29 16:12:33 +08:00
wing328
b18e003d12 update petstore script usage 2017-06-29 15:32:10 +08:00
wing328
2d058aa925 add info message for mvn clean deploy 2017-06-29 14:59:46 +08:00
wing328
9f2d800435 Merge branch 'better_ci_conflicts' 2017-06-29 14:23:01 +08:00
wing328
8015744212 update java petstore samples 2017-06-29 13:53:37 +08:00
Jordan Zimmerman
b2efb70410 Support a true "java8" option (#5864)
* Closes #5863

The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.

* updated samples

* fixed tests for new CLI java8

* regenerated samples after master merge

* oops - left in an end tag after master merge

* rerun checks

* rerun checks
2017-06-29 13:23:44 +08:00
wing328
7b80557363 fix file not found 2017-06-29 13:22:26 +08:00
wing328
bced355191 better detection for unresolved merge conflicts 2017-06-29 13:01:40 +08:00
Dennis Kieselhorst
a64c7d7986 updated jackson-version (#5943) 2017-06-29 10:56:12 +08:00