validate generated definition agains the node definition schema