kinto-admin
kinto-admin copied to clipboard
error message in the console when logging in
This is on kinto-admin v1.21.0 with kinto 11.0.0
message: 'should be integer' keyword: 'minimum'
Error compiling schema, function code: var refVal1 = refVal[1]; var validate = (function (data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; var vErrors = null; var errors = 0; var errs_1 = errors; var errs_2 = errors; if ((typeof data !== "number" || (data % 1) || data !== data)) { var err = { keyword: 'type' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/type' , params: { type: 'integer' } , message: 'should be integer' } ; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } if (typeof data === "number") { if ( data < 0 || data !== data) { var err = { keyword: 'minimum' , dataPath: (dataPath || '') + "" , schemaPath: '#/definitions/nonNegativeInteger/minimum' , params: { comparison: '>=', limit: 0, exclusive: false } , message: 'should be >= 0' } ; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } var valid2 = errors === errs_2; var valid1 = errors === errs_1; validate.errors = vErrors; return errors === 0; }); return validate;