postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 837 forks source link

Unable to import App Store Connect API OpenAPI Specification #10672

Open l3ender opened 2 years ago

l3ender commented 2 years ago

Is there an existing issue for this?

Describe the Issue

I am trying to import the OpenAPI Specification for the App Store Connect API but receive the following error when doing so:

Import Failed There was an unexpected error. Please try again.

Steps To Reproduce

  1. Download the App Store Connect API OpenAPI Specification from https://developer.apple.com/documentation/appstoreconnectapi.
  2. Attempt to import the JSON OpenAPI specification file.

Screenshots or Videos

Screen Shot 2022-02-16 at 8 23 07 PM

Environment Information

- Operating System: macOS Big Sur 11.6.1
- Platform Type: Native App
- Postman Version: UI Version: 9.13.2-ui-220214-1351

Additional Context?

If there are other log files or detail I can provide, please let me know. Thanks!

VShingala commented 2 years ago

@l3ender Thanks for reporting the issue! We were able to reproduce the issue. Seems like currently due to the property named pattern in the mentioned schema, import flow is failing.

For temporary measure, you can import the spec by changing the name from pattern to anything else at line no. 57123 and 57279.

Meanwhile, We'll start working on the fix for the issue.

l3ender commented 2 years ago

@VShingala Thanks for the response!

I tried modifying the spec file to change pattern to abc on the lines you mentioned, but am still seeing the error (updated file attached: app_store_connect_api_1.7.1_openapi.json.txt).

Did I miss something? Thanks!

VShingala commented 2 years ago

@l3ender It seems this is happening due to the large size of the collection that's being generated as the specification is quite large. I am getting an error while importing but the collection does seem to be getting generated after some time (with suggested fix).

We have an issue open for the same here. Also if you still do not get generated collection, you can try this once for now.