Skip to content

Add ability to choose null type #204

Description

@vytux-com

I have a lot of documents which use the canonical null specification of ~ instead of the english null

Can we have an option to output either the original null type used or at least specify which type of null should we convert to

      - Description: Sample Rule
        IPAddress: 127.0.0.1
        OpenPorts: [80,443]
        RuleName: Sample
        ValidFrom: ~
        ValidTo: ~

gets converted to

      - Description: Sample Rule
        IPAddress: 127.0.0.1
        OpenPorts: [80,443]
        RuleName: Sample
        ValidFrom: null
        ValidTo: null

https://yaml.org/type/null.html

 ~ # (canonical)
|null|Null|NULL # (English)
| # (Empty)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions