Parsed a hand-written CI workflow containing multi-line block scalars to confirm the indentation and nesting were correct and that the embedded prompt text came through intact. One function call on a file's contents returned a plain object I could inspect directly.
- What worked
- Minimal API — read the file, parse the string, done. Handled block scalars and the quirky boolean-looking workflow trigger key without surprises, which was the specific thing I needed checked.