dukeofharen / httplaceholder

A very flexible cross platform HTTP stub application.
MIT License
109 stars 4 forks source link

bug: When loading HttPlaceholder in a folder with at least 1 invalid YAML file, make sure to exclude this YAML file from future "GetStubs" calls #361

Open dukeofharen opened 1 month ago

dukeofharen commented 1 month ago

Sometimes, when starting HttPlaceholder in a folder with an azure-pipelines.yml file for example, HttPlaceholder will interpret this file as stub and will also react when this file is updated, even though this file is not a valid stub file. We need to validate the file beforehand and not take the file into account when the file has been changed.

Maybe maintain a kind of blocklist of files that are definitely not stubs? E.g. azure-pipelines.yml, gitlab-ci.yml (don't know the CI files by heart, but this might be a solution).