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
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
Jérémie Bresson
3ffaaa6505
Fix javadoc issues in "openapi-generator" module ( #84 )
2018-05-17 22:01:39 +08: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
Jérémie Bresson
6b8079808b
Consider minLength, maxLength and pattern in referenced schema ( #45 )
2018-05-16 09:19:16 +02: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
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
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
41b0ff351b
Code clean-up: remove DefaultCodegen#getSimpleRef(String) ( #19 )
...
Use ModelUtils#getSimpleRef(String) instead
2018-05-13 15:25:45 +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
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
William Cheng
1d889da4e3
Various fixes ( #1 )
...
* fix pistache c++ server in windows
* skip perl test
* comment out go tests
* Fix go test, manually fix go client
* fix rails batch file
* fix tab in java file
* install rust
* fix swift2-deprecated in windows batch file
* fix rust installation
* comment out js test
* update swift windows batch files
* update tizen batch script
* comment out ktor test
2018-05-13 01:31:13 +08:00
William Cheng
4b7a583b33
Update Swift default value ( #407 )
...
* update swift4 default
* update swift3 default value
* update swift default value
2018-05-12 00:15:24 +08:00
Jérémie Bresson
fcec2d74e0
Merge 'master' branch of 'swagger-codegen' into 'master' ( #422 )
...
Corresponding commit swagger-codegen: cccd0930368dd4c54d04bdfcaa3496685c3ed9b8
Co-authored-by: Andreas Müller <inidona@users.noreply.github.com >
Co-authored-by: Geoff Brown <gbrown@centeredgesoftware.com >
Co-authored-by: Raphael Ochsenbein <akekahn@gmail.com >
2018-05-11 14:35:56 +02:00
William Cheng
e5be838fa8
Update PHP client default value ( #417 )
...
* update php default value
* update php samples with oas3
2018-05-11 15:28:09 +08:00
William Cheng
a4f76b889e
update R default value, clean up old R files, add window batch for ( #415 )
...
openapi3
2018-05-11 11:25:50 +08:00
Akihito Nakano
7716d7e9b3
Rename the description of projectName option ( #414 )
2018-05-11 11:25:14 +08:00
William Cheng
064418ed12
update finch generator's default value ( #394 )
2018-05-11 09:18:49 +08:00
William Cheng
2d60c082b2
replace body parameter naming extension ( #412 )
2018-05-10 16:00:38 +08:00
Akihito Nakano
d958480fea
Reaname R default package name ( #411 )
...
* Rename package name
* Update samples
bin/openapi3/r-petstore.sh
2018-05-10 13:50:42 +08:00
William Cheng
9ac9bc0dc3
enhance ts import ( #409 )
2018-05-10 13:08:12 +08:00
William Cheng
b21b964c43
change default value for rust client ( #406 )
2018-05-10 11:20:59 +08:00
William Cheng
868ede53f9
Update Scalatra's default value ( #403 )
...
* update scalatra default value
* minor rupdate to template
2018-05-10 10:56:11 +08:00
William Cheng
27c372ff56
Update akka scala default value ( #401 )
...
* update akka scala default value
* fix akka-scala test option
2018-05-10 10:55:44 +08:00
William Cheng
8cedb66063
wording change for haskell http client ( #404 )
2018-05-09 22:31:48 +08:00
William Cheng
286f2caa22
update scala default value ( #402 )
2018-05-09 21:48:32 +08:00
William Cheng
4852434d13
update scalaz default value ( #395 )
2018-05-09 17:26:42 +08:00
Jérémie Bresson
a00261d3da
Change default package name value for kotlin server ( #387 )
...
* Update default package
* Regenerate samples/server/petstore/kotlin-server/ktor
* Update git ignore
* Add CI
2018-05-09 16:38:16 +08:00
William Cheng
dcd26ece71
Update Scala gatling's default value ( #390 )
...
* update powershell script
* update powershell bin script (oas3)
* update html2 generator's default value
* update scala gatling default value
2018-05-09 16:34:54 +08:00
Jérémie Bresson
4ae1113c00
Rename C# default package name for html2 ( #389 )
...
* Change C# package name for html2
* Regenerate 'html2'
2018-05-09 16:34:31 +08:00
Akihito Nakano
872dd546f4
Update php related samples ( #375 )
...
* Update php client (OAS3)
bin/openapi3/php-petstore.sh
* Update symfony server (OAS2)
bin/php-symfony-petstore.sh
* Lumen: remove 'swagger'
* Update lumen server (OAS2)
* Update php client (security): deleted 'SwaggerClient-php' folder
* Update TEST_DIR
* Update php client tests (OAS3)
bin/openapi3/php-petstore.sh
* Update php client (OAS2)
bin/php-petstore.sh
* Fix
* Fix lumen -> php-lumen
* Update lumen server (security)
* Delete moved files
currently it will generate into under 'lib' folder.
* Fix slim -> php-slim
* Update slim server (security)
bin/security/slim-petstore-server.sh
* Fix
* Update dot files
2018-05-09 10:34:19 +08:00
Jérémie Bresson
d35bf1a388
Change default package name value for kotlin client ( #382 )
...
* Move pom.xml to sample.ci
* Regenerate 'kotlin-threetenbp' example
* Add build to gitignore
* Change default value for Kotlin
* Regenerate kotlin-string client
* Regenerate kotlin-threetenbp client
* Regenerate 'samples/client/petstore/kotlin'
2018-05-09 10:32:37 +08:00
William Cheng
e2d6f7c88f
update erlang client, server default value ( #378 )
2018-05-09 10:31:42 +08:00
William Cheng
4fd68f0f24
update powershell default value ( #380 )
2018-05-09 10:31:05 +08:00
William Cheng
b24df8882f
update lua default value ( #379 )
2018-05-09 10:30:49 +08:00
William Cheng
9ecd3586b5
fix string comparison ( #376 )
2018-05-09 10:30:05 +08:00
William Cheng
a9fa4cd0db
Update default value for C++ related generator ( #373 )
...
* udpate default value for cpp, remove unused imports
* update cpprest template
* update tizen default value
* update cpp restbed default value
* update qt5cpp samples
* update pistache samples
* regenerate restbed ignore file
2018-05-08 22:10:40 +08:00
William Cheng
13f084e7b0
Fix dataTypeWithEnum for array of form parameters ( #354 )
...
* fix datatypewithenum for array of form parameters
* add test cases to cover dataTypeWithEnum, enumName in Ruby
2018-05-08 20:55:49 +08:00
William Cheng
0d20f75afc
Update default value, fix example value ( #370 )
...
* fix python flask NPE with oas3
* update perl default value, fix example value
* update android sample, fix example value
* restore x-swagger-router-controller for nodejs server generator
* update default value for bash client, fix example value, invalid tag
* update default value for objc
* update objc pestore core data
2018-05-08 19:51:15 +08:00
Arthur Mogliev
fd3b883e80
[DefaultCodegen] Fill CodegenOperation::produces with unique media types ( #343 )
2018-05-08 13:46:23 +02:00
William Cheng
c0a2673b26
update eiffel codegen default ( #371 )
2018-05-08 17:32:50 +08:00
William Cheng
bbd2afdd0a
Update Flash default value ( #366 )
...
* update flash default value, clear samples
* add flash samples
2018-05-08 12:57:38 +08:00
William Cheng
db9a899a09
update getSchemaType variable, remove unused import ( #365 )
2018-05-08 12:57:25 +08:00