Skip to content

Commit b296d46

Browse files
committed
fix: decoupling enum to prevent code-gen generating duplicates
1 parent 5ea83ab commit b296d46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openapi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3975,8 +3975,7 @@ components:
39753975
name:
39763976
type: string
39773977
type:
3978-
type: string
3979-
enum: [popular_queries, nohits_queries, counter, log]
3978+
$ref: "#/components/schemas/AnalyticsRuleType"
39803979
collection:
39813980
type: string
39823981
event_type:
@@ -4001,6 +4000,9 @@ components:
40014000
type: string
40024001
weight:
40034002
type: integer
4003+
AnalyticsRuleType:
4004+
type: string
4005+
enum: [popular_queries, nohits_queries, counter, log]
40044006
AnalyticsRuleUpdate:
40054007
type: object
40064008
description: Fields allowed to update on an analytics rule

0 commit comments

Comments
 (0)