Skip to content

Commit 7ab1a91

Browse files
committed
not needed at the moment (#364)
1 parent e2c0588 commit 7ab1a91

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/JacksonAnnotations.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ package io.openapiprocessor.core.writer.java
88
import io.openapiprocessor.core.converter.ApiOptions
99
import io.openapiprocessor.core.model.Annotation
1010

11+
/**
12+
* TODO remove v3
13+
*
14+
* Jackson 3 still uses the annotations from the `com.fasterxml.jackson.annotation` package.
15+
*
16+
* mapping jon schema definition to configure the jackson version.
17+
*
18+
* "jackson": {
19+
* "description": "jackson annotations version.",
20+
* "default": "v2",
21+
* "enum": ["v2", "v3"]
22+
* },
23+
*/
1124
class JacksonAnnotations(apiOptions: ApiOptions) {
1225
val jsonProperty: Annotation
1326
val jsonCreator: Annotation

openapi-processor-core/src/main/resources/mapping/v18/mapping.example.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ options: # general processor options (required)
2121
# enable validation annotations (optional): true or false (default), javax, jakarta
2222
bean-validation: jakarta
2323

24-
# jackson version (optional): 2 (default), 3
25-
jackson: v2
26-
2724
# generate Javadoc from OpenAPI 'description' properties.
2825
javadoc: true
2926

openapi-processor-core/src/main/resources/mapping/v18/mapping.yaml.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@
6161
"default": false,
6262
"enum": [false, true, "javax", "jakarta"]
6363
},
64-
"jackson": {
65-
"description": "jackson annotations version.",
66-
"default": "v2",
67-
"enum": ["v2", "v3"]
68-
},
6964
"javadoc": {
7065
"description": "generate javadoc from OpenAPI 'description' properties.",
7166
"type": "boolean",

0 commit comments

Comments
 (0)