Skip to content

Add helper for building consistent validation error response for failed requests #352

@Chucks1093

Description

@Chucks1093

Summary
Validation errors across different endpoints are shaped inconsistently, with some including field-level detail and others returning a generic message. A small helper that builds a consistent validation error response with field names and messages standardizes the shape.

Scope

  • add a helper that accepts a list of field validation errors and returns a structured error response
  • apply the helper to at least two existing validation error paths
  • ensure the shape matches the documented API error envelope

Acceptance Criteria

  • validation error responses built with the helper share a consistent shape
  • field-level errors include the field name and a descriptive message
  • the helper is applied to at least two existing endpoints

Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions