BRIKEV/express-jsdoc-swagger

View on GitHub
transforms/basic/license.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const setProperty = require('../utils/setProperty')('license');

const getContact = (options = {}) => ({
  name: setProperty(options, 'name', {
    type: 'string',
    required: true,
  }),
  url: setProperty(options, 'url', {
    type: 'string',
    defaultValue: '',
  }),
});

module.exports = getContact;