-
Notifications
You must be signed in to change notification settings - Fork 222
Description
About
It looks interface-version option (-i
or --interface-version
) is not working.
-i, --interface-version Specifies the interface version of the converter to be used. Value can be 'v2' or 'v1'. Default is 'v2'.
How to reproduce
I run the following command where I gave v1 only supported option requestParametersResolution
:
openapi2postmanv2 -s ./oas.json \
-o collection.json -p \
-O folderStrategy=Tags, requestParametersResolution=Example,enableOptionalParameters=false
But I got the following output and found requestParametersResolution
didn't work
Warning: Invalid option supplied requestParametersResolution
Input file: /Users/yoichi.kawasaki/test/oas.json
Writing to file: true /Users/yoichi.kawasaki/test/collection.json {
result: true,
output: [ { type: 'collection', data: [Object] } ],
analytics: {}
}
Conversion successful, collection written to file
So I run the following command where I specified interface-version as v1 with interface-version option (-i
or --interface-version
):
openapi2postmanv2 -i v1 -s ./oas.json \
-o collection.json -p \
-O folderStrategy=Tags, requestParametersResolution=Example,enableOptionalParameters=false
However I got the same warning message and found requestParametersResolution
still didn't work.
My expectation is enableOptionalParameters
should work when I run the command by specifying v1 as interface-version with interface-version option (-i
or --interface-version
).
Environment info
node --version
v18.19.0
openapi2postmanv2 -v
4.24.0