acrn-hypervisor/misc/config_tools/scenario_config/jsonschema
Junjie Mao df93268136 config_tools: pretty-print JSON schema violations
The default error messages provided by the ajv validation library read like
this:

    * must have required property MEMORY.STACK_SIZE

    * must match pattern "<a regular expression>"

Such messages may look confusing as users are not supposed to understand
the internal naming of the config items or the regular expressions used to
validate strings.

This patch enables the XML schema to include 'acrn:errormsg' annotations
which is a dictionary from error types to customized error messages. This
mechanism is used to show more user-friendly messages upon common errors
such as missing or invalid data in required config item.

Tracked-On: #6691
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-05-30 13:46:42 +08:00
..
__init__.py configurator: add new configurator 2022-03-31 19:26:33 +08:00
converter.py config_tools: pretty-print JSON schema violations 2022-05-30 13:46:42 +08:00
document.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00