Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiBinary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public OpenApiBinary(byte[] value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Binary;
public override PrimitiveType PrimitiveType => PrimitiveType.Binary;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiBoolean.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public OpenApiBoolean(bool value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Boolean;
public override PrimitiveType PrimitiveType => PrimitiveType.Boolean;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiByte.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public OpenApiByte(byte[] value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Byte;
public override PrimitiveType PrimitiveType => PrimitiveType.Byte;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public OpenApiDate(DateTime value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Date;
public override PrimitiveType PrimitiveType => PrimitiveType.Date;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiDateTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public OpenApiDateTime(DateTimeOffset value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.DateTime;
public override PrimitiveType PrimitiveType => PrimitiveType.DateTime;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiDouble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public OpenApiDouble(double value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Double;
public override PrimitiveType PrimitiveType => PrimitiveType.Double;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiFloat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public OpenApiFloat(float value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Float;
public override PrimitiveType PrimitiveType => PrimitiveType.Float;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiInteger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public OpenApiInteger(int value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Integer;
public override PrimitiveType PrimitiveType => PrimitiveType.Integer;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiLong.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public OpenApiLong(long value)
/// <summary>
/// Primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Long;
public override PrimitiveType PrimitiveType => PrimitiveType.Long;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiPassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public OpenApiPassword(string value)
/// <summary>
/// The primitive type this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Password;
public override PrimitiveType PrimitiveType => PrimitiveType.Password;
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiPrimitive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public OpenApiPrimitive(OpenApiPrimitive<T> openApiPrimitive)
/// <summary>
/// The kind of <see cref="IOpenApiAny"/>.
/// </summary>
public AnyType AnyType { get; } = AnyType.Primitive;
public AnyType AnyType => AnyType.Primitive;

/// <summary>
/// The primitive class this object represents.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Any/OpenApiString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public OpenApiString(string value, bool isExplicit, bool isRawString)
/// <summary>
/// The primitive class this object represents.
/// </summary>
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.String;
public override PrimitiveType PrimitiveType => PrimitiveType.String;

/// <summary>
/// True if string was specified explicitly by the means of double quotes, single quotes, or literal or folded style.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Expressions/MethodExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class MethodExpression : RuntimeExpression
/// <summary>
/// Gets the expression string.
/// </summary>
public override string Expression { get; } = Method;
public override string Expression => Method;

/// <summary>
/// Private constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Expressions/StatusCodeExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class StatusCodeExpression : RuntimeExpression
/// <summary>
/// Gets the expression string.
/// </summary>
public override string Expression { get; } = StatusCode;
public override string Expression => StatusCode;

/// <summary>
/// Private constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Expressions/UrlExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class UrlExpression : RuntimeExpression
/// <summary>
/// Gets the expression string.
/// </summary>
public override string Expression { get; } = Url;
public override string Expression => Url;

/// <summary>
/// Private constructor.
Expand Down