Commit 59377350 authored by canterafonsj's avatar canterafonsj
Browse files

Next Refinement. Relationships

parent 9ae5b6c4
Loading
Loading
Loading
Loading
+50 −2
Original line number Original line Diff line number Diff line
@@ -50,7 +50,48 @@
            "value"
            "value"
          ],
          ],
          "additionalProperties": {
          "additionalProperties": {
            "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/Property"
              },
              {
                "$ref": "#/definitions/Relationship"
              }
            ]
          }
          }
        }
        }
      ]
      ]
@@ -72,6 +113,13 @@
    "type"
    "type"
  ],
  ],
  "additionalProperties": {
  "additionalProperties": {
    "anyOf": [
      {
        "$ref": "#/definitions/Property"
        "$ref": "#/definitions/Property"
      },
      {
        "$ref": "#/definitions/Relationship"
      }
    ]
  }
  }
}
}