Releases: ooaklee/reply
Releases · ooaklee/reply
v1.0.0 Release
What's included in this release?
- Update top-level response members from
meta
,status
anddata
->meta
,errors
anddata
- Updated
Manifest Error Item
fields - Updated logic & added new aide
NewHTTPMultiErrorResponse
to support multiple error response objects in response - Refactored code
- Added logic to support users passing custom error transfer objects (
TransferObjectError
),reply.WithTransferObjectError
- Added
RefreshTransferObject
method call toTransferObjectError
- Added
- Updated Token attributes & methods on base
Transfer Object
to have a generic name to cover cases where API uses different token identifiersAccessToken
->TokenOne
&RefreshToken
->TokenTwo
- Added logic to set
StatusCode
if not set already. Defaults to400
. - Updated README
Installation
go get github.com/ooaklee/[email protected]
v1.0.0-alpha.3 Release
What's included in this release?
- Refactor Token attributes & methods to have a more general name to make use of cases where API uses different token identifiers less confusing
AccessToken
->TokenOne
&RefreshToken
->TokenTwo
- Dev can create custom
TransferObject
to set JSON attribute to match their use case
- Dev can create custom
- Added logic to set
StatusCode
if not set already. Defaults to400
. - Updated README to better describe the library
Installation
go get github.com/ooaklee/[email protected]
v1.0.0-alpha.2 Release
What's included in this release?
- Refactored and updated logic to allow users to pass custom error transfer objects (
TransferObjectError
), using Replier Option i.e.reply.WithTransferObjectError
- Added
RefreshTransferObject
method call toTransferObjectError
- Added
- Updated
example simple api
to use the new Replier Option and update thetransfer object error
Installation
go get github.com/ooaklee/[email protected]
v1.0.0-alpha.1 Release
What's included in this release?
- Added new aide
NewHTTPMultiErrorResponse
to support multiple error response - Updated
example simple api
to use the new aideNewHTTPMultiErrorResponse
- Added logic to handle/ create multiple error response
- Refactor code to make it more readable with new logic
Installation
go get github.com/ooaklee/[email protected]
v1.0.0-alpha Release
What's included in this release?
- Update top-level response members from
meta
,status
anddata
->meta
,errors
anddata
- Updated underlying logic to how an error is handled
- Updated
Manifest Error Item
attributes
Installation
go get github.com/ooaklee/[email protected]
v0.2.0 Release
What's included in this release?
- Fixed bug in logic for merging error manifests
- Added helper functions (aides) to help users more efficiently use the library
Installation
go get github.com/ooaklee/[email protected]
v0.2.0-alpha.1 Release
What's included in this release?
- Fixed bug in logic for merging error manifests
Installation
go get github.com/ooaklee/[email protected]
v0.2.0-alpha Release
What's included in this release?
- Initial logic for helper functions (
aides
) to help users more efficiently use the library
Installation
go get github.com/ooaklee/[email protected]
v0.1.1 Release
What's included in this release?
- Added licensing information
- Fixed typos
Installation
go get github.com/ooaklee/[email protected]
v0.1.0 Release
What's included in this release?
- Refactored code
- Utilise error returned in
NewHTTPResponse
- Added log entry for unfound manifest error item.
Installation
go get github.com/ooaklee/[email protected]