hodur-org / hodur-engine

Hodur is a domain modeling approach and collection of libraries to Clojure. By using Hodur you can define your domain model as data, parse and validate it, and then either consume your model via an API or use one of the many plugins to help you achieve mechanical results faster and in a purely functional manner.
MIT License
282 stars 13 forks source link

Add function init-resources #10

Closed rodsenra closed 5 years ago

rodsenra commented 5 years ago

This PR is a proposal to add a new function init-resources that allows clients to control explicitly which schemas should be handled by hodur. The already existing function init-path assumes that all schemas on the given path should be processed. In that sense, I believe init-resource adds value to the set of facilities that already exist in hodur.

This PR also adds a dummy schema file to resources, that serves the purpose of testing resource loading inside test-resources.