bryanlundberg / NexusTimer

Nexus Timer is a powerful unopinionated, minimalist training tool for SpeedCubing.
https://nexustimer.com/
GNU General Public License v3.0
42 stars 32 forks source link

Implement Logic to Validate Imported Data #152

Closed AnuMessi10 closed 1 year ago

AnuMessi10 commented 1 year ago

What does this PR do? Handle imported/uploaded file data and perform validation for the same.

Related Issue(s) Addresses #144

Changes Complete the function isValidCubesData which accepts the contents of the uploaded file and performs validation before accepting it. The validation ensures the uploaded data matches the required format and is also type safe at the same time.

Additional Comments I have tested it with as many edge cases as I could think of, if there is something unexpected/breaking behaviour please make sure to revert back so I can look into the same. 😄

By submitting this PR, I confirm that: