Skip to content

Comments

Official Support TOML v1.1.0 Specification#85

Merged
prozolic merged 5 commits intomainfrom
tomlv110
Jan 7, 2026
Merged

Official Support TOML v1.1.0 Specification#85
prozolic merged 5 commits intomainfrom
tomlv110

Conversation

@prozolic
Copy link
Owner

@prozolic prozolic commented Jan 3, 2026

This PR changes TOML v1.1.0's features to official optional features.

#84

Copilot AI review requested due to automatic review settings January 3, 2026 15:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR officially supports the TOML v1.1.0 specification by introducing predefined TomlSpec configurations (Version100 and Version110) and reorganizing features to distinguish between official v1.1.0 features and unofficial extensions. The key change is moving AllowUnicodeInBareKeys from v1.1.0 features to unofficial extensions, aligning with the actual TOML v1.1.0 specification.

  • Introduces static TomlSpec.Version100 and TomlSpec.Version110 for convenient specification selection
  • Reorganizes TOML v1.1.0 features into official and unofficial categories
  • Updates documentation to clearly differentiate official v1.1.0 features from unofficial extensions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/CsToml/CsTomlSerializerOptions.cs Adds Version100 and Version110 static properties to TomlSpec, reorganizes features into official v1.1.0 and unofficial sections with XML documentation, changes default spec to Version100
tests/CsToml.Tests/Options.cs Updates TomlSpecVersion110 to use TomlSpec.Version110, adds new AllowUnicodeInBareKeys option for testing the unofficial extension
tests/CsToml.Tests/DefaultTest.cs Changes Unicode bare keys test to use AllowUnicodeInBareKeys option instead of TomlSpecVersion110
tests/CsToml.Extensions.Configuration.Tests/Options.cs Simplifies TomlSpecVersion110 to use the new TomlSpec.Version110 static property
README.md Updates documentation to reflect official v1.1.0 support, reorganizes feature descriptions into separate sections for v1.1.0 and unofficial extensions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@prozolic
Copy link
Owner Author

prozolic commented Jan 3, 2026

I plan to update TOML test-case as well, but since we found bugs during the process, so I'll fixed.

@prozolic prozolic merged commit e8a7236 into main Jan 7, 2026
1 check passed
@prozolic prozolic mentioned this pull request Jan 10, 2026
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.

1 participant