Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/payload
PayloadValidator
Class PayloadValidator<T>
Type Parameters
T
extends
Payload
=
Payload
Hierarchy (
View Summary
)
ValidatorBase
<
T
>
PayloadValidator
Implements
Validator
<
T
>
Index
Constructors
constructor
Properties
obj
payload
schema
Name
Validator
Factory
Accessors
schema
Validator
string
Key
Obj
Methods
schema
Name
validate
set
Schema
Name
Validator
Factory
Constructors
constructor
new
PayloadValidator
<
T
extends
DeepRestrictToStringKeys
<
{
schema
:
string
}
>
=
DeepRestrictToStringKeys
<
{
schema
:
string
}
,
>
,
>
(
payload
:
T
,
)
:
PayloadValidator
<
T
>
Type Parameters
T
extends
DeepRestrictToStringKeys
<
{
schema
:
string
}
>
=
DeepRestrictToStringKeys
<
{
schema
:
string
}
>
Parameters
payload
:
T
Returns
PayloadValidator
<
T
>
Properties
Readonly
obj
obj
:
Partial
<
T
>
Protected
payload
payload
:
DeepRestrictToStringKeys
<
{
schema
:
string
}
>
Protected
Static
schema
Name
Validator
Factory
schemaNameValidatorFactory
:
AllValidatorFactory
Accessors
schema
Validator
get
schemaValidator
()
:
AllValidator
Returns
AllValidator
Protected
string
Key
Obj
get
stringKeyObj
()
:
StringKeyObject
Returns
StringKeyObject
Methods
schema
Name
schemaName
()
:
Error
[]
Returns
Error
[]
validate
validate
()
:
Promisable
<
Error
[]
>
Returns
Promisable
<
Error
[]
>
Static
set
Schema
Name
Validator
Factory
setSchemaNameValidatorFactory
(
factory
:
AllValidatorFactory
)
:
void
Parameters
factory
:
AllValidatorFactory
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
obj
payload
schema
Name
Validator
Factory
Accessors
schema
Validator
string
Key
Obj
Methods
schema
Name
validate
set
Schema
Name
Validator
Factory
XYO Platform SDK - v3.6.9
Loading...