<PackageReference Include="NJsonSchema" Version="8.5.6255.20253" />

NullHandling

public enum NullHandling
Defines how to express the nullability of a property.

Uses oneOf with null schema and null type to express the nullability of a property (valid JSON Schema draft v4).

Swagger = 1

Uses required to express the nullability of a property (not valid in JSON Schema draft v4).