Latest Updates

Documenting code, one commit at a time.

Enhancing API Robustness: Normalizing User Input with Whitespace Trimming

Introduction

In the FlavioKde/github-streak-stats-api project, our goal is to provide reliable GitHub streak statistics. APIs, by their nature, often deal with external user input, and maintaining data quality is paramount. Even seemingly innocuous details, like leading or trailing whitespace, can lead to unexpected behavior or incorrect data processing.

The Problem: Unsanitized Input

Read more