Interface Rule

interface Rule {
    enum?: unknown[];
    max?: number;
    maxBytes?: number;
    min?: number;
    minBytes?: number;
    pattern?: RegExp;
    required?: boolean;
    type?:
        | "string"
        | "boolean"
        | "object"
        | "float"
        | "integer"
        | "array";
}

Properties

enum?: unknown[]
max?: number
maxBytes?: number
min?: number
minBytes?: number
pattern?: RegExp
required?: boolean
type?:
    | "string"
    | "boolean"
    | "object"
    | "float"
    | "integer"
    | "array"