Open davidli108 opened 3 weeks ago
Hi @davidli108 Seem that the problem is related specifically to the uniforms-bridge-json-schema
. Out of curiosity what did you use to generate this schema from types? In general, the handling of allOf/anyOf/oneOf
is not complete as mentioned here.
I've tried to reproduce this error using the schema you shared but I've encountered a different error: Error: strict mode: unknown keyword: "discriminator"
. Perhaps a complete reproduction of your issue could shed some more light on it.
It's possible that the type: "object"
at the top level of the schema conflicts with the oneOf
keyword, as the validator might be expecting an additional level of nesting in the structure.
Versions: uniforms: ^3.10.1 uniforms-mui: ^3.10.1
When i generate the json schema from this typescript, the json is
In this case, I am getting an error and it says it cannot find the "name" or "address" field in
A
As you can see,A
has"type": "object"
inside of it andoneOf
property also has"type": "object"
in each property. When i deleted the first"type": "object"
, I didn't see the error.Can you please check?