UNPKG

apim-developer-portal2

Version:

API management developer portal

15 lines (12 loc) 485 B
import * as ko from "knockout"; // import { ValidateIf, IsNotEmpty } from "class-validator"; export class ConsoleHost { public readonly hostname: ko.Observable<string>; // @ValidateIf(x => x.hostname && x.hostname.indexOf("*") >= 0) // @IsNotEmpty({ message: "Wildcard segment is required." }) public readonly wildcard: ko.Observable<string>; constructor() { this.hostname = ko.observable(); this.wildcard = ko.observable(); } }