Skip to content

πŸ”§ [Lang API] Validate Chat API with govalidatorΒ #159

Open
@roma-glushko

Description

@roma-glushko

Currently, if we miss to pass any of required fields in the chat request, we fail with decoding error that doesn't say much about the location of the error:

Screenshot 2024-02-25 at 17 25 00 Screenshot 2024-02-25 at 17 25 12

We should use https://github.com/go-playground/validator (already installed in the project)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions