Skip to content

Commit

Permalink
fixing pydantic generator syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
djarecka committed Mar 27, 2024
1 parent a905618 commit 5da062d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# generating jsonld context and removing generation_date field to avoid constant updates
gen-jsonld-context ${file} > ../jsonld-context-autogen/${name}.context.jsonld;
sed -i "/generation_date/d" ../jsonld-context-autogen/${name}.context.jsonld;
gen-pydantic --pydantic_version 2 ${file} > ../models_py-autogen/${name}.py;
gen-pydantic --pydantic-version 2 ${file} > ../models_py-autogen/${name}.py;
if [ ${name} = "kbmodel" ]; then
echo "Creating and Fixing kbmodel diagram..";
python ../utils/create_fix_kbmodel_diagram.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# generating jsonld context
gen-jsonld-context ${file};
# generating pydantic schema
gen-pydantic --pydantic_version 2 ${file};
gen-pydantic --pydantic-version 2 ${file};
if [ ${name} != "kbmodel" ]; then
gen-erdiagram ${file};
fi
Expand Down

0 comments on commit 5da062d

Please sign in to comment.