Implemented the basic request classes feature/1-input_classes #2

Merged
niggl merged 9 commits from feature/1-input_classes into dev 2021-02-03 16:49:23 +00:00
Showing only changes of commit d08bdfd961 - Show all commits

View File

@ -0,0 +1,23 @@
import {
IsArray,
IsInt
} from "class-validator";
import { Runner } from './Runner';
/**
* Defines the certificate runner class (from which the runner certificates get generated).
*/
export class CertificateRunner extends Runner {
/**
* The total distance ran by the runner.
*/
@IsInt()
distance: number;
/**
* Array containing all distance donations associated with the runner.
*/
@IsArray()
distanceDonations: any[];
}