This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree 2 files changed +9
-2
lines changed
src/main/kotlin/com/github/hauner/openapi/core/processor/mapping
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com.github.hauner.openapi.core.processor.mapping.v2
18
18
19
+ import com.fasterxml.jackson.annotation.JsonAlias
19
20
import com.fasterxml.jackson.annotation.JsonProperty
20
21
import com.github.hauner.openapi.core.processor.mapping.VersionedMapping
21
22
@@ -29,7 +30,9 @@ data class Mapping(
29
30
/* *
30
31
* mapping format version
31
32
*/
32
- @JsonProperty(" openapi-processor-spring" ) val version : String ,
33
+ @JsonProperty(" openapi-processor-mapping" )
34
+ @JsonAlias(" openapi-processor-spring" ) // deprecated
35
+ val version : String ,
33
36
34
37
/* *
35
38
* general options
Original file line number Diff line number Diff line change 16
16
17
17
package com.github.hauner.openapi.core.processor.mapping.version
18
18
19
+ import com.fasterxml.jackson.annotation.JsonAlias
19
20
import com.fasterxml.jackson.annotation.JsonProperty
20
21
21
- data class Mapping (@JsonProperty(" openapi-processor-spring" ) val version : String? ) {
22
+ data class Mapping (
23
+ @JsonProperty(" openapi-processor-mapping" )
24
+ @JsonAlias(" openapi-processor-spring" ) // deprecated
25
+ val version : String? ) {
22
26
23
27
fun isV2 (): Boolean {
24
28
if (version == null ) {
You can’t perform that action at this time.
0 commit comments