Open harleyharl opened 10 months ago
Hi @harleyharl,
Would it be possible to consider adding support for patternProperties to the JSONSchemaBridge class?
We had a small internal discussion about it, and we came to the conclusion that we should always try to handle as many features as JSONSchema provides. Given that, we appreciate your effort and would happily accept a working solution as a PR. However, it still needs to pass the tests and possibly add new ones that cover the new functionality. If you don't have time to do it, then eventually, we'll provide this ourselves somewhere in the future.
TL;DR: Yes, it is possible and welcome to submit a PR with the support for patternProperties
.
PS: Thanks for sharing your implementation.
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.