Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

feat: swapping out postman-to-openapi for our fork #253

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ await oas.deref().then(definition => {

Validate and optionally convert to OpenAPI, a given API definition. This supports Swagger 2.0, OpenAPI 3.x API definitions as well as Postman 2.x collections.

Please note that if you've supplied a Postman collection to the library it will **always** be converted to OpenAPI, using [postman-to-openapi](https://github.com/joolfe/postman-to-openapi), and we will only validate resulting OpenAPI definition.
Please note that if you've supplied a Postman collection to the library it will **always** be converted to OpenAPI, using [@readme/postman-to-openapi](https://npm.im/@readme/postman-to-openapi), and we will only validate resulting OpenAPI definition.

```js
await oas.validate().then(definition => {
Expand Down
86 changes: 34 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"license": "MIT",
"dependencies": {
"@readme/openapi-parser": "^2.4.0",
"@readme/postman-to-openapi": "^4.0.0",
"js-yaml": "^4.1.0",
"node-fetch": "^2.6.1",
"openapi-types": "^12.1.0",
"postman-to-openapi": "^3.0.1",
"swagger2openapi": "^7.0.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { OpenAPI } from 'openapi-types';
import fs from 'fs';

import openapiParser from '@readme/openapi-parser';
import postmanToOpenAPI from '@readme/postman-to-openapi';
import fetch from 'node-fetch';
import postmanToOpenAPI from 'postman-to-openapi';

import converter from 'swagger2openapi';

Expand Down