Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ConnectionResponse(BaseModel):
port: int | None
password: str | None
extra: str | None
team_name: str | None

@field_validator("password", mode="after")
@classmethod
Expand Down Expand Up @@ -136,6 +137,7 @@ class ConnectionBody(StrictBaseModel):
port: int | None = Field(default=None)
password: str | None = Field(default=None)
extra: str | None = Field(default=None)
team_name: str | None = Field(max_length=50, default=None)

@field_validator("extra")
@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9732,6 +9732,12 @@ components:
- type: string
- type: 'null'
title: Extra
team_name:
anyOf:
- type: string
maxLength: 50
- type: 'null'
title: Team Name
additionalProperties: false
type: object
required:
Expand Down Expand Up @@ -9798,6 +9804,11 @@ components:
- type: string
- type: 'null'
title: Extra
team_name:
anyOf:
- type: string
- type: 'null'
title: Team Name
type: object
required:
- connection_id
Expand All @@ -9809,6 +9820,7 @@ components:
- port
- password
- extra
- team_name
title: ConnectionResponse
description: Connection serializer for responses.
ConnectionTestResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,18 @@ export const $ConnectionBody = {
}
],
title: 'Extra'
},
team_name: {
anyOf: [
{
type: 'string',
maxLength: 50
},
{
type: 'null'
}
],
title: 'Team Name'
}
},
additionalProperties: false,
Expand Down Expand Up @@ -1660,10 +1672,21 @@ export const $ConnectionResponse = {
}
],
title: 'Extra'
},
team_name: {
anyOf: [
{
type: 'string'
},
{
type: 'null'
}
],
title: 'Team Name'
}
},
type: 'object',
required: ['connection_id', 'conn_type', 'description', 'host', 'login', 'schema', 'port', 'password', 'extra'],
required: ['connection_id', 'conn_type', 'description', 'host', 'login', 'schema', 'port', 'password', 'extra', 'team_name'],
title: 'ConnectionResponse',
description: 'Connection serializer for responses.'
} as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ export type ConnectionBody = {
port?: number | null;
password?: string | null;
extra?: string | null;
team_name?: string | null;
};

/**
Expand All @@ -491,6 +492,7 @@ export type ConnectionResponse = {
port: number | null;
password: string | null;
extra: string | null;
team_name: string | null;
};

/**
Expand Down
Loading