-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22*1919 Initialize 22-1919 form and add full name to the definitions …
…section.
- Loading branch information
1 parent
fb18fae
commit 358cc26
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL", | ||
"type": "object", | ||
"definitions": { | ||
"fullName": { | ||
"type": "object", | ||
"properties": { | ||
"first": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 30, | ||
"pattern": "^.*\\S.*" | ||
}, | ||
"middle": { | ||
"type": "string", | ||
"maxLength": 30 | ||
}, | ||
"last": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 30, | ||
"pattern": "^.*\\S.*" | ||
}, | ||
"suffix": { | ||
"type": "string", | ||
"enum": [ | ||
"Jr.", | ||
"Sr.", | ||
"II", | ||
"III", | ||
"IV" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"first", | ||
"last" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import definitions from '../../common/definitions'; | ||
|
||
const schema = { | ||
$schema: 'http://json-schema.org/draft-04/schema#', | ||
title: 'CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL', | ||
type: 'object', | ||
definitions: { | ||
fullName: { | ||
...definitions.fullName, | ||
properties: { | ||
...definitions.fullName.properties, | ||
first: { | ||
...definitions.fullName.properties.first, | ||
...definitions.rejectOnlyWhitespace, | ||
}, | ||
last: { | ||
...definitions.fullName.properties.last, | ||
...definitions.rejectOnlyWhitespace, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default schema; |