app/api/relationships.v2/routes/validators/getMigrationHubRecords.ts
import { createValidator, ValidatorSchema } from 'api/common.v2/validation/routesValidation';
import { GetMigrationHubRecordsRequest } from 'shared/types/api.v2/migrationHubRecords.get';
const schema: ValidatorSchema<GetMigrationHubRecordsRequest> = {
properties: {
page: {
type: 'string',
},
pageSize: {
type: 'string',
},
},
};
export const validateGetMigrationHubRecordsRequest = createValidator(schema);