-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error with $ref: reference resolves to more than one schema #4048
Comments
I think you need to declare reference to location.json differently, not using /#defs prefix. See this comment with explanation how ajv works |
Thanks for your reply, I'm using the # json pointer because according to the RJSF docs on Schema definitions and references
After reading the json schema docs for
I don't fully understand why but after removing the |
Yes, this is exactly what is explained in the comment I referenced. |
@jag43 Has this issue been resolved? If so, please close |
Yes I've resolved this thank you for your help |
Prerequisites
What theme are you using?
mui
Version
5.16.1
Current Behavior
When using JSON pointer $refs I'm getting an error on submission:
reference "locations.json" resolves to more than one schema
Expected Behavior
No error, form performs validation as expected
Steps To Reproduce
https://github.com/jag43/rjsf-resolves-to-more-than-one-schema
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: