Skip to content

[TASK] Refactor command input handling and remove redundant validators#197

Merged
froemken merged 2 commits intomainfrom
refactorClassNameValidator
Feb 14, 2026
Merged

[TASK] Refactor command input handling and remove redundant validators#197
froemken merged 2 commits intomainfrom
refactorClassNameValidator

Conversation

@froemken
Copy link
Copy Markdown
Collaborator

@froemken froemken commented Feb 9, 2026

The Decorators no longer instantiate Normalizers to avoid duplicate work. Specialized validators (Command, Controller, Event, etc.) have been removed in favor of calling ClassNameValidator directly.

Since the Normalizer now ensures the correct suffixes are present before validation occurs, the suffix-specific checks are no longer required.

The Decorators no longer instantiate Normalizers to avoid duplicate work.
Specialized validators (Command, Controller, Event, etc.) have been
removed in favor of calling ClassNameValidator directly.

Since the Normalizer now ensures the correct suffixes are present before
validation occurs, the suffix-specific checks are no longer required.
@froemken froemken requested a review from simonschaufi February 9, 2026 22:21
@froemken
Copy link
Copy Markdown
Collaborator Author

froemken commented Feb 9, 2026

Relates to PR: #171

Copy link
Copy Markdown
Collaborator

@simonschaufi simonschaufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like your improvements!

@froemken
Copy link
Copy Markdown
Collaborator Author

froemken commented Feb 9, 2026

@simonschaufi Thank you, but be careful. Now, the default value for various classname questions is just "DoSomething" and not "DoSomethingCommand" anymore. I don't think that this is an issue. Nevertheless the "Command" will automatically be applied, if not already given...but hidden for the user. Only with last confirmation the user will see, that we have added the "needed" suffix to the class- and filename.

What do you think? Still OK?

@simonschaufi
Copy link
Copy Markdown
Collaborator

Please provide the name of your controller:
Car
Class name CarController will be used

That is absolutely fine for me.

@simonschaufi
Copy link
Copy Markdown
Collaborator

I hope you will also add some tests later on 😄

@froemken
Copy link
Copy Markdown
Collaborator Author

I have written you via Slack

@froemken froemken merged commit d6d1efd into main Feb 14, 2026
1 check passed
@froemken froemken deleted the refactorClassNameValidator branch February 14, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants