discriminator
endpoints4s.generic.discriminator
case class discriminator(name: String) extends Annotation
Defines the name of the discriminator field of a generic tagged schema.
Annotate a sealed trait definition with this annotation to define the name of its discriminator field.
Value parameters
- name
-
Name of the tagged discriminator field
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article