Skip to content

Commit

Permalink
fix(crons): Switch to enum as a shape Discriminator in clock tasks (#…
Browse files Browse the repository at this point in the history
…342)

This is due to the issue Tencent/rapidjson#2314
  • Loading branch information
evanpurkhiser authored Oct 24, 2024
1 parent 306a1d9 commit 3868aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemas/monitors-clock-tasks.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"properties": {
"type": {
"description": "Discriminant marker identifying the task.",
"const": "mark_timeout"
"enum": ["mark_timeout"]
},
"ts": {
"description": "The timestamp the clock ticked at.",
Expand All @@ -43,7 +43,7 @@
"properties": {
"type": {
"description": "Discriminant marker identifying the task.",
"const": "mark_missing"
"enum": ["mark_missing"]
},
"ts": {
"description": "The timestamp the clock ticked at.",
Expand Down

0 comments on commit 3868aea

Please sign in to comment.