From 2dbda278b3227e17a2db2c4b4ab66b4c7e6f498b Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Wed, 8 Nov 2023 11:21:12 +0100 Subject: [PATCH] models:reference_files - update RenameAction to match fileformats schema https://github.com/aarhusstadsarkiv/reference-files/blob/180dddff50cd6abce0b0358ae895aa1381594fb4/fileformats.schema.json --- acacore/models/reference_files.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/acacore/models/reference_files.py b/acacore/models/reference_files.py index 5febf06..11408ca 100644 --- a/acacore/models/reference_files.py +++ b/acacore/models/reference_files.py @@ -120,13 +120,14 @@ class ReIdentifyAction(BaseModel): class RenameAction(BaseModel): """ - Class representing an action to rename a file. It is a dictionary-based class with the following fields. + Class representing an action to change file's extension. Attributes: - new_name (str): A string representing the new name for the file. + extension (str): A string representing the new extension for the file. """ - new_name: str + extension: str + append: bool = False on_extension_mismatch: bool = False