Closed michallepicki closed 4 years ago
Currently no plans. Thanks for checking though!
Can I use nimble_options
in the package name? Something like nimble_options_type
Sure!
For anyone interested, I have a WIP project, tests show what it generates. Overall seems fine, I am getting the usual fast-enough feedback cycle from dialyzer for catching option keys typos etc. Because NimbleOptions works on keyword lists (and not maps), Dialyzer cannot enforce requiredness per field.
I may add some escape hatch option to pass custom type definitions, it could also allow to support recursive options I think.
edit: fixed link to point to tests
I took a look at whether it would be possible and I think it is. Macros don't get expanded inside
@type
for some reason so I didn't get this working:But I think this could work:
Is there a plan to add ability to generate a
@type
spec from the schema? Would that be a welcome addition in this project? I could publish a separate package instead