hapijs / hapijs/joi

Multiple uri validation

Open
#3,020 2 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

### What problem are you trying to solve?

i try to validate multiple uri in a string that separate by comma( `,` )

[I found a very similar pr](https://github.com/hapijs/joi/pull/1842)

so i expect `uri({multiple : true})` but it does not exist.

There may be other solutions but I think this is a pretty consistent feature considering `email({ multiple : true }).`

### Do you have a new or modified API suggestion to solve the problem?

```javascript
joi.string().uri()

joi.string().uri({
multiple: true,
})
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.