betodealmeida commented on code in PR #32520: URL: https://github.com/apache/superset/pull/32520#discussion_r1983721018
########## superset/datasets/schemas.py: ########## @@ -88,6 +88,18 @@ class DatasetMetricsPutSchema(Schema): uuid = fields.UUID(allow_none=True) +class FolderSchema(Schema): + uuid = fields.UUID() + type = fields.String( + required=False, + validate=OneOf(["metric", "column", "folder"]), + ) + name = fields.String(required=True, validate=Length(1, 250)) + description = fields.String(allow_none=True, validate=Length(0, 1000)) + # folder can contain metrics, columns, and subfolders: + children = fields.List(fields.Nested(lambda: FolderSchema()), allow_none=True) Review Comment: We can add this to `validate_folders` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org