Webapi-Swagger : Keep track of all errors and report them at the end instead of failing abruptly #15
Labels
Webapi-Swagger
All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)
Currently we error out the program in a lot of places where we encounter unexpected values or situations.
Instead of this, we need to collect all the errors (via State) and output them at the end of generation.
As discussed with @ersran9 , an alternative way of doing this would be in the
mtl
style withValidation
s, but since we already have the State monad in a lot of our core functions, it should be relatively easier to implement by extending the state to a tuple containing already existing[CreateNewType]
so that it would end up becoming([CreateNewType], [ErrMsg])
The text was updated successfully, but these errors were encountered: