Use schema and spec into lib, update deps