Today we have to re-write the validation logic from graph-node to graph-cli which is tedious and duplicated effort. Similar to #1543 we can explore using Napi for validation functions. Here is an attempt a crate in graph-node which can be used for schema validation graphprotocol/graph-node#5072