Git Product home page Git Product logo

Comments (3)

richardm-stripe avatar richardm-stripe commented on July 17, 2024 1

I spent a short amount of time investigating this. I was able to reproduce the issue locally. Interestingly, I found the OOM no longer occured if I did

cat openapi/spec3.json | sed 's/\/components\/schemas\/[^"]*/\/components\/schemas\/account/g' > smallspec.json

this is just a really dumb attempt to try and narrow down the problem by producer a simpler (but completely invalid) spec.

So this means that it might not be the size of spec3.json that's breaking swagger-ui, it might have something to do instead with some sort of circular reference. In any case I still think ultimately the fix probably needs to come from Swagger but wanted to log my findings.

from openapi.

richardm-stripe avatar richardm-stripe commented on July 17, 2024

Hello @Cedric-Magnan, thank you for writing in.

I suspect that swagger-ui is struggling with the size of the Stripe OpenAPI spec. I would report the issue to them.

I can play around with swagger-ui for awhile to see if there's a simple fix, but if not I expect there's nothing we can do on our end short of finding a way to split Stripe's OpenAPI spec into smaller parts, which is something we've considered in the past but is unlikely to happen soon.

We don't officially support swagger-ui. We do provide (and officially support) a Postman Collection. We also provide the Stripe CLI, a tool to help you interactively explore the Stripe API from the command-line, and the Stripe Shell, a similar tool that helps you explore from the context of the Stripe docs.

from openapi.

Cedric-Magnan avatar Cedric-Magnan commented on July 17, 2024

Hello @richardm-stripe,

Thanks for the useful informations !
I will close this issue since nothing can be done on this repository.

from openapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.