Skip to content

feat: add notEmptyIfDefined tag option - #433

Open
Pastalikek65 wants to merge 1 commit into
caarlos0:mainfrom
Pastalikek65:feat-notempty-if-defined
Open

feat: add notEmptyIfDefined tag option#433
Pastalikek65 wants to merge 1 commit into
caarlos0:mainfrom
Pastalikek65:feat-notempty-if-defined

Conversation

@Pastalikek65

Copy link
Copy Markdown

Closes #376. Adds a ,notEmptyIfDefined tag option that errors only when the environment variable is defined but empty; unset variables still fall through to envDefault. Includes tests and README docs.

@Pastalikek65
Pastalikek65 force-pushed the feat-notempty-if-defined branch from 266c281 to 7a1dbf5 Compare August 9, 2026 06:06
@pull-request-size pull-request-size Bot added size/M and removed size/L labels Aug 9, 2026
@Pastalikek65

Copy link
Copy Markdown
Author

Friendly bump — this feature is implemented with tests and ready for review; CI is waiting on workflow approval for first-time contributors. Happy to adjust anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: new tag "notEmptyIfDefined" to avoid the cases when an env-var is presented but its value is an empty string

1 participant