Releases: yonaskolb/SwagGen
Releases · yonaskolb/SwagGen
4.7.0
4.6.0
4.5.0
Changed
- Updated Alamore version in the Swift template to be 5.4.3 #273 @0x0c
- Minimum Swift version in the Swift template is now 5.2 #273 @0x0c
- Minimum iOS version in the Swift template is now 10 #273 @0x0c
Fixed
- Fixed sporadic crashes due to malformed URLs #268 @marcelvoss
- Fixed generation of inline types for
allOf
#267 @nicholascross, #278 @liamnichols
4.4.0
Added
- Support multiple authentication types per operation #222 @malteburkert
- Added support for
decimal
number format #259 @yonaskolb - Added
numberType
,doubleType
,floatType
anddecimalType
template options #259 @yonaskolb - Added support for binary response bodies #224 @Hustenbonbon
Fixed
- Fixed inline allOf group generation
- Fixed property generation when there is only one group schema; the first group schema type will be used as the type #217
- Added
anyType
option that allows to overrideAny
in models - Fixed date encoding formatter to conform to RFC3339
- Fixed
.swift-version
to use Swift 5.2 instead of Swift 4.1 #246 - Fixed Server is not defined issue #197
Internal
- SwagGen minimum Swift version is 5.0
4.3.1
4.3.0
Added
- Added ability to set nested template options from the command line using dot syntax eg
--option "typeAliases.ID: String"
#189 - Added a customizable
jsonEncoder
on APIClient #172 #203 - Added support for using a custom encoder per request #172 #203
Changes
- List operations by path and then by method to keep the order consistent between code generations #185
- Add
codableResponses
option that constrains all models and responses to Codable #198 - Add
propertyNames
option that allow to override the name of properties #196
Fixed
4.2.0
Swift Template Changes
- Added support for objects in query params #158
- Added support for nullable properties #165
- Removed 3rd party Result framework #174
- Fixed path to
Enum.swift
on Linux #157 - Fixed model initializers with multiple levels of inheritance #175
Fixes
- Decode Swagger specs with no components #180
Changes
- Update dependencies
4.1.0
4.0.0
Added
- Added support for OpenAPISpec/Swagger 3. Support for Swagger 2 has been removed. For that please use release 3.0.2 or the
swagger_2
branch #118 #121 - Added StencilSwiftKit support for templates #111
- Added
oneOf
andanyOf
with discriminators #121 - Added support for generating inline schemas when they are wrapped in an array #121
Swift Template Updates
- Swagger 3 support #118
- Added generated
Server
#118 - Discriminated
oneOf
andanyOf
enums #121 - Allow both form and path parameters in the same request #118
- Add headers to request #120
- Add framework
Info.plist
#117 - Use
safeArrayDecoding
#117 - Catch
APIClientError
from RequestBehaviour validation #117 - Added
typeAliases
option #117 - Validation error changed from a String to an Error #117
- Improve request description and summary #117
- Change
SecurityRequirement.scope
string toSecurityRequirement.scopes
array #117 - Use
StringCodingKey
instead of enum types #117 - Replace
DateTime
withDate
#117 - Update
Alamofire
dependency to 4.8.1 #123 - Update
Result
dependency to 4.1.0 #123 - Enums conform to Equatable and CaseIterable #124
- Removed support for Swift 4.1 #124
- Only generate
isEqual
in model classes not structs #117 - Fixed path params that don't have swift friendly names #130
- Fixed operations with mutiple success responses and no error responses #127
- Fix nested schemas in subclasses thinking they have a parent #128
- Handle nil
modelProtocol
option #117