You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and oneOf 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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: