Skip to content

Commit 2fa67db

Browse files
authored
PEP 770: Remove MUST for JSON+UTF-8, fix typo (#4201)
1 parent f86a07f commit 2fa67db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

peps/pep-0770.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ Any characters or character sequences not covered by this specification are
214214
invalid. Projects MUST NOT use such values. Tools consuming this field SHOULD
215215
reject invalid values with an error.
216216

217-
Tools MUST assume that SBOM file content is valid UTF-8 encoded JSON, and SHOULD
218-
validate this an raise an error for invalid formats and encodings.
219-
220217
Literal paths (e.g. ``bom.cdx.json``) are treated as valid globs which means
221218
they can also be defined.
222219

@@ -257,7 +254,7 @@ Examples of invalid SBOM files declarations:
257254
[project]
258255
sbom-files = ["..\bom.json"]
259256
260-
Reason: ``..`` must not be used. ``\\`` is an invalid path delimited, ``/``
257+
Reason: ``..`` must not be used. ``\\`` is an invalid path delimiter, ``/``
261258
must be used.
262259

263260
.. code-block:: toml

0 commit comments

Comments
 (0)