Yaml

zio.blocks.schema.yaml.Yaml
See theYaml companion object
sealed trait Yaml

A sealed trait representing a YAML node.

The Yaml type provides a complete representation of YAML data with four possible cases: Yaml.Mapping, Yaml.Sequence, Yaml.Scalar, and Yaml.NullValue.

Attributes

Companion
object
Source
Yaml.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Mapping
object NullValue
class Scalar
class Sequence

Members list

Value members

Concrete methods

def printPretty: String

Renders this YAML to a pretty-printed string (with document markers).

Renders this YAML to a pretty-printed string (with document markers).

Attributes

Source
Yaml.scala
def toJson: Json

Converts this YAML node to a zio.blocks.schema.json.Json equivalent.

Converts this YAML node to a zio.blocks.schema.json.Json equivalent.

Attributes

Source
Yaml.scala