acrn-hypervisor/misc/config_tools/scenario_config
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
..
jsonschema config_tools: pretty-print JSON schema violations 2022-05-30 13:46:42 +08:00
__init__.py config_tools: packaging config tool scripts for easier import 2022-03-18 08:49:06 +08:00
default_populator.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
elementpath_overlay.py config_tools: add assertions on the uniqueness of vBDF 2022-04-21 10:08:53 +08:00
lxml_loader.py config_tools: composing operations around XMLs as pipelines 2022-03-15 10:22:37 +08:00
pipeline.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
scenario_cfg_gen.py config tool: update schema 2022-04-18 19:29:51 +08:00
scenario_item.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
scenario_transformer.py config_tools: Add vue-json-schema-form and advanced custom component for IVSHMEM field 2022-05-08 15:52:28 +08:00
schema_slicer.py config_tools: refactor configurator for web page cache issue 2022-04-25 18:13:12 +08:00
upgrader.py config_tools: update upgrader.py script for virtio 2022-04-25 10:19:24 +08:00
validator.py config_tools: check XML file structures on load 2022-05-19 09:31:46 +08:00
xml_loader.py config_tools: composing operations around XMLs as pipelines 2022-03-15 10:22:37 +08:00

Please run scenario_cfg_gen.py to generate board related configuration files.

usage: python3 scenario_cfg_gen.py [h] --board <board_info_file> --scenario <scenario_info_file>
positional arguments:
  board_info_file  : file name of the board info XML
  scenario_info_file  : file name of the scenario info XML