We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c39ae5 commit 118f657Copy full SHA for 118f657
1 file changed
app/schemas/monitoring_metrics.py
@@ -5,9 +5,9 @@ class MetricsSchema(Schema):
5
start = fields.Float()
6
end = fields.Float()
7
step = fields.String(validate=[
8
- validate.OneOf(["year", "month"],
9
- error='set_by should be year or month'
10
- )
+ validate.Regexp(
+ regex=r'^(?!\s*$)', error='step value should be a valid string'
+ )
11
])
12
project_id = fields.String()
13
project_name = fields.String()
0 commit comments