×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

REQUEST: Validation mechanism for driver configuration file.

  • Posts: 179
  • Thank you received: 25
Please implement a mechanism in INDI to validate the configuration file of driver.
If unexpected items/values are read from the configuration file by the ISNew* function or base class of the driver, it will crash in the worst case.
This is a mechanism to avoid this problem.

I would like a mechanism to check if the configuration file is correct before processing in each driver, and not to load the configuration file in case of an error.
For example, the notation of the configuration file for each driver could be defined in XML Schema, and DefaultDevice::loadConfig could validate the configuration file with XML Schema.

If this mechanism is implemented, the implementation of exception handling in the ISNew* function of the driver will be reduced, and the system will become more robust with fewer crashes.
6 months 2 weeks ago #96465

Please Log in or Create an account to join the conversation.

Time to create page: 0.348 seconds