Search
Preparing search index...
The search index is not available
json-schema-to-joi
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"extendedJoi/allOf"
AllOfSchema
Interface AllOfSchema
Hierarchy
AnySchema
AllOfSchema
Index
Properties
is
Joi
schema
Type
Methods
allow
bind
concat
default
describe
description
disallow
empty
equal
error
example
exist
forbidden
invalid
items
label
meta
not
notes
only
optional
options
raw
required
strict
strip
tags
unit
valid
validate
when
Properties
is
Joi
is
Joi
:
boolean
Optional
schema
Type
schema
Type
:
Types
|
string
Methods
allow
allow
(
values
:
any
[]
)
:
this
allow
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
bind
bind
(
)
:
this
Returns
this
concat
concat
(
schema
:
this
)
:
this
Parameters
schema:
this
Returns
this
default
default
(
value
:
any
, description
:
undefined
|
string
)
:
this
Parameters
Optional
value:
any
Optional
description:
undefined
|
string
Returns
this
describe
describe
(
)
:
Description
Returns
Description
description
description
(
desc
:
string
)
:
this
Parameters
desc:
string
Returns
this
disallow
disallow
(
values
:
any
[]
)
:
this
disallow
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
empty
empty
(
schema
:
SchemaLike
)
:
this
Parameters
Optional
schema:
SchemaLike
Returns
this
equal
equal
(
values
:
any
[]
)
:
this
equal
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
error
error
(
err
:
Error
|
ValidationErrorFunction
, options
:
ErrorOptions
)
:
this
Parameters
err:
Error
|
ValidationErrorFunction
Optional
options:
ErrorOptions
Returns
this
example
example
(
value
:
any
)
:
this
Parameters
value:
any
Returns
this
exist
exist
(
)
:
this
Returns
this
forbidden
forbidden
(
)
:
this
Returns
this
invalid
invalid
(
values
:
any
[]
)
:
this
invalid
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
items
items
(
types
:
Joi.SchemaLike
[]
)
:
this
Parameters
types:
Joi.SchemaLike
[]
Returns
this
label
label
(
name
:
string
)
:
this
Parameters
name:
string
Returns
this
meta
meta
(
meta
:
object
)
:
this
Parameters
meta:
object
Returns
this
not
not
(
values
:
any
[]
)
:
this
not
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
notes
notes
(
notes
:
string
|
string
[]
)
:
this
Parameters
notes:
string
|
string
[]
Returns
this
only
only
(
values
:
any
[]
)
:
this
only
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
optional
optional
(
)
:
this
Returns
this
options
options
(
options
:
ValidationOptions
)
:
this
Parameters
options:
ValidationOptions
Returns
this
raw
raw
(
isRaw
:
undefined
|
false
|
true
)
:
this
Parameters
Optional
isRaw:
undefined
|
false
|
true
Returns
this
required
required
(
)
:
this
Returns
this
strict
strict
(
isStrict
:
undefined
|
false
|
true
)
:
this
Parameters
Optional
isStrict:
undefined
|
false
|
true
Returns
this
strip
strip
(
)
:
this
Returns
this
tags
tags
(
notes
:
string
|
string
[]
)
:
this
Parameters
notes:
string
|
string
[]
Returns
this
unit
unit
(
name
:
string
)
:
this
Parameters
name:
string
Returns
this
valid
valid
(
values
:
any
[]
)
:
this
valid
(
values
:
any
[]
)
:
this
Parameters
Rest
values:
any
[]
Returns
this
Parameters
values:
any
[]
Returns
this
validate
validate<T>
(
value
:
T
, options
:
ValidationOptions
)
:
ValidationResult
<
T
>
validate<T, R>
(
value
:
T
, callback
:
function
)
:
R
validate<T, R>
(
value
:
T
, options
:
ValidationOptions
, callback
:
function
)
:
R
Type parameters
T
Parameters
value:
T
Optional
options:
ValidationOptions
Returns
ValidationResult
<
T
>
Type parameters
T
R
Parameters
value:
T
callback:
function
(
err
:
ValidationError
, value
:
T
)
:
R
Parameters
err:
ValidationError
value:
T
Returns
R
Returns
R
Type parameters
T
R
Parameters
value:
T
options:
ValidationOptions
callback:
function
(
err
:
ValidationError
, value
:
T
)
:
R
Parameters
err:
ValidationError
value:
T
Returns
R
Returns
R
when
when
(
ref
:
string
|
Reference
, options
:
WhenOptions
)
:
AlternativesSchema
when
(
ref
:
Schema
, options
:
WhenSchemaOptions
)
:
AlternativesSchema
Parameters
ref:
string
|
Reference
options:
WhenOptions
Returns
AlternativesSchema
Parameters
ref:
Schema
options:
WhenSchemaOptions
Returns
AlternativesSchema
Globals
"common/logger"
"extended
Joi/all
Of"
"extended
Joi/one
Of"
"joi/all
Of"
"joi/alternatives"
"joi/any"
"joi/array"
"joi/boolean"
"joi/format"
"joi/generate"
"joi/number"
"joi/object"
"joi/one
Of"
"joi/options"
"joi/reference"
"joi/resolve"
"joi/resolve
Type"
"joi/string"
"joi/types"
"utils"
All
OfSchema
is
Joi
schema
Type
allow
bind
concat
default
describe
description
disallow
empty
equal
error
example
exist
forbidden
invalid
items
label
meta
not
notes
only
optional
options
raw
required
strict
strip
tags
unit
valid
validate
when
All
OfSchema
Params
all
OfExtension
Generated using
TypeDoc