Skip to content

Standardize API validation error format across all endpoints #967

Description

@nanaf6203-bit

Problem

ValidationPipe errors format may be inconsistent: field names in camelCase vs snake_case, nested errors structure varies, no error codes.

Expected Outcome

Standardized validation error format with error codes and consistent field naming.

Acceptance Criteria

  • Consistent error format: { field, message, code, constraints }
  • Field names follow API convention (camelCase)
  • Error codes for each validation type
  • Documentation of error format

Files Affected

src/common/filters/validation-exception.filter.ts (new)

Difficulty

Easy

Estimated Effort

Small (1 day)

Labels

api, enhancement, developer-experience

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions