From 0ad7b9e54615eedfffa41709900d8e86814d2471 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 1 Aug 2024 21:06:50 +0900 Subject: feat: explicitly define 401 responses in OpenAPI spec --- frontend/app/.server/api/schema.d.ts | 78 ++++++++++++++++++++++++++++++++++-- 1 file changed, 75 insertions(+), 3 deletions(-) (limited to 'frontend/app/.server/api/schema.d.ts') diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 000c876..abe2b59 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -95,14 +95,14 @@ export interface paths { }; }; }; - /** @description Forbidden */ - 403: { + /** @description Unauthorized */ + 401: { headers: { [name: string]: unknown; }; content: { "application/json": { - /** @example Forbidden operation */ + /** @example Unauthorized */ message: string; }; }; @@ -149,6 +149,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { @@ -203,6 +215,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { @@ -267,6 +291,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { @@ -319,6 +355,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { @@ -373,6 +421,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { @@ -450,6 +510,18 @@ export interface paths { }; }; }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @example Unauthorized */ + message: string; + }; + }; + }; /** @description Forbidden */ 403: { headers: { -- cgit v1.2.3-70-g09d2