Skip to content

Commit 1bb4834

Browse files
authored
Maven plugin: fix parameters parsing: customAnnotationsMapping/directiveAnnotationsMapping #389 (#391)
1 parent 842a746 commit 1bb4834

File tree

3 files changed

+21
-225
lines changed

3 files changed

+21
-225
lines changed

docs/migration-to-3.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ If you have used `customAnnotationsMapping` or `directiveAnnotationsMapping` con
7575
<!--NEW APPROACH-->
7676
<customAnnotationsMapping>
7777
<Character>
78-
<annotation>com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, property = "__typename")</annotation>
79-
<annotation>com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver(io.github.kobylynskyi.order.external.starwars.CharacterTypeResolver.class)</annotation>
78+
<annotation1>com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, property = "__typename")</annotation1>
79+
<annotation2>com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver(io.github.kobylynskyi.order.external.starwars.CharacterTypeResolver.class)</annotation2>
8080
</Character>
8181
</customAnnotationsMapping>
8282
<directiveAnnotationsMapping>

plugins/maven/example-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
<modelPackageName>io.github.kobylynskyi.starwars.graphql</modelPackageName>
7575
<customAnnotationsMapping>
7676
<Character>
77-
<annotation>@com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, property = "__typename")</annotation>
78-
<annotation>@com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver(io.github.kobylynskyi.order.external.starwars.CharacterTypeResolver.class)</annotation>
77+
<annotation1>@com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, property = "__typename")</annotation1>
78+
<annotation2>@com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver(io.github.kobylynskyi.order.external.starwars.CharacterTypeResolver.class)</annotation2>
7979
</Character>
8080
</customAnnotationsMapping>
8181
<generateClient>true</generateClient>

0 commit comments

Comments
 (0)