Skip to content

Commit

Permalink
Address comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Sep 18, 2023
1 parent 5e75b16 commit 961e4ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dbt_semantic_interfaces/implementations/saved_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _implements_protocol(self) -> SavedQuery:

name: str
metrics: List[str]
group_bys: List[str]
group_bys: List[str] = []
where: List[PydanticWhereFilter] = []

description: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@
"type": "array"
}
},
"required": [
"name",
"metrics"
],
"type": "object"
},
"semantic_model_defaults_schema": {
Expand Down
1 change: 1 addition & 0 deletions dbt_semantic_interfaces/parsing/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@
"items": {"type": "string"},
},
},
"required": ["name", "metrics"],
"additionalProperties": False,
}

Expand Down
6 changes: 1 addition & 5 deletions dbt_semantic_interfaces/protocols/semantic_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ def project_configuration(self) -> ProjectConfiguration: # noqa: D

@property
def saved_queries(self) -> Sequence[SavedQuery]: # noqa: D
"""Saved queries defined in the manifest.
Returns a default value for backward compatibility until the next breaking release.
"""
return ()
pass


SemanticManifestT = TypeVar("SemanticManifestT", bound=SemanticManifest)

0 comments on commit 961e4ab

Please sign in to comment.