-
I couldn't find an example of using `formatWith()` .
Do you mind adding something here? (I can convert to PR)
I am using https://github.com/hapijs/boom so I was wondering if I can format the validat…
-
Extension methods are designed to look like ordinary instance methods, and as such it is normal for them to throw an exception if their `this` argument is null. The various extensions in `TraversalExt…
idg10 updated
5 years ago
-
Say i validate this kind of input:
````javascript
// { "field": "alert()" }
check('field').isEmail()
````
I'll get this error, as expected:
````javascript
{
"errors": [{
"location"…
-
Right now the result format of `req.getValidationResult()` is this
```
{ isEmpty: [Function],
array: [Function],
mapped: [Function],
formatWith: [Function],
throw: [Function] }
```
…
-
Hello, how do i make for the validation response not return the msn parameter or location parameter ??
-
In legacy API (which is now deprecated), I can define an global `errorFormatter()`. How can I achieve
the same behavior in the new version?
-
Hello,
In the file EdiSerializer.cs line 136, I needed to remove the "else" because I needed to go this loop line 136 to deserialised a segment "UNG" for a fonctional group.
```csharp …
-
When I've provided an errorFormatter function during initialization, it's not always being used?
working example (the output is indeed being mapped by the provided errorFormatter function):
```
r…
ghost updated
5 years ago
-
I've got an array of multiple objects from various textboxes submitting via body:
```
[{
name:'abc',
value:123
},
name:'def',
value:456
}, ...
]
```
I'm checking them via `body('*.n…
-
Hello, sometimes it is confortable for the same parameter to distinguish between different possible errors.
The client could react in a different way depending on the error and is not pratical to co…