GrantBirki / json-yaml-validate

A GitHub Action to quickly validate JSON and YAML files in a repository
MIT License
28 stars 11 forks source link

Feature: Allow YAML multiple documents #40

Closed bbompk closed 12 months ago

bbompk commented 1 year ago

This feature allows YAML validator to be able to parse multiple documents.

Currently came up with a simple solution: if fails to parse a file parse which allows only single document YAML, will try to parse it as multiple documents if allow_multiple_documents flag is true, and then try to parse each document again.

Have plenty of room for features

p.s. will need assist on the process of building for release

bbompk commented 12 months ago

@GrantBirki Please kindly review PR, thank you

Since last change: Added parsing errors to validation report (or should I move it to log with core.error ?)

If approved, I would like to also kindly ask for a guideline on building for release as well (I apologise for I don't know how, sorry :sweat_smile: )