diff --git a/.github/workflows/generate_other_formats.yaml b/.github/workflows/generate_other_formats.yaml index a12039055..b4ed4569c 100644 --- a/.github/workflows/generate_other_formats.yaml +++ b/.github/workflows/generate_other_formats.yaml @@ -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 diff --git a/.github/workflows/test_other_formats.yaml b/.github/workflows/test_other_formats.yaml index 1a40bba55..38bcd5805 100644 --- a/.github/workflows/test_other_formats.yaml +++ b/.github/workflows/test_other_formats.yaml @@ -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