Skip to content

Commit 0fd70e6

Browse files
committed
For JSON files or single YAML documents, wrap in array
1 parent 260823f commit 0fd70e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/functions/json-validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ export async function jsonValidator(exclude) {
244244
newData.push(doc.toJS())
245245
})
246246
data = newData
247-
}
248-
if (allowMultipleDocuments !== true) {
247+
} else {
248+
// For JSON files or single YAML documents, wrap in array
249249
data = [data]
250250
}
251251

0 commit comments

Comments
 (0)