Skip to content

Commit

Permalink
Merge pull request #767 from znsio/execute_post_methods_first
Browse files Browse the repository at this point in the history
Execute POST tests first
  • Loading branch information
joelrosario authored Oct 4, 2023
2 parents 160686d + 0070587 commit 0409a87
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -989,12 +989,13 @@ class OpenApiSpecification(private val openApiFile: String, val openApi: OpenAPI
}
}

private fun openApiOperations(pathItem: PathItem): Map<String, Operation> = mapOf<String, Operation?>(
"GET" to pathItem.get,
"POST" to pathItem.post,
"DELETE" to pathItem.delete,
"PUT" to pathItem.put,
"PATCH" to pathItem.patch
).filter { (_, value) -> value != null }.map { (key, value) -> key to value!! }.toMap()
private fun openApiOperations(pathItem: PathItem): Map<String, Operation> {
return linkedMapOf<String, Operation?>(
"POST" to pathItem.post,
"GET" to pathItem.get,
"PATCH" to pathItem.patch,
"PUT" to pathItem.put,
"DELETE" to pathItem.delete
).filter { (_, value) -> value != null }.map { (key, value) -> key to value!! }.toMap()
}
}

0 comments on commit 0409a87

Please sign in to comment.