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 Serializable
trait Product
trait Equals
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product