File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed
src/{{ project_name_snake }} Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def export_types(schema_file: str):
4949
5050def generate_typescript_interfaces (schema_dir : Path ):
5151 run_command (
52- f"npx -y json-schema-to-typescript@15.0.4 -i '{ schema_dir / '*.json' } ' -o { schema_dir } "
52+ f"npx -y json-schema-to-typescript@15.0.4 -i '{ schema_dir / '*.json' } ' -o { schema_dir } --additionalProperties=false "
5353 )
5454 run_command (f"npx -y prettier@3.5.1 --write { schema_dir } " )
5555
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def export_types(schema_file: str):
4949
5050def generate_typescript_interfaces (schema_dir : Path ):
5151 run_command (
52- f"npx -y json-schema-to-typescript@15.0.4 -i '{ schema_dir / '*.json' } ' -o { schema_dir } "
52+ f"npx -y json-schema-to-typescript@15.0.4 -i '{ schema_dir / '*.json' } ' -o { schema_dir } --additionalProperties=false "
5353 )
5454 run_command (f"npx -y prettier@3.5.1 --write { schema_dir } " )
5555
Original file line number Diff line number Diff line change @@ -9,5 +9,4 @@ export type Hello = string;
99
1010export interface MySchema {
1111 hello : Hello ;
12- [ k : string ] : unknown ;
1312}
Original file line number Diff line number Diff line change @@ -9,5 +9,4 @@ export type Hello = string;
99
1010export interface MySchema {
1111 hello : Hello ;
12- [ k : string ] : unknown ;
1312}
You can’t perform that action at this time.
0 commit comments