How would you check for typos in URL endpoints configured in YAML files?

Hi guys,

We have a big spring boot kotlin service, and we use some YAML files to store config info, pretty standard. Some of those config values are endpoint URLs and the like to downstream APIs and stuff. Now, I’d like for us to have something of a validation step, that would check for malformed URLs and fail the build if any is found. As we have had a # of incidents were ppl introduced small typos like: https::///, or https://https:// and fire ensues. Most of our downstream services have unit tests in place that would catch this, but some others don’t, so I’d like to focus on those.

This is the first time I’m doing something like that and would like some guidance on what’s best/quicker for a proof-of-concept.

submitted by /u/Mammoth_Steak_69
[link] [comments]