mwg API
    Preparing search index...

    Type Alias Schema

    Schema:
        | { optional?: boolean; type: "string" }
        | { max?: number; min?: number; optional?: boolean; type: "number" }
        | { optional?: boolean; type: "boolean" }
        | { fields: Record<string, Schema>; optional?: boolean; type: "object" }
        | { items: Schema; maxLength?: number; optional?: boolean; type: "array" }

    A small schema for validating an already-parsed value's shape - deliberately not a full JSON Schema implementation, only what SaveSystem/NewsClient-shaped data actually needs: primitives, arrays, and objects, with __proto__/constructor/prototype keys always rejected regardless of what a schema itself asks for, since no legitimate save or feed payload ever needs to set one and a parsed JSON object having one is exactly the prototype-pollution shape this exists to catch.