Replies: 1 comment 2 replies
-
You could expose the swagger file to an endpoint using express: import fs from 'fs';
app.get('/docs/swagger.json', (req, res) => res.json(JSON.parse(fs.readFileSync('path/to/swagger.json')))) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am unable to download the swagger file, from swagger UI
Can you please guide me, to make swagger file downloadable from swagger UI?
currently using version "@oas-tools/core": "^3.1.0",
Beta Was this translation helpful? Give feedback.
All reactions