File tree Expand file tree Collapse file tree
openapi-processor-core-parser-api/src/main/kotlin/io/openapiprocessor/core/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66package io.openapiprocessor.core.parser
77
8+ typealias HttpStatus = String
9+
810/* *
911 * OpenAPI Operation abstraction.
1012 */
@@ -15,7 +17,7 @@ interface Operation {
1517 fun getParameters (): List <Parameter >
1618
1719 fun getRequestBody (): RequestBody ?
18- fun getResponses (): Map <String , Response >
20+ fun getResponses (): Map <HttpStatus , Response >
1921
2022 fun isDeprecated (): Boolean
2123 fun hasTags (): Boolean
Original file line number Diff line number Diff line change 55
66package io.openapiprocessor.core.parser
77
8+ typealias ContentType = String
9+
810/* *
911 * OpenAPI Response abstraction.
1012 */
1113interface Response {
1214
13- fun getContent (): Map <String , MediaType >
15+ fun getContent (): Map <ContentType , MediaType >
1416 val description: String?
1517
1618}
You can’t perform that action at this time.
0 commit comments