## wiring.check_specs()


Return the asset check specs for the schema's rules, plus the column-schema check.


Usage

``` python
wiring.check_specs(
    schema,
    *,
    asset,
    check_granularity=None,
    schema_rules=None,
)
```


## Parameters


`check_granularity: Granularity | None = None`  
How many checks report the schema's rules. Changing it on an asset that has already run starts a new check history. `None` uses `DAGSTER_DATAFRAMELY_CHECK_GRANULARITY` if set, else `rule`.

`schema_rules: SchemaRules | None = None`  
Which checks report the schema-level rules at `column` granularity. `None` uses `DAGSTER_DATAFRAMELY_SCHEMA_RULES` if set, else `collapsed`.


## Returns


`The column-schema check's spec first, then one spec per rule set.`  


## Raises


`InvalidSettingError`  
A setting's argument or environment variable has a value the setting does not allow.

`ReservedColumnError`  
A column name is in the reserved `dy_` namespace.

`InvalidColumnNameError`  
A column name has a character Dagster does not allow in an asset check name.

`CheckNameCollisionError`  
Two rules produce the same asset check name.
