#340 - Patch ALPS serialization property order.
Side effect of upgrading Jackson appears to be arbitrary change in order of property serialization. This commit forces the order to match the spec and fixes the related test cases.
This commit is contained in:
committed by
Oliver Gierke
parent
b81b1a4e45
commit
fed5f6c313
@@ -24,6 +24,8 @@ import org.springframework.hateoas.alps.Descriptor.DescriptorBuilder;
|
||||
import org.springframework.hateoas.alps.Doc.DocBuilder;
|
||||
import org.springframework.hateoas.alps.Ext.ExtBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
|
||||
/**
|
||||
* An ALPS document.
|
||||
*
|
||||
@@ -34,6 +36,7 @@ import org.springframework.hateoas.alps.Ext.ExtBuilder;
|
||||
*/
|
||||
@Value
|
||||
@Builder(builderMethodName = "alps")
|
||||
@JsonPropertyOrder({"version", "doc", "descriptors"})
|
||||
public class Alps {
|
||||
|
||||
private final String version = "1.0";
|
||||
|
||||
Reference in New Issue
Block a user