Skip to content

Releases: toedter/spring-hateoas-jsonapi

v2.0.0

29 Nov 08:08
Compare
Choose a tag to compare

Features

  • Supports JSON:API 1.1 specification
  • Supports new JSON:API object, see JSON:API specification
  • Now serializes only JSON:API-compliant links by default, see reference documentation
    • Provides configuration option for allowing links that are not JSON:API-compliant
  • Now adapt some Spring HATEOAS link properties as top-level JSON:API link properties, see reference documentation
    • Provides configuration option for backward-compatibility and serialize those link properties also in the link meta
  • Unsafe [ and ] characters are now url encode when automatically creating link hrefs (e.g., for pagination links)

Misc

  • Needs Java 17 or later
  • JSON results in tests are checked against the JSON:API schema
  • Configuration jsonApiVersionRendered is now deprecated, use jsonApiObject instead
  • Better reference documentation with improved format for configuration

Dependency Bumps

  • Bump dependencies to Spring HATEOAS 2.0.0
  • Bump dependencies based on Spring Boot 3.0.0

v1.6.0

27 Aug 09:57
Compare
Choose a tag to compare

Features

  • When properties are annotated with @JsonApiMeta, the json serialization order is kept. Fixes #64

Dependency Bumps

  • Bump dependencies based on Spring Boot 2.7.3

v1.5.1

18 Jul 07:36
Compare
Choose a tag to compare

Bug Fixes

  • Fix creation of relationships that don't contain data but links or meta. Fixes #62

Dependency Bumps

  • Bump dependencies to Spring HATEOAS 1.5.1
  • Bump dependencies based on Spring Boot 2.7.1

v1.5.0

28 May 09:49
Compare
Choose a tag to compare

Features

Dependency Bumps

  • Bump dependencies to Spring HATEOAS 1.5.0
  • Bump dependencies based on Spring Boot 2.7.0

Misc

  • Added sonarcloud integration and badge in readme.

v1.4.0

25 Mar 11:58
Compare
Choose a tag to compare

Features

  • Attributes of "included" relationships are set when deserializing into entities with @JsonApiRelationships. (#58)

Bugfixes

  • Deserialization of relationships when deserializing CollectionModel<EntityModel<Entity>> works properly now. (#57)

Dependency Bumps

  • Bump dependencies based on Spring Boot 2.6.5

v1.3.0

12 Mar 10:53
Compare
Choose a tag to compare

Features

  • New annotation @JsonApiMeta to serialze entity properties to JSON:API meta
    • Also works for deserialization

Bugfixes

  • CollectionModel<EntityModel<Entity>> is deserialized correctly when the EntityModels contain links (fix for #54)

v1.2.1

25 Feb 18:57
Compare
Choose a tag to compare

Bugfixes

  • When using @TypeForClass, a "type" property is rendered as an attribute, fixes #53

Dependency Bumps

  • Spring HATEOAS from 1.4.0 to 1.4.1
  • Example: Bump Spring Boot from 2.6.0 to 2.6.4

v1.2.0

05 Dec 10:51
Compare
Choose a tag to compare

Features

  • Experimental: Render Spring HATEOAS affordances as JSON:API link meta

Bugfixes

  • Page meta is not created automatically when not set in the configuration
  • Example: fix /movies query parameter handling

Dependency Bumps

  • Spring HATEOAS from 1.3.5 to 1.4.0
  • Example: Bump Spring Boot from 2.5.6 to 2.6.0

v1.1.1

22 Oct 06:29
Compare
Choose a tag to compare

Bugfixes

  • ids of type Long, long, Integer, int are deserialized correctly (#44)
  • only deserialize ids of type Long, long, Integer, int when value is not null
  • correct "include" (was "included") query parameter in example

Dependency Bumps

  • Spring HATEOAS from 1.3.4 to 1.3.5
  • Example: Bump Spring Boot from 2.5.5 to 2.5.6

v1.1.0

15 Oct 08:39
Compare
Choose a tag to compare

Features:

  • Native deserialization support of java.util.UUID based ids
  • New configuration available for ignoring empty resource attributes
    • For backward compatibility, the default is still: "attributes":{}

Bug Fixes:

  • PagedModel metadata is deserialized correctly
  • PagedModel<EntityModel<?>> is deserialized correctly, including EntityModel links