| | 1 | | /* |
| | 2 | | * WeShare API |
| | 3 | | * |
| | 4 | | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| | 5 | | * |
| | 6 | | * The version of the OpenAPI document: 1.0 |
| | 7 | | * Generated by: https://github.com/openapitools/openapi-generator.git |
| | 8 | | */ |
| | 9 | |
|
| | 10 | |
|
| | 11 | | using System; |
| | 12 | | using Newtonsoft.Json; |
| | 13 | | using Newtonsoft.Json.Serialization; |
| | 14 | |
|
| | 15 | | namespace Applications.WeShare.Swagger.Model |
| | 16 | | { |
| | 17 | | /// <summary> |
| | 18 | | /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification |
| | 19 | | /// </summary> |
| | 20 | | public abstract partial class AbstractOpenAPISchema |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Custom JSON serializer |
| | 24 | | /// </summary> |
| 0 | 25 | | static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings |
| 0 | 26 | | { |
| 0 | 27 | | // OpenAPI generated types generally hide default constructors. |
| 0 | 28 | | ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, |
| 0 | 29 | | MissingMemberHandling = MissingMemberHandling.Error, |
| 0 | 30 | | ContractResolver = new DefaultContractResolver |
| 0 | 31 | | { |
| 0 | 32 | | NamingStrategy = new CamelCaseNamingStrategy |
| 0 | 33 | | { |
| 0 | 34 | | OverrideSpecifiedNames = false |
| 0 | 35 | | } |
| 0 | 36 | | } |
| 0 | 37 | | }; |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// Custom JSON serializer for objects with additional properties |
| | 41 | | /// </summary> |
| 0 | 42 | | static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSetting |
| 0 | 43 | | { |
| 0 | 44 | | // OpenAPI generated types generally hide default constructors. |
| 0 | 45 | | ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, |
| 0 | 46 | | MissingMemberHandling = MissingMemberHandling.Ignore, |
| 0 | 47 | | ContractResolver = new DefaultContractResolver |
| 0 | 48 | | { |
| 0 | 49 | | NamingStrategy = new CamelCaseNamingStrategy |
| 0 | 50 | | { |
| 0 | 51 | | OverrideSpecifiedNames = false |
| 0 | 52 | | } |
| 0 | 53 | | } |
| 0 | 54 | | }; |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets or Sets the actual instance |
| | 58 | | /// </summary> |
| | 59 | | public abstract Object ActualInstance { get; set; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or Sets IsNullable to indicate whether the instance is nullable |
| | 63 | | /// </summary> |
| 0 | 64 | | public bool IsNullable { get; protected set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` |
| | 68 | | /// </summary> |
| 0 | 69 | | public string SchemaType { get; protected set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Converts the instance into JSON string. |
| | 73 | | /// </summary> |
| | 74 | | public abstract string ToJson(); |
| | 75 | | } |
| | 76 | | } |