Skip to content

Commit f5aba03

Browse files
committed
Rename 'validOptions' to 'validateOptions'
1 parent 417d2ee commit f5aba03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/codegen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
ProvidedCodeGenOptions,
33
makeOptions,
4-
validOptions
4+
validateOptions
55
} from "./options/options";
66
import { transformToCodeWithMustache } from "./transform/transformToCodeWithMustache";
77
import { Swagger2Gen } from "./generators/swagger2";
@@ -16,7 +16,7 @@ export const CodeGen = {
1616
return enhanceCode(Swagger2Gen.getCode(options), options);
1717
},
1818
getCustomCode: function(opts: ProvidedCodeGenOptions) {
19-
validOptions(opts);
19+
validateOptions(opts);
2020

2121
const options = makeOptions(opts);
2222

src/options/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function makeOptions(options: ProvidedCodeGenOptions): CodeGenOptions {
5353
/**
5454
* Validate that the options have required variables for custom generation.
5555
*/
56-
export function validOptions(options: ProvidedCodeGenOptions): void {
56+
export function validateOptions(options: ProvidedCodeGenOptions): void {
5757
// TODO: Why do we not check for the existence of the type template?
5858
if (
5959
!options.template ||

0 commit comments

Comments
 (0)