None
Represents the absence of a discriminator strategy for serializing and deserializing sealed hierarchy subtypes or union types.
When this strategy is used, subtype differentiation is performed without adding any explicit discriminator field or key to the serialized JSON. Instead, deserialization attempts to match the input JSON data sequentially against all possible subtypes of the sealed hierarchy until a successful match is found.
This approach relies on the order and structure of subtype definitions and may result in parsing errors if no matching subtype is found.
Beware that this strategy hides error messages of underlying parsing errors and parsing be too slow for large hierarchies of subtypes or deeply nested or recursive data structures.
Don't use it for untrusted input that should be parsed into deeply nested or recursive data structures to avoid potential security vulnerabilities of DoS/DoW attacks.
Attributes
- Source
- DiscriminatorKind.scala
- Graph
-
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait DiscriminatorKindclass Objecttrait Matchableclass Any
- Self type
-
None.type