Files
floci-cli/src
Hector Ventura 68d28d49ef fix(config): accept Compose files that use YAML anchors and merge keys in config validate (#65)
* fix(config): accept Compose files that use YAML anchors and merge keys in config validate

config validate read the file without resolving anchors, aliases or merge keys, so a service built from an anchor looked empty and a valid file got two errors and exit 1. The file is now read with its anchors resolved, the way Compose reads it. snakeyaml was already on the classpath through Jackson's YAML module and is now declared, since it is used directly.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(config): bound alias expansion and read Compose scalars as YAML 1.2 in config validate

A few nested aliases can describe millions of values; the reader now stops at 100000 and reports the file instead of using up memory. Only true and false are booleans, so a service named on, off, yes or no keeps its name.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(config): report a self-referencing alias instead of overflowing the stack in config validate

A recursive alias is a collection that contains itself. The reader now stops at 64 levels of nesting and reports the file, so the command still prints its validation report.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-11 21:12:20 -05:00
..