Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Use just the 1st req-res pair within APIB transaction examples #61

Merged

Conversation

honzajavorek
Copy link
Contributor

@honzajavorek honzajavorek commented Aug 23, 2016

BREAKING CHANGE

This change fixes a problem introduced with migration to API Elements in order to support Swagger in Dredd. Original implementation always selected the first request-response pair from each transaction example. This wasn't re-implemented correctly on top of API Elements. Instead, all specified responses are appearing, which breaks Dredd's behavior in many ways. Respective test was ported, but unfortunately with the same mistake.

Some early adopters discovered the issue and considered it to be a new feature, but it really breaks how Dredd should work at the moment and needs to be removed. It leads to duplicate transaction names and other undefined behavior.

In order to implement apiaryio/dredd#25 and apiaryio/dredd#78, which many believed happened when they discovered the bug, much more work needs to be done. Namely designing and adopting a new way of addressing transactions in Dredd apiaryio/dredd#227.

This change fixes a problem introduced with migration to API Elements in order
to support Swagger in Dredd. Original implementation always selected the first
request-response pair from each transaction example. This wasn't re-implemented
correctly on top of API Elements. Instead, all specified responses are appearing,
which breaks Dredd's behavior in many ways. Respective test was ported, but
unfortunately with the same mistake.

Some early adopters discovered the issue and considered it to be a new
feature, but it really breaks how Dredd should work at the moment and needs
to be removed. It leads to duplicate transaction names and other undefined
behavior.

In order to implement apiaryio/dredd#25 and apiaryio/dredd#78,
which many believed happened when they discovered the bug, much more work needs
to be done. Namely designing and adopting a new way of addressing transactions
in Dredd apiaryio/dredd#227.

BREAKING CHANGE
@honzajavorek honzajavorek force-pushed the honzajavorek/fix-apib-regression-transaction-examples branch from fbd1d1d to 0af7c01 Compare August 24, 2016 11:39
@netmilk
Copy link
Contributor

netmilk commented Aug 24, 2016

👌

@netmilk netmilk merged commit ccc545c into master Aug 24, 2016
@honzajavorek honzajavorek deleted the honzajavorek/fix-apib-regression-transaction-examples branch August 24, 2016 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants