VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m48s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 4m22s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 4m46s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m5s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m24s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m57s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 20s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m39s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m10s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 7m21s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 7m25s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
- schemas/ publishes JSON Schemas (draft 2020-12, additionalProperties false) for `vbs metadata`, `vbs describe` and `vbs explain --format json`, plus README documenting the versioning rule: any emitted-shape change bumps schema_version and adds a new -vN file; older schemas stay. - `vbs describe` now emits a StrictJson graph summary with schema_version, project/build roots, profile/compiler/os/arch, target and dependency counts and names. - `vbs explain --format json` carries schema_version. - Tests include a schema subset validator (types, required, enum, additionalProperties, items, minimum) and json_schemas_validate_metadata_describe_and_explain validates the real documents against the files, then proves the validator rejects a missing required key, a wrong enum value and an unexpected property. Verified: the schema test, vbs_core_tests and the CLI contract suite pass; clang-format clean.
154 lines
4.5 KiB
JSON
154 lines
4.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://void.build/schemas/metadata-v1.schema.json",
|
|
"title": "VoidBuildSystem workspace metadata (schema_version 1)",
|
|
"description": "Emitted by `vbs metadata`. Any shape change bumps schema_version and adds a new schema file.",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"project_root",
|
|
"build_root",
|
|
"profile",
|
|
"compiler",
|
|
"os",
|
|
"architecture",
|
|
"features",
|
|
"targets",
|
|
"dependencies",
|
|
"lockfile"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema_version": { "type": "integer", "enum": [1] },
|
|
"project_root": { "type": "string" },
|
|
"build_root": { "type": "string" },
|
|
"profile": { "type": "string" },
|
|
"compiler": { "type": "string" },
|
|
"os": { "type": "string" },
|
|
"architecture": { "type": "string" },
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["name", "default_on", "description", "enabled"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"default_on": { "type": "boolean" },
|
|
"description": { "type": "string" },
|
|
"enabled": { "type": "boolean" }
|
|
}
|
|
}
|
|
},
|
|
"targets": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"kind",
|
|
"sources",
|
|
"include_directories",
|
|
"links",
|
|
"labels",
|
|
"required_features",
|
|
"install"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"kind": {
|
|
"type": "string",
|
|
"enum": [
|
|
"executable",
|
|
"static_library",
|
|
"shared_library",
|
|
"header_only_library",
|
|
"object_library",
|
|
"custom_action",
|
|
"test"
|
|
]
|
|
},
|
|
"sources": { "type": "array", "items": { "type": "string" } },
|
|
"include_directories": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["path", "visibility"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": { "type": "string" },
|
|
"visibility": { "type": "string", "enum": ["public", "private"] }
|
|
}
|
|
}
|
|
},
|
|
"links": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["target", "dependency", "visibility"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"target": { "type": "string" },
|
|
"dependency": { "type": "string" },
|
|
"visibility": { "type": "string", "enum": ["public", "private"] }
|
|
}
|
|
}
|
|
},
|
|
"labels": { "type": "array", "items": { "type": "string" } },
|
|
"required_features": { "type": "array", "items": { "type": "string" } },
|
|
"install": {
|
|
"type": ["object", "null"],
|
|
"required": ["destination", "component"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"destination": { "type": "string" },
|
|
"component": { "type": "string" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"source",
|
|
"package",
|
|
"version",
|
|
"builder",
|
|
"registry",
|
|
"features",
|
|
"build_dependency"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"source": {
|
|
"type": "string",
|
|
"enum": ["git", "package", "path", "archive", "conan", "pkgconfig", "unspecified"]
|
|
},
|
|
"package": { "type": "string" },
|
|
"version": { "type": "string" },
|
|
"builder": { "type": "string" },
|
|
"registry": { "type": "string" },
|
|
"features": { "type": "array", "items": { "type": "string" } },
|
|
"build_dependency": { "type": "boolean" }
|
|
}
|
|
}
|
|
},
|
|
"lockfile": {
|
|
"type": "object",
|
|
"required": ["path", "exists"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": { "type": "string" },
|
|
"exists": { "type": "boolean" },
|
|
"revision": { "type": "string" }
|
|
}
|
|
}
|
|
}
|
|
}
|