Skip to content

Conversation

@boillodmanuel
Copy link
Contributor

…erty "example" #448

@kidnme
Copy link

kidnme commented Feb 21, 2018

This is a critical fix for me. What do we have to do to move this along?

@webron webron requested a review from gracekarina February 21, 2018 17:11
@DaneWeber
Copy link

Does this need to be rebased? Anything else stopping it from being merged?

@gracekarina
Copy link
Contributor

gracekarina commented Feb 26, 2018

@boillodmanuel @DaneWeber yes this needs to be rebased. Sorry for the delay. I Will review a soon as rebased 👍

Copy link
Contributor

@gracekarina gracekarina left a comment

Choose a reason for hiding this comment

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

Please rebase.

@Test
public void testIssue255() {
SwaggerParser parser = new SwaggerParser();

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, why delete this test instead of making it work with the new approach?.

Copy link

Choose a reason for hiding this comment

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

Could I try to make this test work? Again, anything to move this fix along would be great.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, please and rebase as well. Thanks!

Copy link

Choose a reason for hiding this comment

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

So, grab the pull request, fix the test, rebase against the latest, and resubmit the pull request? You know I'm not the original author of this pull request ...

Copy link
Contributor

Choose a reason for hiding this comment

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

oh ok. So how else can we speed this fix?

Copy link

Choose a reason for hiding this comment

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

I'll try to patch up the pull request and see if I can make the test work. Hopefully sometime later today or tomorrow (unless the original author fixes this first).

Copy link

Choose a reason for hiding this comment

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

After some work/investigation and consulting the original issue 255, I believe this fix is correct and the original was not (and this is also indicated/hinted at in the fix of 255). There are unit tests in this fix that verify that a proper ArrayModel is returned for the array example (not a string as in the prior fixes unit test). I also tested with several downstream pipelines (one that takes swagger -> markdown -> asciidoc -> pdf and a similar one that takes swagger -> markdown -> asciidoc -> static html). In each case, the fixed version works (i.e. the final pdf / html with an array of objects is displayed correctly). So, the test was removed because it is somewhat redundant. Also, it seems like you might want the original issue 255 authors/collaborators to weigh in as I do not know what their downstream usage of the swagger-parser is (so this fix could break their usage - I cannot tell).

Copy link

Choose a reason for hiding this comment

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

So, are we good to go? Will this show up soon in a release?

Copy link
Contributor

@gracekarina gracekarina Mar 14, 2018

Choose a reason for hiding this comment

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

Hi we need this is updated with master branch, I do not have permission to update the @boillodmanuel fork, let me check what we can do. 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

@kidnme merged!

@gracekarina gracekarina merged commit f1394c2 into swagger-api:master Mar 14, 2018
@kidnme
Copy link

kidnme commented Mar 28, 2018

So, what causes new releases of the swagger parser? Just trying to gauge when this fix will make into an official release and into standard repos ...

@webron
Copy link
Contributor

webron commented Apr 17, 2018

@kidnme sorry, didn't see the message before. We try to release when we accumulate enough fixes, or when there's a critical bug fix (normally security related should one exist). We also try to coordinate releases of our libraries together, so it can get a bit more complicated.

Regardless, we've made a release today, feel free to jump on it!

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.

5 participants