Validate a mapping
validate_mappingCheck a warehouse mapping against the GASP Standard and score its coverage. Accepts either format: a GASP adapter (JSON; schema https://gaspwiki.com/schemas/gasp-adapter-v1.json, versions 1.0 and 1.1) or an Apache Ossie mapping document (YAML or JSON) over your semantic model, which you can pass as semantic_model. A GASP adapter is converted on load into an Ossie mapping over a model synthesised from its tables and columns. Layers, each reported in its own section: the schema (the adapter JSON Schema with each violation's JSON path; the Ossie mapping schema for the Ossie form), GASP's cross-document checks (every concept, relationship and field reference resolves against the GASP ontology and the model), then coverage: unknown fields and datasets, fields mapped to a dataset that does not carry them, bare column names on fields that live on several datasets, datasets whose fields point at different tables, pairs mapped twice, the field and dataset pairs mapped, every metric with a formula scored against the pairs its compiled SQL reads (fully covered, partially covered with the missing pairs, not covered), enum fields mapped without a transform, covered metrics with no declared owner, owners naming unknown metrics and up to 15 unmapped pairs ranked by how many partially covered metrics need them. Run it before generate_query.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adapter": "<adapter>"
},
"name": "validate_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adapter | Yes | The mapping as text: a GASP adapter (JSON; template: https://gaspwiki.com/downloads/gasp-adapter-template.json) or an Ossie mapping document (YAML or JSON; reference: https://gaspwiki.com/downloads/ossie/gasp.mapping.yaml). | |
| semantic_model | No | With an Ossie mapping: your semantic model document (YAML or JSON), so its datasets, fields, keys and sources are checked. Without it, names are taken from the mapping's expressions. |