Skip to content

Commit

Permalink
pkp/pkp-lib#10060 Added nullable validation to multilingual fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 1, 2024
1 parent 37c2477 commit d8e2a25
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion schemas/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"in:publication,representation,issue"
]
},
"default": ["publication"]
"default": ["publication"]
},
"doiCreationTime": {
"type": "string",
Expand Down
5 changes: 1 addition & 4 deletions schemas/galley.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"properties": {
"submissionFileId": {
"type": "integer",
"apiSummary": true,
"validation": [
"nullable"
]
"apiSummary": true
},
"doiObject": {
"type": "object",
Expand Down
13 changes: 13 additions & 0 deletions schemas/issue.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@
"coverImage": {
"type": "string",
"multilingual": true,
"validation": [
"nullable"
],
"apiSummary": true
},
"coverImageAltText": {
"type": "string",
"multilingual": true,
"validation": [
"nullable"
],
"apiSummary": true
},
"coverImageUrl": {
Expand All @@ -33,6 +39,7 @@
"apiSummary": true,
"readOnly": true,
"validation": [
"nullable",
"url"
]
},
Expand All @@ -52,6 +59,9 @@
"description": {
"type": "string",
"multilingual": true,
"validation": [
"nullable"
],
"apiSummary": true
},
"doiObject": {
Expand Down Expand Up @@ -145,6 +155,9 @@
"title": {
"type": "string",
"multilingual": true,
"validation": [
"nullable"
],
"apiSummary": true
},
"urlPath": {
Expand Down

0 comments on commit d8e2a25

Please sign in to comment.