Skip to content

Commit 977c71e

Browse files
committed
"never" add json-property-annotation (openapi-processor/openapi-processor-spring#268)
1 parent f8c7005 commit 977c71e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/Options.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ data class Options(
7373
val generatedDate: Boolean = true,
7474

7575
/**
76-
* generate @JsonProperty annotation always|auto (optional)
76+
* generate @JsonProperty annotation always|auto|never (optional)
7777
*/
7878
val jsonPropertyAnnotation: String = "always"
7979
)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ options: # general processor options [required]
4040
# enable/disable date on @Generated annotation
4141
generated-date: true
4242

43+
# control @JsonProperty annotation (always|auto|never)
44+
json-property-annotation: always
4345

4446

4547
compatibility:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"json-property-annotation": {
9090
"description": "generate @JsonProperty annotation.",
9191
"default": "always",
92-
"enum": ["always", "auto"]
92+
"enum": ["always", "auto", "never"]
9393
}
9494
},
9595
"additionalProperties": false,

0 commit comments

Comments
 (0)