Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not allow redefinition of existing table #183

Closed
moorereason opened this issue Dec 21, 2021 · 1 comment
Closed

Do not allow redefinition of existing table #183

moorereason opened this issue Dec 21, 2021 · 1 comment

Comments

@moorereason
Copy link

Given this invalid example from the TOML spec:

[fruit]
apple.color = "red"
[fruit.apple]  # INVALID

toml11 accepts the document as valid:

$ echo "[fruit]\napple.color = \"red\"\n[fruit.apple]" | check_toml_test | jq
{
  "fruit": {
    "apple": {
      "color": {
        "type": "string",
        "value": "red"
      }
    }
  }
}

Tested with commit bf2384d.

PS - I've submitted new tests cases to the toml-test suite for this.

@ToruNiina
Copy link
Owner

Fixed in e60442c. Thank you!

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

No branches or pull requests

2 participants