ensure JsonbProperty is imported when enums use it
diff --git a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
index 0f0ba03..e6cb4ab 100644
--- a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
+++ b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
@@ -212,7 +212,7 @@
}
/**
- * @param values the enum values (key is json name, value is java name).
+ * @param values the enum values (key is json name, value is java name).
* @param valuesAreInjected is there a toString() with json name or is the enum anemic (only values, no method)
* @return the data to add after enum name and before the opening brace in enum declaration.
*/
@@ -343,6 +343,7 @@
"package " + configuration.getPackageName() + ";\n" +
"\n" +
enumImports() +
+ (injectValues ? "import " + JsonbProperty.class.getName() + ";\n\n" : "") +
beforeEnumDeclaration() +
"public enum " + className + afterEnumName(values, injectValues) + " {\n" +
values.entrySet().stream()