-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathPathExpression.cs
More file actions
36 lines (32 loc) · 1.03 KB
/
PathExpression.cs
File metadata and controls
36 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.OpenApi.Expressions
{
/// <summary>
/// Path expression, the name in path is case-sensitive.
/// </summary>
public sealed class PathExpression : SourceExpression
{
/// <summary>
/// path. string
/// </summary>
public const string Path = "path.";
/// <summary>
/// Initializes a new instance of the <see cref="PathExpression"/> class.
/// </summary>
/// <param name="name">The name string, it's case-insensitive.</param>
public PathExpression(string name)
: base(name)
{
Utils.CheckArgumentNullOrEmpty(name);
}
/// <summary>
/// Gets the expression string.
/// </summary>
public override string Expression { get => Path + Value; }
/// <summary>
/// Gets the name string.
/// </summary>
public string? Name { get => Value; }
}
}