Skip to content

Commit

Permalink
PIN-4292 Recovered previous scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
nttdata-rtorsoli committed Dec 12, 2023
1 parent f239a6b commit 73b8563
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/main/resources/interface-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,6 @@ components:
properties:
prettyName:
type: string
checksum: # Temporarily required for feature PIN-4267, to be removed
type: string
CreateEServiceDescriptorDocumentSeed:
required:
- documentId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,7 @@ class EServiceApiServiceImpl(
eService <- retrieveCatalogItem(eServiceId)
descriptor <- getDescriptor(eService, descriptorId).toFuture
document <- extractDocument(eService, descriptorId, documentId).toFuture
updatedDocument = document.copy(
prettyName = updateEServiceDescriptorDocumentSeed.prettyName,
checksum = updateEServiceDescriptorDocumentSeed.checksum.getOrElse(document.checksum)
)
updatedDocument = document.copy(prettyName = updateEServiceDescriptorDocumentSeed.prettyName)
result <- askWithResult(
eServiceId,
ref =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ package object impl extends SprayJsonSupport with DefaultJsonProtocol {
implicit val problemErrorFormat: RootJsonFormat[ProblemError] = jsonFormat2(ProblemError)
implicit val problemFormat: RootJsonFormat[Problem] = jsonFormat6(Problem)
implicit val updateEserviceDescriptorDocumentSeed: RootJsonFormat[UpdateEServiceDescriptorDocumentSeed] =
jsonFormat2(UpdateEServiceDescriptorDocumentSeed)
jsonFormat1(UpdateEServiceDescriptorDocumentSeed)
implicit val createEserviceDescriptorDocumentSeed: RootJsonFormat[CreateEServiceDescriptorDocumentSeed] =
jsonFormat8(CreateEServiceDescriptorDocumentSeed)

Expand Down

0 comments on commit 73b8563

Please sign in to comment.