How to restrict an element instantiation to only match the "patternProperties" pattern #309
Replies: 1 comment
-
I got a working workaround:
Thanks |
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
-
Hi,
I'd like to restrict a "patternProperties" based element to be able create its instance only matched to its "pattern". Let me explain that on the following example:
Schema
Config
The above schema definition allow to create an instance of element called "element-not-matched-to-pattern" which doesn't match to pattern definition "^eth-(6[5-6])|eth-(6[0-6]|5[0-9]|4[0-9]|3[0-9]|2[0-9]|1[0-9]|[1-9])$". And here is my question's point, I'd like to disallow to create an element instance like "element-not-matched-to-pattern" and allow to create element only matched to the pattern definition, like "eth-1"
Regards!
Beta Was this translation helpful? Give feedback.
All reactions