Skip to content

[POC] Simplify constructor parameter validation with a decorator#67

Open
Joao-Paulo-Silva wants to merge 15 commits into
AIS-Package:developfrom
Joao-Paulo-Silva:task/validate-parameters
Open

[POC] Simplify constructor parameter validation with a decorator#67
Joao-Paulo-Silva wants to merge 15 commits into
AIS-Package:developfrom
Joao-Paulo-Silva:task/validate-parameters

Conversation

@Joao-Paulo-Silva

@Joao-Paulo-Silva Joao-Paulo-Silva commented Jun 30, 2026

Copy link
Copy Markdown
Member

Description

This PR introduces a proof of concept for parameter validation in class constructors within the aisp.

The approach uses a decorator to centralize constructor parameter validation, replacing the need to invoke multiple sanitizers directly inside __init__ methods. This results in cleaner constructors, reduced and a more consistent.

Checklist

  • My code follows the Project Standards.
  • Alls new and existing test passed.
  • I have added docstrings to all new or modified functions and class.

@Joao-Paulo-Silva Joao-Paulo-Silva changed the title Task/validate parameters [POC] Simplify constructor parameter validation with a decorator Jun 30, 2026
@Joao-Paulo-Silva Joao-Paulo-Silva self-assigned this Jul 1, 2026
@Joao-Paulo-Silva Joao-Paulo-Silva added New Feature Add new modules or techniques architecture refactor Refactoring architecture: reduce coupling, improve cohesion. refactor Change without altering behavior. proposal Proposal for change labels Jul 4, 2026
@Joao-Paulo-Silva Joao-Paulo-Silva requested review from alisonzille and removed request for alisonzille July 5, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture refactor Refactoring architecture: reduce coupling, improve cohesion. New Feature Add new modules or techniques proposal Proposal for change refactor Change without altering behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant