bcgov/common-object-management-service

View on GitHub
app/src/validators/metadata.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const { type } = require('./common');
const { validate } = require('../middleware/validation');

const schema = {
  searchMetadata: {
    headers: type.metadata(),
  }
};

const validator = {
  searchMetadata: validate(schema.searchMetadata)
};

module.exports = validator;
module.exports.schema = schema;