Skip to content

Commit

Permalink
Mandatory and optional labels added to schema (fixes #520) (#521)
Browse files Browse the repository at this point in the history
* Mandatory and optional labels added to schema

* Mandatory changed to required
  • Loading branch information
zubairslamdien authored May 2, 2024
1 parent de6fcd9 commit bd8703e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions schema/course.model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,22 @@
"inputType": "Text",
"required": true,
"translatable": true
},
"required": {
"type": "string",
"title": "",
"default": "Required",
"inputType": "Text",
"required": true,
"translatable": true
},
"optional": {
"type": "string",
"title": "",
"default": "Optional",
"inputType": "Text",
"required": true,
"translatable": true
}
}
},
Expand Down
16 changes: 16 additions & 0 deletions schema/course.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,22 @@
"_adapt": {
"translatable": true
}
},
"required": {
"type": "string",
"title": "Required",
"default": "Required",
"_adapt": {
"translatable": true
}
},
"optional": {
"type": "string",
"title": "Optional",
"default": "Optional",
"_adapt": {
"translatable": true
}
}
}
},
Expand Down

0 comments on commit bd8703e

Please sign in to comment.