Skip to content

Commit 3fff98c

Browse files
committed
mark old constant as obsolete
1 parent dcb11da commit 3fff98c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Microsoft.OpenApi.OData.Reader/OData/ODataConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
44
// ------------------------------------------------------------
55

6+
using System;
67
using System.Collections.Generic;
78

89
namespace Microsoft.OpenApi.OData
@@ -27,6 +28,7 @@ internal static class ODataConstants
2728
/// <summary>
2829
/// @odata.count KeyValue pair
2930
/// </summary>
31+
[Obsolete("Use CreateOdataCount instead to specify the format of the count value.")]
3032
public readonly static KeyValuePair<string, IOpenApiSchema> OdataCount = new("@odata.count", new OpenApiSchema { Type = JsonSchemaType.Number | JsonSchemaType.Null, Format = "int64"});
3133

3234
/// <summary>

0 commit comments

Comments
 (0)