Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Suggestions for handling custom credentials
  • Loading branch information
dargilco committed Apr 23, 2025
commit 636d2c01bf748b16b624d25c8adff67dc1a71108
6 changes: 5 additions & 1 deletion specification/ai/Azure.AI.Projects/connections/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ model EntraIDCredentials extends BaseCredentials {

@doc("Custom credential defintion")
model CustomCredential extends BaseCredentials {
@doc("The credential type ")
@doc("The credential type")
@visibility(Lifecycle.Read)
type: CredentialType.custom;

@doc("The credential type")
@visibility(Lifecycle.Read)
keys: Record<string>;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2170,6 +2170,19 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,19 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1542,6 +1542,19 @@
"CustomCredential": {
"type": "object",
"description": "Custom credential defintion",
"properties": {
"keys": {
"type": "object",
"description": "The credential type",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
},
"required": [
"keys"
],
"allOf": [
{
"$ref": "#/definitions/BaseCredentials"
Expand Down
Loading