Commit Graph

10787 Commits

Author SHA1 Message Date
UnklePig
7efda597cc Fix issue with useBeanValidation: 1. Default value not reflected in help (#160)
message.  2. When default is true, it can't be overridden to false.
2018-05-29 11:49:54 +08:00
William Cheng
917b6e0105
Add a section about body parameter name (#170) 2018-05-29 00:35:37 +08:00
William Cheng
0fadea9986
update php samples (#169) 2018-05-28 23:59:44 +08:00
Mads Føhns
3beeb4e777 #126: Not-required properties now shows as nullable (#129) 2018-05-28 21:33:55 +08:00
William Cheng
c30afdf775
add php server batch files (#165) 2018-05-28 19:35:04 +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
Akihito Nakano
37df59d6f0 [PHP] Adjust the names (script, sample folder, generator) to lang option (#159)
* Prefix slim-petstore-server.sh with 'php-'

* Prefix slim sample folder

* Prefix ze-ph-petstore-server.sh with 'php-'

* Prefix ze-ph sample folder

* Prefix lumen-petstore-server.sh with 'php-'

* Prefix lumen sample folder
2018-05-28 13:49:47 +08:00
William Cheng
806330ac43 Fix ivy2 cache directory in CI config file (#161) 2018-05-27 15:44:26 -04:00
Jérémie Bresson
0ece706a46
Remove CodegenConfig.fromModel(String, Schema) method (#90) 2018-05-26 20:18:16 +02:00
William Cheng
685a4ab6b1
add kenisteward to founding team (#158) 2018-05-26 22:07:35 +08: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
Akihito Nakano
6f23b5061a
Add PHP scripts to bin/ensure-up-to-date (#155)
* Add PHP scripts

* Run php-petstore.sh (OAS2,3)
2018-05-26 12:46:47 +09:00
William Cheng
9a2064cbf9
add 1-liner about customized templates, minor fix to dataType (#152) 2018-05-26 10:32:52 +08:00
William Cheng
b8eb91e731
update clojure petstore batch file to use petstore.json (#148) 2018-05-24 23:14:32 -07:00
Jérémie Bresson
16ff5174e4
Update swagger-parser to 2.0.1 (#123) 2018-05-25 06:19:29 +02:00
Jérémie Bresson
caef014e04
Update 'springboot-reactive' in samples folder (#147) 2018-05-24 22:11:46 +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
00f176ad95 Add 'bin/ensure-up-to-date' script and update Shippable CI (#136)
* Create 'bin/ensure-up-to-date' script

* Update shippable config

* Do no longer copy 'CI/pom.xml.shippable' to 'pom.xml'
* Fix paths in CI/pom.xml.shippable

* shippable: remove write to file

* shippable: move order

* Run 'bin/ruby-petstore.sh' to update 'samples/'

* Add Kotlin scripts to the list
2018-05-24 10:18:35 -04:00
Jérémie Bresson
9040f49311
Improve 'bin/run-all-petstore' (#133) 2018-05-23 13:49:09 +02: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
Jim Schubert
8df3e54873 Move bash argv opt to end of ags line in scripts (#124)
The $@ option in bash doesn't make sense to come before `generate`
because the only option we can pass before generate cli usage is `help`.

System properties can be passed via JAVA_OPTS, so there's not really a
need for any intermediaries in the command line construction.

Having $@ at the end of the arguments list allows maintainers and users
inspecting options to quickly pass new options to a script. For example,

```
./bin/aspnetcore-petstore.sh --additional-properties sourceFolder=asdf
```

For command line arguments that may appear more than once in the
arguments list, this change doesn't provide any rules about overwriting
values that may exist (hard-coded) in the script. That is, in the
example above, if aspnetcore-petstore.sh already includes the
sourceFolder set to a different value, the "winning" value is up to the
options parser and openapi-generator-cli implementation.
2018-05-22 15:18:52 +08:00
Ben Mordue
866dc03f4f Reduce CI logging (#119) 2018-05-21 23:15:51 +08:00
Matthias Baer
f22224574b Download elm dependencies without prompting user. (#118) 2018-05-21 16:23:01 +08: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
88f3c8a2e0
Update PULL_REQUEST_TEMPLATE.md
Fix 'technical committee' link
2018-05-19 07:39:26 +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
William Cheng
9b05bd60d5
update elm test to compile all elm files (#95) 2018-05-18 19:29:18 +08: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
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