Skip to content

Conversation

@karol-maciaszek
Copy link
Contributor

This PR fixes the condition of rejecting empty parsing results.

Currently, when options.continueOnError is true and result is empty it will reject.
With this change, it will reject only if allowEmpty is false.

I'm a bit unsure whether this should be still dependent on continueOnError.

@JamesMessinger JamesMessinger requested a review from P0lip June 24, 2020 10:23
@JamesMessinger
Copy link
Member

Requesting @P0lip to take a look at this, since he knows that logic best

Copy link
Member

@P0lip P0lip left a comment

Choose a reason for hiding this comment

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

I've already reviewed the same code in our internal PR here stoplightio#3.
Looks good - AFAIK we've already also had tested it live on a number of models.

@P0lip P0lip merged commit 5df2189 into APIDevTools:master Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants