@paul-griffith Got a couple questions about how to get some property hints working in the designer:
additionalPropertiesandpatternPropertiesseem to only work for validation, but do not provide hints for matching properties.
I would like to do something like this: scales x, y, and r are known common properties and have designer hints when adding properties to scales, but any other keys are also valid and have schema hints after they are manually created.
"scales": {
"default": {},
"description": "Chart scale options.",
"type": "object",
"properties": {
"x": {
"required": false,
"$ref": "#/$defs/scale_options"
},
"y": {
"required": false,
"$ref": "#/$defs/scale_options"
},
"r": {
"required": false,
"$ref": "#/$defs/scale_radial_options"
}
},
"additionalProperties": {
"$ref": "#/$defs/scale_options",
}
}
I get schema hints for x, y, and r, but no hints for additional properties. Is this possible?
- This there a way to point
dynamicSuggestionsat the key-names of an object? This example shows how to create a list ofnamesfrom allaxis[key]s, but I need a list ofkeys(thex,y,r, and any additionalscalesfrom question 1):
I've tried ../scales/* and ../scales with no luck. If I do something like ../scales/*/type I can get the suggestion list to populate similarly to the example, but it's not what I'm after. Again, is this possible?
Thanks ![]()