Run the parsed config through Zod for proper types

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • vNext
    • Affects Version/s: 1.0.0
    • Component/s: None
    • None
    • Not Needed
    • Developer Tools

      The parsed config currently could contain strings for non-string types. For example, while our code expects `exportTimeoutMs` to be a number, it might not be because a user could be providing `--exportTimeoutMs "1234"` or worse `–exportTimeoutMs null`.

      We should run our parsed config through a schema transformer from Zod and use only the values that could be transformed correctly. For the values we could not transform, we should warn and continue using the default.

            Assignee:
            Gagik Amaryan
            Reporter:
            Himanshu Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: