go-macaroon / macaroon

A native Go implementation of macaroons
BSD 3-Clause "New" or "Revised" License
182 stars 24 forks source link

JSON unmarshaling should understand version field #35

Open rogpeppe opened 5 years ago

rogpeppe commented 5 years ago

The version field is mentioned here and is ignored when reading the JSON v2 format and omitted when writing. We should at least inspect it when reading.

rogpeppe commented 5 years ago

See https://github.com/go-macaroon/js-macaroon/pull/38