Skip to content

Add Input Validation to Console Commands #325

@armanist

Description

@armanist

Currently, several console commands in Quantum Framework — particularly those that create, update, or delete users or posts — do not perform any input validation. This can lead to invalid or inconsistent data being processed.

Proposed Improvement:

Implement proper validation for all inputs in console commands.

Ensure that commands that create, update, or delete users or posts check required fields, formats, and constraints before performing any actions.

Consider reusing existing validation logic from controllers/middlewares to maintain consistency.

Expected Outcome:

Invalid input should be rejected with clear error messages.

Only valid and properly formatted data is processed by the commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions