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.

Option to use square brackets for arrays instead of dash

See original GitHub issue

Hi, is there a way to get this:

    kibana_hide_apps: ["readonlyrest_kbn", "timelion"]

instead of this:

    kibana_hide_apps:
    - "readonlyrest_kbn"
    - "timelion"

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cowtowncodercommented, Oct 17, 2017

I assume this is for YAML backend. At this point I don’t think there is no YAMLFeature for this, although I think SnakeYAML (which is underlying decoder/encoder) should be able to do that – it is difference between “inline” vs “block” notation I think.

It would probably make sense to allow selecting this just for arrays (and perhaps another one for Objects), if adding a new feature.

Another possibility would be to allow somehow passing specifically configured SnakeYAML emitter/parser, as this would expose full range of settings.

0reactions
asomovcommented, Mar 8, 2018

it remains

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property accessors - JavaScript - MDN Web Docs
Property accessors provide access to an object's properties by using the dot notation or the bracket notation.
Read more >
The Different Types of Brackets - Grammar Monster
These are square brackets [ ]. They are sometimes called "box brackets." They are used to make quoted text clearer by showing insertions...
Read more >
Chapter 8: Arrays Flashcards - Quizlet
Study with Quizlet and memorize flashcards containing terms like You can declare an array variable by placing curly brackets after the array name., ......
Read more >
if statement - Are double square brackets [[ ]] preferable over ...
if statement - Are double square brackets [[ ]] preferable over single square brackets [ ] in Bash? - Stack Overflow. Stack Overflow...
Read more >
Overview of syntax in YAML - Educative.io
A sequence is represented using square brackets ( [] ). ... Below are some of the key features of YAML that make it...
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