File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 31
31
"type" : " object" ,
32
32
"additionalProperties" : false ,
33
33
"properties" : {
34
- "Id" : {
35
- "type" : " string" ,
36
- "description" : " Employee ID"
37
- },
34
+ "Id" : { "type" : " string" , "description" : " Employee ID" },
38
35
"Employee" : {
39
36
"description" : " Employee Details (Worker or Manager)" ,
40
37
"anyOf" : [
41
38
{ "$ref" : " #/definitions/name" },
42
- { "$ref" : " #/definitions/job" }
39
+ { "$ref" : " #/definitions/job" },
40
+ { "$ref" : " #/definitions/dob" }
43
41
]
44
42
}
45
43
}
75
73
"description" : " Salary per annum"
76
74
}
77
75
}
78
- }
76
+ },
77
+ "dob" : { "type" : " string" , "format" :" date" , "description" : " Date of birth" }
78
+
79
79
},
80
80
"tags" : [
81
81
{
Original file line number Diff line number Diff line change 46
46
"additionalProperties" : false ,
47
47
"properties" : {
48
48
"name" : { "type" : " string" , "description" : " Name of employee" },
49
- "directReports" : { "type" : " number " , "description" : " Count of direct reports" }
49
+ "directReports" : { "type" : " integer " , "description" : " Count of direct reports" }
50
50
}
51
51
},
52
52
"worker" : {
You can’t perform that action at this time.
0 commit comments