JSON schema object that accepts any properties #1311
Unanswered
arthurdenner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want a custom field where different properties would be added to an object.
I've tried multiple things but most of them resulted in
Invariant Violation - Field not found in schema: "x"
I don't know if I'm creating the wrong schema here or if it's a limitation of
uniforms-bridge-json-schema
, similar to #863.EDIT: It seems like a limitation, properties are required (ref).
I'll list a few attempts here:
In the end, I'm trying to have an object field that will get different properties based on the implementation of the custom field. The custom field is creating fields using components from
uniforms-antd
such asAutoField
orSelectField
. Each of these is getting aname
prop (e.g.<SelectField name="x" {...props} />
but then it fails with the aforementioned Invariant Violation.This is an example of how I'm trying to implement the custom field:
Beta Was this translation helpful? Give feedback.
All reactions