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 init-resources to allow individual schema registration. #11
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.
This PR also allows init-schema to initialize (and browse) a path from within an uberjar file that follows the Capsule strategy. This version only allows support for a single parameter for init-path though.
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.
This PR also allows init-schema to initialize (and browse) a path from within an uberjar file that follows the Capsule strategy. This version only allows support for a single parameter for init-path though.