File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class ApiInfo extends BaseComponent implements OnInit {
24
24
init ( ) {
25
25
this . info = this . componentSchema . info ;
26
26
this . specUrl = this . optionsService . options . specUrl ;
27
- if ( ! isNaN ( parseInt ( this . info . version . substring ( 0 , 1 ) ) ) ) {
27
+ if ( ! isNaN ( parseInt ( this . info . version . toString ( ) . substring ( 0 , 1 ) ) ) ) {
28
28
this . info . version = 'v' + this . info . version ;
29
29
}
30
30
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export class SpecManager {
83
83
preprocess ( ) {
84
84
let mdRender = new MdRenderer ( ) ;
85
85
if ( ! this . _schema . info ) {
86
- throw ' Required field "info" is not specified at the spec top level' ;
86
+ throw Error ( 'Specification Error: Required field "info" is not specified at the top level of the specification' ) ;
87
87
}
88
88
if ( ! this . _schema . info . description ) this . _schema . info . description = '' ;
89
89
if ( this . _schema . securityDefinitions ) {
You can’t perform that action at this time.
0 commit comments