MINOR: Include default values in custom pydantic model (#16795)

This commit is contained in:
Mayur Singal 2024-06-26 20:31:02 +05:30 committed by GitHub
parent 2e694b5180
commit bd2bf4a044
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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",