fastruby / dotenv_validator

This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
https://www.fastruby.io/blog/open-source/introducing-dotenv-validator.html
MIT License
50 stars 4 forks source link

[BUG] Incorrect validation of format `string` #28

Closed arielj closed 3 years ago

arielj commented 3 years ago

Version, Branch, or Commit:

Main branch.

Expected behavior:

Any value should be valid if format is string (unless empty and required).

Actual behavior:

Variables set as format=string are considered as invalid format always.

Changing the when 'str', 'string' then false to true fixes the problem.

I will abide by the code of conduct