ajv-interface-keywords

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ajv-interface-keywords

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • errorstream