feat: Add semantic-models as valid top-level key in dbt_project.yml#219
Merged
lucidviews merged 1 commit intomainfrom Dec 3, 2025
Merged
Conversation
- Add semantic-models property to dbt_project schema (latest, 1.7, 1.6, generic) - Add semantic_model_configs definition with enabled, group, and meta properties (per dbt docs: https://docs.getdbt.com/docs/build/semantic-models) - Add group definition to generic dbt_project.json schema - Update valid test files with semantic-models example configuration - Ensure semantic_model_configs is alphabetically sorted in $defs section Semantic models were introduced in dbt 1.6, so schemas for 1.5 are unchanged.
4fe009c to
c2eee59
Compare
b-per
approved these changes
Dec 3, 2025
Contributor
b-per
left a comment
There was a problem hiding this comment.
TBH, I don't know if we need to modify all the older versions as well (I think that more recent PRs were just on the latest one) but the change overall looks fine
Contributor
Author
|
Ok, will only change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds
semantic-modelsas a valid top-level key indbt_project.ymlschemas, allowing users to configure semantic model settings at the project level.Changes
Schema Files Updated
schemas/latest/dbt_project-latest.jsonschemas/1.7/dbt_project-1.7.jsonschemas/1.6/dbt_project-1.6.jsonschemas/dbt_project.jsonWhat was added
New top-level property:
semantic-modelsreferencingsemantic_model_configsNew definition:
semantic_model_configswith the following properties (per dbt documentation):+enabled/enabled- Boolean or Jinja string+group/group- String+meta/meta- ObjectAdditional fix: Added missing
groupdefinition to the genericschemas/dbt_project.jsonTest Files Updated
Added valid
semantic-modelsconfiguration examples to:tests/latest/valid/dbt_project.ymltests/1.7/valid/dbt_project.ymltests/1.6/valid/dbt_project.ymlExample Usage
Notes