compose-go/schema
Nicolas De Loof 74e7cbe336 schema: declare the options of storage_opt
storage_opt was declared as a bare object, with no pattern for its keys,
unlike driver_opts, logging.options or sysctls. AttributePaths, built from
those declarations, therefore stopped at services.*.storage_opt, and a
runtime allowlisting the attributes of the specification reported every
option of the example of the specification itself (size: 1G) as
unsupported, on a service, on a pre_start hook and on a job.

Declare a pattern for the keys, with a string, a number or null as value,
which is what the loader accepts today: no file that loads now is rejected.
Add a test that walks the schema and fails on any mapping declaring no
keys, since the inventory cannot see what such a mapping holds.

docker/compose#14505

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-11-16 15:25:43 +01:00
..
compose-spec.json schema: declare the options of storage_opt 2026-11-16 15:25:43 +01:00
paths.go loader: detect unsupported compose-file attributes (#927) 2026-09-08 12:30:50 +02:00
paths_test.go schema: declare the options of storage_opt 2026-11-16 15:25:43 +01:00
schema.go lint: enable perfsprint 2026-10-22 17:10:59 +02:00
schema_test.go fix(loader): resolve the extends of a job against the jobs of the file 2026-10-23 10:03:58 +02:00
using-variables.yaml attributes also can be declared as string (using variables) 2024-07-03 11:09:30 +02:00