Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmatched quotes at the end of a value not caught as issue #705

Open
tomacadi opened this issue Apr 25, 2023 · 0 comments
Open

Unmatched quotes at the end of a value not caught as issue #705

tomacadi opened this issue Apr 25, 2023 · 0 comments

Comments

@tomacadi
Copy link

hi, it looks like having an unmatched quote at the end of a value is not caught as a syntax error.

sidecars:
  sidecars1:
    cpu: 42'

result is ok:

{
  "sidecars": {
    "sidecars1": {
      "cpu": "42'"
    }
  }
}

While this may seem harmless, it actually results in a crash on CI/CD such as harness.

having it at the beginning of the value works as expected:

sidecars:
  sidecars1:
    cpu: '42
YAMLException: unexpected end of the stream within a single quoted scalar (4:1)

 1 | sidecars:
 2 |   sidecars1:
 3 |     cpu: '42
 4 | 
-----^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant