Skip to content

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

Merged
scott-lin merged 3 commits into
masterfrom
scottlin_issue177
Jan 16, 2018
Merged

[Fix 177]: Throw exception when spec version is not recognized by reader#181
scott-lin merged 3 commits into
masterfrom
scottlin_issue177

Conversation

@scott-lin

Copy link
Copy Markdown
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

@PerthCharern PerthCharern left a comment

Copy link
Copy Markdown
Contributor

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