Validation on go.TextBlock

hi ,
i want to validate textBlock to blank in link template so used could not be able to set empty name in link label

code using for creating linkTemplate

myDiagram.linkTemplate =
$(go.Link,
{
routing: go.Link.AvoidsNodes,
curve: go.Link.JumpGap,
corner: 5,
relinkableFrom: true,
relinkableTo: true,
reshapable: true,
resegmentable: true,
fromLinkable: true,
fromLinkableSelfNode: true,
fromLinkableDuplicates: true,
toLinkable: true,
toLinkableSelfNode: true,
toLinkableDuplicates: true,
cursor: “pointer”,
},
//$(go.Shape),
$(go.Shape, “Circle”, {
alignment: go.Spot.Top, width: 10, portId: “T”,
fromSpot: go.Spot.Bottom, fromLinkable: true, fromLinkableSelfNode: true,
toSpot: go.Spot.Top, toLinkable: true, toLinkableSelfNode: true
}),
$(go.Shape, “Circle”, {
alignment: go.Spot.Bottom, width: 10, portId: “B”,
fromSpot: go.Spot.Bottom, fromLinkable: true, fromLinkableSelfNode: true,
toSpot: go.Spot.Top, toLinkable: true, toLinkableSelfNode: true
}),
$(go.Shape, { toArrow: “OpenTriangle” }),
$(go.Panel, “Auto”,
{ _isLinkLabel: true }, // marks this Panel as being a draggable label
$(go.Shape, { fill: “white” }),
$(go.TextBlock, “Label”, { margin: 3, editable: true },
new go.Binding(“text”, “color”),
new go.Binding(“text”, “text”).makeTwoWay()
),
// remember any modified segment properties in the link data object
new go.Binding(“segmentIndex”).makeTwoWay(),
new go.Binding(“segmentFraction”).makeTwoWay()
)
);

Text validation is discussed at GoJS Validation -- Northwoods Software.