Skip to content

IMetadataConversionExtensions.GetList<T> is not working with yaml #275

Open

Description

@OskarKlintrot

I wanted to pass an array of strings to a module so I added them in themesettings.yml

AssetsToIgnoreInDocumentJson: [staticwebapp.config.json]

Then I tried to retrieve them:

var ignore = context.Settings.GetList<string>("AssetsToIgnoreInDocumentJson", []);

However, ignore == null. In context.Settings I can see that staticwebapp.config.json is paired to AssetsToIgnoreInDocumentJson:0. It's not wrong per se but it doesn't play nicely with IMetadataConversionExtensions.GetList<T>.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions