diff --git a/doc/changelog.d/635.added.md b/doc/changelog.d/635.added.md new file mode 100644 index 000000000..584b20c6d --- /dev/null +++ b/doc/changelog.d/635.added.md @@ -0,0 +1 @@ +Fix: fixed Pydantic warning issue diff --git a/src/ansys/sherlock/core/types/parts_types.py b/src/ansys/sherlock/core/types/parts_types.py index 019bf0e3c..fc1ee10e1 100644 --- a/src/ansys/sherlock/core/types/parts_types.py +++ b/src/ansys/sherlock/core/types/parts_types.py @@ -170,7 +170,7 @@ class ImportPartsToAVLRequest(BaseModel): import_file: str """Full file path to the AVL file.""" - import_type: parts_service.AVLImportType + import_type: parts_service.AVLImportType.ValueType """Import mode to use for AVL data.""" """Allow non-standard types like Protobuf enums in Pydantic models.""" diff --git a/tests/test_parts.py b/tests/test_parts.py index a570f92d7..5463802d3 100644 --- a/tests/test_parts.py +++ b/tests/test_parts.py @@ -55,6 +55,7 @@ def test_all(): helper_test_get_part_location(parts) helper_test_get_parts_list_properties(parts) helper_test_update_pad_properties(parts) + helper_test_import_parts_to_avl(parts) def helper_test_update_parts_list(parts: Parts):