refactor(core): types and utilities #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several structural and code quality improvements to the Yamlify project. The most significant changes include the extraction and renaming of core YAML style enums into dedicated files, namespace unification, and updates to the source generator to reflect these changes. Additionally, the build configuration has been centralized and improved, and exception classes have been renamed for clarity.
Refactoring and Code Organization
ScalarStyleandCollectionStyleenums fromYamlStyles.csinto their own files (src/Yamlify/Common/ScalarStyle.cs,src/Yamlify/Common/CollectionStyle.cs), and removed the old consolidated file. This clarifies the codebase and improves maintainability. [1] [2] [3]Yamlify(e.g.,Mark,YamlTokenType, and exceptions), replacing previousYamlify.CoreandYamlify.Exceptionsusages. [1] [2] [3] [4]Source Generator Updates
YamlSourceGenerator.cs) to reference the new locations and names of enums and types, including changes fromDiscriminatorPositionMode.OrderedtoDiscriminatorPositionMode.PropertyOrder, and updates to property names and type usages. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Exception Renaming
MaximumRecursionDepthExceededExceptiontoMaxRecursionDepthExceededExceptionfor brevity and consistency, and updated all constructors and references accordingly. [1] [2]Build and CI Improvements
Directory.Build.propsfile to enforce common build settings, package metadata, and source link configuration across the solution.nuget.configto specify package sources.Minor Project File Updates
Yamlify.SourceGenerator.csprojby removing redundant nullable and warning settings, since these are now handled centrally.