Validation annotation on zanata api DTOs are not checked

Description

Description of problem:
We have validation annotation defined on fields in zanata API DTOs, i.e. textflow.id with size max at 255. But they are not checked/used by client or server.

Version-Release number of selected component (if applicable):
2.1-

How reproducible:
always

Steps to Reproduce:
1. push a properties project with key longer than 255
2. push should fail

Actual results:
It failed on the server which produces exception stacktrace in server log

Expected results:
After constructed the DTO on client, client should check if it's valid. If it's not, tell the client and don't even bother sending over to the server.

Additional info:

Environment

None

Status

Assignee

Patrick Huang

Reporter

Patrick Huang

Tested Version/s

None

Components

Fix versions

Priority

Low
Configure