.hdm-metadata.yml

Type: object

Schema for validating HDM metadata YAML files. Declaring metadata is an assistance, not an enforcement: only the format identity and ownership are required, every classification and integration block is optional. A block that is present must carry its identifying field, so a block is either absent or meaningful. Absence is expressed by omitting a field; 'n/a' placeholder values are obsolete.

No Additional Properties
Example:

{
    "schema": {
        "name": "hdm-metadata",
        "version": 2
    },
    "responsible": {
        "persons": [
            "max.mustermann@heidelberg.com"
        ],
        "teams": [
            "Build Infrastructure"
        ]
    },
    "project": {
        "usage_contexts": [
            "in_house"
        ],
        "product_affiliations": [
            "Prinect"
        ]
    },
    "gitlab": {
        "project_id": 16,
        "project_url": "https://gitlab.prinect-lounge.com/BLD/BLD-GradleLibrary",
        "description": "Shared Gradle build logic for BLD projects.",
        "topics": [
            "gradle"
        ]
    },
    "jira": {
        "domains": [
            "BLD"
        ]
    },
    "jenkins": {
        "jobs": [
            "https://jenkins.prinect-lounge.com/job/BLD/job/BLD-GradleLibrary"
        ]
    },
    "sonarqube": {
        "project_key": "BLD:GradleLibrary"
    }
}

Type: object

Self-describing format identity. Consumers read 'version' from the parsed document to select the validating schema; versions are never discriminated by trying each published schema in turn.

No Additional Properties

Type: const

The schema name must be 'hdm-metadata'.

Specific value: "hdm-metadata"

Type: const

The schema version. Must be exactly 2 for this schema.

Specific value: 2

Type: object

Ownership of the software. The only mandatory block besides the format identity.

No Additional Properties

Type: array of string

List of responsible persons (at least one required).

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: stringFormat: email

Valid email address.

Must match regular expression: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

Type: array of string

List of responsible teams (optional).

No Additional Items

Each item of this array must be:

Type: string

Team name.

Must be at least 1 characters long

Type: object

Optional classification of the software itself: how it is delivered and which products it belongs to.

No Additional Properties

Type: array of enum (of string)

Optional list of contexts in which the software is deployed and used.

No Additional Items

Each item of this array must be:

Type: enum (of string)

Usage context: 'inhouse' (used internally only), 'onpremises' (installed at customer sites), or 'saas' (operated as a hosted service).

Must be one of:

  • "in_house"
  • "on_premises"
  • "saas"

Type: array of string

Optional list of products this software belongs to or contributes to.

No Additional Items

Each item of this array must be:

Type: string

Product name.

Must be at least 1 characters long

Type: object

Optional GitLab binding and state to be projected onto the GitLab project. If this block is present, 'project_id' is required.

No Additional Properties

Type: integer

GitLab project ID. An assertion to verify against the authoritative project identity, not a selector for which project to write to.

Value must be greater or equal to 1

Type: stringFormat: uri

Optional GitLab project URL.

Must match regular expression: ^https?://[^\s]+$

Must be at least 1 characters long

Type: string

Optional project description to apply to the GitLab project.

Type: array of string

Optional escape hatch for additional GitLab repository topics. Carries ONLY topics that cannot be derived from structured fields. Topics derived from 'responsible', 'project.productaffiliations', 'project.usagecontexts', or 'jira.domains' are owned by the consuming service and must not be restated here.

No Additional Items

Each item of this array must be:

Type: string

Additional topic that is not derivable from any structured field.

Must be at least 1 characters long

Type: object

Optional reference to the Jira records related to this project. If this block is present, 'domains' is required.

No Additional Properties

Type: array of string

List of Jira domains this project belongs to.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: string

Jira domain name.

Must be at least 1 characters long

Type: object

Optional reference to the Jenkins jobs building this project. If this block is present, 'jobs' is required.

No Additional Properties

Type: array of string

List of Jenkins job URLs.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: stringFormat: uri

Jenkins job URL.

Must match regular expression: ^https?://[^\s]+$

Must be at least 1 characters long

Type: object

Optional SonarQube binding. If this block is present, 'project_key' is required.

No Additional Properties

Type: string

SonarQube project key.

Must be at least 1 characters long