fix silence_options schema (#4384)

This commit is contained in:
Vadim Stepanov 2024-05-23 12:06:00 +01:00 committed by GitHub
parent 764606089d
commit f9f5ae9042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -638,6 +638,7 @@ class AlertGroupView(
choices=[display_name for _, display_name in AlertGroup.SILENCE_DELAY_OPTIONS]
),
},
many=True,
)
)
@action(methods=["get"], detail=False)

View file

@ -823,7 +823,7 @@ export interface paths {
cookie?: never;
};
/** @description Retrieve a list of valid silence options */
get: operations['alertgroups_silence_options_retrieve'];
get: operations['alertgroups_silence_options_list'];
put?: never;
post?: never;
delete?: never;
@ -3765,7 +3765,7 @@ export interface operations {
};
};
};
alertgroups_silence_options_retrieve: {
alertgroups_silence_options_list: {
parameters: {
query?: never;
header?: never;
@ -3779,7 +3779,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
'application/json': components['schemas']['AlertGroupSilenceOptions'];
'application/json': components['schemas']['AlertGroupSilenceOptions'][];
};
};
};