Mads Føhns
3beeb4e777
#126 : Not-required properties now shows as nullable ( #129 )
2018-05-28 21:33:55 +08:00
Geoff Brown
9b8602311e
[TypeScript] Make OpenAPI Generator serialize subclasses properly ( #102 )
...
* Make SwaggerCodeGen serialize subclasses properly (PHNX-859) (#1 )
Motivation
----
Previously, when serializing as subclass of a property, generated swagger clients would only serialize properties of the parent class causing some values to not be pass through
Modifications
----
Before serializing attributes of a given type, we check to see if there is a specific type to be serialized so that we don't miss any properties.
* Fix improper whitespace in mustache template (PHNX-859) (#2 )
Motivation
----
OpenAPI Generator upstream requested whitespace fixes (from tabs to 4 spaces)
Modifications
----
Fixed whitespace
2018-05-28 17:22:14 +08:00
Christophe Bornet
71b5de3ed5
Do not set contextPath for spring-boot ( #104 )
2018-05-28 16:29:09 +08:00
Jérémie Bresson
1a4e5a4e5f
Java client: Add constants for libraries ( #163 )
2018-05-28 09:55:09 +02:00
Jérémie Bresson
0ece706a46
Remove CodegenConfig.fromModel(String, Schema) method ( #90 )
2018-05-26 20:18:16 +02:00
Jérémie Bresson
64f2bea37f
Fix getReferenced...() methods in ModelUtils ( #157 )
...
* New: methods return the element containing the $ref if the referenced
element is not found
* Fix null check in getApiResponse(OpenAPI, String)
* Fix null check in getParameter(OpenAPI, String)
2018-05-26 15:16:39 +02:00
delenius
7db0201a89
Fix NPEs in Java generator ( #154 )
2018-05-26 17:42:02 +08:00
delenius
4d7ff8cfbd
JavaDoc fixes for Java/RESTEasy client ( #151 )
2018-05-26 06:34:38 +02:00
Jérémie Bresson
c53f61c74e
Fix javadoc in CodegenProperty ( #143 )
2018-05-24 09:36:14 -07:00
Jérémie Bresson
072ce070b2
resteasy: fix outer enum case ( #139 )
2018-05-24 09:35:26 -07:00
topce
4bc5ffe867
[typescript-angular] add provided in support ( #120 )
...
* add provided in root support
* fix unit test to pass test generation of new options
* set default for providedInRoot to be true
2018-05-24 09:20:16 -07:00
Jim Schubert
22e94fb4d8
Fixes javadoc warnings in GenApiDelegate ( #140 )
2018-05-24 17:25:38 +02:00
Tomasz Prus
7184f1ec68
[python] asyncio supports _preload_content; remove unsed imports ( #107 )
...
* chore: update python samples
* feat: python/asyncio support for _preload_content
* feat: remove unused imports from python clients; fix discriminator
2018-05-24 08:10:07 -07:00
Jérémie Bresson
76b7307a6e
DefaultGenerator: ignore only form param schemas ( #74 )
...
* Rewrite ModelUtils.getUnusedSchemas(OpenAPI)
* Add ModelUtils.getAllUnusedSchemas(OpenAPI)
* Add ModelUtils.getSchemasUsedOnlyInFormParam(OpenAPI)
2018-05-24 17:07:41 +02:00
Christophe Bornet
a3aabd3908
Create a default implementation of delegate if none could be autowired ( #92 )
2018-05-24 07:50:05 -07:00
Jérémie Bresson
3f81378d72
[java resteasy] fix string comparison ( #134 )
...
* Fix StringUtils.isEmpty(..)
* Update all JaxRS samples
2018-05-23 08:38:18 +02:00
Jim Schubert
27426f7b52
Cli generator name option, replaces 'language' options in CLI and Maven Plugin ( #57 )
2018-05-23 05:41:19 +02:00
Jérémie Bresson
b73ab0260e
jaxrs-cxf-cdi: fix outer enum ( #131 )
...
* jaxrs-cxf-cdi: fix model enum
* Fix script 'bin/jaxrs-cxf-cdi-petstore-server.sh'
See https://github.com/OpenAPITools/openapi-generator/pull/124
* Run 'bin/jaxrs-cxf-cdi-petstore-server.sh'
2018-05-22 17:55:19 -04:00
Matthias Baer
d9d6530161
[aspnetcore] Make the use of Swashbuckle optional ( #110 )
...
* Respect the sourceFolder option correctly
* Add an option to disable the use of Swashbuckle (useSwashbuckle)
2018-05-20 09:28:24 -04:00
Jérémie Bresson
cd4640dab6
DefaultGenerator: fix NullPointerException ( #109 )
2018-05-20 08:57:25 +02:00
Jérémie Bresson
495971c2c7
[Java] use html entities in javadoc of generated code ( #106 )
2018-05-20 08:55:56 +02:00
Jérémie Bresson
82ee8656fd
[java] Enum in array of array ( #66 )
2018-05-18 19:01:11 +02:00
Jérémie Bresson
a1ff502411
Rename datatype to dataType in CodegenProperty ( #69 )
2018-05-18 18:06:37 +02:00
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
Victor Orlovsky
3b9a2a7c36
CaseFormatLambda has been added, params for Rest-assured client has been refactored ( #91 )
2018-05-18 12:49:34 +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 6b8079808b .
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
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
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
Jérémie Bresson
673f2bc469
Add CodegenProperty.nameInSnakeCase ( #42 )
2018-05-15 13:17:04 +02: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
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