Manifest Checks: Semantic Models#
Note
The below checks require manifest.json to be present.
Functions:
| Name | Description |
|---|---|
check_semantic_model_based_on_non_public_models |
Semantic models should be based on public models only. |
check_semantic_model_based_on_non_public_models
#
Semantic models should be based on public models only.
Receives at execution time:
| Name | Type | Description |
|---|---|---|
models |
list[ModelNode]
|
List of ModelNode objects parsed from |
semantic_model |
SemanticModelNode
|
The SemanticModelNode object to check. |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the semantic model path (i.e the .yml file where the semantic model is configured). Semantic model paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the semantic model path (i.e the .yml file where the semantic model is configured). Only semantic model paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):