Skip to content

Commit a04ddd9

Browse files
committed
docs: Document metadata members, closes #54
1 parent 8ae2c5b commit a04ddd9

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

docs/browse.rst

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Read a report
2+
=============
3+
4+
The reports are self-documenting, with explanations in paragraphs and tooltips.
5+
6+
Check metadata is displayed verbatim. In principle, any useful metadata should be rendered elsewhere ([#34](https://github.com/open-contracting/pelican-frontend/issues/34), [#49](https://github.com/open-contracting/pelican-frontend/issues/49), [#50](https://github.com/open-contracting/pelican-frontend/issues/50). That said, here are the semantics of the members:
7+
8+
.. See docstring for complete_result_resource() and compiled-release.rst in pelican-backend.
9+
10+
Common members
11+
--------------
12+
13+
result
14+
Whether the check passes.
15+
16+
``true``
17+
Passed
18+
``false``
19+
Failed
20+
``null``
21+
Not applicable
22+
reason
23+
The reason the check failed or wasn't applied.
24+
meta
25+
Any additional data to help interpret the result.
26+
version
27+
The version of the check. If developers change a check's behavior, they increment its version.
28+
29+
Field-level checks
30+
------------------
31+
32+
name
33+
The machine name of the field-level check.
34+
value
35+
The field's value, if the check failed.
36+
37+
Compiled release-level checks
38+
-----------------------------
39+
40+
application_count
41+
The number of times the check was applied (for example, once per array entry).
42+
pass_count
43+
The number of times the check passed.
44+
meta
45+
Any additional data to help interpret the result.
46+
47+
failed_paths
48+
The failed paths if the check failed.

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Pelican frontend
77
:caption: Contents
88
:maxdepth: 1
99

10+
browse
1011
export
1112
api/index
1213
contributing/index

0 commit comments

Comments
 (0)