Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swagger-parser to '2.0.11-OpenAPITools.org-1' #2262

Merged
merged 16 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/generators/scala-play-framework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

---
id: generator-opts-server-scala-play-framework
title: Config Options for scala-play-framework
sidebar_label: scala-play-framework
---

| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|modelPackage|package for generated models| |null|
|apiPackage|package for generated api classes| |null|
|sourceFolder|source folder for generated code| |null|
|routesFileName|Name of the routes file to generate.| |routes|
|routesFileName|Base package in which supporting classes are generated.| |org.openapitools|
|skipStubs|If set, skips generation of stub classes.| |false|
|supportAsync|If set, wraps API return types with Futures and generates async actions.| |false|
|generateCustomExceptions|If set, generates custom exception types.| |true|
|useSwaggerUI|Add a route to /api which show your documentation in swagger-ui. Will also import needed dependencies| |true|
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"type": "string"
},
"collectionFormat": "multi",
"default": "available"
"default": ["available"]
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"type": "string"
},
"collectionFormat": "multi",
"default": "available"
"default": ["available"]
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"enum": ["available", "pending", "sold"]
},
"collectionFormat": "multi",
"default": "available"
"default": ["available"]
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"sold"
]
},
"default": "available"
"default": ["available"]
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion modules/openapi-generator/src/test/resources/petstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"type": "string"
},
"collectionFormat": "multi",
"default": "available"
"default": ["available"]
}
],
"responses": {
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,8 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<swagger-parser-groupid>org.openapitools.swagger.parser</swagger-parser-groupid>
<swagger-parser-version>2.0.8-OpenAPITools.org-2</swagger-parser-version>
<swagger-core-version>2.0.6</swagger-core-version>
<swagger-parser-version>2.0.11-OpenAPITools.org-1</swagger-parser-version>
<swagger-core-version>2.0.7</swagger-core-version>
<scala-version>2.11.1</scala-version>
<felix-version>3.3.1</felix-version>
<commons-io-version>2.4</commons-io-version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class FormatTest implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $openAPIFormats = [
'integer' => 'int32',
'integer' => null,
wing328 marked this conversation as resolved.
Show resolved Hide resolved
'int32' => 'int32',
'int64' => 'int64',
'number' => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class InlineObject3 implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $openAPIFormats = [
'integer' => 'int32',
'integer' => null,
'int32' => 'int32',
'int64' => 'int64',
'number' => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Name implements ModelInterface, ArrayAccess
'name' => 'int32',
'snake_case' => 'int32',
'property' => null,
'_123_number' => 'int32'
'_123_number' => null
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class NullableClass implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $openAPIFormats = [
'integer_prop' => 'int32',
'integer_prop' => null,
'number_prop' => null,
'boolean_prop' => null,
'string_prop' => null,
Expand Down