UNPKG

json-timeline

Version:

Generate Interactive Timelines stored in JSON Advents with Tags.

651 lines (183 loc) 7.49 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Module: validateSchema</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Module: validateSchema</h1> <section> <header> </header> <article> <div class="container-overview"> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="~monthDays"><span class="type-signature">(inner, constant) </span>monthDays<span class="type-signature"> :Map</span></h4> <div class="description"> Map of Days in a Month based on Year </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Map</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="schema_validateSchema.js.html">schema/validateSchema.js</a>, <a href="schema_validateSchema.js.html#line7">line 7</a> </li></ul></dd> </dl> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="~validateDate"><span class="type-signature">(inner) </span>validateDate<span class="signature">(input)</span><span class="type-signature"> &rarr; {Object|false}</span></h4> <div class="description"> Validates Input against DateSchema </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>input</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last">Input Argument</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="schema_validateSchema.js.html">schema/validateSchema.js</a>, <a href="schema_validateSchema.js.html#line90">line 90</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> Value of Input if Valid, false otherwise </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> | <span class="param-type">false</span> </dd> </dl> <h4 class="name" id="~validateSchema"><span class="type-signature">(inner) </span>validateSchema<span class="signature">(input)</span><span class="type-signature"> &rarr; {Object|false}</span></h4> <div class="description"> Validates Input against AdventSchema </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>input</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last">Input Argument</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="schema_validateSchema.js.html">schema/validateSchema.js</a>, <a href="schema_validateSchema.js.html#line28">line 28</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> Value of Input if Valid, false otherwise </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> | <span class="param-type">false</span> </dd> </dl> <h4 class="name" id="~validateTags"><span class="type-signature">(inner) </span>validateTags<span class="signature">(input)</span><span class="type-signature"> &rarr; {Object|false}</span></h4> <div class="description"> Validates Input against AdventSchema.tags </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>input</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last">Input Argument</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="schema_validateSchema.js.html">schema/validateSchema.js</a>, <a href="schema_validateSchema.js.html#line144">line 144</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> Value of Input if Valid, false otherwise </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> | <span class="param-type">false</span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-advents.html">advents</a></li><li><a href="module-compareDates.html">compareDates</a></li><li><a href="module-groupAdvents.html">groupAdvents</a></li><li><a href="module-index.html">index</a></li><li><a href="module-isType.html">isType</a></li><li><a href="module-json-timeline.html">json-timeline</a></li><li><a href="module-loadAdvents.html">loadAdvents</a></li><li><a href="module-renderAdvents.html">renderAdvents</a></li><li><a href="module-schemas.html">schemas</a></li><li><a href="module-sortAdvents.html">sortAdvents</a></li><li><a href="module-validateSchema.html">validateSchema</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Mon Dec 14 2020 23:14:56 GMT-0500 (Eastern Standard Time) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>