Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

swagger gen with nullable parameters #12234


User avatar
0
daws created

We are in the process of migrating aspnetzero from 12.4.2 to 13.4.0 (angular frontend)

After running swagger gen (with the provided script), some api input parameters are now checked for null before being sent to the backend :

How can we avoid this check ?

In the .net code, the parameters are already nullable :

public class AirlineInputDto
{
    public string Name { get; set; }
    
    public string? Icao { get; set; }
    
    public string? Iata { get; set; }
}

1 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi daws

    Thank you for your feedback. We created an issue for this, you can follow the changes here. Enjoy your work.