REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.23 KB
Close
/home/byroehnu/easepay.easetack.com/node_modules/swagger-jsdoc/src/lib.js
Text
Base64
const { build } = require('./specification'); /** * Generates the specification. * @param {object} options - Configuration options * @param {string} options.encoding Optional, passed to readFileSync options. Defaults to 'utf8'. * @param {boolean} options.failOnErrors Whether or not to throw when parsing errors. Defaults to false. * @param {boolean} options.verbose Whether the swagger snippet containing each error should be included in print/throws. Defaults to false. * @param {string} options.format Optional, defaults to '.json' - target file format '.yml' or '.yaml'. * @param {object} options.swaggerDefinition * @param {object} options.definition * @param {array} options.apis * @returns {object} Output specification */ module.exports = (options) => { if (!options) { throw new Error(`Missing or invalid input: 'options' is required`); } if (!options.swaggerDefinition && !options.definition) { throw new Error( `Missing or invalid input: 'options.swaggerDefinition' or 'options.definition' is required` ); } if (!options.apis || !Array.isArray(options.apis)) { throw new Error( `Missing or invalid input: 'options.apis' is required and it should be an array.` ); } return build(options); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lib.js
1.23 KB
lrw-r--r--
2026-02-23 15:45:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
specification.js
9.10 KB
lrw-r--r--
2026-02-23 15:45:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
4.07 KB
lrw-r--r--
2026-02-23 15:45:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).