Fix error when updating hosts
This commit is contained in:
parent
64de096565
commit
d2130a24a1
@ -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
|
||||
|
||||
|
@ -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];
|
||||
|
@ -146,6 +146,9 @@
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"$ref": "#/definitions/type"
|
||||
},
|
||||
"hostname": {
|
||||
"$ref": "#/definitions/hostname"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user