Skip to content

Commit 5b8ec36

Browse files
committed
fix: name generated engine classes from schema titles
Upstream 58eb348 added a `flags` property to the evaluation context. jsonschema2pojo names classes from the property name, so it collided with the evaluation result's `flags`: one became Flags__1 and Engine.java no longer compiled. CI had failed on every branch since 2026-08-31. Name classes from the schema title instead. Every object in the upstream schemas has a unique title matching its current generated name, so the generated set is unchanged apart from the new FlagResults (titled so by upstream Flagsmith/flagsmith#8581). The schema refs keep tracking main.
1 parent ad4b1c3 commit 5b8ec36

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
<targetPackage>com.flagsmith.flagengine</targetPackage>
228228
<outputDirectory>${project.build.directory}/generated-sources/jsonschema2pojo</outputDirectory>
229229
<generateBuilders>true</generateBuilders>
230+
<useTitleAsClassname>true</useTitleAsClassname>
230231
<includeConstructors>true</includeConstructors>
231232
<includeCopyConstructor>true</includeCopyConstructor>
232233
</configuration>

0 commit comments

Comments
 (0)