-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Hi I just started using Felicity for automatically Fuzz test my hapi routes and overall It's working great.
Initially I couldn't get it to work as is and I had to add some minor hacks to get it to work ( I think mostly because I use Joi 13.x and felicity is using Joi 11.x).
So I have a few suggestions / questions trying to figure out if I'm using it wrong or can implementation improve.
- When generating an example, I noticed the description that is derived from the schema is later used to recreate parts of the schema. I wonder why is it needed and if it's not possible to use the original schema.
- Is it possible to have an option to include a custom Joi instance with extension ?
I saw a feature request regarding extensions and in my own trials I replaced Joi with a custom instance and it worked well (but it had very simple extensions) - It would be great if there was an option to override the actual example generation for some specific types like all plain strings, or emails etc. like passing a function that gets a description and returns the value to be used in the example.
WesTyler