Enhance Hero Request Validation and Error Handling#1
Open
Santix1234 wants to merge 6 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance Hero Request Validation and Error Handling
Description
Task
Add validation and error handling for hero request
Acceptance Criteria
Summary of Work
Overview
This pull request implements robust validation and error handling for hero requests, ensuring comprehensive input validation and providing clear, informative error responses.
Key Changes
src/validation/heroValidation.jsHeroValidationErrorfor consistent error reportingValidation Improvements
Input Type Checking
Error Handling
HeroValidationErrorwith appropriate status codesTesting Approach
Notes
Changes Made
Tests
Signatures
Staking Key
DKCEYXWcoJrRVt9kB7nXZQkeL2MrNxobmbsWC8R3QWA8: WGhgZu91SLERdeQRjaNQmLANFDBtMWoBzKhGTigFPFJz9KFq97LTu5v4jNm23Wbj6pw6TuwG9dRqFxDR8rTUdpsdQ5oBdHr8pRRSpDmatDZLKcLxSYzkMfm1vsCSkhHaWnEjLJ9X5Eu2gFYN8d7QasgNa55zgq5EF1vn2ymjiN4tizqgTv5K5hXLbgkhZywEgwazL54DdnX4Tk7V2oHXJtCeYor9BpStp8CL7XWY5uyjxKgKZh5jVFSkN5qKPXD3aD6jro5io7W5jhT7ASb7YzzPs8AKGvfqk4cJndxGrJABEH54TYGoMKPfctFNYewPorV1vUHtbz6xLTB1T1F7QYqRq5iQD4JwEdLP9WZfNLvc898S9pkVgKNjzrKvVtoBNruMwGRh1GUh6zmDF5LBobDaiCUHMYwWEQ
Public Key
BLkTvPfFXvR52AK1EoHFaPyE1eDy6Mr5GvgWAbFMvK6x: PkutyySMK13tqKBNb8W2Mgh2yo2nbQepf361p2qDc4KcMrguvvdBMAArWf2AxgZUo54iHBnkqoB3fo22EJEMBWfZdYcDJEgZ5dCyb9S4jD5K1aewYuePX9Rh7V4oY4Edb8cHwmneQzpcnt2ehLY3k7YbAC3yBykoRWhq76PynZwjQSefAWneDs1pjkeMSsJXaVZo8pNaaBMeQGg7roCHgjGsYF8eQ3UBEynYYcx9VaCgPvHMZHFxuWb6WR5tFTaVDGz4pxAckNao7QyyDNbYXs1DuvMiXzer2tNa5DJ6XGhxZQZhzBKSAzpZMQMiSXPuhNPkZ8ALWeK7yyHoYnoY7enWHiqaKJUAtNqDcr7wJqvpwUP3wM6qUZjdYZG96TaKAXxh9dq2h23TAZfqgQwpYUqkJYvocFCfCp