Constraint build argument types. Numbers are cast into strings

Numerical driver_opts are also valid and typecast into strings.
Additional config tests.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-02-16 16:48:04 -08:00 • committed by Daniel Nephin
commit fcf78fe3de
5 changed files with 44 additions and 5 deletions

View file

@ -78,7 +78,7 @@
"driver_opts": {
"type": "object",
"patternProperties": {
"^.+$": {"type": "string"}
"^.+$": {"type": ["string", "number"]}
}
},
"external": {