Project

General

Profile

Actions

Bug #27035

open

ReportType json serialization in base is incorrect

Added by François ARMAND 15 days ago. Updated 13 days ago.

Status:
Pending release
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When we serialize ReportType in base, for last node compliance for ex, we get:

"rt" : {
"EnforceRepaired" : {}
},

But we really want:

"rt" : "EnforceRepaired",

We do have the first case tested in JsonPostresqlSerializationTest because it was dump from base, and we missed that bit.

Ideally, a correction would be able to deserialize both case and produce only the second.

WARNING: the automatic derivation changes in Scala3 to match what we want, but it means that we need to check all our sealed trait auto-derived encoder (I think it's the only one, but hard to grep)

Actions

Also available in: Atom PDF