< Summary

Information
Class: /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/AbstractOpenAPISchema.cs
Assembly: Default
File(s): /home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/AbstractOpenAPISchema.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 28
Coverable lines: 28
Total lines: 76
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

/home/wethinkcode/student_work/csharp/GroupProject/super-cool-group/weshare-qa/GeneratedApiCode/src/Applications.WeShare.Swagger/Model/AbstractOpenAPISchema.cs

#LineLine coverage
 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
 11using System;
 12using Newtonsoft.Json;
 13using Newtonsoft.Json.Serialization;
 14
 15namespace 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>
 025        static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
 026        {
 027            // OpenAPI generated types generally hide default constructors.
 028            ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
 029            MissingMemberHandling = MissingMemberHandling.Error,
 030            ContractResolver = new DefaultContractResolver
 031            {
 032                NamingStrategy = new CamelCaseNamingStrategy
 033                {
 034                    OverrideSpecifiedNames = false
 035                }
 036            }
 037        };
 38
 39        /// <summary>
 40        ///  Custom JSON serializer for objects with additional properties
 41        /// </summary>
 042        static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSetting
 043        {
 044            // OpenAPI generated types generally hide default constructors.
 045            ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
 046            MissingMemberHandling = MissingMemberHandling.Ignore,
 047            ContractResolver = new DefaultContractResolver
 048            {
 049                NamingStrategy = new CamelCaseNamingStrategy
 050                {
 051                    OverrideSpecifiedNames = false
 052                }
 053            }
 054        };
 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>
 064        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>
 069        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}