when calling enum path of swagger (e.g: /v3/path/:some_enum) with unknown enum value, the _validateParams functions throw error that the parseAjvError function does not know how to handle:
from code:
line 135-137:
if (error.keyword === 'enum') {
error.message += ' [' + error.params.allowedValues.toString() + ']';
}
error.params.allowedValues is undefined and to toString function throws error.
from code: line 135-137: if (error.keyword === 'enum') { error.message += ' [' + error.params.allowedValues.toString() + ']'; }
error.params.allowedValues is undefined and to toString function throws error.