Check an options object
validate_optionsValidates an options object before it reaches ChartWidget, Chart, or ChartWidgetGrid, catching unknown names, invalid values, misplaced options, and type issues to prevent configuration errors.
Instructions
Checks an options object before it goes to new ChartWidget, new Chart or new ChartWidgetGrid: unknown option names (with the one likely meant, and where an option of another entry point belongs), values outside the allowed ones, numbers given as strings, intervals, feature switch names, style override keys and values, and languages, nested options included. Write functions and adapters as strings; they pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | The entry point: ChartWidget (the full trading UI), Chart (the headless chart) or ChartWidgetGrid (several charts). | |
| options | Yes | The options object, as JSON. |