Enhance Hero Endpoint Input Validation#4
Open
xLDVx wants to merge 4 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 Endpoint Input Validation
Description
Task
Add input validation for hero endpoint parameters
Acceptance Criteria
Summary of Work
This pull request adds robust input validation for hero endpoint parameters to prevent invalid or malicious requests.
Changes Made
src/middleware/heroValidation.tsValidation Details
Hero Name Validation:
Hero Search Query Validation:
Validation Rules
Benefits
Testing Approach
Changes Made
Tests
Signatures
Staking Key
He88p8gayqrGSWqpj7Mu4XzqcKsURDjnuK1z2UMnio3A: 2A9GnwR8FwJP9L7FXc9aGAEUcxYLhQyGYUGTbx8KfhAxyAQmhLw9VPKxarKFYnnyoTB1Peoc257jnjjAQq7pSHzc4xgHGdbYHd5ZEJsujQqiKam1jBJpLaYoqa45K1ikQFqVh7ZcQshKmgY4s6tatdLxgjWrjLPnQneaNe47j9WDYnn3RMt4nbPaKqFXwgFN3f5x7L7geodar7AqdeC9SvByBmzHAcYgfQzAZTLU2Qc1nzigQJw7eukyLSmKWC5KGWpXRsX4654QuCEF7c5NU2Ygbx4UAh1nTa7wJdFB5nTrQMadQmLPK6k4DU1rG9YxnEbGeTcCGicVDPtfu7PWQpFF54Ed6GSaCXytwXiThh4E4mezgXNN5Hhjamv3e6RvNKeYc5gKGbkKRAjExYXkwa341Zrt
Public Key
FVeknmSZKTCvd8fxFxt5T4mQgxED2QhYBZyexLyCrrB8: gR9N13Cy7A1ULzDeBmoDPTEsrNU8N4FzGhoTRctRXFSfdHC1AtbzZRscxQgrEPB1S7iF7MXEzo2iC5JH1VxUkD8918h7HymLzUBN7u87YJ3twvPwpbj9QGSnqBEVb5RoPd9LujzZNdMuTvFnMmYnYMENPEWJuQSXXBJR6oNp7A5suqH5BXjGfE9CfEfuWbjXvHiNdfkSCEB3atYUxNwRroKwMh9gX4uDKdW9dik4q4m9EGv6KFXcaMF1jeg1bZERbS2mpKbvfaKk8b9G1FdeSRb7eHdNkjucBJNdzLFksBi9FjiaVsHChVodnZWw1QS3pak5PziADy54sLiCaD9fKLq1JszV2SU37gGXsmDE8NgdmRPZuFEJJM8rienDN3m4ihuuUBdQyh2aVMeRxDaLWXVyV7r