UNPKG
steady-api
Version:
latest (2.1.0)
2.1.0
2.0.0
1.6.4
1.6.3
1.6.2
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
Configurable REST API built with Express and TypeScript
steady-api
/
src
/
types
/
url.ts
17 lines
(14 loc)
•
263 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
*
as
Joi
from
'joi'
;
/** * Paramter type: url * Used for: urls */
const
type
= {
name
:
"url"
,
description
:
"Valid URLs"
,
validator
:
function
(
param
) {
return
Joi
.
string
().
uri
(); },
example
:
"http://www.example.com"
}
export
default
type
;