Skip to content

Commit 0bcffd8

Browse files
committed
added schema mappings (#225)
1 parent 8ba057c commit 0bcffd8

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ data class Map(
4747
*/
4848
val types: List<Type> = emptyList(),
4949

50+
/**
51+
* global schema mappings
52+
*/
53+
val schemas: List<Type> = emptyList(),
54+
5055
/**
5156
* global parameter mappings
5257
*/

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ data class Path(
5353
*/
5454
val types: List<Type> = emptyList(),
5555

56+
/**
57+
* path limited schema mappings
58+
*/
59+
val schemas: List<Type> = emptyList(),
60+
5661
/**
5762
* path limited parameter mappings
5863
*/

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,22 @@ class PathMethod(
3636
val `null`: String?,
3737

3838
/**
39-
* path limited type mappings
39+
* path/method limited type mappings
4040
*/
4141
val types: List<Type> = emptyList(),
4242

4343
/**
44-
* path limited parameter mappings
44+
* path/method limited schema mappings
45+
*/
46+
val schemas: List<Type> = emptyList(),
47+
48+
/**
49+
* path/method limited parameter mappings
4550
*/
4651
val parameters: List<Parameter> = emptyList(),
4752

4853
/**
49-
* path limited response mappings
54+
* path/method limited response mappings
5055
*/
5156
val responses: List<Response> = emptyList()
5257

0 commit comments

Comments
 (0)