Membrane SDK - v0.29.2
    Preparing search index...

    Function lenientParseWithSchema

    • Lenient parser that filters fields based on schema without type coercion. This parser never throws errors and handles values leniently:

      • Keeps only known fields (unless passthrough is enabled)
      • Preserves values as-is without any type coercion
      • Never throws errors
      • Fully recursive - handles nested objects, arrays, and all schema types uniformly

      Type Parameters

      Parameters

      • data: unknown
      • schema: T

      Returns output<T>