Currently running a file against validation happens synchronously on the main thread. As the typescript-json-schema library does not support async / await, it needs to be run by a worker_thread / in a workerpool instead to not block the main thread during execution and return a promise that the ui can act upon.
Rewrote validation functions in 80eb2be956f2b421977e17477a052900bf032bd1 to only require and return serializable data. Should now be able to run in a worker_thread. 🥳
Currently running a file against validation happens synchronously on the main thread. As the
typescript-json-schema
library does not support async / await, it needs to be run by a worker_thread / in a workerpool instead to not block the main thread during execution and return a promise that the ui can act upon.