question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YAML multiline values do not work

See original GitHub issue

Hi,

I need to use multiline strings in YAML, but > and | seems not working. For example:

testmultiline: >
  line 1
  line 2
$ java -jar microconfig.jar -e test
Filtered 15 component(s) in [test] env.
Using settings from /project/microconfig.yaml
java.lang.IllegalArgumentException: Incorrect delimiter in '  line 1' in '../components/apps/base-java-app/application.yml:16'
Yaml property must contain ':' as delimiter.

Would it be possible to implement this? 😃 Thanks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
kapodescommented, Jun 21, 2022
Btw. when do you think this fix may be ready?

Let’s aim at next week

0reactions
kapodescommented, Jul 6, 2022

No plans for it yet. > is too complex comparing to |

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I break a string in YAML over multiple lines?
Quick tip: you cannot place comment inside scalar, so you cannot comment part of multiline key or value. Have to move required lines...
Read more >
YAML Multiline Strings
There are two types of formats that YAML supports for strings: block scalar and flow scalar formats. (Scalars are what YAML calls basic...
Read more >
YAML Superpowers, part 2: Multiline Strings
In this post we will discover the many ways YAML can represent strings, including multiline strings, keeping or stripping indentation, ...
Read more >
Breaking YAML Strings Over Multiple Lines - Baeldung
Learn how to break YAML strings over multiple lines. ... We can see that our line breaks are preserved:
Read more >
[bug] Secrets in multiline scalar values in YAML files not ...
Renaming the file to e.g. .json or .txt will cause the (quoted) secrets to be picked up again. So it seems to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found