Skip to content

Commit

Permalink
Added 2 char min length to hcaFullName variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshingYou1 committed Oct 2, 2023
1 parent 56dea57 commit dc56820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dist/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1679,16 +1679,18 @@
"first": {
"type": "string",
"minLength": 1,
"maxLength": 25
"maxLength": 25,
"pattern": "^.*\\S.*"
},
"middle": {
"type": "string",
"maxLength": 30
},
"last": {
"type": "string",
"minLength": 1,
"maxLength": 35
"minLength": 2,
"maxLength": 35,
"pattern": "^.*\\S.*"
},
"suffix": {
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions src/common/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let hcaFullName = _.cloneDeep(fullName);
hcaFullName.properties.first.maxLength = 25;
hcaFullName.properties.last.maxLength = 35;
hcaFullName.properties.middle.maxLength = 30;
hcaFullName.properties.last.minLength = 2;

const fullNameNoSuffix = {
type: 'object',
Expand Down

0 comments on commit dc56820

Please sign in to comment.