Skip to content

Commit

Permalink
Merge pull request #627 from microsoft/fix/port-586
Browse files Browse the repository at this point in the history
fix/port 586
  • Loading branch information
baywet authored Jan 2, 2025
2 parents bbce0a8 + ebc0671 commit efa9aad
Show file tree
Hide file tree
Showing 11 changed files with 416 additions and 484 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void CreateOperationForEdmActionReturnsCorrectOperation()
Assert.Equal("Details of the shared trip.", operation.Description);
Assert.NotNull(operation.Tags);
var tag = Assert.Single(operation.Tags);
Assert.Equal("People.Actions", tag.Name);
Assert.Equal("People.Person", tag.Name);

Assert.NotNull(operation.Parameters);
Assert.Single(operation.Parameters);
Expand Down Expand Up @@ -79,7 +79,7 @@ public void CreateOperationForEdmActionReturnsCorrectOperationHierarchicalClass(
Assert.Equal($"Invoke action {actionName}", operation.Summary);
Assert.NotNull(operation.Tags);
var tag = Assert.Single(operation.Tags);
Assert.Equal($"{entitySetName}.Actions", tag.Name);
Assert.Equal($"{entitySetName}.AccountApiModel", tag.Name);

Assert.NotNull(operation.Parameters);
Assert.Single(operation.Parameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void CreateOperationForEdmFunctionReturnsCorrectOperation(bool useHTTPSta
Assert.Equal("Invoke function GetFavoriteAirline", operation.Summary);
Assert.NotNull(operation.Tags);
var tag = Assert.Single(operation.Tags);
Assert.Equal("People.Functions", tag.Name);
Assert.Equal("People.Person", tag.Name);

Assert.NotNull(operation.Parameters);
Assert.Single(operation.Parameters);
Expand Down Expand Up @@ -138,7 +138,7 @@ public void CreateOperationForEdmFunctionReturnsCorrectOperationHierarchicalClas
Assert.Equal("Collection of contract attachments.", operation.Description);
Assert.NotNull(operation.Tags);
var tag = Assert.Single(operation.Tags);
Assert.Equal($"{entitySetName}.Functions", tag.Name);
Assert.Equal($"{entitySetName}.AccountApiModel", tag.Name);

Assert.NotNull(operation.Parameters);
Assert.Equal(6, operation.Parameters.Count); // id, top, skip, count, search, filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
"/Documents({Id})/Default.Upload": {
"post": {
"tags": [
"Documents.Actions"
"Documents.DocumentDto"
],
"summary": "Invoke action Upload",
"operationId": "Documents.DocumentDto.Upload",
Expand Down Expand Up @@ -3519,7 +3519,7 @@
"/Tasks({Id})/Default.Upload": {
"post": {
"tags": [
"Tasks.Actions"
"Tasks.DocumentDto"
],
"summary": "Invoke action Upload",
"operationId": "Tasks.DocumentDto.Upload",
Expand Down Expand Up @@ -6274,10 +6274,6 @@
"name": "Documents.DocumentDto",
"x-ms-docs-toc-type": "page"
},
{
"name": "Documents.Actions",
"x-ms-docs-toc-type": "container"
},
{
"name": "Documents.RevisionDto",
"x-ms-docs-toc-type": "page"
Expand Down Expand Up @@ -6318,10 +6314,6 @@
"name": "Tasks.DocumentDto",
"x-ms-docs-toc-type": "page"
},
{
"name": "Tasks.Actions",
"x-ms-docs-toc-type": "container"
},
{
"name": "Tasks.RevisionDto",
"x-ms-docs-toc-type": "page"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ paths:
'/Documents({Id})/Default.Upload':
post:
tags:
- Documents.Actions
- Documents.DocumentDto
summary: Invoke action Upload
operationId: Documents.DocumentDto.Upload
parameters:
Expand Down Expand Up @@ -2495,7 +2495,7 @@ paths:
'/Tasks({Id})/Default.Upload':
post:
tags:
- Tasks.Actions
- Tasks.DocumentDto
summary: Invoke action Upload
operationId: Tasks.DocumentDto.Upload
parameters:
Expand Down Expand Up @@ -4544,8 +4544,6 @@ tags:
x-ms-docs-toc-type: page
- name: Documents.DocumentDto
x-ms-docs-toc-type: page
- name: Documents.Actions
x-ms-docs-toc-type: container
- name: Documents.RevisionDto
x-ms-docs-toc-type: page
- name: Documents.DocumentTagRelDto
Expand All @@ -4566,8 +4564,6 @@ tags:
x-ms-docs-toc-type: page
- name: Tasks.DocumentDto
x-ms-docs-toc-type: page
- name: Tasks.Actions
x-ms-docs-toc-type: container
- name: Tasks.RevisionDto
x-ms-docs-toc-type: page
- name: Tasks.DocumentTagRelDto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@
"description": "Provides operations to call the Upload method.",
"post": {
"tags": [
"Documents.Actions"
"Documents.DocumentDto"
],
"summary": "Invoke action Upload",
"operationId": "Documents.DocumentDto.Upload",
Expand Down Expand Up @@ -3940,7 +3940,7 @@
"description": "Provides operations to call the Upload method.",
"post": {
"tags": [
"Tasks.Actions"
"Tasks.DocumentDto"
],
"summary": "Invoke action Upload",
"operationId": "Tasks.DocumentDto.Upload",
Expand Down Expand Up @@ -7479,10 +7479,6 @@
"name": "Documents.DocumentDto",
"x-ms-docs-toc-type": "page"
},
{
"name": "Documents.Actions",
"x-ms-docs-toc-type": "container"
},
{
"name": "Documents.RevisionDto",
"x-ms-docs-toc-type": "page"
Expand Down Expand Up @@ -7523,10 +7519,6 @@
"name": "Tasks.DocumentDto",
"x-ms-docs-toc-type": "page"
},
{
"name": "Tasks.Actions",
"x-ms-docs-toc-type": "container"
},
{
"name": "Tasks.RevisionDto",
"x-ms-docs-toc-type": "page"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ paths:
description: Provides operations to call the Upload method.
post:
tags:
- Documents.Actions
- Documents.DocumentDto
summary: Invoke action Upload
operationId: Documents.DocumentDto.Upload
parameters:
Expand Down Expand Up @@ -2771,7 +2771,7 @@ paths:
description: Provides operations to call the Upload method.
post:
tags:
- Tasks.Actions
- Tasks.DocumentDto
summary: Invoke action Upload
operationId: Tasks.DocumentDto.Upload
parameters:
Expand Down Expand Up @@ -5382,8 +5382,6 @@ tags:
x-ms-docs-toc-type: page
- name: Documents.DocumentDto
x-ms-docs-toc-type: page
- name: Documents.Actions
x-ms-docs-toc-type: container
- name: Documents.RevisionDto
x-ms-docs-toc-type: page
- name: Documents.DocumentTagRelDto
Expand All @@ -5404,8 +5402,6 @@ tags:
x-ms-docs-toc-type: page
- name: Tasks.DocumentDto
x-ms-docs-toc-type: page
- name: Tasks.Actions
x-ms-docs-toc-type: container
- name: Tasks.RevisionDto
x-ms-docs-toc-type: page
- name: Tasks.DocumentTagRelDto
Expand Down
Loading

0 comments on commit efa9aad

Please sign in to comment.