-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Title is not populated for oneOf
when referenced through $ref
#164
Labels
enhancement
New feature or request
Comments
sshishov
changed the title
Do not reproduce title for
Title is not populated for Mar 27, 2024
oneOf
when referenced through $ref
oneOf
when referenced through $ref
Thanks for taking the time to go through the source code and providing a fix. I'll ship it in the next release. |
Hi @sshishov, would you like to contribute and open a Pull Request at bhch/react-json-form? If not, it's still okay and I can make these changes myself. Let me know. Thanks again. |
Any Update? |
abe-101
added a commit
to abe-101/react-json-form
that referenced
this issue
May 15, 2024
Following the suggestion from bhch/django-jsonform#164
Released in v2.23.0. |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the processing of
oneOf
options we rely that thetitle
should be inside the components, but sometimes theoneOf
is the array of just references, therefore title can be unavailable there.We can replace the current implementation
with this one
or similar. The main point - we should receive the full schema first to make sure that we properly retrieve options.
I would recommend to store the schemas of objects in the internal state of the Container (same list with index acces). In this case we should not retrieve and parse it every time.
Example of the broken schema
Actual and Expected screenshots on playground
NOTE: tested locally, working like a charm.
The text was updated successfully, but these errors were encountered: