Releases: derekdowling/go-json-spec-handler
Releases · derekdowling/go-json-spec-handler
Goodbye SendableError
Simplified things by removing SendableError and instead making Error a list of ErrorObjects. Needed to build some additional helpers to keep error creation streamlined, but overall much simpler, and much more consistent.
JSC Gets An Overhaul
The client now returns the most accurate type it expects wherever possible making request parameters more explicit:
// old example
response, err := jsc.Get("http://api", "user", "")
list, err := response.GetList()
// new example
list, response, err := jsc.GetList("http://api", "user")
Ok Helper
Used for situations where a jsh.Sendable is expected, allow you to do jsh.Ok()
, which will return a 200 OK response.
SendableError.Internal()
- renamed SendableError.String() => SendableError.Internal() to give more context to what it actually does since by default a dumped error using
fmt.Prtinf("%+v", err)
will still use.Error()
for message formatting. - Minor formatting fixes.
Marshal Object Ability
Allows you to preserve an object across POST/PATCH calls so that you don't lose meta data, relationships, etc
Client bug fixes for GET
0.5.2 Updating pinned deps
Debuggable Errors
Fully formatted errors should now appear when testing against their presence, at least in Goconvey!
JSC Lives Again
- Isolated client logic into it's own package, much better support for each HTTP request type.
- Created a new Parser type that makes it simpler to normalize/fluently parse jsh objects/lists
Making "prepare" private and fixing object prepare for POST Request
0.4.1 Fixing client object prepare bug for POST request missing ID
Full HTTP Client Library
Merged jsc with jsh.
- GET round trip support via NewGetRequest()
- Round trip ClientResponse
GetObject()
andGetList()
JSON parsing support - GO15VendorExperiment support