Skip to content

Commit

Permalink
Add note about strict_keys with ExConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-chong committed Jan 1, 2018
1 parent 75f563d commit f2745e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ex_structable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ defmodule ExStructable do
put_function_name: :put,
# Throw KeyError on passing unknown key, and
# throw ArgumentError if a key from `@enforce_keys` is missing.
# NOTE: Currently doesn't work on ExConstructor because library is broken
strict_keys: true
]
"""
Expand All @@ -187,7 +188,7 @@ defmodule ExStructable do
use_ex_constructor_library: false,
new_function_name: :new,
put_function_name: :put,
strict_keys: true,
strict_keys: true, # TODO this doesn't work on ExConstructor because library is broken
]
end

Expand Down

0 comments on commit f2745e9

Please sign in to comment.