Closed richardzyx closed 6 years ago
I was also hoping to work on integrating Joi's latest feature in v11 with isoDate
and isemail
, but we will see...
Thanks for opening a PR! There's more than just a hapi-swagger
implementation here though. Let's create a PR just for Swagger and see how that looks.
We didn't discuss these things in #174 and they should be their own issues/PRs anyways. I'm closing this PR for now. Feel free to open a new PR with just the changes needed to replace lout
with hapi-swagger
.
I'm committing changes by comparing files diffs against my project folder, so if I missed anything obvious, please feel free to let me know.
/documentation
to use Swagger.With Swagger validation & documentation on both the input and response, implementing new APIs and documentation have truly been a breeze with very readable code. I also found that the same schema based thinking also ties together with mongo-models so I've found it to be quite useful so far. I usually have
failAction
under bothvalidation
andresponse
as a basic template.I'm using pm2 and pm2 ecosystem file instead of dotenv. I don't believe it's a common use case, but if there are interests in future I can post those up as well.
Thanks!