Make JSON schema a function of another field #13592
Gerharddc
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
I've now managed to implement this using a custom component and a custom validate function, both of which are derived from the built-in versions. This seems to work well enough, but it would still be nice to have more flexibility on how to provide the JSON schema so one does not have to go to such lengths :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would like the option to have the schema for a JSON field (as described in https://payloadcms.com/docs/fields/json#local-json-schema) depend on the value of another field in the collection. The idea here is that I would like to have a collection in my system where I can store JSON schema definitions for different products. Then I want to have a collection with products where each product entry can independently specify which schema applies to it.
Beta Was this translation helpful? Give feedback.
All reactions