• Normalize a request or response object that was converted from XML into JSON using a Schema definition that defines which properties are of which type and converts the properties where required so that they are compatible with the schema.

    Modifies the object passed as argument instead of creating a new object.

    Type Parameters

    • T extends object

    Parameters

    • schema: Definition

      Schema definition

    • obj: T

      request or response object

    • Optional options: {
          deleteUnknown?: boolean;
      }

      Options that control what is normalized

      • Optional deleteUnknown?: boolean

    Returns T

    Schema normalized object