Struct Type
Data type of the schema field.
[JsonConverter(typeof(TypeConverter))]
public readonly record struct Type : IEquatable<Type>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<Type> AllValues { get; }
Property Value
Array
OpenAPI array type
public static Type Array { get; }
Property Value
Boolean
OpenAPI boolean type
public static Type Boolean { get; }
Property Value
Integer
OpenAPI integer type
public static Type Integer { get; }
Property Value
Null
Null type
public static Type Null { get; }
Property Value
Number
OpenAPI number type
public static Type Number { get; }
Property Value
Object
OpenAPI object type
public static Type Object { get; }
Property Value
String
OpenAPI string type
public static Type String { get; }
Property Value
TypeUnspecified
Not specified, should not be used.
public static Type TypeUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(Type)
public bool Equals(Type other)
Parameters
otherType
Returns
FromString(string)
public static Type FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator Type(string)
public static implicit operator Type(string value)
Parameters
valuestring