Skip to content

Releases: derekdowling/go-json-spec-handler

Goodbye SendableError

13 Dec 11:46
Compare
Choose a tag to compare

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

13 Dec 08:18
Compare
Choose a tag to compare

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

13 Dec 07:07
Compare
Choose a tag to compare

Used for situations where a jsh.Sendable is expected, allow you to do jsh.Ok(), which will return a 200 OK response.

SendableError.Internal()

09 Dec 18:14
Compare
Choose a tag to compare
  • 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

04 Dec 23:33
Compare
Choose a tag to compare

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

04 Dec 22:54
Compare
Choose a tag to compare
0.5.2

Updating pinned deps

Debuggable Errors

04 Dec 19:23
Compare
Choose a tag to compare

Fully formatted errors should now appear when testing against their presence, at least in Goconvey!

JSC Lives Again

04 Dec 00:40
Compare
Choose a tag to compare
  • 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

03 Dec 01:25
Compare
Choose a tag to compare
0.4.1

Fixing client object prepare bug for POST request missing ID

Full HTTP Client Library

02 Dec 23:37
Compare
Choose a tag to compare

Merged jsc with jsh.

  • GET round trip support via NewGetRequest()
  • Round trip ClientResponse GetObject() and GetList() JSON parsing support
  • GO15VendorExperiment support