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

Commit f9b7c28

Browse files
committed
global mapping option, #68
1 parent 5f229b1 commit f9b7c28

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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
@@ -25,6 +25,11 @@ data class Map(
2525
*/
2626
val multi: String? = null,
2727

28+
/**
29+
* controller method response
30+
*/
31+
val responseType: ResponseType? = ResponseType.ALL,
32+
2833
/**
2934
* null wrapper, e.g. JsonNullable<>
3035
*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-core
3+
* PDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.openapiprocessor.core.processor.mapping.v2
7+
8+
enum class ResponseType(val kind: String) {
9+
ALL("all"),
10+
SUCCESS("success")
11+
}

0 commit comments

Comments
 (0)