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
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:
@@ -606,6 +606,9 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
$ref: "#/components/schemas/ResourceId"
|
$ref: "#/components/schemas/ResourceId"
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Отображаемое имя профиля (опционально).
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
@@ -621,6 +624,9 @@ components:
|
|||||||
required:
|
required:
|
||||||
- url
|
- url
|
||||||
properties:
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Отображаемое имя профиля (опционально).
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
@@ -840,6 +846,8 @@ components:
|
|||||||
DohProfilePatch:
|
DohProfilePatch:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
url:
|
url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
|||||||
@@ -124,11 +124,13 @@ export type IpRangeEntriesResponse = Page<IpRangeEntry>;
|
|||||||
// ---- DoH Profiles ----
|
// ---- DoH Profiles ----
|
||||||
export type DohProfile = {
|
export type DohProfile = {
|
||||||
id: string;
|
id: string;
|
||||||
|
name?: string;
|
||||||
url: string;
|
url: string;
|
||||||
timeout_ms: number | null;
|
timeout_ms: number | null;
|
||||||
vault_secret_ref: string | null;
|
vault_secret_ref: string | null;
|
||||||
};
|
};
|
||||||
export type DohProfileCreate = {
|
export type DohProfileCreate = {
|
||||||
|
name?: string;
|
||||||
url: string;
|
url: string;
|
||||||
timeout_ms?: number | null;
|
timeout_ms?: number | null;
|
||||||
vault_secret_ref?: string | null;
|
vault_secret_ref?: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user