Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Simpele submission constraint (alles samen) #43
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Mar 17, 2024
1 parent 5ec5077 commit e2fc7d7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pydantic import BaseModel

from domain.simple_submission_checks.constraints.file_constraint import FileConstraint
from domain.simple_submission_checks.constraints.zip_constraint import ZipConstraint


class SubmissionConstraint(BaseModel):
root_constraint: ZipConstraint | FileConstraint

def validate(self, path: str):
self.root_constraint.validate_constraint(path)

0 comments on commit e2fc7d7

Please sign in to comment.