Skip to content

Commit 3f62edf

Browse files
committed
use/increase same mapping versions
1 parent 59d096b commit 3f62edf

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/processor/mapping/v2/MappingConverterResultSpec.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import io.kotest.core.spec.style.StringSpec
99
import io.kotest.matchers.collections.shouldBeEmpty
1010
import io.kotest.matchers.nulls.shouldBeNull
1111
import io.kotest.matchers.shouldBe
12+
import io.openapiprocessor.core.support.MappingConstants.VERSION
1213
import io.openapiprocessor.core.converter.MappingFinderQuery
1314
import io.openapiprocessor.core.converter.mapping.steps.EndpointsStep
1415
import io.openapiprocessor.core.converter.mapping.steps.GlobalsStep
@@ -20,7 +21,7 @@ class MappingConverterResultSpec: StringSpec({
2021

2122
"read global result type mapping, plain" {
2223
val yaml = """
23-
|openapi-processor-mapping: v8
24+
|openapi-processor-mapping: $VERSION
2425
|
2526
|options:
2627
| package-name: io.openapiprocessor.somewhere
@@ -42,7 +43,7 @@ class MappingConverterResultSpec: StringSpec({
4243

4344
"read global result type mapping, class" {
4445
val yaml = """
45-
|openapi-processor-mapping: v8
46+
|openapi-processor-mapping: $VERSION
4647
|
4748
|options:
4849
| package-name: io.openapiprocessor.somewhere
@@ -64,7 +65,7 @@ class MappingConverterResultSpec: StringSpec({
6465

6566
"read global result style, null" {
6667
val yaml = """
67-
|openapi-processor-mapping: v8
68+
|openapi-processor-mapping: $VERSION
6869
|
6970
|options:
7071
| package-name: io.openapiprocessor.somewhere
@@ -84,7 +85,7 @@ class MappingConverterResultSpec: StringSpec({
8485

8586
"read global result style, success" {
8687
val yaml = """
87-
|openapi-processor-mapping: v8
88+
|openapi-processor-mapping: $VERSION
8889
|
8990
|options:
9091
| package-name: io.openapiprocessor.somewhere
@@ -105,7 +106,7 @@ class MappingConverterResultSpec: StringSpec({
105106

106107
"read global result style, all" {
107108
val yaml = """
108-
|openapi-processor-mapping: v8
109+
|openapi-processor-mapping: $VERSION
109110
|
110111
|options:
111112
| package-name: io.openapiprocessor.somewhere
@@ -126,7 +127,7 @@ class MappingConverterResultSpec: StringSpec({
126127

127128
"read endpoint result type mapping" {
128129
val yaml = """
129-
|openapi-processor-mapping: v8
130+
|openapi-processor-mapping: $VERSION
130131
|
131132
|options:
132133
| package-name: io.openapiprocessor.somewhere
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright 2025 https://github.com/openapi-processor/openapi-processor-core
3+
* PDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.openapiprocessor.core.support
7+
8+
object MappingConstants {
9+
const val VERSION : String = "v11"
10+
}

0 commit comments

Comments
 (0)