Closed Prn-Ice closed 3 years ago
@Prn-Ice Hi :wave:
Here is not a bug, the generator work with duplicates files in this way and guarantees to not override old files. Because this generator split the big nested JSON objects into separate files and is a big risk to override some important files by mistake. For example, hand modified or well documented. And it's documented that if you want to update files you need to delete old ones. And I think it does not happen so often, that's safer to delete it manually.
I see, thanks.
Is there an existing issue for this?
Current Behavior
Say I have the following in my
models.jsonc
If I added a new field to the above json and rerun build models, I get told that
db_options.dart
already exists. I then have to delete the previously generated file and rerun the command for it to build successfully.Expected Behavior
The previously generated file should be overriden.
Steps To Reproduce
No response
Version
Relevant JSON syntax
Anything else?
No response