You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switching between both annotation families is done in the `mapping.yaml`:
23
+
24
+
[source,yaml]
77
25
----
78
-
Gradle::
79
-
+
80
-
++++
81
-
<div></div>
82
-
++++
83
-
In the `build.gradle.kts` configure the `annotations` in to the processor configuration block.
84
-
+
85
-
[source,kotlin]
26
+
openapi-processor-spring: v1 # <1>
27
+
28
+
options:
29
+
package-name: io.openapiprocesser
30
+
31
+
spring: # <2>
32
+
# default, i.e., mapping annotations
33
+
#annotations: mapping
34
+
# use exchange annotations
35
+
annotations: exchange # <3>
86
36
----
87
-
// build.gradle.kts
88
37
89
-
openapiProcessor {
38
+
There are a few things that are important here:
90
39
91
-
// the path to the open api YAML file. Usually the same for all processors.
92
-
apiPath("${projectDir}/src/api/openapi.yaml")
40
+
<1> the mapping identifier has changed. It is now expecting `openapi-processor-spring` instead of `openapi-processor-mapping`. The processor will still accept `openapi-processor-mapping`.
41
+
+
42
+
The new identifier is required to get proper editing support for the new option with the IntelliJ plugin.
93
43
94
-
process("server") {
95
-
processorName("spring")
44
+
<2> a new Spring specific section in the `options` object.
96
45
97
-
// the spring processor dependenc(y|ies)
98
-
dependencies {
99
-
//process("${oap.processor.core.get()}")
100
-
process("${oap.processor.spring.get()}")
101
-
}
46
+
<3> the annotation family: `mapping` or `exchange`. With `mapping` being the default.
0 commit comments