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

Handle multiple transaction pairs #84

Merged
merged 5 commits into from Jun 14, 2017

Conversation

honzajavorek
Copy link
Contributor

@honzajavorek honzajavorek commented Jun 12, 2017

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

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.
@honzajavorek
Copy link
Contributor Author

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.

@honzajavorek
Copy link
Contributor Author

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",
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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 😬

Copy link

@JackuB JackuB left a 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

@honzajavorek
Copy link
Contributor Author

@JackuB thx! if anything, we'll hopefully learn whether something blows up when I'll make a PR in the core app

@honzajavorek honzajavorek merged commit 7770105 into master Jun 14, 2017
@honzajavorek honzajavorek deleted the honzajavorek/multiple-transactions branch June 14, 2017 14:24
return element.meta?.classes.indexOf('api') isnt -1


describe.only('Multiple Transactions', ->
Copy link
Member

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, mistake 😱

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

Successfully merging this pull request may close these issues.

None yet

3 participants