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

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).