YamlConfigSource

zio.blocks.config.yaml.YamlConfigSource

A ConfigSource adapter for YAML data.

Converts YAML documents into flat key-value maps with dot-separated paths. Nested mappings are flattened using dot notation, and sequences use indexed keys.

Attributes

Source
YamlConfigSource.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fromString(yaml: String, sourceId: String = ...): Either[ConfigError, ConfigSource]

Creates a ConfigSource from a YAML string.

Creates a ConfigSource from a YAML string.

Value parameters

sourceId

a unique identifier for this source (default: "yaml:string")

yaml

the YAML content as a string

Attributes

Returns

Either a ConfigError if parsing fails, or a ConfigSource with flattened YAML data

Source
YamlConfigSource.scala