forked from loafle/openapi-generator-original
258de8909d
* Add support for using Spring HATEOAS to add links in the spring generator. * Ensure that Spring HATEOAS links appear last in the JSON serialisation of objects. * A couple of changes following code review: 1. Make sure the @JsonPropertyOrder annotation is only used when the jackson library is being used since it's a part of the jackson library. 2. Make sure to include the Spring HATEOAS dependency in the pom file for the spring-cloud and spring-mvc generators when the hateoas option is enabled. * Don't order the json properties since there's no requirement for the links to be last. * Remove unnecessary import.