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

Serialize loss tag #408

Open
buhe opened this issue Feb 24, 2024 · 1 comment
Open

Serialize loss tag #408

buhe opened this issue Feb 24, 2024 · 1 comment

Comments

@buhe
Copy link

buhe commented Feb 24, 2024

Hi,
Serialize loss tag.
Such as

        let node = try Yams.compose(yaml: "ssid: !secret net1")
        print(node)
        let yaml = try Yams.serialize(node: node!)
        print(yaml)

Thanks.

@buhe
Copy link
Author

buhe commented Feb 24, 2024

Output

Optional(Yams.Node.mapping(Yams.Node.Mapping(pairs: [Yams.(unknown context at $1040ffde8).Pair<Yams.Node>(key: Yams.Node.scalar(Yams.Node.Scalar(string: "ssid", tag: , style: Yams.Node.Scalar.Style.plain, mark: Optional(1:1))), value: Yams.Node.scalar(Yams.Node.Scalar(string: "net1", tag: !secret, style: Yams.Node.Scalar.Style.plain, mark: Optional(1:7))))], tag: , style: Yams.Node.Mapping.Style.any, mark: Optional(1:1))))
ssid: net1

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