Skip to content

Commit 261a09a

Browse files
carloslfudomoritz
authored andcommitted
Fix programmatic example
1 parent d6ac198 commit 261a09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ import * as TJS from "typescript-json-schema";
4848

4949
// optionally pass argument to schema generator
5050
const settings: TJS.PartialArgs = {
51-
generateRequired: true
51+
required: true
5252
};
5353

5454
// optionally pass ts compiler options
55-
compilerOptions: CompilerOptions = {
55+
const compilerOptions: CompilerOptions = {
5656
strictNullChecks: true
5757
}
5858

0 commit comments

Comments
 (0)