NetLah/dotnet-appsettings

Bug: missing escape character for Yaml

thohng opened this issue · 0 comments

thohng commented

Missing escape between Yaml docker compose and actually environment value in container:

Source appsettings

{
  "List": [
    "Test": "Sec%$ret"
  ]
}

Docker compose

environment:
  - List__0__Test=Sec%$ret

Docker container

List__0__Test=Sec%

Docker warning:

level=warning msg="The \"ret\" variable is not set. Defaulting to a blank string."