Class AbstractOpenAPISchema
Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
Inherited Members
Namespace: Unity.Services.Apis
Assembly: Unity.Services.Apis.dll
Syntax
public abstract class AbstractOpenAPISchema
Fields
AdditionalPropertiesSerializerSettings
Custom JSON serializer for objects with additional properties
Declaration
public static readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings
Field Value
Type | Description |
---|---|
Json |
SerializerSettings
Custom JSON serializer
Declaration
public static readonly JsonSerializerSettings SerializerSettings
Field Value
Type | Description |
---|---|
Json |
Properties
ActualInstance
Gets or Sets the actual instance
Declaration
public abstract object ActualInstance { get; set; }
Property Value
Type | Description |
---|---|
object |
IsNullable
Gets or Sets IsNullable to indicate whether the instance is nullable
Declaration
public bool IsNullable { get; protected set; }
Property Value
Type | Description |
---|---|
bool |
SchemaType
Gets or Sets the schema type, which can be either oneOf
or anyOf
Declaration
public string SchemaType { get; protected set; }
Property Value
Type | Description |
---|---|
string |
Methods
ToJson()
Converts the instance into JSON string.
Declaration
public abstract string ToJson()
Returns
Type | Description |
---|---|
string | The json string value |