Skip to content

Commit 2216536

Browse files
authored
Merge pull request #1986 from pypa/ww/fix-792
simple-repository-api: fix PEP 792 transcription error
2 parents b2312c3 + 83681f9 commit 2216536

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

source/specifications/simple-repository-api.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -477,16 +477,12 @@ The format of this URL is ``/<project>/`` where the ``<project>`` is replaced by
477477
name for that project, so a project named "Silly_Walk" would
478478
have a URL like ``/silly-walk/``.
479479

480-
This URL must respond with a JSON encoded dictionary that has four keys:
480+
This URL must respond with a JSON encoded dictionary that has five keys:
481481

482482
- ``name``: The normalized name of the project.
483-
- ``files``: A list of dictionaries, each one representing an individual file.
484-
- ``meta``: The general response metadata as `described earlier <json-serialization_>`__.
483+
- ``project-status``: An optional dictionary, containing the following:
485484

486-
In addition to the general response metadata, the project detail ``meta``
487-
dictionary **MAY** also include the following:
488-
489-
- ``project-status``: If present, this **MUST** be a valid project status marker.
485+
- ``status``: If present, this **MUST** be a valid project status marker.
490486

491487
.. note::
492488

@@ -495,15 +491,21 @@ This URL must respond with a JSON encoded dictionary that has four keys:
495491

496492
.. note::
497493

498-
The ``project-status`` key was added with API version 1.4.
494+
The ``status`` key was added with API version 1.4.
499495

500-
- ``project-status-reason``: If present, this **MUST** be an arbitrary string
501-
description of the project status.
496+
- ``reason``: If present, this **MUST** be an arbitrary string description
497+
of the project status.
502498

503499
.. note::
504500

505-
The ``project-status-reason`` key was added with API version 1.4.
501+
The ``reason`` key was added with API version 1.4.
502+
503+
.. note::
504+
505+
The ``project-status`` key was added with API version 1.4.
506506

507+
- ``files``: A list of dictionaries, each one representing an individual file.
508+
- ``meta``: The general response metadata as `described earlier <json-serialization_>`__.
507509
- ``versions``: A list of version strings specifying all of the project versions
508510
uploaded for this project. The value of ``versions`` is logically a set,
509511
and as such may not contain duplicates, and the order of the versions is

0 commit comments

Comments
 (0)