Use this rule to prevent nodes with empty content, that implicitly result in null values.

Parameters

forbid-in-block-mappings
Use forbid-in-block-mappings to prevent empty values in block mappings.
forbid-in-flow-mappings
Use forbid-in-flow-mappings to prevent empty values in flow mappings.

Examples

With forbid-in-block-mappings = true the following code snippets would PASS:

    some-mapping:
      sub-element: correctly indented
    explicitly-null: null

the following code snippets would FAIL:

    some-mapping:
    sub-element: incorrectly indented
    implicitly-null:

With forbid-in-flow-mappings = true the following code snippet would PASS:

    {prop: null}
    {a: 1, b: 2, c: 3}

the following code snippets would FAIL:

{prop: }
 {a: 1, b:, c: 3}