ENT-11245 Catch and transform new enum type value. (#7596)

This commit is contained in:
Jose Coll 2023-11-30 19:13:34 +00:00 committed by GitHub
parent 59ff476a40
commit 8f87b2060b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,8 @@ sealed class FetchDataFlow<T : NamedByHash, in W : Any>(
// against not having unknown by using the platform version as a guard.
@CordaSerializationTransformEnumDefaults(
CordaSerializationTransformEnumDefault("BATCH_TRANSACTION", "TRANSACTION"),
CordaSerializationTransformEnumDefault("UNKNOWN", "TRANSACTION")
CordaSerializationTransformEnumDefault("UNKNOWN", "TRANSACTION"),
CordaSerializationTransformEnumDefault("TRANSACTION_RECOVERY", "TRANSACTION")
)
@CordaSerializable
enum class DataType {