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

Ability to pass input document to Prism via stdin #1578

Closed
lehphyro opened this issue Dec 11, 2020 · 4 comments
Closed

Ability to pass input document to Prism via stdin #1578

lehphyro opened this issue Dec 11, 2020 · 4 comments

Comments

@lehphyro
Copy link
Contributor

It seems prism waits for up to 5 seconds to fetch an API specification with a command like prism mock http://someserver.com/openapi.yaml. Could you please increase that to maybe 30 seconds so that people with slower internet can use it?

@XVincentX
Copy link
Contributor

XVincentX commented Dec 11, 2020

Hey,

I can try to take a look into although I am not too sure wether we have such control. The json ref resolver is internally fetching the document and its logic is hidden.

In meantime, is there any chance you can download the file and feed the document to Prism?


For the future self: I'd say the best way to properly handle this is to let the people feed Prism via the standard input, so we get out of the user's way.

@XVincentX XVincentX self-assigned this Dec 11, 2020
@XVincentX XVincentX changed the title Increase request timeout to fetch API spec with URL Ability to pass input document to Prism via stdin Dec 11, 2020
@lehphyro
Copy link
Contributor Author

That solution also works, I'm passing the file to prism myself for now.

@XVincentX
Copy link
Contributor

Sweet! We'll try to look into that!

@ryotrellim
Copy link
Contributor

Closing this ticket as we won't be able to address in the foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants