In our perspective components module we typically have some configuration properties that are shared by multiple of our components. Is there a way to define the schema for such common properties in a separate file, and refer to it from other schemas. E.g. something like this:
If so, how should the common.props.json file be loaded into the system so that it can be resolved by the components property schema?
Hi Haakon,
Welcome to the forums!
What kind of objects are these in Perspective and what kind of properties are you trying to define?
As far as I can tell, you have to prefix the ref with the same urn:ignition-schema
prefix that we use, and then an attempt will be made to look up your schema at the given resource path under the current context classloader. I don't know offhand if that means it's actually impossible to provide your own schemas for use on the gateway, since your schema will be loaded under another classloader, but you might still be able to get the autocompletion in the JsonEditor in the designer, since the designer has a single flat classloader.