Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors importing openapi 3 yaml file #88

Closed
JP-from-Postman opened this issue Jul 10, 2019 · 1 comment · Fixed by #107
Closed

Errors importing openapi 3 yaml file #88

JP-from-Postman opened this issue Jul 10, 2019 · 1 comment · Fixed by #107
Labels
bug Something isn't working

Comments

@JP-from-Postman
Copy link

JP-from-Postman commented Jul 10, 2019

Importing the attached openapi 3 file [waiting on file from user] fails with error in both the app, and Postman API.

File validates successful via: https://editor.swagger.io/

The following errors are reported when trying to convert via the command-line tool:

Input file:  /Users/<user>/Downloads/Resolved.yaml
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1escalation_policies/get/parameters/3 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1escalation_policies/get/parameters/3 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1escalation_policies~1%7Bid%7D~1escalation_rules~1%7Bescalation_rule_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1escalation_policies~1%7Bid%7D~1escalation_rules~1%7Bescalation_rule_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1escalation_policies/get/parameters/2 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents/put/parameters/1 not found.
ref #/paths/~1incidents/get/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/1 not found.
ref #/paths/~1incidents/get/parameters/2 not found.
ref #/paths/~1incidents/get/parameters/4 not found.
ref #/paths/~1incidents/get/parameters/5 not found.
ref #/paths/~1escalation_policies/get/parameters/2 not found.
ref #/paths/~1incidents/get/parameters/7 not found.
ref #/paths/~1incidents/get/parameters/8 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents/put/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1incidents~1%7Bid%7D~1log_entries/get/parameters/3 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1incidents/get/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/1 not found.
ref #/paths/~1incidents~1%7Bid%7D~1log_entries/get/parameters/2 not found.
ref #/paths/~1incidents~1%7Bid%7D~1log_entries/get/parameters/3 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents~1%7Bid%7D~1log_entries/get/parameters/3 not found.
ref #/paths/~1escalation_policies/get/parameters/2 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1maintenance_windows/get/parameters/2 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1incidents/get/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules/post/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/1 not found.
ref #/paths/~1schedules/post/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/0 not found.
ref #/paths/~1incidents/get/parameters/1 not found.
ref #/paths/~1escalation_policies/get/parameters/2 not found.
ref #/paths/~1incidents/get/parameters/9 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1services~1%7Bid%7D~1integrations~1%7Bintegration_id%7D/put/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1services~1%7Bid%7D~1integrations~1%7Bintegration_id%7D/put/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1teams~1%7Bid%7D~1users~1%7Buser_id%7D/delete/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1teams~1%7Bid%7D~1escalation_policies~1%7Bescalation_policy_id%7D/delete/parameters/1 not found.
ref #/paths/~1escalation_policies/get/parameters/2 not found.
ref #/paths/~1incidents~1%7Bid%7D~1notes/post/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users/get/parameters/2 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users/get/parameters/2 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users~1%7Bid%7D~1contact_methods~1%7Bcontact_method_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users~1%7Bid%7D~1contact_methods~1%7Bcontact_method_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users~1%7Bid%7D~1notification_rules~1%7Bnotification_rule_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users~1%7Bid%7D~1notification_rules~1%7Bnotification_rule_id%7D/get/parameters/1 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1users~1%7Bid%7D~1sessions~1%7Btype%7D~1%7Bsession_id%7D/get/parameters/1 not found.
ref #/paths/~1users~1%7Bid%7D~1sessions~1%7Btype%7D~1%7Bsession_id%7D/get/parameters/2 not found.
ref #/paths/~1schedules~1%7Bid%7D~1overrides~1%7Boverride_id%7D/delete/parameters/0 not found.
ref #/paths/~1schedules/post/responses/400 not found.
ref #/components/responses/TooManyRequests/content/application~1vnd.pagerduty%2Bjson%3Bversion%3D2/schema not found.
ref #/components/responses/TooManyRequests/content/application~1vnd.pagerduty%2Bjson%3Bversion%3D2/schema not found.
ref #/components/responses/TooManyRequests/content/application~1vnd.pagerduty%2Bjson%3Bversion%3D2/schema not found.
ref #/components/responses/TooManyRequests/content/application~1vnd.pagerduty%2Bjson%3Bversion%3D2/schema not found.
ref #/components/responses/TooManyRequests/content/application~1vnd.pagerduty%2Bjson%3Bversion%3D2/schema not found.
ref #/paths/~1schedules/get/responses/401 not found.
ref #/paths/~1response_plays~1%7Bresponse_play_id%7D~1run/post/responses/403 not found.
ref #/paths/~1schedules~1%7Bid%7D/get/responses/429 not found.
TypeError: Cannot read property 'in' of null
    at _.forEach (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:627:21)
    at arrayEach (/usr/local/lib/node_modules/openapi-to-postmanv2/node_modules/lodash/lodash.js:508:11)
    at Function.forEach (/usr/local/lib/node_modules/openapi-to-postmanv2/node_modules/lodash/lodash.js:9334:14)
    at Object.getParametersForPathItem (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:625:7)
    at Object.convertRequestToItem (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:1187:24)
    at Object.convertChildToItemGroup (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:508:17)
    at Object.convertChildToItemGroup (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:495:21)
    at Object.convertChildToItemGroup (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/util.js:485:20)
    at Object.generateCollection (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/convert.js:34:18)
    at Object.convert (/usr/local/lib/node_modules/openapi-to-postmanv2/lib/convert.js:147:12)
@bzmw
Copy link
Contributor

bzmw commented Jul 10, 2019

Hey there.
I was the customer that originally reported this.

If I replace all of the unicode in the file with the translated values then I get a conversion correctly. Even the last error goes away.

Here is a generic file that throws the same errors. two examples one with a line break in the unicode character.

example-postman-error.zip

@abhijitkane abhijitkane added the bug Something isn't working label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants