Skip to content

Commit

Permalink
fix json deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
khieta committed Nov 15, 2023
1 parent c24a064 commit e8885df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cedar-dafny/difftest/main.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@ module difftest.main {
"In" := bodyDeserializer(entityUIDOrSlotFromProdJson, e => Ok(ScopeTemplate.In(e))),
"Eq" := bodyDeserializer(entityUIDOrSlotFromProdJson, e => Ok(ScopeTemplate.Eq(e))),
"Is" := bodyDeserializer(nameFromProdJson, ety => Ok(ScopeTemplate.Is(EntityType(ety)))),
"IsIn" := objDeserializer2Fields(
"Name", nameFromProdJson,
"EntityReference", entityUIDOrSlotFromProdJson,
(ety, e) => Ok(ScopeTemplate.IsIn(EntityType(ety),e)))
"IsIn" := tupleDeserializer2Elts(
nameFromProdJson,
entityUIDOrSlotFromProdJson,
(ety, e) => Ok(ScopeTemplate.IsIn(EntityType(ety),e))
)
])
}

Expand Down

0 comments on commit e8885df

Please sign in to comment.