Skip to content

Commit 9b7d2de

Browse files
committed
doc: show proprietary and hardware dependencies in the dependsOn guidance
dependsOn/open is deprecated, yet the dependsOn note and the Dependency type still pointed at a database and used MySQL and PostgreSQL as examples. A publisher following them ended up on the deprecated key. The guidance and examples now use proprietary software and hardware and send open source runtime dependencies to the SBOM or package manifests, in both versions.
1 parent da23720 commit 9b7d2de

3 files changed

Lines changed: 44 additions & 31 deletions

File tree

‎spec/v0/schema.core.rst‎

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,11 @@ This section provides an overview on the system-level dependencies
895895
required to install and use this software.
896896

897897
**NOTE:** do not list dependencies at the source code level (e.g.:
898-
software libraries being used), and focus only on runtime and/or
899-
system-level dependencies that must be installed and maintained
900-
separately. For instance, a database is a good example of such
901-
dependencies.
898+
software libraries being used), and focus only on the proprietary
899+
software and the hardware needed at runtime that must be installed and
900+
maintained separately. For instance, a proprietary database and an
901+
NFC reader are good examples of such dependencies. Open source runtime
902+
dependencies belong in the SBOM or in the package manager manifests.
902903

903904
.. index:: ! open
904905

@@ -946,8 +947,8 @@ Dependency
946947

947948
A ``dependency`` is a mapping with the following properties:
948949

949-
- ``name`` - **mandatory** - The name of the dependency (e.g. MySQL,
950-
NFC Reader)
950+
- ``name`` - **mandatory** - The name of the dependency (e.g. Oracle
951+
Database, NFC Reader)
951952
- ``versionMin`` - the first compatible version
952953
- ``versionMax`` - the latest compatible version
953954
- ``version`` - the only major version for which the software is
@@ -965,23 +966,27 @@ compatibility matrix.
965966

966967
.. code:: yaml
967968
968-
- name: PostgreSQL
969-
version: "3.2"
970-
optional: true
969+
dependsOn:
970+
proprietary:
971+
- name: Oracle Database
972+
version: "19"
973+
optional: true
971974
972-
This snippet marks an optional dependency on PostgreSQL 3.2, with any
973-
of its patch releases.
975+
This snippet marks an optional proprietary dependency on Oracle
976+
Database 19, with any of its patch releases.
974977

975978
*Ex. 2*
976979

977980
.. code:: yaml
978981
979-
- name: MySQL
980-
versionMin: "1.1"
981-
versionMax: "1.3"
982+
dependsOn:
983+
proprietary:
984+
- name: Microsoft SQL Server
985+
versionMin: "2019"
986+
versionMax: "2022"
982987
983-
This snippet marks a mandatory dependency on MySQL, allowing any version
984-
between 1.1 and 1.3.
988+
This snippet marks a mandatory proprietary dependency on Microsoft SQL
989+
Server, allowing any version between 2019 and 2022.
985990

986991
Contact
987992
~~~~~~~

‎spec/v1/index.rst‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,12 @@ software.
10161016

10171017
.. note::
10181018

1019-
List only the runtime and system-level dependencies installed and
1020-
maintained separately, such as a database. Do not list source code
1021-
dependencies, such as the libraries the software uses.
1019+
List only the proprietary software and the hardware that the
1020+
software needs at runtime and that are installed and maintained
1021+
separately, such as a proprietary database or an NFC reader. Do
1022+
not list source code dependencies, such as the libraries the
1023+
software uses. Declare open source runtime dependencies in an SBOM
1024+
or package manager manifests.
10221025

10231026
.. index:: ! open
10241027

‎spec/v1/types/dependency.rst‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ Dependency
44
**********
55

66
Software or hardware the software needs at runtime, installed and
7-
maintained separately, such as a database.
7+
maintained separately, such as a proprietary database or an NFC
8+
reader.
89

910
Properties:
1011

1112
- ``name`` *(required)*, :ref:`string <string-type>`: The name of the
12-
dependency (e.g. MySQL, NFC Reader).
13+
dependency (e.g. Oracle Database, NFC Reader).
1314
- ``versionMin``, :ref:`string <string-type>`: The oldest compatible
1415
version.
1516
- ``versionMax``, :ref:`string <string-type>`: The newest compatible
@@ -29,19 +30,23 @@ The version keys combine to describe a compatibility range.
2930
.. code-block:: yaml
3031
:caption: Example 1
3132
32-
- name: PostgreSQL
33-
version: "16"
34-
optional: true
33+
dependsOn:
34+
proprietary:
35+
- name: Oracle Database
36+
version: "19"
37+
optional: true
3538
36-
This snippet marks an optional dependency on PostgreSQL 16, with any
37-
of its patch releases.
39+
This snippet marks an optional proprietary dependency on Oracle
40+
Database 19, with any of its patch releases.
3841

3942
.. code-block:: yaml
4043
:caption: Example 2
4144
42-
- name: MySQL
43-
versionMin: "8.0"
44-
versionMax: "8.4"
45+
dependsOn:
46+
proprietary:
47+
- name: Microsoft SQL Server
48+
versionMin: "2019"
49+
versionMax: "2022"
4550
46-
This snippet marks a required dependency on MySQL, allowing any version
47-
between 8.0 and 8.4.
51+
This snippet marks a required proprietary dependency on Microsoft SQL
52+
Server, allowing any version between 2019 and 2022.

0 commit comments

Comments
 (0)