OpenAPI.NET.OData icon indicating copy to clipboard operation
OpenAPI.NET.OData copied to clipboard

nullable

Open pjb1008 opened this issue 3 years ago • 1 comments

Hi,

A lot of schema are showing as having nullable items in contexts where this doesn't make a lot of sense. Example:

    microsoft.graph.serviceUpdateMessage:
     ...
            services:
              type: array
              items:
                type: string
                nullable: true
              description: The affected services by the service message.

So that's an array of optional strings, which makes little sense.

I am not sure if the graph metadata is wrong, of it the nullable appeared in the translation to OpenAPI.

pjb1008 avatar Jan 22 '22 17:01 pjb1008

The OpenAPI is simply following if the property is marked as nullable in the CSDL. What problem is this causing you?

darrelmiller avatar Mar 01 '22 13:03 darrelmiller