Skip to content

Commit 9c4e7c9

Browse files
committed
Use As.EXISTING_PROPERTY to avoid duplication warning of objectType
1 parent 016d314 commit 9c4e7c9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

pom.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,16 +1227,19 @@ SPDX-License-Identifier: MIT
12271227
<target name="fix-generated-sources">
12281228
<!--
12291229
replace deprecated:
1230-
- org.jspecify.annotationsNullable
1231-
not found: org.springframework.lang.NonNull
1232-
with org.jspecify.annotations.* in generated sources
1233-
1230+
org.springframework.lang.Nullable
1231+
with org.jspecify.annotations.Nullable in generated sources
12341232
-->
12351233
<replace dir="target/generated-sources/openapi/src/main/java/org/tailormap/api/" summary="true">
12361234
<include name="**/*.java" />
12371235
<replacetoken><![CDATA[import org.springframework.lang.Nullable;]]></replacetoken>
12381236
<replacevalue><![CDATA[import org.jspecify.annotations.Nullable;]]></replacevalue>
12391237
</replace>
1238+
<replace dir="target/generated-sources/openapi/src/main/java/org/tailormap/api/persistence/json/" summary="true">
1239+
<include name="**/AppTreeNode.java" />
1240+
<replacetoken><![CDATA[include = JsonTypeInfo.As.PROPERTY]]></replacetoken>
1241+
<replacevalue><![CDATA[include = JsonTypeInfo.As.EXISTING_PROPERTY]]></replacevalue>
1242+
</replace>
12401243
</target>
12411244
</configuration>
12421245
</execution>

0 commit comments

Comments
 (0)