We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6103146 commit ab0806cCopy full SHA for ab0806c
text_2_sql/data_dictionary/data_dictionary_creator.py
@@ -686,10 +686,14 @@ async def create_data_dictionary(self):
686
if self.single_file:
687
logging.info("Saving data dictionary to entities.json")
688
with open("entities.json", "w", encoding="utf-8") as f:
689
- json.dump(
690
- data_dictionary.model_dump(
+ data_dictionary_dump = [
+ entity.model_dump(
691
by_alias=True, exclude=self.excluded_fields_for_database_engine
692
- ),
+ )
693
+ for entity in data_dictionary
694
+ ]
695
+ json.dump(
696
+ data_dictionary_dump,
697
f,
698
indent=4,
699
default=str,
0 commit comments