This is the specification for inventory format integrated in GLPI core.
It relies on JSON Schema.
The inventory.schema.json file is the JSON schema itself.
The lib/php directory contains a PHP class that cans handle conversion from XML files to new format; with some adjustments. You can either use directly Convert from your project, or rely on the executable script provided.
You can use the local PHP environment or the provided Docker image to run unit tests.
composer testdocker compose run --rm ciTo use another PHP version:
PHP_VERSION=7.4 docker compose run --rm --build ciPHP_VERSION can be set from 7.4 to 8.5 (default is 8.3).
In case, you need a shell in the container to run some tests manually:
docker compose run --rm ci bash