Skip to content

Commit 358cc26

Browse files
committed
22*1919 Initialize 22-1919 form and add full name to the definitions section.
1 parent fb18fae commit 358cc26

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

dist/22-1919-schema.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL",
4+
"type": "object",
5+
"definitions": {
6+
"fullName": {
7+
"type": "object",
8+
"properties": {
9+
"first": {
10+
"type": "string",
11+
"minLength": 1,
12+
"maxLength": 30,
13+
"pattern": "^.*\\S.*"
14+
},
15+
"middle": {
16+
"type": "string",
17+
"maxLength": 30
18+
},
19+
"last": {
20+
"type": "string",
21+
"minLength": 1,
22+
"maxLength": 30,
23+
"pattern": "^.*\\S.*"
24+
},
25+
"suffix": {
26+
"type": "string",
27+
"enum": [
28+
"Jr.",
29+
"Sr.",
30+
"II",
31+
"III",
32+
"IV"
33+
]
34+
}
35+
},
36+
"required": [
37+
"first",
38+
"last"
39+
]
40+
}
41+
}
42+
}

src/schemas/22-1919/schema.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import definitions from '../../common/definitions';
2+
3+
const schema = {
4+
$schema: 'http://json-schema.org/draft-04/schema#',
5+
title: 'CONFLICTING INTERESTS CERTIFICATION FOR PROPRIETARY SCHOOL',
6+
type: 'object',
7+
definitions: {
8+
fullName: {
9+
...definitions.fullName,
10+
properties: {
11+
...definitions.fullName.properties,
12+
first: {
13+
...definitions.fullName.properties.first,
14+
...definitions.rejectOnlyWhitespace,
15+
},
16+
last: {
17+
...definitions.fullName.properties.last,
18+
...definitions.rejectOnlyWhitespace,
19+
},
20+
},
21+
},
22+
},
23+
};
24+
25+
export default schema;

0 commit comments

Comments
 (0)