Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type" : "object",
"properties" : {
"history" : {"$ref" : "#/definitions/History" }
},
"required": ["history"],
"definitions" : {
"when" : {
"type" : "string",
"format": "date-time"
},
"who": {
"type": "string",
"format": "iri",
"$comment": "if the format is uri, it works as expected"
},
"History" : {
"type" : "object",
"properties" : {
"when" : {"$ref" : "#/definitions/when"},
"who" : {
"$ref": "#/definitions/who"
},
"what": {
"type": "string"
}
},
"required": ["who", "when", "what"],
"additionalProperties": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"history" : {
"who": "someone",
"when": "2017-09-23T20:21:34Z",
"what": "did wonders"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"history" : {
"who": "http://example.com/person/1",
"when": "2017-09-23T20:21:34Z",
"what": "did wonders"
}
}