-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JSONSchemaBridge] Export resolveIfNeeded
function
#1307
Comments
If this is approved, I can provide a PR exporting this function 😃 |
Hi @lordrip, There is also #1278 on the plate, and Another workaround, for now, would be to just copy the function into your codebase because it's not that big: uniforms/packages/uniforms-bridge-json-schema/src/JSONSchemaBridge.ts Lines 14 to 49 in eed59c6
I'm also considering going with Let me know what you think. |
Thanks for the answer @kestarumper. I agree that exporting the function will increase the API surface area, I'll copy the function in the meantime, to move forward. I'll close the issue. Thanks once again for taking the time. |
Currently, we have partial support for
oneOf
keywords in uniforms, and as discussed in #863, one of the proposed workarounds is to process the schema before passing it to the form.This can easily done for schemas that don't use
$ref
, in case a reference schema is used, it would be beneficial to have available theresolveRefIfNeeded
functionThe goal for this issue is to export the aforementioned function, either through a standalone export or as a protected method of the
JSONSchemaBridge
classThe text was updated successfully, but these errors were encountered: