12045 Commits

Author SHA1 Message Date
Erik Timmers
a5cf27b60e Fix Petstore example for Elm (#96)
* Add support for `additionalProperties` in operations;
* Add reserved module names.
2018-05-18 19:14:55 +08:00
Jérémie Bresson
8c541a247b Update Docker documentation (#97)
* Update migration-from-swagger-codegen.md

* Update README.md

Change order
2018-05-18 19:14:15 +08:00
Victor Orlovsky
3b9a2a7c36 CaseFormatLambda has been added, params for Rest-assured client has been refactored (#91) 2018-05-18 12:49:34 +02:00
Jérémie Bresson
e55ba567a9
Update integration.md
Fix url for "openapi-generator-maven-plugin"
2018-05-18 07:18:07 +02:00
Fabrizio Ferrai
d7e374504f [Clojure] Add util method to set the api-context globally (#93) 2018-05-18 11:22:02 +08:00
Antoine Reilles
d890d733f8 [JaxRS-Java] issue with implFolder on windows, and required fields generation for containers (#88)
* Fix implFolder issue with jaxrs-cxf-cdi generator

This fix is for the issue:
https://github.com/swagger-api/swagger-codegen/issues/8113

When using jaxrs-cxf-cdi and other JaxRS generators, the implFolder
config is not honored by hte generator on windows.

* jaxrs-cxf-cdi: containers with no default init

Change similar to
https://github.com/swagger-api/swagger-codegen/pull/5363/files for
jax-rs-cdi generator.
When a property that is a contained is not declared as required, it is
initialized to `null`, and not to the empty container.
This makes apio mich more easy to use, since one can differentiate when
an input list in json has been set to the empty array or simply not set.
2018-05-17 19:28:05 +02:00
Christophe Bornet
4889103621 Set parameters allowableValues dynamically (#65) 2018-05-18 00:53:01 +08:00
Jérémie Bresson
2821f18b95 Meta: set version for "build-helper-maven-plugin" (#89)
* Set "build-helper-maven-plugin" in template

* Run bin/meta-codegen.sh
2018-05-17 23:21:32 +08:00
Jérémie Bresson
3ffaaa6505 Fix javadoc issues in "openapi-generator" module (#84) 2018-05-17 22:01:39 +08:00
Christophe Bornet
82d9e935e9 Add CORS configuration (#71) 2018-05-17 21:55:51 +08:00
Erik Timmers
c522927d58 Fix Elm generator for polymorphism (#78) 2018-05-17 19:04:52 +08:00
Jon Schoning
34db79b9ba [haskell-http-client] update dependency versions + readme (#81) 2018-05-17 18:40:58 +08:00
Jérémie Bresson
3a1922bc94
Fix version for "spring-boot-maven-plugin" (#85)
Add `spring-boot-version` in the POM.
2018-05-17 11:28:14 +02:00
Jérémie Bresson
85090f5068
Revert pull request #45 (#82)
Reverts:
Consider minLength, maxLength and pattern in referenced schema (#45)
This reverts commit 6b8079808b0d1d730324caf26489030a0cd960bd.
2018-05-17 09:05:00 +02:00
Thibault Duperron
752b36e660 Sanitize enumeration name to add underscore when it starts with digits (#77) 2018-05-16 21:51:55 -04:00
William Cheng
b5a0d173d2
Revise the usage of OpenAPI Generator online (docker image) (#73)
* revise openapi generator online image usage

* remove -o from command
2018-05-17 00:09:48 +08:00
William Cheng
d93bf4e53d
add links to blog posts (#72) 2018-05-16 23:07:42 +08:00
Ben Mordue
0d82971b0c Use maven batch-mode (#70) 2018-05-16 21:39:52 +08:00
William Cheng
e58dc2c77c Fix COPY in Dockerfile (#64)
* fix COPY in docker fiile
2018-05-16 08:35:04 -04:00
Kaito Watanabe
c30fb3ff0b Remove examples comment from swift3 and swift4 client (#61) 2018-05-16 17:58:36 +08:00
William Cheng
9ef850f916
Better badge description (#62) 2018-05-16 17:53:16 +08:00
Christophe Bornet
e3814f51d8 Improvements to online codegen (#55)
* Change openapi-online context path

* Fix openAPI generated spec of openapi-online
2018-05-16 16:26:01 +08:00
Jérémie Bresson
6b8079808b
Consider minLength, maxLength and pattern in referenced schema (#45) 2018-05-16 09:19:16 +02:00
William Cheng
9d7feaaeba
Fix online generator (docker push) (#58)
* test online generator fix

* copy a single file in dockerfile

* update docker push to master branch only

* uncomment mvn verify
2018-05-16 14:56:19 +08:00
Jim Schubert
9a8183ab05 [aspnetcore] Fix openapi.json location rename (#56)
Swashbuckle generation was missing the configuration to rename from
default swagger.json to openapi.json (expected by change in SwaggerUI's
configuration for the endpoint).

This generates to the appropriate location and updates the sample to
load the Swagger UI properly on run.
2018-05-16 11:16:55 +08:00
Matthias Baer
de5260a7ce Update the aspnetcore generation (#53)
This change resolves an issue I had with opening the aspnetcore Solution (Visual Studio could not load the project). The *.sln file contained an old GUID for ASP.NET 5.
Also removed the obsolete NuGet.Config file and updated the package references to the newest versions.
2018-05-15 21:41:44 -04:00
William Cheng
7c5dfbfa01
Minor improvements to OpenAPI Generator Online (#54)
* add copyright note, dockerfile

* update online generator doc
2018-05-16 02:11:40 +08:00
Christophe Bornet
8dd46a3fb9 Move online gen from jersey to spring boot (#44) 2018-05-16 00:57:44 +08:00
William Cheng
803821e210
Fix an issue with example generator when array is too large (#46)
* fix issue with example generator when array is too large

* reformat code
2018-05-15 23:08:37 +08:00
Ricardo Cardona Ramirez
70e9e2fb7e Included @ricardona to founding members. (#48) 2018-05-15 22:44:36 +08:00
Gustavo Paz
cd1fe3ff45 Included @gustavoapaz to founding members. (#47) 2018-05-15 22:16:49 +08:00
Jérémie Bresson
673f2bc469
Add CodegenProperty.nameInSnakeCase (#42) 2018-05-15 13:17:04 +02:00
William Cheng
f0234b8ab4
Test Go petstore client in Travis CI (#41)
* test go in travis

* test go in shippable

* upgrade stack version

* fix shippable badge

* show stack version

* install go

* set go path

* install go 1.10

* remove go installation

* remove go test

* install haskell in travis

* reenable caching in appveyor

* comment out perl test
2018-05-15 14:34:53 +08:00
William Cheng
7d9fb9f51e
Add CI test for Elm in travis (#40)
* test elm in travis

* install elm
2018-05-15 09:58:37 +08:00
William Cheng
67ebe17dd6
Fix isPrimitiveType flag for array of form parameters (#38)
* fix isprimitivetype for array of form parameters

* setup snapshot deployment
2018-05-14 23:28:03 +08:00
Jérémie Bresson
10ac4024da
Code clean-up: remove field declaration hiding existing fields (#35) 2018-05-14 16:07:29 +02:00
William Cheng
cc2941740d
add more founding team members (#37) 2018-05-14 16:55:31 +08:00
William Cheng
4f88c1bc41
Push images to DockerHub (#32)
* test docker push

* test openapi-generator-online push

* fix environment variable

* remove maven central for the time being

* only push openapi-generator-cli

* skip mvn test

* uncomment mvn install

* fix echo

* fix openapi-generator-online docker push

* better password passing

* reenable mvn verify, only push to docker for master
2018-05-14 10:53:27 +08:00
William Cheng
a1ba198e47
Minor enhancement to the README (#31)
* fix ci status badge in readme

* revise readme

* fix badge to circleci

* remove maven central for the time being

* fix travis badge

* update travis badge image url

* fix typo in docker hub url
2018-05-14 10:48:35 +08:00
The Gitter Badger
f1dae8b39f Add Gitter badge (#29) 2018-05-13 15:41:00 -04:00
Jérémie Bresson
4d7fc046f3
[JaxRS] Add "validation-api" dependency in jetty (#30)
Fix #28 

* Add "javax.validation:validation-api" dependency in jetty
* Update JaxRS and Spring samples
2018-05-13 18:12:01 +02:00
Jérémie Bresson
ab9c4b5a61 Code clean-up: Add own private static final LOGGER in each class (#26) 2018-05-13 09:42:33 -04:00
Jérémie Bresson
bf7e4e7df7 Java gson: add @SerializedName value as constant (#22)
* Java gson: add @SerializedName value as constant

Fix #21

* Run bin/java-petstore-all.sh
2018-05-13 19:58:46 +08:00
Jérémie Bresson
41b0ff351b Code clean-up: remove DefaultCodegen#getSimpleRef(String) (#19)
Use ModelUtils#getSimpleRef(String) instead
2018-05-13 15:25:45 +08:00
William Cheng
737e63976f
add unit tests to cover #5 (#18) 2018-05-13 15:24:25 +08:00
Jérémie Bresson
05a2f4b240 Fix NullPointerException in getSchemaType(Schema) (#14)
Fix #11
2018-05-13 15:23:48 +08:00
Jérémie Bresson
9fa9b115e3 Fix NullPointerException in getUnusedSchemas(OpenAPI) (#10)
fix #9
2018-05-13 15:22:01 +08:00
William Cheng
23ad9f3937 Minor update to readme (#4) 2018-05-13 06:27:27 +02:00
Jim Schubert
52322c47c9 [finch] Allow finch server to compile for CI checks (#7)
Previous error handling implementation had types returning
Either[CommonError, UserType], but implemented with the scala shortcut
??? which throws an exception instead. This causes compilation to fail
with a message that the expected CommonError is of type Any. This is
often fixable with generic upper bounds constraints, but this is
overkill for a placeholder implementation. Returning a temporary 'TODO'
type solves the compile error, and should allow CI to check for valid
compilation on changes.

Included in this is also a fix to support optional query parameter
types. The spec used to generate the finch server has optional query
parameters, but the version of finch in the template doesn't support
options on query parameters. Finch does, however, aggregate everything
(headers, query string, path parameters, etc) under "param" with
"paramOption" for those which are optional types.
2018-05-13 11:07:14 +08:00
William Cheng
d80e295852
Fix JS test using baseName in default value (#5)
* fix js test using baseName in default value

* re-enable JS test
2018-05-13 10:19:16 +08:00