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{
"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"
}
}
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 PropertiesThe schema name must be 'hdm-metadata'.
Specific value:"hdm-metadata"
The schema version. Must be exactly 2 for this schema.
Specific value:2
Ownership of the software. The only mandatory block besides the format identity.
No Additional PropertiesList of responsible persons (at least one required).
Must contain a minimum of 1 items
Valid email address.
Must match regular expression:^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
List of responsible teams (optional).
No Additional ItemsTeam name.
Must be at least 1 characters long
Optional classification of the software itself: how it is delivered and which products it belongs to.
No Additional PropertiesOptional list of contexts in which the software is deployed and used.
No Additional ItemsUsage context: 'inhouse' (used internally only), 'onpremises' (installed at customer sites), or 'saas' (operated as a hosted service).
Optional list of products this software belongs to or contributes to.
No Additional ItemsProduct name.
Must be at least 1 characters long
Optional GitLab binding and state to be projected onto the GitLab project. If this block is present, 'project_id' is required.
No Additional PropertiesGitLab 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
Optional GitLab project URL.
Must match regular expression:^https?://[^\s]+$
Must be at least 1 characters long
Optional project description to apply to the GitLab project.
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 ItemsAdditional topic that is not derivable from any structured field.
Must be at least 1 characters long
Optional reference to the Jira records related to this project. If this block is present, 'domains' is required.
No Additional PropertiesList of Jira domains this project belongs to.
Must contain a minimum of 1 items
Jira domain name.
Must be at least 1 characters long
Optional reference to the Jenkins jobs building this project. If this block is present, 'jobs' is required.
No Additional PropertiesList of Jenkins job URLs.
Must contain a minimum of 1 items
Jenkins job URL.
Must match regular expression:^https?://[^\s]+$
Must be at least 1 characters long
Optional SonarQube binding. If this block is present, 'project_key' is required.
No Additional PropertiesSonarQube project key.
Must be at least 1 characters long