Using AutoField with schema containing patternProperties #1290
Labels
Area: Bridge
Affects some of the bridge packages
Bridge: JSON Schema
Affects the uniforms-bridge-json-schema package
Type: Feature
New features and feature requests
Milestone
I've encountered an issue while attempting to use AutoField with a schema that contains patternProperties. Here's the relevant part of my schema:
I'm trying to use AutoField like this:
However, this doesn't work because AutoField uses the getField function from the JSONSchemaBridge class, and that function doesn't handle patternProperties. Would it be possible to consider adding support for patternProperties to the JSONSchemaBridge class?
I've attempted to extend the class to address this issue, but it's a bit messy. Here's an example of what I've tried:
Is there a better approach that I may have overlooked? Your assistance is greatly appreciated! Thank you.
The text was updated successfully, but these errors were encountered: