Created by: kthoms
A CodegenModel's hasEnum property is set in addVars: cm.hasEnums = true; This state was cleared afterwards again.
As one of its results the import for @JsonValue was not added for the model class in the Spring code generator, where 'model.hasEnums' was evaluated to false where it should be true.
Added a test case with the model provided in the issue that reproduces the problem.
To fix #11323 (closed)