From 77d508af549ed5e54f2af4fe79437204204ed9c0 Mon Sep 17 00:00:00 2001 From: patlo-iog Date: Wed, 13 Dec 2023 14:21:37 +0700 Subject: [PATCH] fix: correct OAS examples (#810) Signed-off-by: Pat Losoponkul Signed-off-by: Shota Jolbordi --- .../io/iohk/atala/castor/controller/http/Service.scala | 4 ++-- .../http/CreateIssueCredentialRecordRequest.scala | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/prism-agent/service/server/src/main/scala/io/iohk/atala/castor/controller/http/Service.scala b/prism-agent/service/server/src/main/scala/io/iohk/atala/castor/controller/http/Service.scala index 7ac7dd5d8f..db81c6a767 100644 --- a/prism-agent/service/server/src/main/scala/io/iohk/atala/castor/controller/http/Service.scala +++ b/prism-agent/service/server/src/main/scala/io/iohk/atala/castor/controller/http/Service.scala @@ -38,10 +38,10 @@ object Service { ) object `type` - extends Annotation[ServiceType]( + extends Annotation[String]( description = "Service type. Can contain multiple possible values as described in the [Create DID operation](https://github.com/input-output-hk/prism-did-method-spec/blob/main/w3c-spec/PRISM-method.md#create-did) under the construction section.", - example = ServiceType.Single("LinkedDomains") + example = "LinkedDomains" ) object serviceEndpoint diff --git a/prism-agent/service/server/src/main/scala/io/iohk/atala/issue/controller/http/CreateIssueCredentialRecordRequest.scala b/prism-agent/service/server/src/main/scala/io/iohk/atala/issue/controller/http/CreateIssueCredentialRecordRequest.scala index db7bc105c2..fb7fd0d904 100644 --- a/prism-agent/service/server/src/main/scala/io/iohk/atala/issue/controller/http/CreateIssueCredentialRecordRequest.scala +++ b/prism-agent/service/server/src/main/scala/io/iohk/atala/issue/controller/http/CreateIssueCredentialRecordRequest.scala @@ -90,11 +90,11 @@ object CreateIssueCredentialRecordRequest { ) object claims - extends Annotation[Map[String, String]]( + extends Annotation[zio.json.ast.Json]( description = "The claims that will be associated with the issued verifiable credential.", - example = Map( - "firstname" -> "Alice", - "lastname" -> "Wonderland" + example = zio.json.ast.Json.Obj( + "firstname" -> zio.json.ast.Json.Str("Alice"), + "lastname" -> zio.json.ast.Json.Str("Wonderland"), ) )