From 6bee5adc34545e506d8308e662ca0dead68cfd0b Mon Sep 17 00:00:00 2001 From: Denozordec Date: Wed, 20 May 2026 00:26:58 +0700 Subject: [PATCH] feat: add optional name field to DoH profile schema and types - Introduced an optional `name` property in the OpenAPI schema for DoH profiles, providing a display name for profiles. - Updated TypeScript types to reflect the new optional `name` field in `DohProfile` and `DohProfileCreate` types. --- docs/openapi.yaml | 8 ++++++++ web/src/lib/api/types.ts | 2 ++ 2 files changed, 10 insertions(+) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index a5823c0..a5baffc 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -606,6 +606,9 @@ components: properties: id: $ref: "#/components/schemas/ResourceId" + name: + type: string + description: Отображаемое имя профиля (опционально). url: type: string format: uri @@ -621,6 +624,9 @@ components: required: - url properties: + name: + type: string + description: Отображаемое имя профиля (опционально). url: type: string format: uri @@ -840,6 +846,8 @@ components: DohProfilePatch: type: object properties: + name: + type: string url: type: string format: uri diff --git a/web/src/lib/api/types.ts b/web/src/lib/api/types.ts index e70c3f3..c14a820 100644 --- a/web/src/lib/api/types.ts +++ b/web/src/lib/api/types.ts @@ -124,11 +124,13 @@ export type IpRangeEntriesResponse = Page; // ---- DoH Profiles ---- export type DohProfile = { id: string; + name?: string; url: string; timeout_ms: number | null; vault_secret_ref: string | null; }; export type DohProfileCreate = { + name?: string; url: string; timeout_ms?: number | null; vault_secret_ref?: string | null;