In spring-hateoas-jsonapi:2.0.0, the one-argument constructor for JsonApiObject(boolean) disregards the value of the showVersion parameter, and always sets the showVersion value to true when calling the four-argument constructor.
The effect is that jsonApiConfiguration.withJsonApiObject(new JsonApiObject(false)) results in the version information being added. As a workaround, jsonApiConfiguration.withJsonApiObject(null) can be used to remove the version information, e.g. with the purpose of overriding the configuration for unit testing.
In spring-hateoas-jsonapi:2.0.0, the one-argument constructor for
JsonApiObject(boolean)
disregards the value of theshowVersion
parameter, and always sets theshowVersion
value to true when calling the four-argument constructor. The effect is thatjsonApiConfiguration.withJsonApiObject(new JsonApiObject(false))
results in the version information being added. As a workaround,jsonApiConfiguration.withJsonApiObject(null)
can be used to remove the version information, e.g. with the purpose of overriding the configuration for unit testing.