I'm trying to generate with this command
npx @openapitools/openapi-generator-cli generate -i https://www.thebluealliance.com/swagger/api_v3.json -g csharp --library httpclient --additional-properties=packageName=TheBlueAlliance.Api,nullableReferenceTypes=true,useDateTimeOffset=true -t /mnt/e/gh/me/openapi-generator-csharp-system-text-json
the resulting models have invalid ctors:
/// <summary>
/// Initializes a new instance of the <see cref="APIStatus" /> class.
/// </summary>
/// <param name="">Year of the current FRC season. (required).</param>
/// <param name="">Maximum FRC season year for valid queries. (required).</param>
/// <param name="">True if the entire FMS API provided by FIRST is down. (required).</param>
/// <param name="">An array of strings containing event keys of any active events that are no longer updating. (required).</param>
/// <param name=""> (required).</param>
/// <param name=""> (required).</param>
public APIStatus(int = default(int), int = default(int), bool = default(bool), List<string> = default(List<string>), APIStatusAppVersion = default(APIStatusAppVersion), APIStatusAppVersion = default(APIStatusAppVersion))
{
this.CurrentSeason = ;
this.MaxSeason = ;
this.IsDatafeedDown = ;
// to ensure "" is required (not null)
if ( == null)
{
throw new ArgumentNullException(" is a required property for APIStatus and cannot be null");
}
this.DownEvents = ;
// to ensure "" is required (not null)
if ( == null)
{
throw new ArgumentNullException(" is a required property for APIStatus and cannot be null");
}
this.Ios = ;
// to ensure "" is required (not null)
if ( == null)
{
throw new ArgumentNullException(" is a required property for APIStatus and cannot be null");
}
this.Android = ;
}
notice the lack of parameter names
not sure what to do to fix this; I'm unfamiliar w/ mustage/handlebar syntax to know if/where/how it can be fixed.
I'm trying to generate with this command
the resulting models have invalid ctors:
notice the lack of parameter names
not sure what to do to fix this; I'm unfamiliar w/ mustage/handlebar syntax to know if/where/how it can be fixed.