Skip to content

Commit

Permalink
Replace core-maintainers with core-team
Browse files Browse the repository at this point in the history
Signed-off-by: Luigi Gubello <luigi@pitch.io>
  • Loading branch information
luigigubello committed Feb 16, 2024
1 parent 1d7dca0 commit 80ff54d
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions security-insights-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,39 @@ properties:
$id: '#/properties/project-lifecycle/properties/bug-fixes-only'
description: 'Maintainers fix bugs without implementing new features. The project is in Maintenance Mode.'
type: boolean
core-maintainers:
$id: '#/properties/project-lifecycle/properties/core-maintainers'
description: 'Maintainers contacts (e-mail, Twitter, etc).'
core-team:
$id: '#/properties/project-lifecycle/properties/core-team'
description: >
Each core team member must have either a contact or a uri to a document.
This rule must be enforced by the tool or process using this schema.
additionalItems: false
items:
$id: '#/properties/project-lifecycle/properties/core-maintainers/items'
$id: '#/properties/project-lifecycle/properties/core-team/items'
anyOf:
- $id: '#/properties/project-lifecycle/properties/core-maintainers/items/anyOf/0'
type: string
- $id: '#/properties/project-lifecycle/properties/core-team/items'
additionalProperties: false
properties:
name:
$id: '#/properties/project-lifecycle/properties/core-team/items/anyOf/0/properties/name'
description: 'The name of the team or maintainer.'
type: string
role:
$id: '#/properties/project-lifecycle/properties/core-team/items/anyOf/0/properties/role'
description: 'Description of the role of the team or maintainer.'
type: string
contact:
$id: '#/properties/project-lifecycle/properties/core-team/items/anyOf/0/properties/contact'
description: 'Maintainers contacts (e-mail, Twitter, etc), required if "uri" is not present.'
type: string
uri:
$id: '#/properties/project-lifecycle/properties/core-team/items/anyOf/0/properties/uri'
description: 'URI to a team document (e.g. team member page), required if "contact" is not present.'
type: string
oneOf:
- required:
- contact
- required:
- uri
type: array
uniqueItems: true
roadmap:
Expand Down Expand Up @@ -106,15 +130,15 @@ properties:
const: "active"
then:
required:
- core-maintainers
- core-team
else:
if:
properties:
bug-fixes-only:
const: true
then:
required:
- core-maintainers
- core-team
required:
- status
- bug-fixes-only
Expand Down

0 comments on commit 80ff54d

Please sign in to comment.