mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 22:49:00 +00:00
MINOR: Include default values in custom pydantic model (#16795)
This commit is contained in:
parent
2e694b5180
commit
bd2bf4a044
@ -46,7 +46,7 @@ class BaseModel(PydanticBaseModel):
|
|||||||
context: Optional[Dict[str, Any]] = None,
|
context: Optional[Dict[str, Any]] = None,
|
||||||
by_alias: bool = False,
|
by_alias: bool = False,
|
||||||
exclude_unset: bool = True,
|
exclude_unset: bool = True,
|
||||||
exclude_defaults: bool = True,
|
exclude_defaults: bool = False,
|
||||||
exclude_none: bool = True,
|
exclude_none: bool = True,
|
||||||
round_trip: bool = False,
|
round_trip: bool = False,
|
||||||
warnings: Union[bool, Literal["none", "warn", "error"]] = True,
|
warnings: Union[bool, Literal["none", "warn", "error"]] = True,
|
||||||
|
@ -92,7 +92,9 @@ EXPECTED_CUSTOM_PROPERTIES = [
|
|||||||
"name": "Rating",
|
"name": "Rating",
|
||||||
"description": "Rating of a table",
|
"description": "Rating of a table",
|
||||||
"propertyType": {"name": "enum"},
|
"propertyType": {"name": "enum"},
|
||||||
"customPropertyConfig": {"config": {"values": ["Good", "Average", "Bad"]}},
|
"customPropertyConfig": {
|
||||||
|
"config": {"values": ["Good", "Average", "Bad"], "multiSelect": False},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "TableSize",
|
"name": "TableSize",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user