Skip to content

Releases: joelittlejohn/jsonschema2pojo

1.2.2

21 Sep 10:20
115641c
Compare
Choose a tag to compare
  • Don't log ClassAlreadyExistsException for Enum (#1597)
  • Prevent generating duplicate constructors when all properties are required; and both includeAllPropertiesConstructor and includeRequiredPropertiesConstructor are true (#1553)
  • Add support for property names containing question mark(s) (#1522)
  • Avoid NPE when setting additionalProperties path (#1515)

1.2.1

19 Feb 20:09
1512339
Compare
Choose a tag to compare
  • Fix detection of targetVersion for Android gradle builds (#1487)

1.2.0

17 Feb 18:33
0a52df2
Compare
Choose a tag to compare
  • Avoid output to System.err when finding unique Enum name (#1485)
  • Add useful debug logging when reading schemas and creating classes (#1483)
  • Use targetVersion to decide which Generated annotation to add (#1482)
  • Add Javadoc to constructors parameters for properties that have title/description/$comment (#1481)
  • Choose default targetVersion using Gradle/Maven configuration (#1478)
  • Use Mojo Annotations instead of Javadoc tags in the Maven Plugin (#1476)
  • Add Email bean validation annotation for "format":"email" (#1475)
  • Allow empty string and underscore as property name (#1468)
  • Use Object as the type in case schema property contains mixed types (#1456)
  • "Path not present" error when processing multiple JSON files having objects with the same name (#1427)

1.1.3

29 Jan 16:33
9812d5f
Compare
Choose a tag to compare
  • Add command line option to print version (#1458)
  • Accept multiple values provided with single "-s"/"--source" argument (#1457)
  • Avoid deprecation warning with Gradle plugin re Gradle 8.0 and IncrementalTaskInputs (#1454)
  • java.lang.OutOfMemoryError: Java heap space (#1423)
  • Properties with special character in the name (#, /, etc) cause IllegalArgumentException 'Path not present' when using 1.1.2 (#1402)
  • Add builder method to create a new instance of the builder (#1396)
  • Added support for JSON-B (#1385)
  • Get Stackoverflow error if array items schema contains trees/cycle dependencies for children (#1376)

1.1.2

03 May 21:06
97ab6af
Compare
Choose a tag to compare
  • Use LinkedHashMap for additional properties, so the original ordering in the JSON is preserved (#1397)
  • Collection fields are unnecessarily initialized to "null" (#1346)
  • Enum not getting generated correctly with CamelCase values (#1310)
  • Support using JSR-303 annotations from 'jakarta.validation' package (#1280)
  • Item type for array property 'listFta' is incorrectly named ListFtum (#1275)
  • Android Parcelable unused import (#1150)
  • jsonschema2pojo website returns HTTP 500 for using TreeNode example in the wiki (#781)
  • Recursive schema $ref generates an extra class (#368)

1.1.1

19 Apr 19:20
Compare
Choose a tag to compare
  • nested sibling references causes error Path not present: definitions only on https://www.jsonschema2pojo.org/, local is fine (#1237)
  • Provide a JDK9+ compatible annotations library for Android projects (#1218)
  • $comment field for property can be turned into JavaDoc (#1197)
  • UnnecessaryModifier PMD warning in generated code (private constructor for enums) (#1102)
  • When providing example json with a value great than Integer/MAX_VALUE, it should generate a long field in Java (#971)
  • IllegalArgumentException while resolving reference to reference with # (#793)

1.1.0

04 Mar 10:07
Compare
Choose a tag to compare
  • Add @generated annotation to classes and includeGeneratedAnnotation config option (#1202)
  • Remove Jackson 1.x support (#1200)
  • Remove jsonschema2pojo-scalagen (#1199)
  • Enum generation ignores existingJavaType (#1182)
  • Require Gradle 5.6+ when using the Gradle plugin (and update examples) (#1131)
  • formatTypeMapping fails with primitive types (#1126)
  • Add private modifier to constructor-related configuration options so that they can be configured in the POM (#1118)
  • Using enum + javaType (without package name) generates enum in default package as a class, then fails to compile (#1103)
  • Fix raw type warnings when extending a builder (#1101)
  • Recursive schemas with relative paths can generate the same class twice with "__1" in the name (#1077)
  • Gradle shows deprecation warnings regarding Gradle 7.0 (#1070)
  • Add javax.annotation.processing.Generated for Java 9 (#835)

1.0.2

27 Jan 21:23
Compare
Choose a tag to compare
  • Restrict JSR-303 annotations to supported field types (#1063)
  • Add package when javaType is not a fully qualified name (#1054)
  • Feature/format type mapping for array types (#1044)
  • Implement javaEnums extension (#1041)
  • Covariant return types on build() method (avoid having to cast after calling the build() method on a subclass) (#1014)
  • Add support for @digits JSR-303 annotation (#977)
  • Add support for title and description on Enums (#975)
  • Add support for including JsonTypeInfo Annotation (#967)

1.0.1

13 Apr 19:51
Compare
Choose a tag to compare
  • Check schema required array before is required flag (#964)
  • Features/builders as inner classes (#953)

1.0.0

14 Dec 22:47
Compare
Choose a tag to compare
  • Don't register output directory as a set of files, since this breaks Gradle 5.0+ (#940)
  • Builder method should be named consistently with getter/setter (#905)
  • Objects inside array with name ending with "List" are generated as "SomeNameList" (#780)