jsonNoExtraFields

final class jsonNoExtraFields extends Annotation

If used on a case class, will exit early if any fields are in the JSON that do not correspond to field names in the case class.

This adds extra protections against a DOS attacks but means that changes in the schema will result in a hard error rather than silently ignoring those fields.

Cannot be combined with @jsonDiscriminator since it is considered an extra field from the perspective of the case class.

class Annotation
class Object
trait Matchable
class Any