rename openapi file #80
@@ -3,7 +3,7 @@
|
|||||||
[](https://www.codefactor.io/repository/github/flecomte/dc-project)
|
[](https://www.codefactor.io/repository/github/flecomte/dc-project)
|
||||||
[](https://github.com/flecomte/dc-project/actions/workflows/tests.yml)
|
[](https://github.com/flecomte/dc-project/actions/workflows/tests.yml)
|
||||||
|
|
||||||
[Installation](./doc/installation)
|
[Installation](./doc/installation/Installation.md)
|
||||||
|
|
||||||
### Run dockers
|
### Run dockers
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ fun Schema.validate(api: OpenApi3, toValidate: JsonNode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun TestApplicationResponse.operation(route: String? = null, callback: Operation.(OpenApi3, String) -> Unit): Operation {
|
fun TestApplicationResponse.operation(route: String? = null, callback: Operation.(OpenApi3, String) -> Unit): Operation {
|
||||||
val filePath = "/openapi2.yaml"
|
val filePath = "/openapi.yaml"
|
||||||
return OpenApi3Parser().parse(File(filePath.getResource().toURI()), true).let { api: OpenApi3 ->
|
return OpenApi3Parser().parse(File(filePath.getResource().toURI()), true).let { api: OpenApi3 ->
|
||||||
val httpMethod = call.request.httpMethod
|
val httpMethod = call.request.httpMethod
|
||||||
val uri = route ?: "/" + Url(call.request.uri).encodedPath
|
val uri = route ?: "/" + Url(call.request.uri).encodedPath
|
||||||
|
|||||||
Reference in New Issue
Block a user