Skip to content

Commit

Permalink
Revert "🐛 Fjerner krav om @Final key"
Browse files Browse the repository at this point in the history
This reverts commit 4f2f446.
  • Loading branch information
oyvindhagen committed Aug 23, 2024
1 parent 4f2f446 commit 788e962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal class Fullmaktløsning(
override fun validations() =
River.PacketValidation {
it.demandValue("@event_name", "behov")
it.demandValue("@final", true)
it.demandAll("@behov", listOf("Fullmakt"))
it.demandKey("contextId")
it.demandKey("hendelseId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ internal object Testmeldingfabrikk {
id = UUID.randomUUID(), "behov",
mapOf(
"fødselsnummer" to fødselsnummer,
"@final" to true,
"@behov" to listOf("Fullmakt"),
"contextId" to "${UUID.randomUUID()}",
"hendelseId" to "${UUID.randomUUID()}",
Expand All @@ -120,6 +121,7 @@ internal object Testmeldingfabrikk {
id = UUID.randomUUID(), "behov",
mapOf(
"fødselsnummer" to fødselsnummer,
"@final" to true,
"@behov" to listOf("Fullmakt"),
"contextId" to "${UUID.randomUUID()}",
"hendelseId" to "${UUID.randomUUID()}",
Expand Down

0 comments on commit 788e962

Please sign in to comment.