Skip to content

Instantly share code, notes, and snippets.

@susieyy
Created September 6, 2017 00:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susieyy/54001c279314d905b00ba3790d14ddad to your computer and use it in GitHub Desktop.
Save susieyy/54001c279314d905b00ba3790d14ddad to your computer and use it in GitHub Desktop.
swagger-codegen config-help swift
java -jar ./swagger-codegen-cli.jar config-help -l swift
CONFIG OPTIONS
sortParamsByRequiredFlag
Sort method arguments to place required parameters before optional parameters. (Default: true)
ensureUniqueParams
Whether to ensure parameter names are unique in an operation (rename parameters that are not). (Default: true)
allowUnicodeIdentifiers
boolean, toggles whether unicode identifiers are allowed in names or not, default is false (Default: false)
projectName
Project name in Xcode
responseAs
Optionally use libraries to manage response. Currently PromiseKit, RxSwift are available.
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
podSource
Source information used for Podspec
podVersion
Version used for Podspec
podAuthors
Authors used for Podspec
podSocialMediaURL
Social Media URL used for Podspec
podDocsetURL
Docset URL used for Podspec
podLicense
License used for Podspec
podHomepage
Homepage used for Podspec
podSummary
Summary used for Podspec
podDescription
Description used for Podspec
podScreenshots
Screenshots used for Podspec
podDocumentationURL
Documentation URL used for Podspec
swiftUseApiNamespace
Flag to make all the API classes inner-class of {{projectName}}API
hideGenerationTimestamp
hides the timestamp when files were generated (Default: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment