api: webp instead of avif

There are no options for encoding animations to AVIF in Go. We'll start
with WebP instead.

Yeah this is largely unrelated to the PR but it's fine.
This commit is contained in:
Branden J Brown 2025-05-19 20:07:02 -04:00
parent fae3bb2b35
commit 1d659d8d95
4 changed files with 7 additions and 7 deletions

View File

@ -73,7 +73,7 @@ namespace Read {
@get
@operationId("GetSet")
@route("/sets/{setID}")
op set(@path setID: id, @query mediaType?: mediaType = mediaType.avif): SetResp | SetNotFound;
op set(@path setID: id, @query mediaType?: mediaType = mediaType.webp): SetResp | SetNotFound;
/**
* Operations for connected platforms.
@ -100,7 +100,7 @@ namespace Read {
@get
@operationId("GetPlatformSet")
@route("/set")
op set(...platformParams, @query mediaType?: mediaType = mediaType.avif): SetResp | SetNotFound;
op set(...platformParams, @query mediaType?: mediaType = mediaType.webp): SetResp | SetNotFound;
/**
* Report used emotes.

View File

@ -166,7 +166,7 @@ model Media {
* Media formats that the CDN delivers.
*/
enum mediaType {
avif: "AVIF",
webp: "WebP",
}
/**

View File

@ -725,7 +725,7 @@ paths:
required: false
schema:
$ref: '#/components/schemas/Models.mediaType'
default: AVIF
default: WebP
explode: false
responses:
'200':
@ -992,7 +992,7 @@ paths:
required: false
schema:
$ref: '#/components/schemas/Models.mediaType'
default: AVIF
default: WebP
explode: false
responses:
'200':
@ -2362,7 +2362,7 @@ components:
Models.mediaType:
type: string
enum:
- AVIF
- WebP
description: Media formats that the CDN delivers.
Models.platform:
type: string

View File

@ -35,7 +35,7 @@ const (
// Defines values for ModelsMediaType.
const (
AVIF ModelsMediaType = "AVIF"
WebP ModelsMediaType = "WebP"
)
// Defines values for ModelsPlatform.