From 0422ca96a18a03ea98b464c1da1ef54a4f10cf0c Mon Sep 17 00:00:00 2001 From: Benjamin Voiturier Date: Mon, 4 Nov 2024 17:49:02 +0100 Subject: [PATCH] chore: fix generated OAS version to 3.0.3 as TS generator fails with 3.1.0 Signed-off-by: Benjamin Voiturier --- .../org/hyperledger/identus/api/util/Tapir2StaticOAS.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/api/util/Tapir2StaticOAS.scala b/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/api/util/Tapir2StaticOAS.scala index 2ef8229f7b..9a8feb0a9c 100644 --- a/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/api/util/Tapir2StaticOAS.scala +++ b/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/api/util/Tapir2StaticOAS.scala @@ -41,7 +41,7 @@ object Tapir2StaticOAS extends ZIOAppDefault { } yield { import sttp.apispec.openapi.circe.yaml.* val model = DocModels.customiseDocsModel(OpenAPIDocsInterpreter().toOpenAPI(allEndpoints.map(_.endpoint), "", "")) - val yaml = model.info(model.info.copy(version = args(1))).toYaml + val yaml = model.info(model.info.copy(version = args(1))).toYaml3_0_3 val path = Path.of(args.head) Using(Files.newBufferedWriter(path, StandardCharsets.UTF_8)) { writer => writer.write(yaml) } }