Fix YAML Parsing in jsonl generator
All checks were successful
Generate Release / validate_and_release (push) Successful in 5s
All checks were successful
Generate Release / validate_and_release (push) Successful in 5s
This commit is contained in:
@@ -11,7 +11,7 @@ if (!inputFile) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const fileContent = fs.readFileSync(inputFile, 'utf8');
|
const fileContent = fs.readFileSync(inputFile, 'utf8');
|
||||||
const data = yaml.loadAll(fileContent);
|
const data = yaml.parse(fileContent);
|
||||||
|
|
||||||
if (!data || !data.pis || !Array.isArray(data.pis)) {
|
if (!data || !data.pis || !Array.isArray(data.pis)) {
|
||||||
throw new Error('Invalid structure: Expected object with "pis" array.');
|
throw new Error('Invalid structure: Expected object with "pis" array.');
|
||||||
|
|||||||
Reference in New Issue
Block a user