feat: add optional name field to DoH profile schema and types
CI / changes (push) Successful in 10s
CI / openapi (push) Successful in 29s
CI / web (push) Failing after 45s
CI / go (push) Has been skipped
CI / docker-web (push) Successful in 1m37s
CI / docker-bird (push) Has been skipped
CI / bird2 (push) Has been skipped
CI / docker-go (push) Has been skipped

- 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.
This commit is contained in:
Denozordec
2026-05-20 00:26:58 +07:00
parent 64516c316d
commit 6bee5adc34
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -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
+2
View File
@@ -124,11 +124,13 @@ export type IpRangeEntriesResponse = Page<IpRangeEntry>;
// ---- 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;