Skip to content

Commit

Permalink
fix(ingest): support pydantic v2 with properties subcommand (datahub-…
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored and sleeperdeep committed Jun 25, 2024
1 parent 914c35a commit c53c939
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ def validate_allowed_types(cls, v):


class StructuredProperties(ConfigModel):
id: Optional[str]
urn: Optional[str]
qualified_name: Optional[str]
id: Optional[str] = None
urn: Optional[str] = None
qualified_name: Optional[str] = None
type: str
value_entity_types: Optional[List[str]]
description: Optional[str]
display_name: Optional[str]
entity_types: Optional[List[str]]
cardinality: Optional[str]
allowed_values: Optional[List[AllowedValue]]
type_qualifier: Optional[TypeQualifierAllowedTypes]
value_entity_types: Optional[List[str]] = None
description: Optional[str] = None
display_name: Optional[str] = None
entity_types: Optional[List[str]] = None
cardinality: Optional[str] = None
allowed_values: Optional[List[AllowedValue]] = None
type_qualifier: Optional[TypeQualifierAllowedTypes] = None

@property
def fqn(self) -> str:
Expand Down

0 comments on commit c53c939

Please sign in to comment.