Open cschuchardt88 opened 1 year ago
Why is it using BooleanCondition
as the base class, when it's clearly not the base class to be using?
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class WitnessRule
{
[Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public WitnessRuleAction Action { get; set; }
[Newtonsoft.Json.JsonProperty("condition", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public BooleanCondition Condition { get; set; }
}
I want my client classes to be generated as abstract like the server classes are. But they are not. How can i fix this problem. Plus the generated function on client picks the 1st class in the list of
oneOf
which is AndConditionModel.Server Configuration
Classes
Controller
Configuration
swagger.json
Response
Client
function