Fix error when updating hosts

This commit is contained in:
Jamie Curnow 2018-01-05 10:47:44 +10:00
parent 64de096565
commit d2130a24a1
3 changed files with 4 additions and 3 deletions

View File

@ -101,9 +101,7 @@ I won't go in to too much detail here but here are the basics for someone new to
## TODO
- Pass on human readable ssl cert errors to the ui
- Allow a host to be a redirection to another domain
- UI: Allow column sorting on tables
- UI: Allow filtering hosts by types
- Advanced option to overwrite the default location block (or regex to do it automatically)
- Add nice upstream error pages

View File

@ -30,7 +30,7 @@ function apiValidator (schema, payload/*, description*/) {
resolve(payload);
} else {
let message = ajv.errorsText(validate.errors);
//debug(validate.errors);
//console.log(validate.errors);
let err = new error.ValidationError(message);
err.debug = [validate.errors, payload];

View File

@ -146,6 +146,9 @@
"required": [],
"additionalProperties": false,
"properties": {
"type": {
"$ref": "#/definitions/type"
},
"hostname": {
"$ref": "#/definitions/hostname"
},