Commit 59377350 authored by canterafonsj's avatar canterafonsj
Browse files

Next Refinement. Relationships

parent 9ae5b6c4
......@@ -50,7 +50,48 @@
"value"
],
"additionalProperties": {
"$ref": "#/definitions/Property"
"anyOf": [
{
"$ref": "#/definitions/Property"
},
{
"$ref": "#/definitions/Relationship"
}
]
}
}
]
},
"Relationship": {
"allOf": [
{
"$ref": "#/definitions/Commons"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "Relationship"
},
"object": {
"type": "string",
"format": "uri"
}
},
"required": [
"type",
"object"
],
"additionalProperties": {
"anyOf": [
{
"$ref": "#/definitions/Property"
},
{
"$ref": "#/definitions/Relationship"
}
]
}
}
]
......@@ -72,6 +113,13 @@
"type"
],
"additionalProperties": {
"$ref": "#/definitions/Property"
"anyOf": [
{
"$ref": "#/definitions/Property"
},
{
"$ref": "#/definitions/Relationship"
}
]
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment