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
Handle multiple transaction pairs #84
Conversation
BREAKING CHANGE: Skipping empty requests causes bad request-response pairing in the Mock Server. There are probably only legacy reasons why the empty requests are getting skipped and with API Elements we should update.
5170dcb
to
35c40a2
Compare
I think this should affect only docs and mock server. I'll verify manually the tested blueprint renders correct docs as expected with this change in metamorphoses. |
To my surprise, the docs render correctly with this change. |
"istanbul": "^0.4.5", | ||
"mocha": "^2.3.0", | ||
"protagonist": "^1.6.4", | ||
"protagonist": "^1.6.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can be removed completely in favour of the introduced drafter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea, but I don't want to snowball this PR much. I'll take a look and if the change is straightforward, I'll do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, there's enough protagonist.parse(..., {type: 'ast'}, ...
in the codebase for me not to interfere 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suspicious code, but can't find any more info on that. Looks like it shouldn't be there
@JackuB thx! if anything, we'll hopefully learn whether something blows up when I'll make a PR in the core app |
return element.meta?.classes.indexOf('api') isnt -1 | ||
|
||
|
||
describe.only('Multiple Transactions', -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@honzajavorek was the .only
a mistake?
This disables all the other tests (which I might add are not passing in master).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, mistake 😱
Skipping empty requests causes bad request-response pairing in the Apiary Mock Server. There are probably only legacy reasons why the empty requests are getting skipped and with API Elements we should update.
I assumed the versioning scheme from reading 9c6fc1b.
BREAKING CHANGE