Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into ct-1944-use_mashumaro_jsonschema
  • Loading branch information
gshank committed Aug 2, 2023
commit d2d3e6ccd3892b23b330afe48184deee6de917af
3 changes: 1 addition & 2 deletions core/dbt/contracts/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
from dbt.events.functions import fire_event
from dbt.events.types import NewConnectionOpening
from dbt.events.contextvars import get_node_info
from typing_extensions import Protocol
from typing_extensions import Protocol, Annotated
from dbt.dataclass_schema import (
dbtClassMixin,
StrEnum,
ExtensibleDbtClassMixin,
ValidatedStringMixin,
)
from dbt.contracts.util import Replaceable
from typing import Annotated
from mashumaro.jsonschema.annotations import Pattern


Expand Down
2 changes: 1 addition & 1 deletion core/dbt/contracts/graph/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from enum import Enum
from itertools import chain
from typing import Any, List, Optional, Dict, Union, Type, TypeVar, Callable
from typing_extensions import Annotated

from dbt.dataclass_schema import (
dbtClassMixin,
Expand All @@ -14,7 +15,6 @@
from dbt.exceptions import DbtInternalError, CompilationError
from dbt import hooks
from dbt.node_types import NodeType
from typing import Annotated
from mashumaro.jsonschema.annotations import Pattern


Expand Down
3 changes: 2 additions & 1 deletion core/dbt/contracts/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
dbtMashConfig,
)
from dataclasses import dataclass, field
from typing import Optional, List, Dict, Union, Any, ClassVar, Annotated
from typing import Optional, List, Dict, Union, Any, ClassVar
from typing_extensions import Annotated
from mashumaro.types import SerializableType
from mashumaro.jsonschema.annotations import Pattern

Expand Down
2 changes: 1 addition & 1 deletion core/dbt/dataclass_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __post_serialize__(self, data):

@classmethod
def json_schema(cls):
json_schema_obj = build_json_schema(cls)
json_schema_obj = build_json_schema(cls, all_refs=True)
json_schema = json_schema_obj.to_dict()
return json_schema

Expand Down
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"sqlparse>=0.2.3,<0.5",
# ----
# These are major-version-0 packages also maintained by dbt-labs. Accept patches.
"dbt-extractor~=0.4.1",
"dbt-extractor~=0.5.0",
"minimal-snowplow-tracker~=0.0.2",
# DSI is under active development, so we're pinning to specific dev versions for now.
"dbt-semantic-interfaces~=0.2.0",
Expand Down
3 changes: 2 additions & 1 deletion plugins/postgres/dbt/adapters/postgres/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

from dbt.helper_types import Port
from dataclasses import dataclass
from typing import Optional, Annotated
from typing import Optional
from typing_extensions import Annotated
from mashumaro.jsonschema.annotations import Maximum, Minimum


Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.