Skip to content

NullReferenceException #309

Closed
Closed

Description

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

Activity

  1. darrelmiller commented on Aug 11, 2018

    @darrelmiller
    Member

    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.

  2. self-assigned this
    on Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type:bugA broken experience

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions