Skip to content

Commit a1ae2de

Browse files
committed
improved specs
1 parent 202b20c commit a1ae2de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/examples/specs/anyof.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@
3131
"type": "object",
3232
"additionalProperties": false,
3333
"properties": {
34-
"Id": {
35-
"type": "string",
36-
"description": "Employee ID"
37-
},
34+
"Id": { "type": "string", "description": "Employee ID" },
3835
"Employee": {
3936
"description": "Employee Details (Worker or Manager)",
4037
"anyOf": [
4138
{ "$ref": "#/definitions/name"},
42-
{ "$ref": "#/definitions/job"}
39+
{ "$ref": "#/definitions/job"},
40+
{ "$ref": "#/definitions/dob"}
4341
]
4442
}
4543
}
@@ -75,7 +73,9 @@
7573
"description": "Salary per annum"
7674
}
7775
}
78-
}
76+
},
77+
"dob": { "type": "string", "format":"date" , "description": "Date of birth" }
78+
7979
},
8080
"tags": [
8181
{

docs/examples/specs/oneof.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"additionalProperties": false,
4747
"properties": {
4848
"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" }
5050
}
5151
},
5252
"worker": {

0 commit comments

Comments
 (0)