Skip to content

Commit

Permalink
Merge pull request #77 from narve/master
Browse files Browse the repository at this point in the history
fix typo in OpenAPI version validation
  • Loading branch information
pjmolina authored Apr 21, 2022
2 parents f074153 + 6b97126 commit 79483f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsl/OpenApiBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class OpenApiBuilder {
addOpenApiVersion(openApiVersion: string): OpenApiBuilder {
if (!OpenApiBuilder.isValidOpenApiVersion(openApiVersion)) {
throw new Error(
'Invalid OpnApi version: ' + openApiVersion + '. Follow convention: 3.x.y'
'Invalid OpenApi version: ' + openApiVersion + '. Follow convention: 3.x.y'
);
}
this.rootDoc.openapi = openApiVersion;
Expand Down

0 comments on commit 79483f2

Please sign in to comment.