Skip to content

Abstract model implementations cannot have empty body #734

@Lordfirespeed

Description

@Lordfirespeed

Description and expected behavior

As per the title.
Currently, any empty model body signifies user error and raises a validation error. This behaviour is correct for 'base' models (models that do not inherit from any abstract models).
However, a model with an empty body that extends an abstract model would yield a valid model and therefore should not raise a validation error.

Screenshots

image
image
image

Environment (please complete the following information):

  • ZenStack version: 1.0.1
  • Prisma version: 5.3.1
  • Database type: N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions