diff --git a/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/CredentialIssuerEndpoints.scala b/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/CredentialIssuerEndpoints.scala index c9fc7b0572..b49c11068a 100644 --- a/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/CredentialIssuerEndpoints.scala +++ b/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/CredentialIssuerEndpoints.scala @@ -77,7 +77,7 @@ object CredentialIssuerEndpoints { ) .out(jsonBody[CredentialResponse]) .errorOut(credentialEndpointErrorOutput) - .name("issueCredential") + .name("oid4vciIssueCredential") .summary("Credential Endpoint") .description( """OID for VCI [Credential Endpoint](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#name-credential-endpoint)""".stripMargin @@ -97,7 +97,7 @@ object CredentialIssuerEndpoints { ) .out(jsonBody[CredentialOfferResponse]) .errorOut(EndpointOutputs.basicFailureAndNotFoundAndForbidden) - .name("createCredentialOffer") + .name("oid4vciCreateCredentialOffer") .summary("Create a new credential offer") .description( """Create a new credential offer and return a compliant `CredentialOffer` for the holder's diff --git a/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/http/CredentialErrorResponse.scala b/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/http/CredentialErrorResponse.scala index b676d63222..76370b75d9 100644 --- a/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/http/CredentialErrorResponse.scala +++ b/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/oid4vci/http/CredentialErrorResponse.scala @@ -14,7 +14,11 @@ import scala.util.Try type ExtendedErrorResponse = ErrorResponse | CredentialErrorResponse object ExtendedErrorResponse { - given schema: Schema[ExtendedErrorResponse] = Schema.schemaForEither[ErrorResponse, CredentialErrorResponse].as + given schema: Schema[ExtendedErrorResponse] = + Schema + .schemaForEither[ErrorResponse, CredentialErrorResponse] + .name(Schema.SName("ExtendedErrorResponse")) + .as given encoder: JsonEncoder[ExtendedErrorResponse] = ErrorResponse.encoder .orElseEither(CredentialErrorResponse.encoder)