Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
659b969
update default tag
msyyc Jun 24, 2025
a7a5598
init tsp
msyyc Jun 24, 2025
9d8108a
init swagger
msyyc Jun 24, 2025
8566e0b
add suppression for warning
msyyc Jun 24, 2025
59da501
fix body name
msyyc Jun 24, 2025
96596d7
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
msyyc Jul 1, 2025
9ec86ab
fix breaking
msyyc Jul 1, 2025
dff4286
Fix for nextlink
msyyc Jul 2, 2025
ad1ea07
fix for return type name of list operations
msyyc Jul 2, 2025
090f90c
fix body name
msyyc Jul 7, 2025
ce61871
fix for azure-async-operation
msyyc Jul 7, 2025
ab70921
fix for azure-async-operation
msyyc Jul 7, 2025
578b0bf
fix for azure-async-operation
msyyc Jul 7, 2025
99cc2e2
fix for azure-async-operation
msyyc Jul 7, 2025
cc88fd1
temp files
msyyc Jul 7, 2025
9328072
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
msyyc Jul 8, 2025
645ee1d
add @clientLocation and remove @operationId
msyyc Jul 8, 2025
da42cd5
use @clientLocation to replace @operationId
msyyc Jul 8, 2025
1409802
format
msyyc Jul 8, 2025
b696007
format
msyyc Jul 9, 2025
a19f2a9
format
msyyc Jul 9, 2025
3499da9
fix Swagger ModelValidation error INVALID_FORMAT
msyyc Jul 9, 2025
0b43f3d
make value optional to keep compatibility with swagger
msyyc Jul 9, 2025
a417d0a
add tspconfig.yaml
msyyc Jul 9, 2025
757a378
Merge branches 'support-tsp-migration' and 'main' of https://github.c…
msyyc Jul 22, 2025
27988b1
customize for no body common op
msyyc Jul 22, 2025
0af7957
customize for no body common op
msyyc Jul 22, 2025
d6a4027
format
msyyc Jul 22, 2025
49482f1
fix cspell
msyyc Jul 22, 2025
802f21f
fix ci
msyyc Jul 22, 2025
f82ec3e
fix ci
msyyc Jul 22, 2025
70d938b
fix ci
msyyc Jul 22, 2025
4780d61
resolve breaking
v-jiaodi Jul 30, 2025
e99085a
Merge branch 'main' into support-tsp-migration
msyyc Aug 6, 2025
a161443
update for empty union
msyyc Aug 6, 2025
f6cbc25
fix missing final result for lro
msyyc Aug 8, 2025
cde9cd3
Merge branch 'main' into support-tsp-migration
msyyc Aug 8, 2025
810e3af
update for @pageItems
msyyc Aug 8, 2025
0a009ef
Merge branch 'main' into support-tsp-migration
msyyc Aug 12, 2025
4611ffc
Merge branch 'main' into support-tsp-migration
msyyc Aug 13, 2025
c8d94de
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
msyyc Aug 21, 2025
4e01375
fix for pattern
msyyc Aug 21, 2025
bd75919
Merge branch 'main' into support-tsp-migration
msyyc Aug 22, 2025
3331035
Merge branch 'main' into support-tsp-migration
msyyc Aug 25, 2025
8d17a36
service-name
weidongxu-microsoft Aug 28, 2025
237112e
Merge branch 'main' into support-tsp-migration
v-jiaodi Aug 28, 2025
61848f9
remove legacy operation
Aug 28, 2025
3fcbcdb
Add emit-lro-options: "all"
melina5656 Aug 28, 2025
9edc306
remove csharp config
Aug 28, 2025
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
Next Next commit
fix for return type name of list operations
  • Loading branch information
msyyc committed Jul 2, 2025
commit ad1ea07975b4f3722d4d65c5a9ff7755ee004876
22 changes: 20 additions & 2 deletions specification/support/Support.Management/ChatTranscriptDetails.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./models.tsp";
import "./SupportTicketDetails.tsp";

using TypeSpec.Rest;
using Azure.Core;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
Expand All @@ -25,6 +26,23 @@ model ChatTranscriptDetails
>;
}

/**
* [Placeholder] Discription for page model
*/
@pagedResult
model ChatTranscriptsListResult {
/**
* [Placeholder] Discription for nextLink property
*/
@nextLink
nextLink?: string;
/**
* [Placeholder] Discription for value property
*/
@items
value: ChatTranscriptDetails[];
}

@armResourceOperations
interface ChatTranscriptOps
extends Azure.ResourceManager.Legacy.LegacyOperations<
Expand Down Expand Up @@ -57,7 +75,7 @@ interface ChatTranscripts {
/**
* Lists all chat transcripts for a support ticket under subscription
*/
list is ChatTranscriptOps.List<ChatTranscriptDetails>;
list is ChatTranscriptOps.List<ChatTranscriptDetails, Response = ChatTranscriptsListResult>;
}
@armResourceOperations
interface ChatTranscriptsNoSubscriptionOps
Expand Down Expand Up @@ -90,7 +108,7 @@ interface ChatTranscriptsNoSubscription {
/**
* Lists all chat transcripts for a support ticket
*/
list is ChatTranscriptsNoSubscriptionOps.List<ChatTranscriptDetails>;
list is ChatTranscriptsNoSubscriptionOps.List<ChatTranscriptDetails, Response = ChatTranscriptsListResult>;
}

@@doc(ChatTranscriptDetails.name, "ChatTranscript name.");
Expand Down
24 changes: 22 additions & 2 deletions specification/support/Support.Management/CommunicationDetails.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./models.tsp";
import "./SupportTicketDetails.tsp";

using TypeSpec.Rest;
using Azure.Core;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
Expand All @@ -28,6 +29,23 @@ model CommunicationDetails
>;
}

/**
* [Placeholder] Discription for page model
*/
@pagedResult
model CommunicationsListResult {
/**
* [Placeholder] Discription for nextLink property
*/
@nextLink
nextLink?: string;
/**
* [Placeholder] Discription for value property
*/
@items
value: CommunicationDetails[];
}

@armResourceOperations
interface CommunicationOps
extends Azure.ResourceManager.Legacy.LegacyOperations<
Expand Down Expand Up @@ -83,7 +101,8 @@ interface Communications {
*/
@query("$filter")
$filter?: string;
}
},
Response = CommunicationsListResult
>;
}
@armResourceOperations
Expand Down Expand Up @@ -141,7 +160,8 @@ interface CommunicationsNoSubscription {
*/
@query("$filter")
$filter?: string;
}
},
Response = CommunicationsListResult
>;
}

Expand Down
21 changes: 19 additions & 2 deletions specification/support/Support.Management/FileDetails.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./models.tsp";
import "./FileWorkspaceDetails.tsp";

using TypeSpec.Rest;
using Azure.Core;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
Expand All @@ -24,6 +25,22 @@ model FileDetails
NamePattern = ""
>;
}
/**
* [Placeholder] Discription for page model
*/
@pagedResult
model FilesListResult {
/**
* [Placeholder] Discription for nextLink property
*/
@nextLink
nextLink?: string;
/**
* [Placeholder] Discription for value property
*/
@items
value: FileDetails[];
}

@armResourceOperations
interface FileOps
Expand Down Expand Up @@ -66,7 +83,7 @@ interface Files {
/**
* Lists all the Files information under a workspace for an Azure subscription.
*/
list is FileOps.List<FileDetails>;
list is FileOps.List<FileDetails, Response = FilesListResult>;

/**
* This API allows you to upload content to a file
Expand Down Expand Up @@ -114,7 +131,7 @@ interface FilesNoSubscription {
/**
* Lists all the Files information under a workspace for an Azure subscription.
*/
list is FilesNoSubscriptionOps.List<FileDetails>;
list is FilesNoSubscriptionOps.List<FileDetails, Response = FilesListResult>;

/**
* This API allows you to upload content to a file
Expand Down
24 changes: 22 additions & 2 deletions specification/support/Support.Management/SupportTicketDetails.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "@typespec/rest";
import "./models.tsp";

using TypeSpec.Rest;
using Azure.Core;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
Expand All @@ -27,6 +28,23 @@ model SupportTicketDetails
>;
}

/**
* [Placeholder] Discription for page model
*/
@pagedResult
model SupportTicketsListResult {
/**
* [Placeholder] Discription for nextLink property
*/
@nextLink
nextLink?: string;
/**
* [Placeholder] Discription for value property
*/
@items
value: SupportTicketDetails[];
}

@armResourceOperations
interface SupportTicketOps
extends Azure.ResourceManager.Legacy.LegacyOperations<
Expand Down Expand Up @@ -85,7 +103,8 @@ interface SupportTickets {
*/
@query("$filter")
$filter?: string;
}
},
Response = SupportTicketsListResult
>;

/**
Expand Down Expand Up @@ -157,7 +176,8 @@ interface SupportTicketsNoSubscription {
*/
@query("$filter")
$filter?: string;
}
},
Response = SupportTicketsListResult
>;

/**
Expand Down
Loading
Loading