You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the init function is async. I have a use case where I have the swagger file as JSON in memory. I would like to feed that in to the init function and make it synchronous.
swaggerValidator.initSync(myJsonSwaggerFile)
// other code follow.
I am finding the async version of init to be unnecessary and makes adding the validation lib to existing code base much harder.
The text was updated successfully, but these errors were encountered:
invalidred
changed the title
Create a sync version of init function
Create a synchronous version of init function
Jan 8, 2019
Currently the
init
function isasync
. I have a use case where I have the swagger file as JSON in memory. I would like to feed that in to the init function and make it synchronous.I am finding the
async
version ofinit
to be unnecessary and makes adding the validation lib to existing code base much harder.The text was updated successfully, but these errors were encountered: