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
When adding the following test in packages/uniforms-bridge-json-schema/__tests__/JSONSchemaBridge.ts:
it('returns correct definition (allOf with $ref)',()=>{expect(bridge.getField('shippingAddress.street')).toEqual({type: 'string',});});
It fails with:
FAIL packages/uniforms-bridge-json-schema/__tests__/JSONSchemaBridge.ts
● JSONSchemaBridge › #getField › returns correct definition (allOf with $ref)
Invariant Violation: Field not found in schema: "shippingAddress.street"
162 | }
163 |
> 164 | invariant(definition, 'Field not found in schema: "%s"', name);
| ^
165 |
166 | if (definition.$ref) {
167 | definition = resolveRef(definition.$ref, this.schema);
at invariant (node_modules/invariant/invariant.js:40:15)
at packages/uniforms-bridge-json-schema/src/JSONSchemaBridge.ts:164:7
at Array.reduce (<anonymous>)
at JSONSchemaBridge.reduce [as getField] (packages/uniforms-bridge-json-schema/src/JSONSchemaBridge.ts:123:33)
at Object.getField (packages/uniforms-bridge-json-schema/__tests__/JSONSchemaBridge.ts:334:21)
I expect it to work and also see this happen while trying to implement uniform with a schema generated by pydantic
The text was updated successfully, but these errors were encountered:
When adding the following test in
packages/uniforms-bridge-json-schema/__tests__/JSONSchemaBridge.ts
:It fails with:
I expect it to work and also see this happen while trying to implement uniform with a schema generated by pydantic
The text was updated successfully, but these errors were encountered: