Makes the "thumbnail" field spec-compliant by using the new Thumbnail type instead of String
Makes tthe "@id" field more typesafe and semantically clearer by using java.net.URI as the type and not String. Overloaded methods are provided to provide some backwards-compatibility with older code (users will still have to check for URISyntaxException)
Make JSON (de)serialization tests more maintainable by moving the JSON strings to their own files (avoids tedious quote-escaping).
Add canvases and ranges fields to Range type
Add ranges field to Manifest type
Sorry for not splitting these, got a bit carried away and forgot to maintain separate branches.
This PR implements the following changes:
Thumbnail
type instead ofString
java.net.URI
as the type and notString
. Overloaded methods are provided to provide some backwards-compatibility with older code (users will still have to check forURISyntaxException
)canvases
andranges
fields toRange
typeranges
field toManifest
typeSorry for not splitting these, got a bit carried away and forgot to maintain separate branches.