Namespace: Json.Schema.Api.OpenApi
Inheritance: RuntimeExpression 🡒 object
Implemented interfaces:
- IEquatable<string>
- IEquatable<RuntimeExpression>
Models an OpenAPI runtime expression.
Fields
| Name | Type | Summary |
|---|---|---|
| Method | RuntimeExpression | A $method runtime expression. |
| StatusCode | RuntimeExpression | A $statusCode runtime expression. |
| Url | RuntimeExpression | A $url runtime expression. |
Properties
| Name | Type | Summary |
|---|---|---|
| ExpressionType | RuntimeExpressionType | Gets the expression type. |
| JsonPointer | JsonPointer? | Gets the JSON Pointer. |
| Name | string | Gets the name. |
| SourceType | RuntimeExpressionSourceType? | Gets the source type. |
| Token | string | Gets the token. |
Methods
Equals(string other)
Indicates whether the current object is equal to another object of the same type.
Declaration
1
public bool Equals(string other)
| Parameter | Type | Description |
|---|---|---|
| other | string | An object to compare with this object. |
Returns
if the current object is equal to the
Equals(RuntimeExpression other)
Indicates whether the current object is equal to another object of the same type.
Declaration
1
public bool Equals(RuntimeExpression other)
| Parameter | Type | Description |
|---|---|---|
| other | RuntimeExpression | An object to compare with this object. |
Returns
if the current object is equal to the
Equals(object obj)
Determines whether the specified object is equal to the current object.
Declaration
1
public override bool Equals(object obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
if the specified object is equal to the current object; otherwise,
GetHashCode()
Serves as the default hash function.
Declaration
1
public override int GetHashCode()
Returns
A hash code for the current object.
Parse(string source)
Parses a runtime expression from a string.
Declaration
1
public static RuntimeExpression Parse(string source)
| Parameter | Type | Description |
|---|---|---|
| source | string | The string source |
Returns
A runtime expression
ToString()
Returns a string that represents the current object.
Declaration
1
public override string ToString()
Returns
A string that represents the current object.