add forbiddenKeys method to object#1183
add forbiddenKeys method to object#1183Marsup merged 4 commits intohapijs:masterfrom danielo515:patch-1
Conversation
This will allow very interesting modular systems where you can define a global very generic object. Then each module can add their own restrictions using that base object, allowing, disallowing or making required certain properties. Combine this with some default values and you will have a very strong and modular system with high consistency on the results.
|
I have nothing against this change, but you seem a little too excited about such a small change, it's not a revolution :D |
|
@Marsup depends on how much you narrow your point of view 😄 Thank you very much. Sorry about my excitement but I'm having a lot of fun with joi recently . Regards |
|
@Marsup thanks for merging and documenting this. |
|
Released. |
|
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
This will allow very interesting modular systems where you can define a global very generic object where all keys are optional. Then each module can add their own restrictions using that base object, allowing, disallowing or making required certain properties. Combine this with some default values and you will have a very strong and modular system with high consistency on the results.