Skip to content

Conversation

@hacrvlq
Copy link
Contributor

@hacrvlq hacrvlq commented May 2, 2025

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

This PR rewrites deserialize_table to fix #8. This is achieved by passing tables created via dotted keys to the corresponding subtable.

hacrvlq added 2 commits May 2, 2025 11:39
Previously, defining subtables of tables created via dotted keys was not
allowed, even though it is valid according to the spec. For example, the
following valid TOML was incorrectly rejected:
  a.b = 0
  [a.c]
@hacrvlq hacrvlq requested a review from Jake-Shadle as a code owner May 2, 2025 09:55
Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Thanks!

@Jake-Shadle Jake-Shadle merged commit fe5ee76 into EmbarkStudios:main May 5, 2025
5 checks passed
@hacrvlq hacrvlq deleted the fix-adding-subtables branch May 5, 2025 15:28
@baszalmstra
Copy link
Contributor

Can we get a release that includes this fix? 😃

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

Successfully merging this pull request may close these issues.

Sub-tables defined using both table and dotted keys are flagged as duplicates

3 participants