Skip to content

Commit

Permalink
models:reference_files - update RenameAction to match fileformats schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Nov 8, 2023
1 parent cc3dcec commit 2dbda27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions acacore/models/reference_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2dbda27

Please sign in to comment.