You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a task metadata json file contains an invalid escape sequence, JSON linters (such as jq and Puppet Forge) raise an error but pdk validate does not flag that issue.
To Reproduce
Consider this task metadata test.json:
{
"puppet_task_version": 1,
"supports_noop": false,
"description": "A description with an invalid \( escape sequence",
"parameters": {
}
}
pdk validate task passes normally but jq flags a problem:
cat test.json | jq
parse error: Invalid escape at line 4, column 67
Expected behavior pdk validate raises the same error as jq.
Additional context
Installation method: native packages
PDK version 2.1
OS: MacOS Catalina / Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
timidri
changed the title
PDK validate does not flag invalid task metadata json files
pdk validate does not flag metadata files with invalid JSON escape sequence
Nov 20, 2020
Describe the bug
When a task metadata json file contains an invalid escape sequence, JSON linters (such as jq and Puppet Forge) raise an error but
pdk validate
does not flag that issue.To Reproduce
Consider this task metadata
test.json
:pdk validate task
passes normally butjq
flags a problem:Expected behavior
pdk validate
raises the same error asjq
.Additional context
2.1
The text was updated successfully, but these errors were encountered: