ajv-interface-keywords
v1.0.0
Published
Keywords for validating apis
Downloads
5
Readme
ajv-interface-keywords
Keywords for validating apis
Keywords
arguments
Array schema, matches against arguments to function as array
return
Schema, matches against return value of function
interface
String identifier for object interface.
pre-defined with js standard objects like promise, set, map, etc..
if given a valid value to the "type" keyword treated like type: VALUE where VALUE is the rhs of the keyword
resolve
alias for
interface: promise
properties:
then:
interface: function
argument:
VALUE
where VALUE is the rhs of the keyword
argument
alias for
arguments:
items:
- VALUE
where VALUE is the rhs of the keyword