Skip to content

Commit 0a45752

Browse files
committed
Update model class names
1 parent 1e50bac commit 0a45752

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Get_ApplicationJson_DataType_HttpTrigger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class Get_ApplicationJson_DataType_HttpTrigger
1515
{
1616
[FunctionName(nameof(Get_ApplicationJson_DataType_HttpTrigger))]
1717
[OpenApiOperation(operationId: nameof(Get_ApplicationJson_DataType_HttpTrigger.Get_ApplicationJson_DataType), tags: new[] { "dataType" })]
18-
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(DataTypeClass), Description = "The OK response")]
18+
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(DataTypeObjectModel), Description = "The OK response")]
1919
public static async Task<IActionResult> Get_ApplicationJson_DataType(
2020
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "get-applicationjson-datatype")] HttpRequest req,
2121
ILogger log)

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Get_ApplicationJson_Object_HttpTrigger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class Get_ApplicationJson_Object_HttpTrigger
1515
{
1616
[FunctionName(nameof(Get_ApplicationJson_Object_HttpTrigger))]
1717
[OpenApiOperation(operationId: nameof(Get_ApplicationJson_Object_HttpTrigger.Get_ApplicationJson_Object), tags: new[] { "greeting" })]
18-
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(SingleStringObject), Description = "The OK response")]
18+
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(StringObjectModel), Description = "The OK response")]
1919
public static async Task<IActionResult> Get_ApplicationJson_Object(
2020
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "get-applicationjson-object")] HttpRequest req,
2121
ILogger log)

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Models/DataTypeClass.cs renamed to test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Models/DataTypeObjectModel.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.ComponentModel.DataAnnotations;
4-
using System.Text;
53

64
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp.Models
75
{
8-
public class DataTypeClass
6+
public class DataTypeObjectModel
97
{
108
[DataType(DataType.DateTime)]
119
public DateTime DateTimeValue1 { get; set; }

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Models/SingleStringObject.cs renamed to test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp/Models/StringObjectModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.TestApp.Models
22
{
3-
public class SingleStringObject
3+
public class StringObjectModel
44
{
55
public string Value { get; set; }
66
}

0 commit comments

Comments
 (0)