Skip to content

Commit

Permalink
pkp#10060 Added nullable validation to multilingual fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jun 25, 2024
1 parent 470a05d commit 57e94eb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion schemas/author.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"competingInterests": {
"type": "string",
"description": "A declaration of potential competing interests.",
"multilingual": "true"
"multilingual": "true",
"validation": [
"nullable"
]
},
"country": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion schemas/publication.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@
]
}
}
}
}
3 changes: 3 additions & 0 deletions schemas/submissionFile.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
"name": {
"type": "string",
"multilingual": true,
"validation": [
"nullable"
],
"apiSummary": true
},
"path": {
Expand Down
5 changes: 4 additions & 1 deletion schemas/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@
},
"givenName": {
"type": "string",
"multilingual": true
"multilingual": true,
"validation": [
"nullable"
]
},
"gossip": {
"type": "string",
Expand Down
10 changes: 8 additions & 2 deletions schemas/userGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
"type": "string",
"description": "The short name of the user group.",
"apiSummary": true,
"multilingual": true
"multilingual": true,
"validation": [
"nullable"
]
},
"name": {
"type": "string",
"description": "The name of the user group.",
"apiSummary": true,
"multilingual": true
"multilingual": true,
"validation": [
"nullable"
]
},
"id": {
"type": "integer",
Expand Down

0 comments on commit 57e94eb

Please sign in to comment.