[feature] add validation support
0.3.1