Questions tagged [swagger-node-express]

Swagger module for the Express web application framework for Node.js

Swagger module for the Express web application framework for Node.js

40 questions
1
vote
3 answers

Swagger validation , email type not working

I tried with both way in .yaml file , email: name: email description: Client email required: true type: string format: email in: formData email: name: email description: Client email required: true type: email in:…
Asanka
  • 552
  • 6
  • 15
1
vote
1 answer

swagger-node: using swagger "project edit with" $ref (multiple files)

I'm checking out swagger node. This seems to be something basic so it's hard for me to believe it's a bug. I create the sample swagger hello world project as indicated on the swagger-node git page using swagger project create hello-world. I use a…
Ahmed-Anas
  • 5,471
  • 9
  • 50
  • 72
1
vote
0 answers

cookies header not present in swagger?

0 with express-session but i am not able to send the cookie i.e session.sid in header.its showing in curl but its not showing in server. So can anyone help me how to set it? swagger: '2.0' info: description: This is the list of API pr version:…
1
vote
0 answers

How to import multiple swagger yaml files in one single file?

I have multiple yaml files with different apis how do i import them in main swagger.ymal file ?
chetan dev
  • 611
  • 2
  • 6
  • 16
1
vote
1 answer

express returns Cannot GET /home

I was trying to make real time chat application for that I used node express server and redis with Laravel. Here is my server.js code var app = require('express')(); var server = require('http').Server(app); var io =…
Hola
  • 2,163
  • 8
  • 39
  • 87
1
vote
0 answers

Intercepting errors with swagger-node-express

The framerork validates the input parameters based on YAML and emits an error if needed. I would like to incercept this error and reformat it to our app's standard format. What is the best way to do this?
Aleks
  • 5,674
  • 1
  • 28
  • 54
1
vote
0 answers

Node Js - mysql query in session not working

Here is my nodejs code. I getting last inserted id but not getting session value and last inserted id value outside of query function. app.post('/api/payment', function (req, res) { var query = connection.query('INSERT INTO label SET ?',…
1
vote
1 answer

swagger-node - Error: Response validation failed: void does not allow a value

I'm using swagger-node library, and am trying to achieve a 302 redirect with it. But it results into the error described in the title. My schema regarding the path looks following: /login: x-swagger-router-controller: login get: …
Ville Miekk-oja
  • 18,749
  • 32
  • 70
  • 106
1
vote
1 answer

Data passing in async.waterfall model is not working?

I want to pass the data 1 and data 2 to the last function directly. It is working when I pass data 1 to second function and from there data 1 + data 2 to the last function. But the problem is that I don't want to pass data 1 to the second function.…
midhun k
  • 1,032
  • 1
  • 15
  • 41
0
votes
0 answers

Node express js mysql Add To cart function

Is this ERD diagram correct? In this ERD diagram, I purposed when you click under the Food of the add to cart button, we need to take the Cart and then we have to add the Food item to the Cart_item table. So when you click the add to Cart, this…
0
votes
0 answers

Fetching user data using postman(API) from Azure portal subscription Access control (IAM) data i.e. "Download role assignments" data to be specific?

I have been trying to fetch Azure portal subscription user/group data using Azure SDK as I'm using NodeJS for creating API however facing error while installing Azure-authorization package as well I have been tying to implement methods provided in…
0
votes
1 answer

How to redirect to HTTPS from Angular+Node app hosted in Heroku from a subdomain?

Been struggling with this for a couple of day now. I have an Angular 9 app, a subdomain (subdomain.side.com) and a Heroku app running Nodejs server. Heroku app has SSL and is connected correctly to the domain panel via DNS, also heroku is running a…
Du_
  • 915
  • 1
  • 9
  • 16
0
votes
1 answer

Suggestion on how to build a Node js book assignment application?

I have used little Node js/Node express and would like to discuss to you all of the proposed project I am working on. I am working on an application where users can add, remove and modify books (they have a title, category, an intended due date and…
user13012408
0
votes
2 answers

How to use dynamic filters in where on sequelize?

In my route I am trying to get the registers with a dynamic columns, than the client request the route like a "router.get('/get-by/'" than specify the field of my table... I'm using like this var field = req.body.field Territory …
0
votes
1 answer

I facing Issue in Swagger api?

Swagger.yml swagger: "2.0" info: version: "0.0.1" title: Movie DB # during dev, should point to your local machine host: localhost:8000 # basePath prefixes all resource paths basePath: / # schemes: # tip: remove http to make…