Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow x-* extension on 3rd level objects #1097

Merged
merged 1 commit into from
Jun 1, 2018

Commits on May 31, 2018

  1. Allow x-* extension on 3rd level objects

    As for top-level key, any 3rd-level key which starts with `x-` will be
    ignored by compose. This allows for users to:
    * include additional metadata in their compose files
    * create YAML anchor objects that can be re-used in other parts of the config
    
    This matches a similar feature in the swagger spec definition:
    https://swagger.io/specification/#specificationExtensions
    
    This means a composefile like the following is valid
    
    ```
    verison: "3.7"
    services:
      foo:
        image: foo/bar
        x-foo: bar
    network:
      bar:
        x-bar: baz
    ```
    
    It concerns services, volumes, networks, configs and secrets.
    
    Signed-off-by: Vincent Demeester <[email protected]>
    vdemeester committed May 31, 2018
    Configuration menu
    Copy the full SHA
    6bcfa88 View commit details
    Browse the repository at this point in the history