diff --git a/backend/domain/simple_submission_checks/constraints/README.md b/backend/domain/simple_submission_checks/constraints/README.md index 005f4c29..c94531c9 100644 --- a/backend/domain/simple_submission_checks/constraints/README.md +++ b/backend/domain/simple_submission_checks/constraints/README.md @@ -28,6 +28,7 @@ De `zip_name` legt de naam van de zip vast en de `sub_constraints` bevat een lij - `FileConstraint` - `NotPresentConstraint` - `ExtensionNotPresentConstraint` +- `ExtensionOnlyPresentConstraint` De `global_constraints` zijn constraints die gelden voor de volledige zip indiening. Een element in de lijst van global constraints kan één van volgende types zijn: diff --git a/frontend/src/components/SimpleTests/SimpleTests.tsx b/frontend/src/components/SimpleTests/SimpleTests.tsx index d79256f6..ca841827 100644 --- a/frontend/src/components/SimpleTests/SimpleTests.tsx +++ b/frontend/src/components/SimpleTests/SimpleTests.tsx @@ -107,6 +107,10 @@ function json_to_submission(json: any): Submission { case 'EXTENSION_NOT_PRESENT': { constraint = new Constraint('EXTENSION_NOT_PRESENT', json['extension'], id, parent_id, depth); break; + } + case 'EXTENSION_ONLY_PRESENT': { + constraint = new Constraint('EXTENSION_ONLY_PRESENT', json['extension'], id, parent_id, depth); + break; } } @@ -773,24 +777,35 @@ export default function SimpleTests(props: { + case 'DIRECTORY': return
+
case 'NOT_PRESENT': return
+
case 'EXTENSION_NOT_PRESENT': return
+ +
+ case 'EXTENSION_ONLY_PRESENT': + return
+ + + +
} })()}