You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an exception because of the property "In" with null value, I spent a lot of time to find the problem, and just inspecting the source code I found the comment that says "REQUIRED", a "NullReferenceException" error says nothing, treat the errors and their messages to better identify where the problem is, or to request fields that are "REQUIRED" in the class constructor
Hey Arthur Henrique (@ArthNRick) ! Thanks for reporting this. In OpenAPI the "required" constraint can actually be satisfied by the null value. Required only means that the property must be present. The problem in this case seems to be that In is an enum and null is not being correctly reported as an invalid value.
Activity
darrelmiller commentedon Aug 11, 2018
Hey Arthur Henrique (@ArthNRick) ! Thanks for reporting this. In OpenAPI the "required" constraint can actually be satisfied by the null value. Required only means that the property must be present. The problem in this case seems to be that In is an enum and null is not being correctly reported as an invalid value.