Skip to content

Commit

Permalink
Merge pull request moby#29883 from dnephin/update-to-latest-schema
Browse files Browse the repository at this point in the history
Update compose schema v3
  • Loading branch information
vdemeester authored Jan 23, 2017
2 parents b157b3c + de1ffeb commit eac3e4b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cli/compose/schema/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions cli/compose/schema/data/config_schema_v3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@
"restart": {"type": "string"},
"security_opt": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"shm_size": {"type": ["number", "string"]},
"sysctls": {"$ref": "#/definitions/list_or_dict"},
"stdin_open": {"type": "boolean"},
"stop_signal": {"type": "string"},
"stop_grace_period": {"type": "string", "format": "duration"},
"stop_signal": {"type": "string"},
"tmpfs": {"$ref": "#/definitions/string_or_list"},
"tty": {"type": "boolean"},
"ulimits": {
Expand All @@ -192,6 +193,7 @@
}
},
"user": {"type": "string"},
"userns_mode": {"type": "string"},
"volumes": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"working_dir": {"type": "string"}
},
Expand All @@ -200,20 +202,20 @@

"healthcheck": {
"id": "#/definitions/healthcheck",
"type": ["object", "null"],
"type": "object",
"additionalProperties": false,
"properties": {
"interval": {"type":"string"},
"timeout": {"type":"string"},
"disable": {"type": "boolean"},
"interval": {"type": "string"},
"retries": {"type": "number"},
"test": {
"oneOf": [
{"type": "string"},
{"type": "array", "items": {"type": "string"}}
]
},
"disable": {"type": "boolean"}
},
"additionalProperties": false
"timeout": {"type": "string"}
}
},
"deployment": {
"id": "#/definitions/deployment",
Expand Down Expand Up @@ -326,10 +328,11 @@
"type": ["boolean", "object"],
"properties": {
"name": {"type": "string"}
}
}
},
"additionalProperties": false
},
"labels": {"$ref": "#/definitions/list_or_dict"}
},
"labels": {"$ref": "#/definitions/list_or_dict"},
"additionalProperties": false
},

Expand Down
2 changes: 2 additions & 0 deletions cli/compose/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ var UnsupportedProperties = []string{
"security_opt",
"shm_size",
"stop_signal",
"sysctls",
"tmpfs",
"userns_mode",
}

// DeprecatedProperties that were removed from the v3 format, but their
Expand Down
2 changes: 1 addition & 1 deletion hack/validate/compose-bindata
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ unset IFS
if [ ${#files[@]} -gt 0 ]; then
go generate github.com/docker/docker/cli/compose/schema 2> /dev/null
# Let see if the working directory is clean
diffs="$(git status --porcelain -- api/types/ 2>/dev/null)"
diffs="$(git status --porcelain -- cli/compose/schema 2>/dev/null)"
if [ "$diffs" ]; then
{
echo 'The result of `go generate github.com/docker/docker/cli/compose/schema` differs'
Expand Down

0 comments on commit eac3e4b

Please sign in to comment.