Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 6277fdc

Browse files
committed
#45, probably not useful
1 parent b46e17d commit 6277fdc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/Map.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data class Map(
4141
/**
4242
* null wrapper, e.g. JsonNullable<>
4343
*/
44-
val `null`: String? = null,
44+
//val `null`: String? = null,
4545

4646
/**
4747
* global type mappings

src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/MappingConverter.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class MappingConverter(val mapping: MappingV2) {
5454
result.add(convertType("multi", mapping.map.multi))
5555
}
5656

57-
if(mapping.map.`null` != null) {
58-
result.add(convertNull(mapping.map.`null`))
59-
}
57+
//if(mapping.map.`null` != null) {
58+
// result.add(convertNull(mapping.map.`null`))
59+
//}
6060

6161
mapping.map.types.forEach {
6262
result.add(convertType(it))

src/test/kotlin/io/openapiprocessor/core/processor/mapping/v2/MappingConverterSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MappingConverterSpec: StringSpec({
4141
type.genericTypeNames shouldBe listOf("io.openapiprocessor.somewhere.Bar")
4242
}
4343

44-
"read global 'null' mapping" {
44+
"read global 'null' mapping".config(enabled = false) {
4545
val yaml = """
4646
|openapi-processor-mapping: v2
4747
|

0 commit comments

Comments
 (0)