Skip to content

Commit 2f23c45

Browse files
authored
Clarify presence rules for contractors and contacts (#213)
This clarifies when `maintenance/contractors` and `maintenance/contacts` are expected to be present. For `contractors`, we now explicitly say it's mandatory if the type is `contract`, and must not be present otherwise. This is _technically_ a breaking change, but it's a sensible and consistent interpretation and we can see it as just removing ambiguity. For `contacts`, being optional if type is *not* `internal` or `community` was already enforced by publiccode-parser-go, and even the examples in this repo include `contacts` with type `contract`, so it's just stating the de facto behavior.
1 parent 6a72d92 commit 2f23c45

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/de/schema.core.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ Key ``maintenance/contractors``
612612
'''''''''''''''''''''''''''''''
613613

614614
- Type: array of Contractor (see below)
615-
- Presence: mandatory (if ``maintenance/type`` **is** ``contract``)
615+
- Presence: mandatory if ``maintenance/type`` **is** ``contract``; must not be present otherwise
616616

617617
This key describes the entity or entities, if any, that are currently
618618
contracted for maintaining the software. They can be companies,
@@ -622,7 +622,7 @@ Key ``maintenance/contacts``
622622
''''''''''''''''''''''''''''
623623

624624
- Type: List of Contacts (see below)
625-
- Presence: mandatory (if ``maintenance/type`` **is** ``internal`` or ``community``)
625+
- Presence: mandatory if ``maintenance/type`` **is** ``internal`` or ``community``; optional otherwise
626626

627627
One or more contacts maintaining this software.
628628

docs/fr/schema.core.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,15 +625,15 @@ Clé ``maintenance/contractors``
625625
'''''''''''''''''''''''''''''''
626626

627627
- Type: array of Contractor (voir ci-dessous)
628-
- Présence: obligatoire (si ``maintenance/type`` **est** ``contract``)
628+
- Présence: obligatoire si ``maintenance/type`` **est** ``contract``; ne doit pas être présent dans les autres cas
629629

630630
Cette clé décrit la ou les entités actuellement sous contrat pour la maintenance du logiciel. Il peut s'agir d'entreprises, d'organisations ou d'autres collectifs.
631631

632632
Clé ``maintenance/contacts``
633633
''''''''''''''''''''''''''''
634634

635635
- Type: Liste des Contacts (voir ci-dessous)
636-
- Présence: obligatoire (si ``maintenance/type`` **est** ``internal`` ou ``community``)
636+
- Présence: obligatoire si ``maintenance/type`` **est** ``internal`` ou ``community``; facultatif dans les autres cas
637637

638638
Un ou plusieurs contacts assurant la maintenance du logiciel.
639639

docs/it/schema.core.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Chiave ``maintenance/contractors``
654654
''''''''''''''''''''''''''''''''''
655655

656656
- Tipo: array di Contractor (vedi sotto)
657-
- Presenza: obbligatoria (se ``maintenance/type`` **è** ``contract``)
657+
- Presenza: obbligatoria se ``maintenance/type`` **è** ``contract``; non deve essere presente negli altri casi
658658

659659
Questa chiave descrive l’entità o le entità, se ce ne sono, che
660660
attualmente hanno un contratto di manutenzione del software. Queste
@@ -664,7 +664,7 @@ Chiave ``maintenance/contacts``
664664
'''''''''''''''''''''''''''''''
665665

666666
- Tipo: Lista di Contatti (vedi sotto)
667-
- Presenza: obbligatoria (se ``maintenance/type`` **è** ``internal`` oppure ``community``)
667+
- Presenza: obbligatoria se ``maintenance/type`` **è** ``internal`` oppure ``community``; opzionale negli altri casi
668668

669669
Uno o più contatti di chi sta mantenendo il software.
670670

docs/standard/schema.core.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ Key ``maintenance/contractors``
614614
'''''''''''''''''''''''''''''''
615615

616616
- Type: array of Contractor (see below)
617-
- Presence: mandatory (if ``maintenance/type`` **is** ``contract``)
617+
- Presence: mandatory if ``maintenance/type`` **is** ``contract``; must not be present otherwise
618618

619619
This key describes the entity or entities, if any, that are currently
620620
contracted for maintaining the software. They can be companies,
@@ -624,7 +624,7 @@ Key ``maintenance/contacts``
624624
''''''''''''''''''''''''''''
625625

626626
- Type: List of Contacts (see below)
627-
- Presence: mandatory (if ``maintenance/type`` **is** ``internal`` or ``community``)
627+
- Presence: mandatory if ``maintenance/type`` **is** ``internal`` or ``community``; optional otherwise
628628

629629
One or more contacts maintaining this software.
630630

0 commit comments

Comments
 (0)