pact-foundation / pact_broker-client

A Ruby and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.
MIT License
69 stars 47 forks source link

feat: Add support for loading OAS contract from URL #153

Open matteus6007 opened 10 months ago

matteus6007 commented 10 months ago

Currently you only allow loading OAS contract from a file path, I require loading from a URL such as http://my-api.com/swagger/v1/swagger.json as the contract is dynamically created based on the models in the API.

bethesque commented 9 months ago

For the moment, your best bet is to use an HTTP client download the OAS to the machine where the publish command is running, and then publish it from the file path.