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
constgetLatestPublications=async(req,res)=>{try{letproduct=req.swagger.params.product?.valueconstsize=req.swagger.params.size?.value// some opertion code
Here in above code how can i access the query params correctly as per swagger.yml
I tried accessing them with req.query but they were coming as string instead of array (as mentioned in yml file)
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi,
I was migrating from swagger-express-mw to express-openapi in Express Node js based backend Application
Previously we are using swagger 2.0 doc
swagger.yml file:
app.js file:
Operation definition:
Here in above code how can i access the query params correctly as per swagger.yml
I tried accessing them with req.query but they were coming as string instead of array (as mentioned in yml file)
Thanks in advance
The text was updated successfully, but these errors were encountered: