Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): better error messages around schema validation (#4889)
* feat(config): better error messages around schema validation This attaches the YAML parse results to configs when loading, and leverages that when rendering validation error messages. This should be a useful step for an IDE highlighting integration as well. * fix: loosen YAML validation to match prior compatibility (TBS) * test: add test for error in doc in multi-doc YAML (TBS) * chore: switch from peg.js to peggy * chore: change resolveTemplateStrings function signature (TBS) * improvement(config): add yaml source mapping to template string resolution * chore: fix missing dev dependency * chore: fix linting warnings * chore: add try/catch around YAML context annotation * chore: fix errors after merge (TBS) * chore: update `package-lock.json` --------- Co-authored-by: Vladimir Vagaytsev <vladimir.vagaitsev@gmail.com>
- Loading branch information
1 parent
76e186f
commit a098a14
Showing
50 changed files
with
2,050 additions
and
1,169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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.