Skip to content

Inherit fields from parent classes #29

Description

@dariusmb

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions