From dcf7a2bc06a55851cbe91e3364a8ba868e3417db Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Wed, 24 Mar 2021 19:34:39 +0100 Subject: [PATCH] Rename openapi file --- src/main/resources/{openapi2.yaml => openapi.yaml} | 0 src/test/kotlin/integration/steps/then/schema.kt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/main/resources/{openapi2.yaml => openapi.yaml} (100%) diff --git a/src/main/resources/openapi2.yaml b/src/main/resources/openapi.yaml similarity index 100% rename from src/main/resources/openapi2.yaml rename to src/main/resources/openapi.yaml diff --git a/src/test/kotlin/integration/steps/then/schema.kt b/src/test/kotlin/integration/steps/then/schema.kt index a3df36e..bde3e69 100644 --- a/src/test/kotlin/integration/steps/then/schema.kt +++ b/src/test/kotlin/integration/steps/then/schema.kt @@ -33,7 +33,7 @@ fun Schema.validate(api: OpenApi3, toValidate: JsonNode) { } 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 -> val httpMethod = call.request.httpMethod val uri = route ?: "/" + Url(call.request.uri).encodedPath