* feat: schema validation * fix prettier * update implementation * add test cases * change validator to string * update tests