Skip to content

Improve validation and error handling #45

@V3lop5

Description

@V3lop5

Describe the solution you'd like
The handling for validation and errors should be unified. Its a bad practise to keep them inside the endpoints methods. They should be extracted to validation classes.

Every validation error that's thrown inside validator should raise an exception. This exception should result in a 400 Bad Request http status response code.

Additional context
Nothing by now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityWould improve code qualityenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions