Skip to content

Commit

Permalink
Doc: add sphinx extension for json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tang-mm committed Dec 5, 2023
1 parent bac3d80 commit dfc2a45
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

1 change: 1 addition & 0 deletions docs/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ lxd-sphinx-extensions
sphinx-copybutton
myst-parser
setuptools-scm
sphinx-jsonschema
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
'terminal-output',
'sphinx_copybutton',
'sphinxext.opengraph',
'myst_parser'
'myst_parser',
'sphinx-jsonschema'
]

myst_enable_extensions = [
Expand Down
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Reference
launcher
units/index
snaps
submission-schema
17 changes: 17 additions & 0 deletions docs/reference/submission-schema.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. _submission_schema:

Submission Schema
==================

Checkbox :ref:`Submission files <submission-files>` provide a summary of the test results and in-depth information that help analyzing the tests.

This document describes the schema the ``submission.json`` files that's sent to the `Certification website <https://certification.canonical.com>`_ as part of the submission. To get the latest schema definition file in Json, go to the Checkbox `GitHub repository <https://github.com/canonical/checkbox/blob/main/submission-schema/schema.json>`_.

.. important::

The schema described in this document is work-in-progress and being reviewed. If you need assistance in validating the schema, please contact the Checkbox team.

.. jsonschema:: ../../submission-schema/schema.json
:lift_definitions:
:auto_reference:

6 changes: 4 additions & 2 deletions docs/tutorial/using-checkbox/test-report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ in the search bar, you can view all test results related to audio testing.
The xz compressed tarball is a comprehensive archive that includes the
aforementioned reports and all associated attachments, such as I/O logs
and binary files. You can extract the tarball with ``tar -xf
sumbission.tar.xz -C /path/to/destination``.
submission.tar.xz -C /path/to/destination``.

Certification Website only accepts submissions tarballs, from which it
extracts the ``submission.json`` file to create a new test report in the
database.
database.

For a detailed description of the ``submission.json`` file, see the :doc:`../../reference/submission-schema` reference.

0 comments on commit dfc2a45

Please sign in to comment.