dbt projects have two distinct types of the
version tags. This field has a different meaning depending on its location.
The version tag in a
dbt_project file represents the version of your dbt project. Although this is a required parameter, it is not currently meaningfully used by dbt. The version must be in a semantic version format, e.g.
1.0.0. For more on Core versions, see About dbt Core versions.
The version must be in a semantic version format, e.g.
.yml property file versions
A version tag in a
.yml property file provides the control tag, which informs how dbt processes property files. For more on why we require this tag, see property file FAQs.
For more on property files, see their general documentation on the same page.
version: 2 # Only 2 is accepted by current and recent versions of dbt.