mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
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
|
|
|---|---|---|
| .. | ||
| compose-spec.json | ||
| paths.go | ||
| paths_test.go | ||
| schema.go | ||
| schema_test.go | ||
| using-variables.yaml | ||