Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.17
24.14
3,761 changes: 844 additions & 2,917 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"eslint-plugin-prettier": "^5.5.5",
"fast-xml-parser": "^5.5.7",
"form-data": "^4.0.0",
"gavel": "10.0.3",
"glob": "^7.2.0",
"http-string-parser": "^0.0.6",
"husky": "^9.1.7",
Expand Down
5 changes: 5 additions & 0 deletions packages/cli/src/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ function setFakerValue(option: string, value: any) {
// necessary as workaround broken types in json-schema-faker
// @ts-ignore
JSONSchemaFaker.option(camelCase(option) as keyof JSONSchemaFakerOptions, value);
if (camelCase(option) === 'fillProperties' && value === false) {
// When fillProperties is disabled, use schema default values instead of random generation
// @ts-ignore
JSONSchemaFaker.option('useDefaultValue', true);
}
}
Loading
Loading