Hi GuysOur development team is going to start using swagger and we also wish to implement CDC testing using swagger. Is it possible to define or generate the pact contracts using Swagger or do we do that separately?
--
Pact-Support email group is being deprecated, please use StackOverflow instead to help make questions and answers more visible: http://stackoverflow.com/questions/tagged/pact
---
You received this message because you are subscribed to the Google Groups "Pact Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ITV plc (Registration No. 4967001) (ITV) is incorporated in England and Wales with its registered office at The London Television Centre, Upper Ground, London SE1 9LT. Please visit www.itv.com for further information.
Please note that all bookings sent to an ITV broadcaster are made subject to either (i) in respect of all broadcasters except the STV broadcasters, the broadcaster's standard airtime sales terms and conditions located at http://www.itvmedia.co.uk/legal/broadcasterstermsandconditions2018, or (ii) in respect of the STV broadcasters only the STV broadcasters standard airtime sales terms and conditions located at http://www.itvmedia.co.uk/legal/stvbroadcasterstermsandconditions2018 and are deemed to be made in accordance with any deal agreement in place between the Buyer and ITV Commercial, a division of ITV Broadcasting Limited ("Deal Agreement").
>>> Who does this is only of second grade importance to me. In cases where consumer driven is workable, certainly do so. In cases where producers own the API, you have enforced testable behavior.
Hi Gerry,This questions comes up a lot, you are not alone in wondering whether this is a suitable approach.Pact works around two actors, the consumer and the provider. The consumer calls the provider and in doing so, defines the Pact contracts (Consumer Driven Contract Testing). A provider may produce swagger docs to describe their API, but if it also produced it's own Pact descriptions they would have no value as they wouldn't have been tested by the consumer. It's a bit like marking your own exam results.So in answer to your question: Yes, you will need to generate them separately using a CDC/Pact test suite because Swagger and Pact descriptions are created by philosophically opposite processes.Hope that helps,Dave
--David Smith | Principal Software Engineer | Online Technology | ITV plc200 Gray's Inn Road, London, WC1X 8HF | Tel: 07754 417715
On 2 May 2018 at 22:10, Gerry Mc <gerrym...@gmail.com> wrote:
Hi GuysOur development team is going to start using swagger and we also wish to implement CDC testing using swagger. Is it possible to define or generate the pact contracts using Swagger or do we do that separately?
--
Pact-Support email group is being deprecated, please use StackOverflow instead to help make questions and answers more visible: http://stackoverflow.com/questions/tagged/pact
---
You received this message because you are subscribed to the Google Groups "Pact Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pact-support...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.