Commit Graph

9844 Commits

Author SHA1 Message Date
Greg Marzouka
7cc738aa7c [Scala] Fix async helper methods when body is optional (#7274)
* [Scala] Fix async helper methods when body is optional

Closes #7272

* Update petstore sample
2018-01-10 00:30:56 +08:00
Euan Kemp
26a665c771 [Rust] Recommend style based on 'rustfmt' defaults (#7335)
Rustfmt is widely accepted in the rust community. The actual style it
enforces is not completely stable, but running a reasonably recent
rustfmt and reading the short rfc-based style guide seems better than
nothing by a long shot.
2018-01-08 10:56:01 +08:00
ccozzolino
d9745962be [Java:vertx] Initialize router in init method and re-use router member to create S… (#7234)
* Initialize router in init method and re-use router member to create SwaggerRouter

* Added generated samples for 7320 fix

* Fixed alignment to 4 spaces for 7320 fix
2018-01-07 23:37:37 +08:00
Greg Marzouka
14e7158164 [Scala] Fix missing json4s import (#7271)
* [Scala] Fix missing json4s import

Closes #7270

* Update petstore sample
2018-01-07 22:50:30 +08:00
wing328
b7f4f3e058 Merge branch 'csharp-enum-cleanup' of https://github.com/jimschubert/swagger-codegen 2018-01-07 19:11:40 +08:00
wing328
f9105c8bdc deploy snapshot version 2.3.1 2018-01-07 18:47:24 +08:00
Stephane Carrez
362625bfa9 [Ada] Add Ada support for server code generator #6680 (#7256)
* Add Ada client petstore samples
- Add script to generate Ada client support with swagger-codegen
- Add files to build the Ada sample
- Add main program to use the generated client samples API
  and connect to the server to perform some operations

* Add some description for the samples

* Update the documentation to explain how to build, how to use the generated Ada client code

* Add server support for path parameters
- Update postProcessOperations to scan each path parameter and emit a x-path-index
  vendor attribute to tell the index of the path parameter

* Add and fix Ada server code package declaration
- fix declaration of operations
- generate a generic package that must be instantiated with the target server implementation
  and which provides the skeleton (deserialization and serialization of data)

* Implement the Ada server side operations
- extract body, query parameters, path parameters
- serialize the result
- register operations to the server according to the path/routes

* Update the code generation to generate server Ada implementation code

* Improvement of Ada server support: generate the swagger.json template file

* Define toModelName operation to the creation of a model identifier

* Add support for server permission generation
- collect the security scopes in postProcessAuthMethod() method and make sure
  these scopes have unique identifiers.  Some scopes correspond to URLs
  but others correspond to pseudo identifiers.

* Use the #lambdaAdaComment filter to indent correctly a multi-line description

* Fix model generation to support arrays

* Update the generated GNAT project file

* Refactoring and improvement of server code generation
- Change the server generated code to pass a Context_Type object
  to allow the server implementation to get/set headers in the request/response
  and control what is put in some responses
- Generate the security permissions based on the scopes that have been collected

* Server code generation improvement
- Fix generation of GNAT project
- Generate the intermediate Ada packages if necessary
- Generate the server main

* Ada server main template

* Ada server code improvement
- Add support to generate server permission verification
- Fix the GNAT project definition
- Templates for Ada intermediate packages

* Skeleton for the server side implementation

* Generate an empty Ada server implementation

* Templates for the Ada server implementation

* Add a README.md file and a GNAT config.gpr file

* New templates to document the generated Ada server

* Add server configuration file for the Ada server

* Fix the log message in the Ada server to report the correct URI to connect to

* Generate the Ada server configuration file

* Improvement of Ada code model to support nullable types

* Update the Ada server templates

* Refactor the Ada code generator
- separate the Ada client and Ada server code generators
- register the Ada server code generator under the name 'ada-server'
  keep 'ada' for the client Ada code generator
- moved the common Ada code operation supports to the AbstractAdaCodegen

* Improvement and cleanup of Ada client and server code
- new template for the client main program
- fix the GNAT project template for client or server programs
- remove unused options to better use the --model-package option

* Fix the GNAT project file name to use a lower case name
Fix the default GNAT config
Fix the headers of intermediate Ada package files

* Regenerate the model and client Ada files

* Update the Ada client sample to take into account the Nullable types

* Regenerate some files with Ada Swagger Codegen

* Ignore generation of petstore.gpr
2018-01-07 18:44:20 +08:00
William Cheng
743bc650ab add shijinkui to scala technical committee 2018-01-07 18:12:55 +08:00
Ben Wells
7479fc5361 Generate swagger yaml for go client (#7281) 2018-01-07 11:37:40 +08:00
wing328
bedd4c880e use openjdk7 in travis to ensure it works with jdk7 2018-01-07 11:04:48 +08:00
Kevin Brey
3af51d1b36 docs(readme): update link to contributing guid (#7332) 2018-01-07 10:49:38 +08:00
Jean-François Côté
3465f2918e Fix a regression bug that was introduce in a recent commit. Removed the tabs that were causing error in Play Framework (#7241) 2018-01-07 10:48:49 +08:00
Jean-François Côté
0a9c6f56c8 Fix issue #7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. (#7313) 2018-01-07 10:33:46 +08:00
Aaron McGinn
6c2a583bcd Java8 fix (#7260)
* [JavaPKMST-Server] Change Java 8 code to Java 7 to meet project specifications

* Revert "Update readme to Java 8"

This reverts commit 54ce4caafc.
2018-01-07 10:32:40 +08:00
wing328
9c68c00fa5 update to 2.3.1-SNAPSHOT 2018-01-07 09:53:01 +08:00
William Cheng
3c7505670b
fix typo, update 2017 to 2018 2018-01-04 21:56:20 +08:00
Jinkui Shi
8b9c8ad618 [Doc] add huawei cloud to companies list #7308 (#7309) 2018-01-04 18:10:01 +08:00
Louis
1b7f654f11 Adding Peatio opensource as reference project (#7267)
Peatio is an opensource project and all API client are generated using codegen.
2018-01-03 10:58:43 +08:00
joy8zhang
bf35e8bbf2 Update README.md (#7298)
Added Hootsuite under Companies/Projects using Swagger CodeGen
2018-01-03 10:38:33 +08:00
joy8zhang
07977462c8 Update README.md (#7299)
* Update README.md

Added new resource `http://code.hootsuite.com/using-protocol-buffer-to-generate-sdk-at-hoosuite/?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3By4ATz3SDRXyvXJJ14LQysQ%3D%3D` onto `Presentations/Videos/Tutorials/Books`

* Update README.md

Added extra space
2018-01-03 10:37:41 +08:00
William Cheng
8e551a76b4
add link to chinese ebook 2017-12-29 13:49:46 +08:00
William Cheng
54ce4caafc
Update readme to Java 8 2017-12-27 11:27:37 +08:00
William Cheng
0301950dcb
move bvwells to go tech comm 2017-12-24 00:49:03 +08:00
William Cheng
8ae11847d3
update current stable version in readme 2017-12-22 23:54:21 +08:00
wing328
2cf6b98049 skip push snapshot to avoid error 2017-12-22 23:09:41 +08:00
wing328
63f36ad864 comment out checkstyle in circleci pom.xml 2017-12-22 12:45:30 +08:00
wing328
57cfd99ef3 comment out check style plugin 2017-12-22 12:33:32 +08:00
wing328
21f8d5fb1b Revert "update version to 2.4.0-SNAPSHOT"
This reverts commit 8d2fa6b8ea.
2017-12-22 12:07:26 +08:00
wing328
e96fd89767 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-12-22 12:00:11 +08:00
wing328
e798c2b30e update ci config to install codegen locally 2017-12-22 11:59:40 +08:00
William Cheng
591b4f2217
update doc to 2.3.0 2017-12-22 11:48:47 +08:00
wing328
8d2fa6b8ea update version to 2.4.0-SNAPSHOT 2017-12-22 11:42:05 +08:00
wing328
ea9340e84d update version to 2.3.0 2017-12-22 10:45:02 +08:00
manuc66
a050907d1f fix net35 with JsonSubTypes (#7043)
* upgrade JsonSubTypes to 1.2.0

* update samples

* add SwaggerClientNet35

* re-generate

* fix the linux build script
2017-12-22 00:31:44 +08:00
William Cheng
587dc20e06
[Javascript] Set ES5 as default (#7239)
* default js client to es5

* update js option wording
2017-12-22 00:08:30 +08:00
Jean-François Côté
572bafe2a7 #7201: Take the modelPropertyNaming property into account again (#7202) 2017-12-21 18:28:30 +08:00
William Cheng
c1cbf32d17
add trenneman as elm creator 2017-12-21 16:37:53 +08:00
William Cheng
0924771fc3
add bvwells to go technical committee 2017-12-21 15:19:06 +08:00
Daniel
dbfe4ec119 Video "Building an API with Swagger" (#7237)
Added my video to building a Swagger API using the Swagger editor and NodeJS.
2017-12-21 15:17:32 +08:00
Ramzi Maalej
9dde8525ec [Akka-Scala] This is a fix to a bug introduced by this PR #7172 (#7228)
* Add missing import

* Update petstore app
2017-12-21 10:56:36 +08:00
Erik Timmers
d6539ba3c8 Add Elm language - BETA (#6947)
This is the initial Codegen for Elm 0.18.
Please try it out and provide feedback.

Not yet supported:

* path variables;
* additionalProperties;
* authentication;
* recursive types.
2017-12-20 22:26:46 +08:00
Jon Schoning
538f28e568 bump stack resolver to lts-10.0 (#7221) 2017-12-20 21:55:23 +08:00
Ben Wells
83fb107749 Create abstract go codegen base class (#7197)
Remove tabs
2017-12-19 23:41:02 +08:00
William Cheng
350a97095b
[Go] rename local variable "file" to "localVarFile" (#7214)
* comment out pkmst test for the time being

* rename file to localVarFile
2017-12-19 23:12:12 +08:00
sanshuman
8a45ac8426 added prokarma to the name of the company (#7215) 2017-12-19 23:04:39 +08:00
William Cheng
bd19111ff0
[Java][PKMST] Move resource folder (#7213)
* comment out pkmst test for the time being

* move pkmst resource folder
2017-12-19 22:16:16 +08:00
wing328
3782a878ab Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-12-19 21:36:02 +08:00
William Cheng
6946ee04f4
add java pkmst owner 2017-12-19 21:12:14 +08:00
wing328
d0afd25099 Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2017-12-19 21:07:23 +08:00
William Cheng
41aa80ada7
[TS][Fetch] Use unescaped media type value (#7210)
* comment out pkmst test for the time being

* use unescaped mediaType in TS fetch
2017-12-19 18:21:22 +08:00