Skip to content

Catch any OpenApiExceptions thrown during parsing and continue processing Schema Components#727

Merged
darrelmiller merged 7 commits intovnextfrom
mk/fix-parsing-errors
Feb 28, 2022
Merged

Catch any OpenApiExceptions thrown during parsing and continue processing Schema Components#727
darrelmiller merged 7 commits intovnextfrom
mk/fix-parsing-errors

Conversation

@MaggieKimani1
Copy link
Contributor

Fixes #698

}
catch (OpenApiException)
{
return null;
Copy link
Member

Choose a reason for hiding this comment

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

We need to add an error to the errors collection in the diagnostics object.

@darrelmiller darrelmiller merged commit d551f87 into vnext Feb 28, 2022
@darrelmiller darrelmiller deleted the mk/fix-parsing-errors branch February 28, 2022 23:55
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.

Fails to gracefully degrade when hitting certain parsing errors

2 participants

Comments