Skip to content

[FR] Update TOML Libraries to use more modern approaches #4979

@eric-forte-elastic

Description

@eric-forte-elastic

Repository Feature

Core Repo - (rule management, validation, testing, lib, cicd, etc.)

Problem Description

We currently use two old toml libraries, toml and pytoml. We should update these to be a more modern approach. Additionally. there are certain idiosyncrasies with the existing toml write functionality that translates \\\\ -> \\, etc.

We should consider replacing them with something like tomlkit, but this is still dependant on some of our custom encoding and as such will be a more involved process than something that can be quickly integrated into #4977.

Desired Solution

Update toml write/save_toml.

Considered Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions