I"ve browsed similar questions and believe i"ve used all that i"ve been able to glean native answers.

You are watching: Mapping values are not allowed in this context

I have actually a .yml file where as far as I have the right to tell each facet is formatted identically. And also yet follow to YamlLint.com

(): mapping values space not permitted in this context at line 119 column 16

In this case, heat 119 is the line containing the second instance the word "transitions" below. The I can tell each facet is formatted identically. To be I absent something here?

landingPage: include: false transitions: - condition:location nextState:location location: include:false transitions: - condition:excluded nextState:excluded excluded: include:false transitions: - condition:excluded nextState: excluded - condition:age nextState:age

You cannot have a multiline level scalar, such together your include:false transitions it is in the crucial to a mapping, the is why you obtain the mapping worths not enabled in this context error.

Either girlfriend forgot that you need to have a room after the value indicator (:), and you intended to do:

include: false transitions:or you should quote your multi-line scalar:

"include:false transitions":or you should put that plain scalar top top one line:

include:false transitions:please note that part libraries perform not permit value signs in a plain scalar in ~ all, also if they are not followed by space


*

we should use an are before ":"Then it will excecutecheck the yaml script in belowhttp://www.yamllint.com/


*

There are couple of worries in the yaml file, with yaml files it gets messy, happily it deserve to be established easily with tools choose yaml lint

Install it

npm download -g yaml-lintHere is how you have the right to validate

E:\githubRepos\prometheus-sql-exporter-usage\etc>yamllint prometheus.yaml√ YAML Lint successful.

*

For me the difficulty was a unicode "-" from a cut and paste. Visualy the looked OK, but the character was "EN DASH" (U+2013) instead of "HYPHEN MINUS" (U+002D)


*

Thanks because that contributing response to stack Overflow!

Please be sure to answer the question. Administer details and also share your research!

But avoid

Asking because that help, clarification, or responding to various other answers.Making statements based upon opinion; back them up with references or an individual experience.

See more: Secret Battle Star Location Week 7 Secret Battle Star Season 5 Week 7

To learn more, watch our advice on writing good answers.


article Your answer Discard

By clicking “Post your Answer”, friend agree come our regards to service, privacy policy and also cookie plan


Not the prize you're feather for? Browse other questions tagged web-scraping yaml or questioning your own question.


just how to solve the error in YAML file converting yaml come JSON? mapping values room not enabled in this context"
site style / logo design © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.10.12.40432


her privacy

By clicking “Accept all cookies”, friend agree stack Exchange have the right to store cookies on your machine and disclose information in accordance v our Cookie Policy.