swagger-api / sway-worker

4 stars 16 forks source link

CustomValidators functions cannot be passed to Sway-Worker #1

Open xuanli09 opened 8 years ago

xuanli09 commented 8 years ago

I'm trying to pass along additional validation rules in addition to the default schema and semantic rules already in Sway. Sway allows a customValidators list of functions to be passed in the createApi. However, you can't pass a list of functions to a web worker so this feature is broken.