themis icon indicating copy to clipboard operation
themis copied to clipboard

Inherit fields from parent classes

Open dariusmb opened this issue 2 years ago • 0 comments

Description

Inherit the fields from all parent classes.

e.g:

class BaseSchema extends Schema<BasePayload> {
  @StringField()
  parentField: string;
}

class ChildSchema extends Schema<ChildPayload> {
  @IntegerField()
  extraField: string;
}

When the ChildSchema is validated, it should also validate the parentField

dariusmb avatar Oct 15 '22 13:10 dariusmb