File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 ;
You can’t perform that action at this time.
0 commit comments