Skip to content

Commit

Permalink
Merge pull request #149 from c4dt/frontend
Browse files Browse the repository at this point in the history
fix: add missing JSON/schema validation
  • Loading branch information
PascalinDe authored Mar 8, 2024
2 parents cffd74b + 1a93da5 commit d35ce4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/frontend/src/schema/configurationValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ const subjectSchema = yup.object({
const configurationSchema = yup.object({
Title: yup.lazy(() => titleSchema),
Scaffold: yup.array().of(subjectSchema).required(),
AdditionalInfo: yup.string(),
});

export default configurationSchema;
Expand Down
1 change: 1 addition & 0 deletions web/frontend/src/schema/form_conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"URL": { "type": "string" }
}
},
"AdditionalInfo": { "type": "string" },
"Scaffold": {
"type": "array",
"items": {
Expand Down

0 comments on commit d35ce4c

Please sign in to comment.