mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #700] Error when JSON/YAML parsing would set property default in a Dynamic
#681
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/700
Author: @HT154
Created: 10/16/2024
Status: 🔄 Open
Base:
main← Head:parse-dynamic-disallow-default📝 Commits (3)
da52ac5Error when JSON/YAML parsing would set propertydefaultin a Dynamic28c6382Improved error messages913c7d2Apply suggestions from code review📊 Changes
8 files changed (+91 additions, -1 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/stdlib/json/ParserNodes.java(+8 -1)📝
pkl-core/src/main/java/org/pkl/core/stdlib/yaml/ParserNodes.java(+11 -0)➕
pkl-core/src/main/java/org/pkl/core/util/yaml/ParseException.java(+38 -0)📝
pkl-core/src/main/resources/org/pkl/core/errorMessages.properties(+10 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/jsonParser1.pkl(+8 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/yamlParser2.pkl(+8 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/jsonParser1.pcf(+4 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser2.pcf(+4 -0)📄 Description
Resolves #561
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.