You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/04/26 14:47:18 UTC
[superset] 01/01: fix params
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch fix-ds-schemas
in repository https://gitbox.apache.org/repos/asf/superset.git
commit a304a359ec84823c69b9eae62beb7130799cc016
Author: hughhhh <hu...@gmail.com>
AuthorDate: Wed Apr 26 10:46:55 2023 -0400
fix params
---
superset/datasets/schemas.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/datasets/schemas.py b/superset/datasets/schemas.py
index 41759c2e84..48f09ba70d 100644
--- a/superset/datasets/schemas.py
+++ b/superset/datasets/schemas.py
@@ -49,7 +49,7 @@ class DatasetColumnsPutSchema(Schema):
column_name = fields.String(required=True, validate=Length(1, 255))
type = fields.String(allow_none=True)
advanced_data_type = fields.String(allow_none=True, validate=Length(1, 255))
- verbose_name = fields.String(allow_none=True, metadata={Length: (1, 1024)})
+ verbose_name = fields.String(allow_none=True, validate=Length(1, 1024))
description = fields.String(allow_none=True)
expression = fields.String(allow_none=True)
extra = fields.String(allow_none=True)
@@ -71,7 +71,7 @@ class DatasetMetricsPutSchema(Schema):
metric_name = fields.String(required=True, validate=Length(1, 255))
metric_type = fields.String(allow_none=True, validate=Length(1, 32))
d3format = fields.String(allow_none=True, validate=Length(1, 128))
- verbose_name = fields.String(allow_none=True, metadata={Length: (1, 1024)})
+ verbose_name = fields.String(allow_none=True, validate=Length(1, 1024))
warning_text = fields.String(allow_none=True)
uuid = fields.UUID(allow_none=True)