Buckets:
| ; | |
| module.exports = function generate_comment(it, $keyword, $ruleType) { | |
| var out = ' '; | |
| var $schema = it.schema[$keyword]; | |
| var $errSchemaPath = it.errSchemaPath + '/' + $keyword; | |
| var $breakOnError = !it.opts.allErrors; | |
| var $comment = it.util.toQuotedString($schema); | |
| if (it.opts.$comment === true) { | |
| out += ' console.log(' + ($comment) + ');'; | |
| } else if (typeof it.opts.$comment == 'function') { | |
| out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);'; | |
| } | |
| return out; | |
| } | |
Xet Storage Details
- Size:
- 573 Bytes
- Xet hash:
- fba0c686eab4012bca0a114f0fe754300b0dd2a2c0cbc683304697af892eaaf5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.