Skip to content

Commit

Permalink
chore: remove info.version validation
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jan 17, 2019
1 parent 8c9e3bd commit 801fea0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/services/OpenAPIParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ export class OpenAPIParser {
if (spec.openapi === undefined) {
throw new Error('Document must be valid OpenAPI 3.0.0 definition');
}
if (spec.info === undefined) {
throw new Error('OpenAPI 3.0.0 requires an `info` section');
}
if (spec.info.version === undefined) {
console.warn('OpenAPI 3.0.0 requires setting a `info.version` field, ignoring.');
}
}

preprocess(spec: OpenAPISpec) {
Expand Down

0 comments on commit 801fea0

Please sign in to comment.