Swagger: Rename Spec to Preferences (#78226)

The definition for preferences is globally named `Spec` because that's the type that cue outputs
This adds a swagger annotation to rename the definition in the swagger schema to `Preferences`
This will be easier to use in generated clients
This commit is contained in:
Julien Duchesne
2023-12-04 09:51:09 -05:00
committed by GitHub
parent 2fb207ba13
commit 637cfa89be
7 changed files with 117 additions and 101 deletions

View File

@@ -21,6 +21,10 @@ export interface CookiePreferences {
performance?: Record<string, unknown>;
}
/**
* Spec defines user, team or org Grafana preferences
* swagger:model Preferences
*/
export interface Preferences {
/**
* Cookie preferences