Skip to content

feat(normalization): validation error correction and delete some dupl…#25

Open
Ekyoz wants to merge 1 commit into
mainfrom
feat/validation-proto
Open

feat(normalization): validation error correction and delete some dupl…#25
Ekyoz wants to merge 1 commit into
mainfrom
feat/validation-proto

Conversation

@Ekyoz
Copy link
Copy Markdown

@Ekyoz Ekyoz commented Jan 20, 2026

Normalize all the proto file and delete duplicate.
Rename some enum for enchance understability.

@Ekyoz Ekyoz self-assigned this Jan 20, 2026
@Ekyoz Ekyoz added the Enhancement Denotes improvements to existing features rather than new feature development. label Jan 20, 2026
@Relixik
Copy link
Copy Markdown
Contributor

Relixik commented Jan 20, 2026

J'ai remarqué que l'enum SetupStatus est défini en double avec des valeurs différentes.
À voir si on crée pas un module common/v1 pour centraliser les types partagés (enums, pagination, timestamps, etc.) histoire d'éviter ce genre de duplication à l'avenir.
Ça permettrait aussi d'harmoniser les noms de champs - par exemple GetFilesRequest utilise list_size alors que les autres services utilisent limit.

Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/cost/v1/cost_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/storage/v1/storage.proto Outdated
Comment thread proto/agentic_mesh_protocol/user_profile/v1/user_profile.proto Outdated
Comment thread proto/agentic_mesh_protocol/setup/v1/setup.proto Outdated
Comment thread proto/agentic_mesh_protocol/setup/v1/setup.proto Outdated
Comment thread proto/agentic_mesh_protocol/setup/v1/setup.proto Outdated
Comment thread proto/agentic_mesh_protocol/setup/v1/setup.proto Outdated
Comment thread proto/agentic_mesh_protocol/setup/v1/setup.proto Outdated
@Ekyoz Ekyoz requested a review from Relixik January 22, 2026 14:18
Comment thread proto/agentic_mesh_protocol/cost/v1/cost.proto
Comment thread proto/agentic_mesh_protocol/cost/v1/cost_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/cost/v1/cost_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/cost/v1/cost_messages.proto
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem.proto
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem.proto
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_dto.proto Outdated
Copy link
Copy Markdown
Collaborator

@xaviave xaviave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 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_in for the enum instead of defined_only

  • Big mistake with the deletion of ModuleStatus

Comment thread proto/agentic_mesh_protocol/cost/v1/cost_messages.proto Outdated
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_messages.proto Outdated
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_messages.proto Outdated
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_messages.proto
Comment thread proto/agentic_mesh_protocol/filesystem/v1/filesystem_messages.proto Outdated
Comment thread proto/agentic_mesh_protocol/storage/v1/storage_messages.proto Outdated
Comment thread proto/agentic_mesh_protocol/storage/v1/storage_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/storage/v1/storage_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/storage/v1/storage_dto.proto Outdated
Comment thread proto/agentic_mesh_protocol/user_profile/v1/user_profile_messages.proto Outdated
@Ekyoz Ekyoz requested a review from xaviave January 28, 2026 16:57
@Ekyoz Ekyoz force-pushed the feat/validation-proto branch 3 times, most recently from da14899 to b01266c Compare February 20, 2026 14:38
@Ekyoz Ekyoz added Refacto Improve the project size and quality of code. labels Feb 20, 2026
- 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.
@Ekyoz Ekyoz force-pushed the feat/validation-proto branch from 0120a64 to ddd9561 Compare February 23, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Denotes improvements to existing features rather than new feature development. Refacto Improve the project size and quality of code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants