Buckets:
ktongue/docker_container / .cache /opencode /node_modules /fast-json-stringify /build /build-schema-validator.js
| const Ajv = require('ajv') | |
| const standaloneCode = require('ajv/dist/standalone').default | |
| const ajvFormats = require('ajv-formats') | |
| const fs = require('fs') | |
| const path = require('path') | |
| const ajv = new Ajv({ | |
| addUsedSchema: false, | |
| allowUnionTypes: true, | |
| code: { | |
| source: true, | |
| lines: true, | |
| optimize: 3 | |
| } | |
| }) | |
| ajvFormats(ajv) | |
| const schema = require('ajv/lib/refs/json-schema-draft-07.json') | |
| const validate = ajv.compile(schema) | |
| const validationCode = standaloneCode(ajv, validate) | |
| const moduleCode = `/* CODE GENERATED BY '${path.basename(__filename)}' DO NOT EDIT! */\n${validationCode}` | |
| fs.writeFileSync(path.join(__dirname, '../lib/schema-validator.js'), moduleCode) | |
Xet Storage Details
- Size:
- 702 Bytes
- Xet hash:
- 4f434b4df36edd96f6260e44b6fb79a6b119193c6294c7b8e66080faa3461617
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.