Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Mixed types in array leads to warning #33

Open
miketheman opened this issue Nov 6, 2021 · 1 comment
Open

Mixed types in array leads to warning #33

miketheman opened this issue Nov 6, 2021 · 1 comment

Comments

@miketheman
Copy link

Given a TOML key with an Array,
When using valid syntax of strings and tables,
Then a warning should not be raised.

Example:

include = [
    { path = "foo", format = "sdist" },
    "bar.md"
]

Triggers:

Cannot add value of type String to array of type InlineTable.

Desired behavior:

No trigger raised, as this is valid TOML syntax.

@miketheman
Copy link
Author

Found the exact reference that shows this is allowed: https://github.com/toml-lang/toml/blob/8296d6ba97aaaf3151a32a22ed0513301ac650bf/toml.md#array

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant