File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
ProvidedCodeGenOptions ,
3
3
makeOptions ,
4
- validOptions
4
+ validateOptions
5
5
} from "./options/options" ;
6
6
import { transformToCodeWithMustache } from "./transform/transformToCodeWithMustache" ;
7
7
import { Swagger2Gen } from "./generators/swagger2" ;
@@ -16,7 +16,7 @@ export const CodeGen = {
16
16
return enhanceCode ( Swagger2Gen . getCode ( options ) , options ) ;
17
17
} ,
18
18
getCustomCode : function ( opts : ProvidedCodeGenOptions ) {
19
- validOptions ( opts ) ;
19
+ validateOptions ( opts ) ;
20
20
21
21
const options = makeOptions ( opts ) ;
22
22
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export function makeOptions(options: ProvidedCodeGenOptions): CodeGenOptions {
53
53
/**
54
54
* Validate that the options have required variables for custom generation.
55
55
*/
56
- export function validOptions ( options : ProvidedCodeGenOptions ) : void {
56
+ export function validateOptions ( options : ProvidedCodeGenOptions ) : void {
57
57
// TODO: Why do we not check for the existence of the type template?
58
58
if (
59
59
! options . template ||
You can’t perform that action at this time.
0 commit comments