Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

[Fix 177]: Throw exception when spec version is not recognized by reader#181

Merged
scott-lin merged 3 commits intomastermicrosoft/OpenAPI.NET:masterfrom
scottlin_issue177microsoft/OpenAPI.NET:scottlin_issue177Copy head branch name to clipboard
Jan 16, 2018
Merged

[Fix 177]: Throw exception when spec version is not recognized by reader#181
scott-lin merged 3 commits intomastermicrosoft/OpenAPI.NET:masterfrom
scottlin_issue177microsoft/OpenAPI.NET:scottlin_issue177Copy head branch name to clipboard

Conversation

@scott-lin
Copy link
Contributor

See #177 for context.

I've introduced a fundamental exception type of OpenApiReaderException and throw an OpenApiUnsupportedSpecVersionException when we encounter an unrecognized version. The former exception type is meant to be the base type for any more specific exception types to come in future.

Test added with version 1.0.0, which I assume we'll never support, so the test should be robust in future versions of OpenAPI spec.

Scott Lin added 2 commits January 16, 2018 11:53
…t with writer exceptions and added spec version property to exception
Copy link
Contributor

@PerthCharern PerthCharern left a comment

Choose a reason for hiding this comment

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

:shipit:

@scott-lin scott-lin merged commit 6377257 into master Jan 16, 2018
@scott-lin scott-lin deleted the scottlin_issue177 branch January 16, 2018 21:43
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.