exports module validate (support directory yaml object)

support js-yaml object.

use post data(web edit yaml data).

please merge.

thank you