setAllowDuplicateKeys

YAML 1.2 does require unique keys. To support the backwards compatibility it is possible to select what should happen when non-unique keys are detected.

Return

the builder with the provided value

Parameters

allowDuplicateKeys
  • if true, then the non-unique keys in a mapping are allowed (last key wins). false by default.