{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Remove Remote Reference",
  "description": "Remove a remote reference from an instance. The reference can only be removed if no provisioned instances are connected through it.",
  "type": "object",
  "required": ["instanceId", "field"],
  "properties": {
    "instanceId": {
      "type": "string",
      "x-gql-type": "id",
      "title": "Instance ID",
      "description": "The instance the reference belongs to",
      "examples": ["myproj-prod-database"]
    },
    "field": {
      "type": "string",
      "title": "Resource Field",
      "description": "The resource field to remove the reference from",
      "examples": ["username", "network", "database"]
    }
  }
}
