basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Add cuttlefish_generator:minimal_map/2. #174

Closed seancribbs closed 9 years ago

seancribbs commented 9 years ago

This function generates an Erlang configuration based on the passed schema that only includes effects from the passed configuration. That is, defaults in the schema will not be injected and translations for unspecified settings will not be run.

This allows the caller to coerce, validate and translate incoming settings for updates to partial configurations, perhaps as part of a running node.

andrewjstone commented 9 years ago

:+1: de69c8a Code looks good, tests pass, works in my code as well :)

seancribbs commented 9 years ago

@borshop merge