Skip to content

Latest commit

 

History

History

schema

Robot Framework and Libdoc schema definitions

This directory contains schema definitions for various Robot Framework and Libdoc output files.

Only the latest schema versions are directly available and they may not be compatible with older Robot Framework versions. If you need to access old schema files, switch to an appropriate version control tag using the selector at the top of the page.

Schema files

Schema standard versions

XML schema definitions use XSD 1.0 due to XSD 1.1 not being widely adopted. Schema files themselves contain embedded documentation and comments explaining the structure in more detail. They also contain instructions how to make them XSD 1.1 compatible if needed.

JSON schemas use JSON Schema Draft 2020-12.

Updating schemas

XSD schemas are created by hand and updates need to be done directly to them.

JSON schemas are generated based on models created using pydantic. To modify these schemas, first update the appropriate pydantic model either in running_json_schema.py, result_json_schema.py, or libdoc_json_schema.py and then execute that file to regenerate the actual schema file in running.json, result.json, or libdoc.json, respectively.

Testing schemas

Schema definitions are tested as part of acceptance test runs by validating created outputs against the appropriate schemas. Most output.xml files created during test runs are not validated, however, because that would slow down test execution a bit too much. Full validation can be enabled separately and that should be done if the schema is updated or output.xml structure is changed.