Skip to content

Conversation

@pderaaij
Copy link
Contributor

No description provided.

@pderaaij
Copy link
Contributor Author

I have the same fix in #248.

Guess there are still some promise issues in oas-validator which we need to find, but it shouldn't break speccy like it does right now.

@philsturgeon
Copy link
Contributor

@MikeRalphson I know there have been a lot of changes in oas-validator recently, should I merge this or wait for the updates?

@philsturgeon
Copy link
Contributor

@pderaaij hey could you update the changelog for this? It should go under an Unreleased header instead of a specific version for now.

@pderaaij
Copy link
Contributor Author

@philsturgeon this appears not to be the correct fix. I found the correct one for #248.

I will update the PR in a few minutes.

@pderaaij
Copy link
Contributor Author

@philsturgeon Updated the PR, this is a proper fix

@philsturgeon
Copy link
Contributor

Thank you @pderaaij. I'm going to leave it to @MikeRalphson to review this one, if he approves I'll be happy to merge it.

@MikeRalphson
Copy link
Contributor

@pderaaij should I test this one against the released [email protected] or against the upcoming release? If the latter, how are you linking the unreleased code to Speccy to test, referencing git urls in package.json or using npm link or some other approach?

@pderaaij
Copy link
Contributor Author

@MikeRalphson I've tested it against 2.0.1 as well as the current state of v5prep. For the latter I take a poor mans approach of copying the last files in the branch to node_modules.

The fix should work in both cases.

Copy link
Contributor

@MikeRalphson MikeRalphson left a comment

Choose a reason for hiding this comment

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

Should it not be?

const { context, lintResults, valid } = _options || err.options;

        if (err && valid === false) {

@MikeRalphson
Copy link
Contributor

MikeRalphson commented Jan 17, 2019

With the above change, Speccy gives the correct output and exit code on my invalid, minimal and minimalLintable examples, which I can post in a gist if useful. This is with both the released and unreleased version of oas-validator.

Copy link
Contributor

@MikeRalphson MikeRalphson left a comment

Choose a reason for hiding this comment

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

Now LGTM! PR should probably be squashed to aid any future git bisect etc.

@pderaaij
Copy link
Contributor Author

Thanks for the review. I need to get used to all the new options in Javascript. Long time ago I developed in javascript/node.js ;-)

@MikeRalphson
Copy link
Contributor

Long time ago I developed in javascript/node.js ;-)

Doesn't show, I'd hate to try and write any Java or C# today!

@dkarlovi
Copy link

Is there a way for me to fetch a Docker image with this baked in so I can test it against #253?

@philsturgeon philsturgeon merged commit 2971633 into wework:master Jan 17, 2019
@philsturgeon
Copy link
Contributor

@dkarlovi sorry bud I was asleep! :) Merged now, so docker hub should be updated soon.

@dkarlovi
Copy link

@philsturgeon sweet, just ran nightly, it indeed fixed the issue, thanks. 👍

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.

4 participants