Releases: yonaskolb/SwagGen
Releases · yonaskolb/SwagGen
3.0.1
3.0.0
Added
- Added File upload support #103
- Added top level security support #104
- Added
modelType
option to Swift template for class or struct models #94 - Added
modelInheritance
template option #94 - Added
modelNames
andenumNames
template options for overriding names #95 - Added
x-enum-name
property to Swagger for custom enum names #98 - Added operation
summary
to generation and template
Changed
- Swift template changes #104
- Renamed
APIError
toAPIClientError
- Removed
APIClient.authorizer
- Added
RequestBehavour.validate
(replacesAPIClient.authorizer
) APIClient.makeRequest
now returns aCancellableRequest
instead ofAlamofire.Request
- A new
APIClient.jsonDecoder
property which is used for json requests - Renamed
queue
tocompletionQueue
inAPIClient.makeRequest
- Replaced
APIError. authorizationError
withAPIClientError. validationError
- Rename
APIService.authorization
toAPIService.securityRequirement
- Renamed
- Generated type changes in Swift template. You will now have to handle or typealias the following types #104
ID
: TheUUID
format. UsuallyUUID
orString
File
: Thefile
format. UsuallyURL
,Data
or a custom type with a mimeType and fileName
Fixed
2.1.2
2.1.1
2.1.0
2.0.0
Added
- Swift template: added
Codable
support to models #61 - Swift template: added
Equatable
support to models #63 - Swift template: added
mutableModels
option #64 - Swift template: added
safeArrayDecoding
option #71 - Swift template: added
safeOptionalDecoding
option #71 - Bundle templates with installation #65
- New
language
argument which defaults toswift
for now #65 - Default template for language is now used if no template path is specified #65
- Added support for inline anonymous schemas in definitions, body params, and responses #66
- Added UUID support #72
- Added
--silent
flag #68 - Added
--verbose
flag #68 - Added
--version
flag #68
Changes
- Swift template: move sources out of now unnessary subdirectory #62
- Swift template: reorganise template #69
- Swift template: updated dependencies
- Swift template: Update to Swift 4.1
- Updated CLI #68
- Improved error output #68
- Make executable lowercase
swaggen
(breaking on linux) #68 - BREAKING generation moved into generate command:
swaggen generate
#68 - BREAKING
--spec
has changed to a required parameter:swaggen generate path_to_spec
#68