huridocs/uwazi

View on GitHub
app/api/relationships.v2/routes/validators/testOneHub.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createValidator, ValidatorSchema } from 'api/common.v2/validation/routesValidation';

interface HubTestData {
  hubId: string;
}

const schema: ValidatorSchema<HubTestData> = {
  properties: {
    hubId: { type: 'string' },
  },
};

export const validateMigration = createValidator(schema);