Skip to content

Add model config example to contracts page #7021

@runleonarun

Description

@runleonarun

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates

syntax in dbt_project.yml:

models:
  path_to_models:
    +contract:
      enforced: true

In our documentation we show this on the "Model configurations" page here. I wonder if it would be helpful to also add this to the "contract" page here so that folks have a clear example to reference.

resource: From this comment on Core issue

What part(s) of the page would you like to see updated?

Add example of project.yml to the contracts page as shown in general configs of the models page.

Additional information

No response

Metadata

Metadata

Assignees

Labels

Docs teamAuthored by the Docs team @dbt LabscontentImprovements or additions to contentgood first issueGood for newcomersimprovementUse this when an area of the docs needs improvement as it's currently unclearpriority: lowImproves docs but doesn’t block workflows, like grammar fixes & nice to havesreferences-project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions