DockerCLI/cli/compose/schema/data
Sebastiaan van Stijn a7778806a0
cli/compose/schema: make version optional, default to "latest"
The compose spec (https://compose-spec.io) defines the version to be optional,
and implementations of the spec to check for supported attributes instead.

While this change does not switch the `docker stack` implementation to use the
compose-spec, it makes it function more similar. Previously, omitting a version
number would either produce an error (as the field was required), or switched
the handling to assume it was version 1.0 (which is deprecated).

With this change, compose files without a version number will be handled as
the latest version supported by `docker stack` (currently 3.10). This allows
users that work with docker-compose or docker compose (v2) to deploy their
compose file, without having to re-add a version number. Fields that are
not supported by stackes (schema 3.10) will still produce an error.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-02-18 12:26:04 +01:00
..
config_schema_v3.0.json Update schemas to prevent invalid properties in deploy.resources 2017-08-17 15:58:51 -07:00
config_schema_v3.1.json Update schemas to prevent invalid properties in deploy.resources 2017-08-17 15:58:51 -07:00
config_schema_v3.2.json Add missing additionalProperties marker on mount definitions 2017-12-06 12:37:38 -08:00
config_schema_v3.3.json Disallow additional properties in credential_spec 2019-02-02 18:27:50 +01:00
config_schema_v3.4.json Disallow additional properties in credential_spec 2019-02-02 18:27:50 +01:00
config_schema_v3.5.json Disallow additional properties in credential_spec 2019-02-02 18:27:50 +01:00
config_schema_v3.6.json Disallow additional properties in credential_spec 2019-02-02 18:27:50 +01:00
config_schema_v3.7.json Disallow additional properties in credential_spec 2019-02-02 18:27:50 +01:00
config_schema_v3.8.json Add support for using Configs as CredentialSpecs in services 2019-04-12 11:17:29 -05:00
config_schema_v3.9.json Add support for pids limit in stacks (swarm) 2020-06-18 21:25:08 +02:00
config_schema_v3.10.json cli/compose/schema: make version optional, default to "latest" 2022-02-18 12:26:04 +01:00
doc.go Add a doc.go file so the compose/schema/data directory can be vendored in another project, without being pruned. 2018-07-02 10:08:25 +02:00