fix: missing path parameter in OpenAPI route for fetchStreamUrl
Summary: Test Plan:
This commit is contained in:
@@ -3,6 +3,7 @@ import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|||||||
import { readEnvVariable } from "~/libs/readEnvVariable";
|
import { readEnvVariable } from "~/libs/readEnvVariable";
|
||||||
import type { Env } from "~/types/env";
|
import type { Env } from "~/types/env";
|
||||||
import {
|
import {
|
||||||
|
AniListIdQuerySchema,
|
||||||
ErrorResponse,
|
ErrorResponse,
|
||||||
ErrorResponseSchema,
|
ErrorResponseSchema,
|
||||||
SuccessResponseSchema,
|
SuccessResponseSchema,
|
||||||
@@ -21,6 +22,7 @@ const route = createRoute({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/{aniListId}/url",
|
path: "/{aniListId}/url",
|
||||||
request: {
|
request: {
|
||||||
|
params: z.object({ aniListId: AniListIdQuerySchema }),
|
||||||
body: {
|
body: {
|
||||||
content: {
|
content: {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
|
|||||||
10
src/types/anilist-graphql.d.ts
vendored
10
src/types/anilist-graphql.d.ts
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
import * as gqlTada from "gql.tada";
|
||||||
|
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
|
|
||||||
@@ -203,10 +205,8 @@ export type introspection = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
import * as gqlTada from 'gql.tada';
|
declare module "gql.tada" {
|
||||||
|
|
||||||
declare module 'gql.tada' {
|
|
||||||
interface setupSchema {
|
interface setupSchema {
|
||||||
introspection: introspection
|
introspection: introspection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user