Some Yaml validation errors don't highlight the problematic area
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
invalid pattern used for interpolation. valid pattern is $[[ inputs.input ]] doesn't highlight the part of code having this error, which might be problematic when having large configs with a lot of jobs.
spec:
inputs:
build_image:
default: "my_image,"
version:
default: "v 1.1"
---
prepare_release:
script: ls
image:
name: $[[build_image]]:$[[version]]
entrypoint: [""]
Proposal
Add more clarity into the Lint error messaging by highlighting the area that contains the error.
Edited by 🤖 GitLab Bot 🤖