feat(normalization): validation error correction and delete some dupl…#25
feat(normalization): validation error correction and delete some dupl…#25Ekyoz wants to merge 1 commit into
Conversation
|
J'ai remarqué que l'enum SetupStatus est défini en double avec des valeurs différentes. |
xaviave
left a comment
There was a problem hiding this comment.
-
add overall the CEL instead of the pattern.
Only validations like this are easier via patterns due to the union:
(buf.validate.field).string.pattern = "^(missions:|setups:).*$" -
Most of the string.min_len are equal to the minimum length without chars after, should be
mandatory_str_length + 1. -
Quite a lot of validations missing too.
-
Add optional to field where the required is false.
-
still use
not_infor the enum instead ofdefined_only -
Big mistake with the deletion of ModuleStatus
da14899 to
b01266c
Compare
- Create _dto files for Request/Response in each service. - Create _messages files that contain all the proto objects. - Create _enum files to define the enum of each service. - Update Request to add pagination if list of objects is required. - Update Response to match the bulk structure for all the responses. - Standardize/Add validation rules to all fields with CEL. - Standardize DTOs (Create/Delete/List/Search/Update/Upload). - Update Taskfile for better workflow and unifying with the others Taskfile.
0120a64 to
ddd9561
Compare
Normalize all the proto file and delete duplicate.
Rename some enum for enchance understability.