SwagGen Versions Save

OpenAPI/Swagger 3.0 Parser and Swift code generator

3.0.1

5 years ago

Added

  • Added new modelProtocol template option which defaults to APIModel #109

Fixed

  • Fixed crash in Swift template when not using any RequestBehaviours #108

Commits

3.0.0

5 years ago

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 and enumNames 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 to APIClientError
    • Removed APIClient.authorizer
    • Added RequestBehavour.validate (replaces APIClient.authorizer)
    • APIClient.makeRequest now returns a CancellableRequest instead of Alamofire.Request
    • A new APIClient.jsonDecoder property which is used for json requests
    • Renamed queue to completionQueue in APIClient.makeRequest
    • Replaced APIError. authorizationError with APIClientError. validationError
    • Rename APIService.authorization to APIService.securityRequirement
  • Generated type changes in Swift template. You will now have to handle or typealias the following types #104
    • ID: The UUID format. Usually UUID or String
    • File: The file format. Usually URL, Data or a custom type with a mimeType and fileName

Fixed

  • Sort operations in generated Readme
  • Better name camel casing #100
  • Fix empty string field decoding in YAML #101
  • Escape Protocol in swift templates

2.1.2

5 years ago

Added

  • Added generated Swift template documenation #87

Fixed

  • Fixed nil AnyCodable values being encoded as null
  • Fixed inbuilt templates not being found in Mint installations

2.1.1

6 years ago

Added

  • Added support for ASCI encoded swagger specs #80

Fixed

  • Fixed homebrew installation on machines with both Xcode 9.3 and Command line tools installed
  • Fixed UUID parameter encoding #81

2.1.0

6 years ago

Added

  • Separated date and date-time formats into DateDay and DateTime structs #74 #77
  • Added new modelPrefix and modelSuffix options #75

Fixed

  • Fixed regression where request bodies were not being encoding properly #76
  • Fixed safeOptionalDecoding not working on optional Arrays
  • Fixed date-time not decoding in some cases #77

2.0.0

6 years ago

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 to swift 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

Removed

  • BREAKING Swift template: models no longer have init(jsonDictionary: JSONDictionary) or encode() -> JSONDictionary functions #61
  • Swift template: removed JSONUtilities dependency #61

1.2.0

6 years ago

Added

  • Added fixedWidthIntegers option to Swift template. Thanks @martinknabbe
  • Added support for response references #58

Fixed

  • Fixed Swift 4.0.2 warnings
  • Fixed Brew install

1.1.0

6 years ago

Added

  • Generate typealias for models with reference and array types #42 thanks @Liquidsoul
  • generate typealias for models that only have additional properties

Fixed

  • fixed SPM installation issue

1.0.0

6 years ago

Added

  • Swift template: decode response on background queue and then call completion on main thread or new queue parameter

Changed

  • Updated project to Swift 4 #42
  • Updated Swift templates to Swift 4 #42

0.6.1

6 years ago

Added

  • Homebrew and Make installations
  • Enums now also have a raw property to access original json

Changed

  • Requests in Swift template are final

Fixed

  • Fixed parameters with a file type not being generated