Skip to content

Commit 54c2002

Browse files
committed
simple-repository-api: bump, explain api-version
Signed-off-by: William Woodruff <[email protected]>
1 parent d844cdc commit 54c2002

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source/specifications/simple-repository-api.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ In addition to the above, the following constraints are placed on the API:
101101
the file's provenance can be found at that URL. This URL **MUST** represent
102102
a `secure origin <https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features/>`_.
103103

104+
.. note::
105+
106+
The ``data-provenance`` attribute was added with API version 1.3.
107+
104108
.. note::
105109

106110
The format of the linked provenance is defined in :ref:`index-hosted-attestations`.
@@ -213,7 +217,7 @@ specification <version-specifiers>`.
213217

214218
This would end up looking like::
215219

216-
<meta name="pypi:repository-version" content="1.0">
220+
<meta name="pypi:repository-version" content="1.3">
217221

218222
When interpreting the repository version:
219223

@@ -405,7 +409,7 @@ As an example:
405409
406410
{
407411
"meta": {
408-
"api-version": "1.0"
412+
"api-version": "1.3"
409413
},
410414
"projects": [
411415
{"name": "Frob"},
@@ -509,13 +513,17 @@ Each individual file dictionary has the following keys:
509513
associated provenance, with the same rules as ``data-provenance`` in the
510514
:ref:`base HTML API specification <simple-repository-api-base>`.
511515

516+
.. note::
517+
518+
The ``provenance`` field was added with API version 1.3.
519+
512520
As an example:
513521

514522
.. code-block:: json
515523
516524
{
517525
"meta": {
518-
"api-version": "1.0"
526+
"api-version": "1.3"
519527
},
520528
"name": "holygrail",
521529
"files": [

0 commit comments

Comments
 (0)