From 5f2bb0872a156c9223ab56efbd47e812967ff582 Mon Sep 17 00:00:00 2001 From: patlo-iog Date: Tue, 20 Feb 2024 21:56:03 +0700 Subject: [PATCH] fix: remove oas schema format for empty repsonse body (#902) Signed-off-by: Pat Losoponkul --- .../main/scala/io/iohk/atala/api/http/codec/DIDCodec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prism-agent/service/server/src/main/scala/io/iohk/atala/api/http/codec/DIDCodec.scala b/prism-agent/service/server/src/main/scala/io/iohk/atala/api/http/codec/DIDCodec.scala index dc2a566eb8..6ccdc8a30d 100644 --- a/prism-agent/service/server/src/main/scala/io/iohk/atala/api/http/codec/DIDCodec.scala +++ b/prism-agent/service/server/src/main/scala/io/iohk/atala/api/http/codec/DIDCodec.scala @@ -18,9 +18,9 @@ object DIDCodec { def emptyDidJsonLD: Codec[String, DIDResolutionResult, DIDJsonLD] = didJsonLD.schema(_ => - Schema.schemaForByteArray + Schema.schemaForString .description("Empty representation") - .encodedExample(Array.emptyByteArray) + .encodedExample("") .as )