Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to choose null type #204

Open
vytux-com opened this issue Apr 23, 2024 · 0 comments
Open

Add ability to choose null type #204

vytux-com opened this issue Apr 23, 2024 · 0 comments

Comments

@vytux-com
Copy link

vytux-com commented Apr 23, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant