Skip to content

Commit 3e88cda

Browse files
committed
update validation headers
1 parent 71743bd commit 3e88cda

File tree

1 file changed

+48
-32
lines changed

1 file changed

+48
-32
lines changed

docs/source/manifest_validation.rst

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,74 @@
11
.. _Validating a Metadata Manifest:
22

3+
##############################
34
Validating a Metadata Manifest
4-
=================================================
5+
##############################
56

7+
*************
68
Prerequisites
7-
-------------
9+
*************
810

911
**Obtain Synapse Credentials**:
10-
Ensure you have a Synapse account and set up Synapse configuration file correctly. See the :ref:`installation` section for more details.
12+
================================
13+
Ensure you have a Synapse account and set up Synapse configuration file correctly. See the :ref:`setting up configuration files <installation:6. Set up configuration files>` section for more details.
14+
15+
16+
**Using the Schematic API in Production**
17+
=========================================
18+
19+
Visit the **Schematic API (Production Environment)**:
20+
`<https://schematic.api.sagebionetworks.org/v1/ui/#/>`_
21+
22+
This will open the **Swagger UI**, where you can explore all available API endpoints.
23+
1124

1225
**Before Using the Schematic CLI**
26+
==================================
1327

1428
- **Install and Configure Schematic**:
15-
Ensure you have installed `schematic` and set up its dependencies.
16-
See the :ref:`installation` section for more details.
29+
Ensure you have installed ``schematic`` and set up its dependencies.
30+
See the :ref:`installation:installation` section for more details.
1731

1832
- **Understand Important Concepts**:
1933
Familiarize yourself with key concepts outlined on the :ref:`index` of the documentation.
2034

2135
- **Configuration File**:
22-
For more details on configuring Schematic, refer to the documentation on :ref:`creating a configuration file for schematic <configuration>`.
36+
For more details on configuring Schematic, refer to the :ref:`configuration:Configure Schematic` section.
2337

2438
- **Obtain a manifest**:
2539
Please obtain a manifest by following the documentation of :ref:`generating a manifest <manifest_generation>`.
2640

2741

28-
**Using the Schematic API in Production**
29-
30-
Visit the **Schematic API (Production Environment)**:
31-
`<https://schematic.api.sagebionetworks.org/v1/ui/#/>`_
32-
33-
This will open the **Swagger UI**, where you can explore all available API endpoints.
34-
35-
42+
************
3643
Requirements
37-
-------------------------------------------------
44+
************
3845

3946
Authentication
40-
~~~~~~~~~~~~~~~~~~~~
47+
==============
48+
4149
Authentication with Synapse is required for metadata validation that includes Cross Manifest Validation rules or the ``filenameExists`` rule.
4250

4351
File Format
44-
~~~~~~~~~~~~~~
52+
===========
53+
4554
In general, metadata manifests must be stored as ``.CSV`` files. When validating through the api, manifests may alternatively be sent as a JSON string.
4655

4756
Required Column Headers
48-
~~~~~~~~~~~~~~~~~~~~~~~~~
57+
=======================
58+
4959
A ``Component`` column that specifies the data type of the metadata must be present in the manifest. Additionally, columns must be present for each attribute in the component that you wish to validate.
5060

5161
Restricted Column Headers
52-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
62+
=========================
5363
The columns ``Filename``, ``entityId``, and ``Component`` are reserved for use by schematic and should not be used as other attributes in a data model.
5464

55-
65+
*******************
5666
Manifest Validation
57-
-------------------------------------------------
67+
*******************
68+
5869
Overview
59-
~~~~~~~~~
70+
========
71+
6072
Invalidities within a manifest’s metadata are classified as either errors or warnings depending on the rule itself, whether the attribute is required, and what the data modeler has specified.
6173
Errors are considered serious invalidities that must be corrected before submission. Warnings are considered less serious invalidities that are acceptable.
6274
A manifest with errors should not be submitted and the presence of errors found during submission will block submission. The presence of warnings will not block submission.
@@ -93,14 +105,15 @@ or by viewing the parameter descriptions under the endpoints linked above.
93105

94106

95107
With the CLI
96-
~~~~~~~~~~~~~~~
108+
=============
97109

98110
Authentication
99-
^^^^^^^^^^^^^^^^
111+
--------------
112+
100113
To authenticate for use with the CLI, follow the installation guide instructions on how to :ref:`set up configuration files <set up configuration files>`
101114

102115
Parameters
103-
^^^^^^^^^^^^^^^
116+
----------
104117
--manifest_path/-mp
105118
string
106119

@@ -150,14 +163,16 @@ The SynId of the fileview containing all relevant project assets should also be
150163

151164

152165
With the API
153-
~~~~~~~~~~~~~~~
166+
============
154167

155168
Authentication
156-
^^^^^^^^^^^^^^^^
169+
--------------
170+
157171
Your Synapse token should be included the in the request headers under the ``access_token`` key. In the SwaggerUI this can be added by clicking the padlock icon at the top right or next to the endoints that accept it.
158172

159173
Parameters
160-
^^^^^^^^^^^^^^^
174+
----------
175+
161176
schema_url
162177
string
163178
url to the raw version of the data model in either ``.CSV`` or ``.JSONLD`` formats
@@ -200,21 +215,22 @@ dataset_scope
200215
Specify a dataset to validate against for filename validation.
201216

202217
Request Body
203-
^^^^^^^^^^^^^
218+
------------
219+
204220
file_name
205221
string($binary)
206222

207223
``.CSV`` or ``.JSON`` file of the metadata manifest
208224

209225

210226
Response
211-
^^^^^^^^^^^
227+
--------
212228
If valiation completes successfully, regardless of the presence of validation errors or warnings, you'll recieve a ``200`` response code.
213229
The body will be a JSON string containing a list of valiation errors and warnings in the format of ``{"errors": [list of errors], "warnings": [warnings]}``
214230

215231
Validating though the CLI will display all the errors and warnings found during validation or a message that no errors or warnings were found and the manifest is considered valid.
216232

217-
233+
*****************
218234
With the Library
219-
~~~~~~~~~~~~~~~~~
235+
*****************
220236
TODO

0 commit comments

Comments
 (0)