Bot releases are hidden (Show)
Published by yonaskolb over 7 years ago
This includes a large rewrite with a lot more test cases so many more specs should be supported
hasFileParam
and isFile
#27 Thanks @dangthaison91spec.operationsByTag
now also includes operations without tags with an empty string name #28 Thanks @dangthaison91Float
not Double
[String: Any]
responsestags
is now just a list of all tag names. The previous tag dictionary which contains name
and operations
has been moved to operationsByTag
Published by yonaskolb over 7 years ago
Added suite of tests for parsing, generating and compiling templates from a list of specs. Will improve stability and help prevent regressions. Still some work to do in this area
Published by yonaskolb over 7 years ago
CustomDebugStringConvertible
with PrettyPrinted
conformance on Models, so you can specify your own CustomDebugStringConvertible
. Same string is available at model.prettyPrinted
Published by yonaskolb over 7 years ago
.success(SuccessValue)
or .failure(FailureValue)
. This is only generated if there is a single schema type for successes responses and a single schema type for failure responsessuccessType
in response context for backwards compatibility with old templatesDecoding.swift
anymorePublished by yonaskolb over 7 years ago
APIClient.makeRequest
now returns an Alamofire Request
if one was created, so requests can now be cancelledCustomDebugStringConvertible
conformance that pretty prints all nested valuesAPIRequest
now has a typed Response
enum that includes all it's responses in the spec. Each case has the decoded schema as an associated enum if specifiedThe APIClient.makeRequest
complete closure parameter has changed from DataResponse
to APIResponse
which:
unexpectedStatusCode(statusCode: Int, data: Data)
jsonDeserializationError(JSONUtilsError)
decodingError(DecodingError)
invalidBaseURL(String)
authorizationError(AuthorizationError)
networkError(Error)
unknownError(Error)
Models, Requests, Errors and Responses now have CustomStringConvertible and/or CustomDebugStringConvertible conformances
Published by yonaskolb over 7 years ago
Improved the generation of complicated specs:
Published by yonaskolb over 7 years ago
additionalProperties
#15clean
CI arguement for ignoring dot files #18Type
,Enum
...etcPublished by yonaskolb over 7 years ago
Published by yonaskolb over 7 years ago
Operation
, Definition
, Property
and Parameter
, now have a raw
property that can be accessed from templates. This represents the raw data that was in the original spec. This lets you access any custom properties you have in your specProperty
and Parameter
have lost their rawType
and rawName
properties in favour of the above, so they are now raw.type
and raw.name
Published by yonaskolb over 7 years ago
First official release