I am still quite new to programming and I really hope anyone can help me. I would like to create a Map from a Yaml file. The problem is, I would like to make it optional which parameters are configured, so I do not want to create a class, in which all possible parameters are created as variables. I have used snakeyaml before, however as far as I know this is not an option in snakeyaml.
An example for my yaml file would look like this:
description: linter for microservices
meta:
pciScope: false
image:
name: helmcube
tag: 2.5.4
service:
type: 45
deployment:
replicaCount: 2
Do any of you have an idea how this could be realised? I have already searched for hours and could not find anything concerning that issue. I hope anyone can help
Regards
Marie