openapi-generator/samples/client/petstore
Jim Schubert 65bda3e7b6 [scala] updates for client default values, required attributes (#7286)
* [scala] Fix default values in scala client

This uses consistent logic for optional types with default values in the
scala client. Also, uses Option(default) instead of Some(default) to
guard against people defining defaultValue = null. Option(null) becomes
None while Some(null) defines a null value explicitly and will break
maplike operations.

* [scala] Regenerate client sample

* [scala] Add missing json4s import, which will be added by another PR but allows current samples to generate

* [scala] Include integration tests for required attributes support

* [scala] Support string types with formats

This adds support for better support of type=string and
format={date,date-time,binary,byte}. Previously, binary and byte were
inconsistently defined as strings rather than byte arrays, while
date/date-time were parsing default values into formats that did not
match OpenAPI/Swagger 2.0 specifications for full-date and date-time.

We may want to consider pulling in json4s-ext to support wider date
formats and moving to date=LocalDate and date-time=ZonedDateTime.

This will have breaking changes for consumers expecting binary/byte to
be strings rather than byte arrays.

* [scala] Unique parameter names in integration test, to avoid seemingly conflicting names

* [scala] Regenerate client sample

* Sort file listings in AssertFile.java

Per File#list() javadocs:

There is no guarantee that the name strings in the resulting array
will appear in any specific order; they are not, in particular,
guaranteed to appear in alphabetical order.

I'm unable to repro directory listing failures on OS X High Sierra or
Ubuntu 16.04 under Parallels, so it's not clear to me if listing order
is indeterminate per-platform or the behavior is just not defined and
up to the platform's installed runtime. Sorting the array of strings
prior to comparison should resolve this issue on every platform/runtime.

* [scala] exclude api tests for integration test gen script

Script should match options in the integration test class

* [scala] Temporarily disable client integration tests

CI doesn't seem to pick up template changes in integration tests.
Disabling scala client integration tests, pending investigation of the
issue.

* [scala] Remove redundant json4s import

* [scala] Regenerate integration test

* [scala] Regenerate sample
2018-01-10 13:24:57 +08:00
..
ada [Ada] Add Ada support for server code generator #6680 (#7256) 2018-01-07 18:44:20 +08:00
akka-scala [Akka-Scala] This is a fix to a bug introduced by this PR #7172 (#7228) 2017-12-21 10:56:36 +08:00
android [ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI (#6436) 2017-09-07 18:12:09 +08:00
apex Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
async-scala Merge remote-tracking branch 'origin/master' into 2.3.0 2017-06-15 17:14:39 +08:00
bash #7047 - Added Bash syntax check to tests (#7155) 2017-12-13 11:14:07 +08:00
clojure update clojure petstore cient 2017-05-27 00:33:49 +08:00
cpprest [CppRest] Add Object and fix modelbase includes (#6905) 2017-11-22 12:19:13 +08:00
csharp fix net35 with JsonSubTypes (#7043) 2017-12-22 00:31:44 +08:00
csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient CsharpDotNet2Client - Use clientPackage in additionalProperties (#6581) 2017-10-03 16:58:27 +08:00
dart Added support for enums in Dart. (#6516) 2017-10-16 21:28:21 +08:00
eiffel Swagger eiffel:fix (#6674) 2017-10-16 11:02:19 +08:00
elixir [Elixir Client]Improve elixir client typings (#6821) 2017-10-29 00:46:07 +08:00
elm Add Elm language - BETA (#6947) 2017-12-20 22:26:46 +08:00
erlang-client [Erlang] erlang client: properly handle optional parameters (#7042) 2017-11-27 16:11:14 +08:00
flash Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
go Generate swagger yaml for go client (#7281) 2018-01-07 11:37:40 +08:00
groovy Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
haskell-http-client bump stack resolver to lts-10.0 (#7221) 2017-12-20 21:55:23 +08:00
java update swagger parser, core version the latest (#7163) 2017-12-13 18:08:26 +08:00
javascript [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-closure-angular Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
javascript-es6 [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-promise [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-promise-es6 [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
jaxrs-cxf updated jackson-version (#5943) 2017-06-29 10:56:12 +08:00
jaxrs-cxf-client Issue 6694 2.3.0 (#6845) 2017-11-10 15:32:05 +08:00
jmeter Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
kotlin Kotlin sanitize model names 6864 (#6874) 2017-11-04 23:23:08 +08:00
lua [Lua] Add new Lua client generator (#6252) 2017-08-11 01:41:29 +08:00
objc Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
perl Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
php update php petstore samples 2017-12-09 17:32:45 +08:00
powershell remove old petstore powershell sample 2017-08-07 15:41:30 +08:00
python update swagger parser, core version the latest (#7163) 2017-12-13 18:08:26 +08:00
python-asyncio Binary mode for file deserialization in python (#6936) 2017-11-13 12:50:10 +08:00
python-tornado [python/tornado] ssl improvements (#7061) 2017-11-28 10:06:29 +08:00
qt5cpp remove spaces, empty lines from qt5cpp client (#6956) 2017-11-14 23:28:06 +08:00
R Fix some bugs for the R client (#6535) 2017-09-27 00:06:53 +08:00
r_test fix r body parameter null issue (#6786) 2017-10-24 10:45:25 +08:00
ruby update ruby petstore samples 2017-12-07 23:55:51 +08:00
rust Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
rust2/examples/server_lib [rust-server] Plaintext support; encode params (#7082) 2017-12-08 18:42:14 +08:00
scala [scala] updates for client default values, required attributes (#7286) 2018-01-10 13:24:57 +08:00
scalaz add scalaz to cirleci 2017-10-16 22:23:26 +08:00
spring-cloud update spring petstore samples 2017-12-15 00:02:43 +08:00
spring-stubs update spring petstore samples 2017-12-15 00:02:43 +08:00
swift update swift petstore samples 2017-11-28 23:44:49 +08:00
swift3 [Swift4]Update templates for swift 4 (#6921) 2017-11-21 11:33:52 +08:00
swift4 Update samples using latest codegen and templates (#7071) 2017-11-29 14:49:45 +08:00
swift-promisekit Spelling fixes 2016-08-27 02:34:33 +03:00
tizen Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
typescript-angular-v2 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
typescript-angular-v4/npm 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
typescript-angular-v4.3/npm 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
typescript-angularjs Fix wrong params indentation (#7136) 2017-12-09 17:22:24 +08:00
typescript-aurelia/default [Typescript All] Prevent usage of reserved keyword for model fields (#7112) 2017-12-14 12:47:02 +08:00
typescript-fetch [TypeScript-Fetch] Support for non-JSON body params (#6994) 2017-12-19 17:20:16 +08:00
typescript-jquery [Typescript jQuery] Add README.md (#7113) 2017-12-06 10:34:29 +08:00
typescript-node [Typescript All] Prevent usage of reserved keyword for model fields (#7112) 2017-12-14 12:47:02 +08:00