{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgObjectRelationTypeVM",
  "components": {
    "schemas": {
      "PkgObjectRelationTypeVM": {
        "required": [
          "fromObjectTypeKey",
          "relationTypeKey",
          "toObjectTypeKey"
        ],
        "type": "object",
        "properties": {
          "fromObjectTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "isReadOnly": {
            "type": "boolean",
            "nullable": true
          },
          "relationTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "toObjectTypeKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}