Skip to content

Commit

Permalink
remove swagger2 postman2 converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharanidk committed Oct 10, 2024
1 parent 9305930 commit c0d5039
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion portals/devportal/src/main/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"stream-browserify": "^3.0.0",
"swagger-client": "^3.18.5",
"swagger-ui-react": "^5.17.14",
"swagger2-postman2-converter": "0.0.3",
"url": "^0.11.3",
"xml-formatter": "^3.6.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import postmanIcon from '@iconify/icons-simple-icons/postman';
import { Icon as Icons } from '@iconify/react';
import fileDownload from 'js-file-download';
import openapiToPostman from 'openapi-to-postmanv2';
import swaggerToPostman from 'swagger2-postman2-converter';
import FileCopyIcon from '@mui/icons-material/FileCopy';
import Tooltip from '@mui/material/Tooltip';
import CloudDownloadRounded from '@mui/icons-material/CloudDownloadRounded';
Expand Down Expand Up @@ -390,15 +389,7 @@ class ApiConsole extends React.Component {
openapiToPostman.convert({ type: 'string', data: fr },
{}, (err, conversionResult) => {
if (!conversionResult.result) {
const collection = swaggerToPostman.convert(fr);
if (!collection) {
console.log('Could not convert');
} else {
fileDownload(
JSON.stringify(collection),
'postman collection',
);
}
console.log('Could not convert');
} else {
fileDownload(
JSON.stringify(conversionResult.output[0].data),
Expand Down

0 comments on commit c0d5039

Please sign in to comment.