-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRFeedback: Refactor YAML schema handling and improve maintainability
- Refactored and renamed components within `AppInstaller::Manifest::YamlParser` and `AppInstaller::YAML` namespaces for better clarity. - Removed `ManifestSchemaHeader` struct, transferring its responsibilities to `YamlManifestInfo` with a new `DocumentSchemaHeader` member. - Updated `DocumentSchemaHeader` to rename `SchemaHeaderString` to `SchemaHeader` and added a static constant `YamlLanguageServerKey`. - Revised `ParseSchemaHeaderString` to use `YamlManifestInfo`. - Split `ValidateManifestSchemaHeaderDetails` into `ValidateSchemaHeaderType` and `ValidateSchemaHeaderVersion`. - Updated `LoadDocument` functions to return `Document` instead of `DocumentRootWithSchema`. - Simplified `Document` struct by removing schema header methods and including `DocumentSchemaHeader` directly. - Added `ExtractSchemaHeaderFromYaml` function. - Updated `YamlParser.cpp` and `YamlWrapper.cpp` to reflect these changes. - Removed schema header methods from `YamlWrapper.h`. - Utilized `Utility::CaseInsensitiveEquals` for case-insensitive comparison of schema header URLs.
- Loading branch information
1 parent
001e610
commit 812f547
Showing
7 changed files
with
99 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.