package yaml
- Alphabetic
- By Inheritance
- yaml
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class AnyOps[T] extends AnyVal
- final case class ComposerError(msg: String) extends YamlError with Product with Serializable
- final case class ConstructError(errorMsg: String, node: Option[Node], expected: Option[String]) extends YamlError with Product with Serializable
- final case class CoreSchemaTag(value: String) extends Tag with Product with Serializable
- final case class CustomTag(value: String) extends Tag with Product with Serializable
- case class LoadSettings(constructors: Map[Tag, YamlDecoder[_]]) extends Product with Serializable
- final case class ModifyError(msg: String) extends YamlError with Product with Serializable
- sealed trait Node extends AnyRef
ADT that corresponds to the YAML representation graph nodes https://yaml.org/spec/1.2/spec.html#id2764044
- implicit final class NodeOps extends AnyVal
- class NodeVisitor extends AnyRef
- sealed abstract class ParseError extends YamlError
- final case class Position(offset: Int, line: Int, column: Int) extends Product with Serializable
- final case class Range(start: Position, input: Vector[String], end: Option[Position] = None) extends Product with Serializable
- sealed abstract class ScannerError extends YamlError with NoStackTrace
- implicit final class StringOps extends AnyVal
- sealed trait Tag extends AnyRef
- trait YamlCodec[T] extends YamlDecoder[T] with YamlEncoder[T]
A type class that provides both-way conversion between Node and T
- trait YamlDecoder[T] extends AnyRef
A type class that provides a conversion from a Node into given type T
- trait YamlEncoder[T] extends AnyRef
A type class that provides a conversion from a given type T into Node
- sealed abstract class YamlError extends Exception
An ADT representing a decoding failure.
Value Members
- def decodeManyYamls[T](str: String)(implicit c: YamlDecoder[T], settings: LoadSettings = LoadSettings.empty): Either[YamlError, List[T]]
Decode all YAML documents from the given String, returning either YamlError or a list of T.
Decode all YAML documents from the given String, returning either YamlError or a list of T. The error will be the first failure in parsing or converting to T.
- def decodeYaml[T](str: String)(implicit c: YamlDecoder[T], settings: LoadSettings = LoadSettings.empty): Either[YamlError, T]
Parse a YAML document from the given String, returning either YamlError or T.
Parse a YAML document from the given String, returning either YamlError or T.
According to the specification: - Parser takes input string and produces sequence of events - then Composer produces a representation graph from events - finally YamlDecoder (construct phase from the YAML spec) constructs data type T from the YAML representation.
- def parseManyYamls(str: String): Either[YamlError, List[Node]]
Parse multiple YAML documents from the given string.
- def parseYaml(str: String): Either[YamlError, Node]
Parse YAML from the given string.
- object ConstructError extends Serializable
- object LoadSettings extends Serializable
- object Node
- object NodeVisitor
- object ParseError extends Serializable
- object ScannerError extends Serializable
- object Tag
- object YamlCodec extends YamlCodecCompanionCrossCompat
- object YamlDecoder extends YamlDecoderCompanionCrossCompat
- object YamlEncoder extends YamlEncoderCrossCompanionCompat