We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&
*
On current implementation, information about Anchors(&) and Aliases(*) are lost while compose(). e.g.:
compose()
import Foundation import Yams let node = try Yams.compose(yaml: """ aliases: - &steps-for-linux - checkout - run: swift test version: 2 jobs: linux_swift_4.0.3: docker: - image: norionomura/swiftlint:swift-4.0.3 steps: *steps-for-linux linux_swift_4.1.1: docker: - image: norionomura/swiftlint:swift-4.1.1 steps: *steps-for-linux """) let string = try Yams.serialize(node: node!) print(string)
output:
aliases: - - checkout - run: swift test version: 2 jobs: linux_swift_4.0.3: docker: - image: norionomura/swiftlint:swift-4.0.3 steps: - checkout - run: swift test linux_swift_4.1.1: docker: - image: norionomura/swiftlint:swift-4.1.1 steps: - checkout - run: swift test
To preserve Anchors and Aliases, it will need to introducing Node.alias(String).
Node.alias(String)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On current implementation, information about Anchors(
&
) and Aliases(*
) are lost whilecompose()
.e.g.:
output:
To preserve Anchors and Aliases, it will need to introducing
Node.alias(String)
.The text was updated successfully, but these errors were encountered: