Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Allow envvar to be nullable#94

Merged
thewilkybarkid merged 1 commit intolibero:masterfrom
thewilkybarkid:nullable-envvar
Jul 2, 2019
Merged

Allow envvar to be nullable#94
thewilkybarkid merged 1 commit intolibero:masterfrom
thewilkybarkid:nullable-envvar

Conversation

@thewilkybarkid
Copy link
Contributor

@thewilkybarkid thewilkybarkid commented Jul 2, 2019

@thewilkybarkid thewilkybarkid requested a review from a team as a code owner July 2, 2019 13:31
Copy link
Contributor

@stephenwf stephenwf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

client: 'csa_guzzle.client.libero_api'
info_bar:
text: '%env(INFO_BAR)%'
text: '%env(string:default::INFO_BAR)%'
Copy link
Contributor Author

@thewilkybarkid thewilkybarkid Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't expecting to have to use the string processor, but ValidateEnvPlaceholdersPass seems to get confused by the types that the default processor can return, and errors as

doesn't allow an array.

Appears not to cast null (back) to an empty string though.

@thewilkybarkid thewilkybarkid merged commit f6de875 into libero:master Jul 2, 2019
@thewilkybarkid thewilkybarkid deleted the nullable-envvar branch July 2, 2019 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants