Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
53ee6b8
Added test generation for:
Jun 1, 2020
c6f881f
Minor change in the sample
Jun 1, 2020
2d4d9e1
Minor changes to the readme
Jun 1, 2020
4203d90
Removed debug
Jun 1, 2020
1892e5a
Added additional configuration options for the `extendTests` section.
Jun 2, 2020
979eb80
Fixed code to comply to the Travis build checks
Jun 2, 2020
aca00be
Readme corrections
Jun 2, 2020
3bd9584
Readme corrections
Jun 2, 2020
7a6f487
Improved readme
Jun 2, 2020
6fda601
Added the Operation method & Path as part of the test description.
Jun 5, 2020
79e13ec
Minor optimisation of the method & path naming in the pm.tests
Jun 5, 2020
d0ceea9
Merge branch 'develop' of https://github.com/postmanlabs/openapi-to-p…
Jun 15, 2020
53d2014
Added option to define test suite limits, based on the OperationID. T…
Jul 13, 2020
84a52b7
Postman test generation - added support for anyOf, oneOf, allOf, $ref
Jul 24, 2020
ac44b63
TestExtension - added check if tests array exists
Jul 27, 2020
19895fd
Merge branch 'develop' of https://github.com/postmanlabs/openapi-to-p…
Aug 3, 2020
c12b7ec
Postman test generation - added support for response header tests, wh…
Aug 21, 2020
6fb0edc
Merge branch 'develop' of https://github.com/postmanlabs/openapi-to-p…
Sep 9, 2020
4725d0b
Merge branch 'master' tag 2.0.0 of https://github.com/postmanlabs/ope…
Nov 18, 2020
39231dd
Spelling corrections
Nov 18, 2020
7306501
Spelling corrections
Nov 18, 2020
e9cfa48
Corrected mapping of program paramaters with ConfigFile
Dec 18, 2020
70f6906
Provided support for the option-cli because of the https://github.com…
Dec 18, 2020
22f754e
Added an additional check if the definedOptions is not empty
Dec 18, 2020
250e59e
Corrected version parameters to resolve conflict
Dec 21, 2020
13d54f6
Corrected version parameters to resolve conflict
Dec 21, 2020
8759aaa
Bumped to openapi-to-postman 2.1.0
Jan 28, 2021
876a4f8
Merged branch 'openapi-to-postman.2.1.0' into PR
Jan 28, 2021
b7403c0
Added option to overwrite/extend the Request Body with dynamic values
Feb 18, 2021
1923647
Added option to overwrite/extend the Request Body with dynamic values…
Feb 18, 2021
a187c7c
Added option to overwrite/extend the Request Body with dynamic values…
Feb 18, 2021
723237d
Added option to overwrite/extend the Request Body with dynamic values…
Feb 18, 2021
3dd051c
Added option to overwrite/extend the Request Body with dynamic values…
Feb 18, 2021
3909bb0
Added support for the Postman dynamic values $randomInt}}, {{$randomC…
Feb 25, 2021
6189b07
Added support to overwrite request path variables
Feb 27, 2021
8c0e104
Added support to overwrite request path variables
Feb 27, 2021
a484285
Added support to overwrite request query params
Feb 28, 2021
465ccc9
Added support to overwrite request headers
Feb 28, 2021
dd19f81
Added support to overwrite request headers
Feb 28, 2021
2cbc98b
Bumped to openapi-to-postman 2.3.0 + included the requestOverwrite op…
Feb 28, 2021
1e27632
Added to automatic set the response.id as an environment variable for…
Feb 28, 2021
b190b61
Bug fix for path variable conversions when using a dynamic variable t…
Mar 8, 2021
8625e7e
Lint fix
Mar 9, 2021
af070d3
Added option to convert unsupported OpenAPI(3.0) properties to valid …
Mar 10, 2021
a8363df
Added the option to assign pm.environment variables from the response…
Mar 18, 2021
a879d13
Moved all Postman Testsuite functions in a separate file for easier m…
Apr 11, 2021
bbbf81a
Merged version 2.5.1 from master
Apr 11, 2021
fba8363
Added support for removal of request headers, path variables, query p…
Apr 20, 2021
b25fa44
Added the getRefObject as a temp workaround for dependency
Apr 28, 2021
15b7417
Applied a patch to overcome the unwanted setting of maxItem:2 on the …
May 7, 2021
6c0d1b9
Bumped to openapi-to-postman 2.7.0 + the test suite generation
May 16, 2021
75f37ac
Fixed lint errors
May 16, 2021
b841af0
Removed unused variable
May 16, 2021
33a707c
Added option to disable the request query param in Postman
May 19, 2021
d8d10a1
Extended the test suite assignPmVariables function by response header…
May 24, 2021
cff6d71
Corrected the incorrect checkRequestBody variable definition to check…
May 25, 2021
b7c4877
Corrected the incorrect checkRequestBody variable definition to check…
May 25, 2021
14b8ff9
Update README.md
thim81 Apr 13, 2022
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* Added support for internal $ref resolution in validation flows.
* Fixed issue where parameter resolution was "schema" when "example" was specified.
* Add supported formats for schema resolution (deref).
* Fix for [#7643](https://github.com/postmanlabs/postman-app-support/issues/7643), [#7914](https://github.com/postmanlabs/postman-app-support/issues/7914), [#9004](https://github.com/postmanlabs/postman-app-support/issues/9004) - Added support for Auth params in response/example.
* Fix for [#7643](https://github.com/postmanlabs/postman-app-support/issues/7643), [#7914](https://github.com/postmanlabs/postman-app-support/issues/7914), [#9004](https://github.com/postmanlabs/postman-app-support/issues/9004) - Added support for Auth params in response/example.
* Bumped up multiple dependecies and dev-dependencies versions to keep them up-to-date.
* Updated code coverage tool from deprecated istanbul to nyc.

Expand Down Expand Up @@ -127,7 +127,7 @@

#### v1.1.13 (April 21, 2020)
* Added support for detailed validation body mismatches with option detailedBlobValidation.
* Fix for [#8098](https://github.com/postmanlabs/postman-app-support/issues/8098) - Unable to validate schema with type array.
* Fix for [#8098](https://github.com/postmanlabs/postman-app-support/issues/8098) - Unable to validate schema with type array.
* Fixed URIError for invalid URI in transaction.
* Fix for [#152](https://github.com/postmanlabs/openapi-to-postman/issues/152) - Path references not resolved due to improver handling of special characters.
* Fix for [#160](https://github.com/postmanlabs/openapi-to-postman/issues/160) - Added handling for variables in local servers not a part of a URL segment. All path servers to be added as collection variables.
Expand Down
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

![postman icon](https://raw.githubusercontent.com/postmanlabs/postmanlabs.github.io/develop/global-artefacts/postman-logo%2Btext-320x132.png)
# THIS BRANCH IS DEPRECATED, IN FAVOR OF A STANDALONE PACKAGE [Portman](https://github.com/apideck-libraries/portman)
---

*Supercharge your API workflow.*
![postman icon](https://raw.githubusercontent.com/postmanlabs/postmanlabs.github.io/develop/global-artefacts/postman-logo%2Btext-320x132.png)

*Supercharge your API workflow.*
*Modern software is built on APIs. Postman helps you develop APIs faster.*

# OpenAPI 3.0 to Postman Collection v2.1.0 Converter

[![Build Status](https://travis-ci.org/postmanlabs/openapi-to-postman.svg?branch=master)](https://travis-ci.org/postmanlabs/openapi-to-postman)

#### Contents
#### Contents

1. [Getting Started](#getting-started)
2. [Using the converter as a NodeJS module](#using-the-converter-as-a-nodejs-module)
Expand All @@ -21,6 +24,7 @@
1. [Options](#options)
2. [Usage](#usage)
4. [Conversion Schema](#conversion-schema)
5. [Postman test suite generation options](/TESTGENERATION.md)

---

Expand Down Expand Up @@ -99,7 +103,7 @@ Check out complete list of options and their usage at [OPTIONS.md](/OPTIONS.md)

### ConversionResult

- `result` - Flag responsible for providing a status whether the conversion was successful or not
- `result` - Flag responsible for providing a status whether the conversion was successful or not

- `reason` - Provides the reason for an unsuccessful conversion, defined only if result: false

Expand Down Expand Up @@ -158,28 +162,31 @@ The converter can be used as a CLI tool as well. The following [command line opt
`openapi2postmanv2 [options]`

### Options
- `-v`, `--version`
- `-v`, `--version`
Specifies the version of the converter

- `-s <source>`, `--spec <source>`
- `-s <source>`, `--spec <source>`
Used to specify the OpenAPI specification (file path) which is to be converted

- `-o <destination>`, `--output <destination>`
- `-o <destination>`, `--output <destination>`
Used to specify the destination file in which the collection is to be written

- `-t`, `--test`
- `-t`, `--test`
Used to test the collection with an in-built sample specification

- `-p`, `--pretty`
- `-p`, `--pretty`
Used to pretty print the collection object while writing to a file

- `-O`, `--options`
Used to supply options to the converter, for complete options details see [here](/OPTIONS.md)

- `-c`, `--options-config`
- `-c`, `--options-config`
Used to supply options to the converter through config file, for complete options details see [here](/OPTIONS.md)

- `-h`, `--help`
- `-g <generate>`, `--generate <generate>`
Used to generate postman tests given the JSON file with test options, for complete options details see [here](/TESTGENERATION.md)

- `-h`, `--help`
Specifies all the options along with a few usage examples on the terminal


Expand All @@ -203,6 +210,11 @@ $ openapi2postmanv2 -s spec.yaml -o collection.json -p -c ./examples/cli-option
$ openapi2postmanv2 --test
```

- Generating additional postman tests for the OpenAPi specification
```terminal
$ openapi2postmanv2 -s spec.yaml -o collection.json -p -g postman-testsuite.json
```

## Conversion Schema

| *postman* | *openapi* | *options* | *examples* |
Expand Down
Loading