someone
someone

Reputation: 6572

yaml config not allowed some characters - invalid tag

Yaml file not allowed password starting from ! example value as here !abc1234 any idea how to put that as a value in yaml config file

   org.yaml.snakeyaml.constructor.ConstructorException: Can't construct a java object for !abc1234; exception=Invalid tag: !abc1234 in 'reader', line 82, 

Upvotes: 0

Views: 1445

Answers (1)

Gebezs
Gebezs

Reputation: 736

There is a good SO answer regarding YAML and quotes.

This states that you have to

Use quotes if your value includes special characters, (e.g. :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @, \).

Upvotes: 1

Related Questions