http and file resolver should be added via optional features
Niraj-Kamdar opened this issue · 3 comments
Niraj-Kamdar commented
Currently, jsonschema lib can't be compiled down to a wasm module since it relies on HTTP and File IO which aren't supported by the WASM standard.
It'd be better to allow users to add the ref resolver module as an optional feature.
jsonschema = { version = "0.16.0", features = ["ref-resolver"]}
Stranger6667 commented
Are the resolve-http
and resolve-file
features not sufficient for this?
Niraj-Kamdar commented
@Stranger6667 Oops missed it! Yeah disabling those would totally work.
Stranger6667 commented
Great to hear! :) I'd like to have jsonschema
compiled to WASM eventually
Related: #222