Skip to content

Commit

Permalink
Remove now-defunct parameter in pydantic generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Sep 10, 2024
1 parent f33e25b commit f91c136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def regenerate_models(_):
for schema in schemas:
print(schema)
schema_path = Path(schema)
gen = pd.PydanticGenerator(schema, pydantic_version="2", verbose=True)
gen = pd.PydanticGenerator(schema, verbose=True)
output = gen.serialize()
with open(MODEL_DIRECTORY / f"{schema_path.name.strip('.yaml')}.py", "w") as f:
f.writelines(output)
Expand Down

0 comments on commit f91c136

Please sign in to comment.