openapi-generator/docs/generators/swift2-deprecated.md

155 lines
3.9 KiB
Markdown
Raw Normal View History

---
title: Config Options for swift2-deprecated
sidebar_label: swift2-deprecated
---
| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
|allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|podAuthors|Authors used for Podspec| |null|
|podDescription|Description used for Podspec| |null|
|podDocsetURL|Docset URL used for Podspec| |null|
|podDocumentationURL|Documentation URL used for Podspec| |null|
|podHomepage|Homepage used for Podspec| |null|
|podLicense|License used for Podspec| |null|
|podScreenshots|Screenshots used for Podspec| |null|
|podSocialMediaURL|Social Media URL used for Podspec| |null|
|podSource|Source information used for Podspec| |null|
|podSummary|Summary used for Podspec| |null|
|podVersion|Version used for Podspec| |null|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|projectName|Project name in Xcode| |null|
|responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift are available.| |null|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
|swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null|
|unwrapRequired|Treat 'required' properties in response as non-optional (which would crash the app if api returns null as opposed to required option specified in json schema| |null|
2020-01-09 02:54:05 +00:00
## IMPORT MAPPING
| Type/Alias | Imports |
| ---------- | ------- |
## INSTANTIATION TYPES
| Type/Alias | Instantiated By |
| ---------- | --------------- |
## LANGUAGE PRIMITIVES
<ul data-columns="2" style="list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto"><li>AnyObject</li>
2020-01-09 02:54:05 +00:00
<li>Bool</li>
<li>Character</li>
<li>Double</li>
<li>Float</li>
<li>Int</li>
2020-01-09 02:54:05 +00:00
<li>Int32</li>
<li>Int64</li>
2020-01-09 02:54:05 +00:00
<li>String</li>
<li>Void</li>
</ul>
## RESERVED WORDS
<ul data-columns="2" style="list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto"><li>Any</li>
<li>AnyObject</li>
2020-01-09 02:54:05 +00:00
<li>Bool</li>
<li>COLUMN</li>
<li>Character</li>
<li>Class</li>
<li>Data</li>
<li>Double</li>
<li>ErrorResponse</li>
<li>FILE</li>
2020-01-09 02:54:05 +00:00
<li>FUNCTION</li>
<li>Float</li>
<li>Int</li>
2020-01-09 02:54:05 +00:00
<li>Int32</li>
<li>Int64</li>
<li>LINE</li>
2020-01-09 02:54:05 +00:00
<li>Protocol</li>
<li>Self</li>
<li>String</li>
2020-01-09 02:54:05 +00:00
<li>Type</li>
<li>Void</li>
<li>as</li>
<li>associativity</li>
<li>break</li>
<li>case</li>
<li>catch</li>
<li>class</li>
<li>continue</li>
<li>convenience</li>
<li>default</li>
<li>defer</li>
2020-01-09 02:54:05 +00:00
<li>deinit</li>
<li>didSet</li>
2020-01-09 02:54:05 +00:00
<li>do</li>
<li>dynamic</li>
2020-01-09 02:54:05 +00:00
<li>dynamicType</li>
<li>else</li>
<li>enum</li>
<li>extension</li>
<li>fallthrough</li>
<li>false</li>
<li>fileprivate</li>
<li>final</li>
<li>for</li>
<li>func</li>
<li>get</li>
<li>guard</li>
<li>if</li>
<li>import</li>
<li>in</li>
<li>indirect</li>
<li>infix</li>
<li>init</li>
<li>inout</li>
<li>internal</li>
<li>is</li>
<li>lazy</li>
<li>left</li>
<li>let</li>
<li>mutating</li>
<li>nil</li>
<li>none</li>
<li>nonmutating</li>
<li>open</li>
2020-01-09 02:54:05 +00:00
<li>operator</li>
<li>optional</li>
<li>override</li>
<li>postfix</li>
2020-01-09 02:54:05 +00:00
<li>precedence</li>
<li>prefix</li>
<li>private</li>
2020-01-09 02:54:05 +00:00
<li>protocol</li>
<li>public</li>
<li>repeat</li>
<li>required</li>
<li>rethrows</li>
<li>return</li>
<li>right</li>
<li>self</li>
<li>set</li>
2020-01-09 02:54:05 +00:00
<li>static</li>
<li>struct</li>
2020-01-09 02:54:05 +00:00
<li>subscript</li>
<li>super</li>
<li>switch</li>
<li>throw</li>
2020-01-09 02:54:05 +00:00
<li>throws</li>
<li>true</li>
<li>try</li>
<li>typealias</li>
2020-01-09 02:54:05 +00:00
<li>unowned</li>
<li>var</li>
<li>weak</li>
<li>where</li>
<li>while</li>
<li>willSet</li>
2020-01-09 02:54:05 +00:00
</ul>