Skip to content

Commit

Permalink
validation: add max length to languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Panero committed Oct 30, 2019
1 parent 798702e commit a5f12e9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions invenio_rdm_records/jsonschemas/records/record-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
},
"lang": {
"description": "Language of the description. ISO 639-3 language code.",
"type": "string"
"type": "string",
"maxLength": 3
}
},
"required": ["description", "description_type"]
Expand All @@ -63,7 +64,8 @@
},
"lang": {
"description": "Language of the title. ISO 639-3 language code.",
"type": "string"
"type": "string",
"maxLength": 3
}
},
"required": ["title"]
Expand Down Expand Up @@ -172,7 +174,8 @@
},
"language": {
"description": "Primary language of the resource. ISO 639-3 language code.",
"type": "string"
"type": "string",
"maxLength": 3
},
"owners": {
"description": "List of user IDs that are owners of the record.",
Expand Down Expand Up @@ -245,7 +248,8 @@
},
"lang": {
"description": "Language of the right information. ISO 639-3 language code.",
"type": "string"
"type": "string",
"maxLength": 3
}
}
},
Expand Down

0 comments on commit a5f12e9

Please sign in to comment.